What are the details of the In开发者_开发问答tent that is triggered when the user clicks on the notification created by Android Market after a new app is installed? Is it LAUNCHER or MAIN or something else? I am asking because my app is a Service not an Activity (it is a keyboard) so it doesn't need a LAUNCHER handler. However I want to display a welcome message when they click it, so I need to make sure I'm handling the right Intent. Do I need to handle LAUNCHER or MAIN or what?
Thanks in advance, Barry
It is the standard one:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
If you want to display a welcome message but also have no app icon then you might be able to register a BroadcastReceiver with that intent filter and then start your welcome screen from that (maybe launch a URL or actually include an Activity that shows the welcome info?).
Let me know if that works.
精彩评论