Application name with two words divided by a space with URL Scheme on Andorid, can this be done using tiapp.xml manifest?
Example: On Android, if the project name in is set to Test
<name>Test</name>and I place the following code in between the manifest tags in tiapp.xml
<manifest android:versionCode="3" android:versionName="1.2.2"> <supports-screens android:anyDensity="false"></supports-screens> <application android:debuggable="false" android:icon="@drawable/appicon" android:label="Testdata" android:name="TestApplication"> <activity android:name=".TestActivity" android:label="Testdata" android:theme="@style/Theme.Titanium" android:configChanges="keyboardHidden|orientation"> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <category android:name="android.intent.category.LAUNCHER" /> <data android:scheme="mytesturlscheme" /> </intent-filter> </activity> </application> </manifest>
Build it
Then everything works fine except that there is no longer an application icon and name placed under application on android. I have tried this on several phones with different versions of Android same result
The only way to start the application is via URL Scheme, in this example mytesturlscheme://
Observation
If I uninstall the application there is an icon og text entry for the application, so it can be uninstalled.
My problem
My objective was to have a launch icon with text where the first part of the name is in uppercase dived by a space and a second text in lower case for the product name.
EG: COMPANYNAME product
As an example if I change the name to:
<name>TEST test</name>Notice that now there is a space between "TEST test", this just breaks everything, except when I remove the URL scheme definition between the manifest tags
Now I have a an icon with an application name which works with the first word being in upper case split by a space and a second word in lower case but no URL scheme
In constrast the iOS implementation works a dream I just change the icons home screen names using i18n and the URL Scheme entry is automactically placed within the plist
can anyone explain...
regards
Gary
1 Answer
You can use the internationalization mechanism to add spaces (or any other special characters) in your app's name.
There is a section in the Titanium Guides that explains just that.
Hope this helps.
Your Answer
Think you can help? Login to answer this question!