Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

what are the things to consider when converting Titanium ios app to Titanium Android

 
sam liya
Ranch Hand
Posts: 1246
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a app which is build for ios using Titanium. I need to Convert this app to Android using Titanium.What are the things need to consider for this?
I found that android doesn't support capital letters for images.So i need to change them.can anyone tell me what are the other things?
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sam liya wrote:
I found that android doesn't support capital letters for images.

I don't have experience in Android but I doubt that it doesn't allow capital letters for images. Where did you read that?
 
sam liya
Ranch Hand
Posts: 1246
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i try to add capital letters for drawable resources it gives me below error.

 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what happens if you rename your file to ic.png (lower case)
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's true, not just for images: all resource file names are limited to the characters mentioned in that error message.
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:It's true, not just for images: all resource file names are limited to the characters mentioned in that error message.


Thanks! That sounds a bit too restrictive though.
 
sam liya
Ranch Hand
Posts: 1246
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks all.can anyone help me my main question.what are the things need to consider converting iphone apps to Android one using titanium?
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jaikiran Pai wrote:
Ulf Dittmer wrote:It's true, not just for images: all resource file names are limited to the characters mentioned in that error message.


Thanks! That sounds a bit too restrictive though.

True. But the reason is also provided
The resource compiler converts directory names to lower case before processing to avoid problems on case-insensitive file systems. Any capitalization in the names is only to benefit readability.

http://developer.android.com/guide/topics/resources/providing-resources.html
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!