on click of shortcut on homescreen launching from spalsh screen in android

前端 未结 2 979
栀梦
栀梦 2021-01-16 02:28

I reated configuration in mainfest file as follows

shortcut is created on homescreen, but the problem is when i click on this it is not retaining the state correctl

相关标签:
2条回答
  • 2021-01-16 03:32

    I'm going to assume that you started the app initially (the first time) from an IDE (like Eclipse or IntelliJ) or after installing it using the installer (from the market or browser or clicking on APK in file browser). If so, this is a known bug in Android (see http://code.google.com/p/android/issues/detail?id=26658 ). Many people have struggled for days chasing this problem :-(

    A simple workaround for this problem can be found at http://code.google.com/p/android/issues/detail?id=2373#c21

    To verify this is your problem, don't start it from the IDE or installer. Simply install the app and then go start it from the list of available applications.

    0 讨论(0)
  • 2021-01-16 03:35

    If the shortcut is created programmatically then your app wont resume because you have specified an activity for shortcut intent,

    To solve this, have a look at the the answer here

    0 讨论(0)
提交回复
热议问题