Questions tagged [launchmode]

176 questions
0
votes
1 answer

Using singleTask in launchMode

I added singleTask attribute to MainActivity(A) to avoid loading the activity multiple times. After the other activity(B) is on MainActivity(A->B), if I go back to home screen by pressing home button and re-launch the application, there is no B…
0
votes
1 answer

android activity start from other app causes issue when onResume

I have two activities, one is MainActivity (the launch activity), the other is MaskActivity. If I start my app from other app, and start MaskActivity from MainActivity (now MaskActivity is on top of MainActivity), problem arises when I press home…
Wood
  • 945
  • 1
  • 9
  • 18
0
votes
0 answers

Why other activity is destroying when 'Home' key is pressed.?

There are two activities ActivityA and ActivityB, both are made singleTask. Here ActivityB is of category HOME and it is set to always. I am starting ActivityA from a BroadcastReceiver on ACTION_BOOT_COMPLETED, it is starting ActivityA as expected…
bala
  • 168
  • 1
  • 8
0
votes
0 answers

Android App Launch behavior changed when the app is overwritten while it is running

App launch behavior makes me complicated! After my app is overwritten to be upgraded while it is running, re-launching behavior is something wrong. Normally it displays last activity running when I click its icon to resume since it was stopped by…
0
votes
2 answers

back navigation behavior on android

I have some activities in my app: A - Login Activity B - Main app Activity C, D ... - Inner Activities I want to implement a behaviour as follows: when a user select the app icon OR select the app from the task list I want the back stack to be…
yossico
  • 3,421
  • 5
  • 41
  • 76
0
votes
1 answer

Different way of installing apk file

I get issue when install apk file, follow is: 1. A apk file copy from /bin of Eclipse Way 1: Use commandline: adb install [path to apk file] Result 1: - Go to anywhere in app then touch home button. Use launcher re run app, app go to previous…
ribbon
  • 11
  • 3
0
votes
1 answer

Widget configure activity does not create the widget

I'm using a SherlockFragmentActivity as a widget configure activity:
Ilya Kogan
  • 21,995
  • 15
  • 85
  • 141
0
votes
1 answer

android:launchMode singleInstance Questions

Android's singleInstance launchMode seems to do what I want for the main tasks of my application, which is to keep the state of that Activity whenever I navigate back to it from a left menu bar. The problem is, with this launchMode set, I see a…
user901309
0
votes
3 answers

I click HOME button and the program minimizes; but when I press the app icon, the program is launched twice

I have the following problem: When I press the Android HOME key, I can see the "Desktop" and my app icon. Then I press my app icon and my application launches twice. I don't want open my app twice. How my program works: I have 4 Activities (A, B, C,…
eliangela
  • 253
  • 2
  • 5
  • 21
-1
votes
1 answer

launch activity twice even with launchMode="singleTask"

I have an activity for showing tour details with two inconsistent goals First that activity has a booking button which redirects to bank pay and get back to activity after successful or unsuccessful pay.that is why i set Launch Mode in manifest to…
-1
votes
1 answer

Two questions about the launch mode in Android

when I use startActivityForResult() to start Activity2 in Activity1, if Activity1 and Activity2 are not in the same task stack, the resultCode is 0(Activity.RESULT_CANCELED). IF Activity1's launchMode is standard and Activity2's launchMode is…
1 2 3
11
12