jeudi 28 août 2014

Android - App Call Main Launcher launch from different icon/shortcuts


Vote count:

0




Launch application from Desktop short cut icon. Start Activity A by app launcher on activity a have button for move to Activity B and finish activity A. I pressed button and moved to Activity A to Activity B.


Now, I minimize app and again click on desktop short cut it show previous state of application with same instance (no new instance created) but if I click from application drawer app icon its create new instance with launcher activity A. and If press back button and close app (Current new created instance) after it show previous instance with Activity B.


This issue with only short cut created by Play store after installed new application. Issue with desktop short cut of play store and app drawer (if created new short cut of app, it treated same app drawer means it no create new instance)


AndroidManifest.xml



<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://ift.tt/nIICcg" android:versionName="x.x.x" android:versionCode="17" package="com.pack1.client">
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="8"/>
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:resizeable="true" android:anyDensity="true"/>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application android:label="@string/appName" android:icon="@drawable/appicon" android:name=".GlobalApplication" android:process=":authProcess">
<activity android:label="@string/appName" android:name=".Login" android:screenOrientation="portrait" android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver android:name="com.pack1.client.LiveRequest">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<receiver android:name=".ConnectionChangeReceiver">
<intent-filter>
<action android:name="android.net.wifi.WIFI_STATE_CHANGED"/>
<action android:name="android.net.wifi.STATE_CHANGE"/>
</intent-filter>
</receiver>
<activity android:label="" android:name="com.pack1.client.Preferences" android:screenOrientation="portrait"/>
<activity android:label="" android:name="com.pack1.client.UserInfo" android:screenOrientation="portrait"/>
</application>
</manifest>


asked 1 min ago







Android - App Call Main Launcher launch from different icon/shortcuts

Aucun commentaire:

Enregistrer un commentaire