开发者

What Intent is triggered by clicking the notification after an app is installed by the Market?

开发者 https://www.devze.com 2023-03-09 15:31 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消