我公司开发的Android的主屏幕小部件,并得到了一个奇怪的问题:开放 - 按钮,在市场灰色的,因为那里实际上没有应用程序启动。所以,很多人抱怨,因为他们没有意识到,我的包是一个小部件。他们甚至给我一个差评,我想避免通过给人们一个暗示他们应该做些什么。第一线,暗示在描述(用大写)并没有在所有帮助,所以我在寻找一个更好的解决方案。的
是否有可能一个包在Android市场安装后直接显示一个消息?
我能找到的最好的解决方案是创建一个新的活动,并添加一个意图过滤器是这样的:
The best solution I could find is to create a new Activity, and add an intent-filter like this:
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.INFO" />
</intent-filter>
这不创建在启动一个图标,但使打开
- 按钮,在市场活跃,点击活动时被启动。
This does not create a icon in the launcher but makes the Open
-Button in the Market active and the Activity gets launched when clicked.