Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

1 Install Shows 2 times in App drawer

$
0
0

Hope someone is in a holiday-inspired problem solving mood! :)

I hope that this has been answered and that I'm just unable to search for the issue using the right terminology. I can't afford for this to be an issue that can't be resolved without a ticket... so here goes!

Here is the issue: I'm installing my app on the emulator and my own Galaxy S3 (and several other friend's phones) all with the same result: 1 Installation gets 2 entries in the App Drawer. 1 loads the app and everything runs like normal. The other entry hangs on the splash screen. On 1 phone it finally showed an error that it had to be closed while on every other phone it locks up and must be forced to restart. There is only 1 entry in the Application screen to uninstall the app. Here is the bizarre part, the thing that I'm hoping may lead someone to a conclusion:

I have added some recommended lines in the tiapp.xml file for keeping the app in portrait mode. The code looks like this:

<application>
                <!-- Replace "PASTE YOUR GOOGLE MAPS API KEY HERE" with the Google API key you obtained -->
                <meta-data
                    android:name="com.google.android.maps.v2.API_KEY" android:value="*****************"/>
                <activity
                    android:configChanges="keyboardHidden|orientation"
                    android:label="SBO" android:name=".SBOActivity"
                    android:screenOrientation="portrait" android:theme="@style/Theme.Titanium">
                    <intent-filter>
                        <action android:name="android.intent.action.MAIN"/>
                        <category android:name="android.intent.category.LAUNCHER"/>
                    </intent-filter>
                </activity>
                <activity
                    android:configChanges="keyboardHidden|orientation"
                    android:name="org.appcelerator.titanium.TiActivity" android:screenOrientation="portrait"/>
                <activity android:configChanges="keyboardHidden"
                    android:name="org.appcelerator.titanium.TiTranslucentActivity" android:theme="@android:style/Theme.Translucent"/>
                <activity android:configChanges="keyboardHidden"
                    android:name="org.appcelerator.titanium.TiModalActivity" android:theme="@android:style/Theme.Translucent"/>
                <activity android:configChanges="keyboardHidden" android:name="ti.modules.titanium.ui.TiTabActivity"/>
                <activity android:name="ti.modules.titanium.ui.android.TiPreferencesActivity"/>
            </application>
Here is why I think it's at least in part related. At one point I had a typo in android:label and the second icon, the one that fails to load the app, took the typo'ed name instead of the actual app name. Does anyone know what might cause that?! I've compared the code in the tiapp file to some others here on the QA and cannot find much of a difference. If I uninstall the App, both entries in the app drawer disappear. I'm mentioning this because of the Portrait constraint- I only have 1 Window and that is the base window and everything else is a view. The base window does have Ti.UI.PORTRAIT set in the array for orientationModes.

I've tried with a variety of Ti SDK's including: 3.1.2, 3.1.3, 3.2

I've tried with a variety of Android SDK's including: 4.2, 4.0.3, 4.0

Titanium Studio Version: 3.1.3.201309132423

Host OS: Mac OS X OS Version: 10.7.5


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>