android Programming Glossary: singletop
How to send parameters from a notification-click to an activity? http://stackoverflow.com/questions/1198558/how-to-send-parameters-from-a-notification-click-to-an-activity but instead of adding a flag to the Intent you must add singleTop in your activity AndroidManifest.xml. If you use intent extras..
How to stop an activity in android using intent? http://stackoverflow.com/questions/14411477/how-to-stop-an-activity-in-android-using-intent add this in the AndroidManifest.xml android launchMode singleTop I'm going to use a CheckBox example. When it's checked the activity.. brought to the foreground. Now if you don't pass the flag singleTop then many instances of this activity will be created. singleTop.. then many instances of this activity will be created. singleTop makes sure only the same instance is called. Now when the checkbox..
Error java.lang.ClassNotFoundException: com.google.android.gms.maps.MapFragment in Google Map V2 http://stackoverflow.com/questions/16572020/error-java-lang-classnotfoundexception-com-google-android-gms-maps-mapfragment android configChanges orientation android launchMode singleTop application manifest HomeMapView.java public class HomeMapView..
Android “single top” launch mode and onNewIntent method http://stackoverflow.com/questions/1711785/android-single-top-launch-mode-and-onnewintent-method that by setting my Activity's launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent.. .ArtistActivity android label Artist android launchMode singleTop activity in my calling Activity Intent i new Intent i.putExtra.. has already been created and since you defined it as singleTop Android won't create a new instance of it but take the one that..
GCM Not Sending the Notifications http://stackoverflow.com/questions/18571844/gcm-not-sending-the-notifications orientation keyboardHidden screenSize android launchMode singleTop intent filter action android name android.intent.action.MAIN..
Starting Activity through notification: Avoiding duplicate activities http://stackoverflow.com/questions/2326622/starting-activity-through-notification-avoiding-duplicate-activities default. You probably need to specify android launchMode singleTop if you want to have a single instance only. There are 4 launch..
resuming an activity from a notification http://stackoverflow.com/questions/2386542/resuming-an-activity-from-a-notification of its task but other activities necessarily standard and singleTop activities can be launched into that task. A singleInstance..
Android: new Intent() starts new instance with android:launchMode=“singleTop” http://stackoverflow.com/questions/2424488/android-new-intent-starts-new-instance-with-androidlaunchmode-singletop Intent starts new instance with android launchMode &ldquo singleTop&rdquo I have Activity A with android launchMode singleTop in.. singleTop&rdquo I have Activity A with android launchMode singleTop in the manifest. If I go to Activity B C and D there I have.. This should do the trick. activity ... android launchMode singleTop When you create an intent to start the app use Intent intent..
On logout, clear Activity history stack, preventing “back” button from opening logged-in-only Activites http://stackoverflow.com/questions/3007998/on-logout-clear-activity-history-stack-preventing-back-button-from-opening-l in activities. I also tried using android launchMode singleTop for the Login activity in the manifest but this does not accomplish..
onActivityResult() called prematurely http://stackoverflow.com/questions/3354955/onactivityresult-called-prematurely the activity continues to run . If we change singleTask to singleTop everything works as expected result is reported only after the..
How do you use Intent.FLAG_ACTIVITY_CLEAR_TOP to clear the Activity Stack? http://stackoverflow.com/questions/4342761/how-do-you-use-intent-flag-activity-clear-top-to-clear-the-activity-stack as it's not working for me. My activity A has launchmode singleTop in the manifest. It starts activity B with launchmode singleInstance..
How to close all child activities from parent in android http://stackoverflow.com/questions/6302640/how-to-close-all-child-activities-from-parent-in-android i set that activity in manifest file as android launchMode singleTop Please help android layout android share improve this question..
Custom Translucent Android ActionBar http://stackoverflow.com/questions/6749261/custom-translucent-android-actionbar android theme @android style Theme.Holo android launchMode singleTop android configChanges keyboardHidden orientation Activity Setup..
onNewIntent() lifecycle and registered listeners http://stackoverflow.com/questions/8619883/onnewintent-lifecycle-and-registered-listeners lifecycle and registered listeners I'm using a singleTop Activity to receive intents from a search dialog via onNewIntent.. this question onNewIntent is meant as entry point for singleTop activities which already run somewhere else in the stack and..
How to send parameters from a notification-click to an activity? http://stackoverflow.com/questions/1198558/how-to-send-parameters-from-a-notification-click-to-an-activity first Intent that launched your activity. Same as number one but instead of adding a flag to the Intent you must add singleTop in your activity AndroidManifest.xml. If you use intent extras remeber to call PendingIntent.getActivity with the flag PendingIntent.FLAG_UPDATE_CURRENT..
How to stop an activity in android using intent? http://stackoverflow.com/questions/14411477/how-to-stop-an-activity-in-android-using-intent way around this. First of all to the activity you want to stop add this in the AndroidManifest.xml android launchMode singleTop I'm going to use a CheckBox example. When it's checked the activity is started and when unchecked will kill the activity... boolean value if it's true the activity is kept alive and is brought to the foreground. Now if you don't pass the flag singleTop then many instances of this activity will be created. singleTop makes sure only the same instance is called. Now when the.. to the foreground. Now if you don't pass the flag singleTop then many instances of this activity will be created. singleTop makes sure only the same instance is called. Now when the checkbox is unchecked a new value for keep is passed which is..
Error java.lang.ClassNotFoundException: com.google.android.gms.maps.MapFragment in Google Map V2 http://stackoverflow.com/questions/16572020/error-java-lang-classnotfoundexception-com-google-android-gms-maps-mapfragment android name .HomeMapView android label @string title_home android configChanges orientation android launchMode singleTop application manifest HomeMapView.java public class HomeMapView extends FragmentActivity implements OnTabChangeListener private..
Android “single top” launch mode and onNewIntent method http://stackoverflow.com/questions/1711785/android-single-top-launch-mode-and-onnewintent-method mode and onNewIntent method I read in the Android documentation that by setting my Activity's launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent that calling startActivity intent would reuse a single Activity.. regards to this in AndroidManifest.xml activity android name .ArtistActivity android label Artist android launchMode singleTop activity in my calling Activity Intent i new Intent i.putExtra EXTRA_KEY_ARTIST id i.setClass this ArtistActivity.class.. skip onCreate and go directly to onNewIntent because the activity has already been created and since you defined it as singleTop Android won't create a new instance of it but take the one that is already lying around. What I do to see what's going on..
GCM Not Sending the Notifications http://stackoverflow.com/questions/18571844/gcm-not-sending-the-notifications android label @string app_name android configChanges orientation keyboardHidden screenSize android launchMode singleTop intent filter action android name android.intent.action.MAIN category android name android.intent.category.LAUNCHER ..
Starting Activity through notification: Avoiding duplicate activities http://stackoverflow.com/questions/2326622/starting-activity-through-notification-avoiding-duplicate-activities improve this question That's the way it's supposed to be by default. You probably need to specify android launchMode singleTop if you want to have a single instance only. There are 4 launch modes more info here http developer.android.com intl de guide..
resuming an activity from a notification http://stackoverflow.com/questions/2386542/resuming-an-activity-from-a-notification activities to be part of its task. It's always at the root of its task but other activities necessarily standard and singleTop activities can be launched into that task. A singleInstance activity on the other hand permits no other activities to be..
Android: new Intent() starts new instance with android:launchMode=“singleTop” http://stackoverflow.com/questions/2424488/android-new-intent-starts-new-instance-with-androidlaunchmode-singletop new Intent starts new instance with android launchMode &ldquo singleTop&rdquo I have Activity A with android launchMode singleTop in the manifest. If I go to Activity B C and D there I have menu.. Intent starts new instance with android launchMode &ldquo singleTop&rdquo I have Activity A with android launchMode singleTop in the manifest. If I go to Activity B C and D there I have menu shortcuts to return to my applications root activity A.. activity android intent share improve this question This should do the trick. activity ... android launchMode singleTop When you create an intent to start the app use Intent intent new Intent context YourActivity.class intent.setFlags Intent.FLAG_ACTIVITY_NEW_TASK..
On logout, clear Activity history stack, preventing “back” button from opening logged-in-only Activites http://stackoverflow.com/questions/3007998/on-logout-clear-activity-history-stack-preventing-back-button-from-opening-l the user from navigating back to previously seen logged in activities. I also tried using android launchMode singleTop for the Login activity in the manifest but this does not accomplish my goal either and seems to have no effect anyway ...
onActivityResult() called prematurely http://stackoverflow.com/questions/3354955/onactivityresult-called-prematurely for activity declared as singleTask despite the fact that the activity continues to run . If we change singleTask to singleTop everything works as expected result is reported only after the activity is finished. While this behavior has certain explanation..
How do you use Intent.FLAG_ACTIVITY_CLEAR_TOP to clear the Activity Stack? http://stackoverflow.com/questions/4342761/how-do-you-use-intent-flag-activity-clear-top-to-clear-the-activity-stack several posts about using this but must be missing something as it's not working for me. My activity A has launchmode singleTop in the manifest. It starts activity B with launchmode singleInstance . Activity B opens a browser and receives and intent..
How to close all child activities from parent in android http://stackoverflow.com/questions/6302640/how-to-close-all-child-activities-from-parent-in-android intent Here Homepage.class is my Home Activity A and i set that activity in manifest file as android launchMode singleTop Please help android layout android share improve this question You can start Activity A and close all other activities...
Custom Translucent Android ActionBar http://stackoverflow.com/questions/6749261/custom-translucent-android-actionbar if possible. Manifest activity android name videoplayer android theme @android style Theme.Holo android launchMode singleTop android configChanges keyboardHidden orientation Activity Setup action bar ActionBar actionBar getActionBar actionBar.setNavigationMode..
onNewIntent() lifecycle and registered listeners http://stackoverflow.com/questions/8619883/onnewintent-lifecycle-and-registered-listeners lifecycle and registered listeners I'm using a singleTop Activity to receive intents from a search dialog via onNewIntent . What I noticed is that onPause is called before onNewIntent.. available android android intent lifecycle share improve this question onNewIntent is meant as entry point for singleTop activities which already run somewhere else in the stack and therefor can't call onCreate . From activities lifecycle point..
|