Note that there are some explanatory texts on larger screens.

plurals
  1. POActivity start is delayed (startActivity) error
    primarykey
    data
    text
    <p>Lately I have been receiving informations from users about my alarm app not ringing when it should. Finally, one of the users have send me information from build in log, that was really strange:</p> <pre><code>74. 4:25:0 - StartAlarm received 75. 5:22:15 - AlarmOnScreen create 76. 5:22:15 - Time: 04:25 </code></pre> <p>Problem is, informations to log are saved as follow:</p> <pre><code>//BroadcastReceiver @Override public void onReceive(Context context, Intent intent) { Logger.initialize(context); Logger.log("StartAlarm received"); Intent i = new Intent(context, AlarmOnScreen.class); i.putExtras(intent.getExtras()); i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(i); } //AlarmOnScreen (activity) @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.alarm_on_screen); Logger.log("AlarmOnScreen create"); //Time value of alarm is logged below (...) </code></pre> <p>As you can see, start of the activity was delayed considerably. How is that possible? User raported that alarm was delayed until he started "using" the phone - I guess that means, until lockscreen was unlocked or screen turned on. I am still waiting for answer with more informations. On other time delay was only 5 minutes - every time, until user started "using phone"</p> <p>Any ideas?</p> <p>EDIT: Let me add, that is something that have started happening lately, after application being out for months. I am still looking if I have maybe changed anything in manifest and in last update, but is it possible that it is somthing that happens only on new Android versions?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload