Titanium Studio - app icon not working - titanium

I tried everything and my android app icon doesn't work, can anybody help me?
y tried create a new project and paste just the app folder and it still the same.
I'm using the 3.5.1 Titanium SDK.
thanks for the help!

Agree with #Ashish. You need to put the icons in the
platform / android / res
folder. Under this folder I have a number of folders with an image named "appicon.png" in each of them:
drawable-hdpi
drawable-ldpi
drawable-mdpi
drawable-xhdpi
drawable-xxhdpi
drawable-xxxhdpi
I use ticons by Fokke Zandbergen to generate the icons. Works like a charm :-)
On that page you can also find a link to a description about Androids 9-patch images (that you will need for different background images to scale correctly). One quick note on the splash and background images. I have put them in
app / assets / android / images / res-long-port-hdpi (and other resolutions)
And that also works well.
/John

Try to add the respective resolution appcions to the below folder structure and clean and build.
Platform ---> android ---> res
In the res folder there are resolution specific folders where you can place your appicons.

did you every try this :
open you object using titanium studio
open tiapp.xml and chose Overview tag
click Browse and choose a picture in Application icon option
build you project

While you add the appicon.png in the image folders, make sure that you are also adding in the folder:
app -> platform -> android -> res -> (hdpi folder)
Otherwise, it shows the default titanium app-icon.

Related

How do find the .app file in Xcode 9.3.1

Ok,
I've spent a few hours trying to find an answer to this question and had no luck what so ever.
I am creating an appium automated test using xcode Version 9.3.1 I need to locate the .app file so I can add it to my desired capabilities and I cant find it in any folder.
Breaking it this down in the most basic fashion, how do I locate the .app file so I can add it to my ios appium automated testing?
Out of curiousity would I need to use something like homebrew to locate it?
Or can I find from a specific menu in xcode?
Xcode -> Preferences -> Locations
Press the button to open folder in Finder
Here you need to find project build folder, open it and search sub folders with Debug-iphonesimulator name, you should fine build file there.
The full path might look like:
/Users/<user>/Library/Developer/Xcode/DerivedData/<Project name>/Build/Products/Debug-iphonesimulator
By default Xcode stores the derived data for all projects in a single shared folder under your home directory at the following location:
~/Library/Developer/Xcode/DerivedData
From Xcode 6, you can access or change derived data location from Preferences -> Locations Tab
but you can setup in xcode:
File-> Project Setting
locate "Derived data:"
here is how to setup https://www.youtube.com/watch?v=MVVRsR9XenQ
Seriously thank you so much for all your help. I really appreciated it so much. You've all been a bunch of legends. I was able to solve this problem and and I want help save someone 3 days of trouble.
Finding the .**app file is a HIDDEN FILE **
Basically there are number of ways to find the .app file in this version of Xcode.
You can find the .app by using your search bar on the mac. Also, you can find the .app would be in this directory
users/(YourMacAccount)/Library/Developer/Xcode/DerivedData/UICatalog-.../Build/Products/Debug-iphonesimulator/(appname).app
to reveal the hidden files type cmd>shift>.
If you still can't find it (Which is what happened to me). Then:
Click the show in finder icon (the one shaped like a file) in xcode
This is where you can find it in xcode 9.3.1

Add image to custom folder in Xamarin Android Resources

All the tutorials say that the images should be added to the Resources/drawable folder in case of Xamarin Android application. And that works absolutely fine. My question - is it possible to create a custom folder inside Resources to better organize the images? It's not very good to have them all in root of drawable folder.
The image is not displayed. When it is straight in the root of drawable, it works fine. Is it possible to have a nonflat image folder structure?
No, drawable can't have subdirectories. you can't put it.
You Can Add Folder name raw and you will able to access it from Resource.Raw

How to export SWF from FDT?

This is probably the most obvious question on the face of Earth, but I'm an Actionscript newbie. I'm using the FDT plugin for Eclipse on Mac (FDT version 1.13, eclipse "Kepler Service Release 1" with build ID "20130919-0819", using OS X 10.9.1) to make an Actionscript 3 project. Everything works perfectly fine, and debugging/running works perfectly. However, I have no idea how to export it. Disabling "Build Automatically" then pressing Build All or Build Project seems to do something, it shows a loading bar for a second then it disappears. I believe I checked something like "Include web files" when I started my project, so that may be the culprit. Here is the contents of my project:
assets
-some images that I have
bin
-history
--history.css
--history.js
--historyFrame.html
-index.html {when I open shows the game, but I want an swf}
-playerProductInstall.swf {shows just a blue screen}
-swfobject.js {I think this has something to do with it, but I want an swf}
lib {empty}
src {I'm not showing you what's in here}
Duh! The files are stored in bin, they just don't show up in the Eclipse/FDT window. Open the bin folder in Finder and you'll see an swf, get the one with the name of your main class and you're good to go!

Where is the Alloy Resources Folder

I'm using Titanium Alloy 3.0.2 GA (on a Mac) to build a cross-platform mobile app
Why doesn't the Resources folder show up in the Titanium Studio, even though it is present in the filesystem?
I want to store some images that will be displayed within the application, and I believe that I should store them somewhere inside the Resources folder.
When I look at the Project Explorer within the Studio, I don't see a /Resources folder.
When I tried to add a Resources folder to the root, I was told that there is already a Resources folder!
Finder confirms that there is a Resources folder.
So, how do I get the Resources folder to show up in the Studio Project Explorer?
Also- it does not show up in the App Explorer View either.
Yeah I had a problem with this as well, but thankfully this is documented in the guides section. Heres the pertinent information:
If your Resources folder is hidden, in the App Explorer view, click the View Menu button (right triangle pointing down) and select Customize Views..., then the Available Customizations dialog appears. In the Filters tab, uncheck the Titanium Resources Folder checkbox, then click the OK button. The Resources folder should appear in the App Explorer view.
For me It was actually in the "Project Explorer" view that I found the downward white arrow, and in the Available Customizations dialog I had to scroll all the way to the bottom of the Filters tab and uncheck "Titanium Resources Folder."
Hmm...
Yes I was able to view the Resources folder by going into the "Customize View" option in the Studio.
But the proper place to put local files (car images in my case) is under the \app\assets\ folder. The \assets* are copied to the \Resources folder as part of the build.
So I just put my .jpg files under a new \car_images folder (under \app\assets) and was able to access them in my code
var image = Ti.UI.createImageView({
image: '/car_images/Acura.jpg'
})
So actually there is no need to see/modify the \Resources folder as it is managed by the build process
Thanks

How can one see an iOS bundle's file structure?

I'm trying to create a subfolder structure in my app following this advice:
Subdirectories within an iOS application
But I can't see (using the Organizer) a way to test whether the subfolder structure is actually achieved or not...is there a way to check, other than jailbreaking the phone and getting in through ssh?
You can open the bundle that is installed to the simulator by navigating to:
<User Name>/Library/Application Support/iOS Simulator/<Alpha-Numeric String>/<App Name>.app'
Once you navigate to the above location (it may be .ipa, can't remember exactly) you can right click and choose Show Package Contents which will show you the contents app bundle.
If the question relates to *.ipa or *.app boundles, then you can rename them to *.zip and go from there.
At the moment, with Xcode 10 and macOS 10.14.X the path for simulators would be:
/Users/<user>/Library/Developer/CoreSimulator/Devices/<XXX>/data/Containers/Bundle/Application/<YYY>
Also, if you want to check for the previous step and check the files that would be inside the *.app(bundle) in Derived Data (to check for devices) the path would be:
~/Library/Developer/Xcode/DerivedData/