0

When application is not in foreground and startActivity is called, app does not show up with new activity. This only happens on low end devices. What can I do to make sure that the activity is started?

part of Manifest for second activity

<activity
     android:name=".OfferActivity"
     android:configChanges="orientation|screenSize"
     android:label="@string/title_activity_offer"
     android:launchMode="singleTop"
     android:noHistory="true"
     android:showOnLockScreen="true"/>
IntelliJ Amiya
  • 74,896
  • 15
  • 165
  • 198
pepela
  • 423
  • 5
  • 17

1 Answers1

0

Try to start the activity like this:

Intent i = new Intent(context, MyActivity.class);  
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(i);
zapotec
  • 2,628
  • 4
  • 31
  • 53