
<intent-filter> <action androID:name="androID.intent.action.MAIN" /> <category androID:name="androID.intent.category.LAUNCHER" /> <!-- declare the default searchable Activity for the whole app --> <action androID:name="androID.intent.action.SEARCH" /> </intent-filter>
它不能找到主要的活动,并且应用程序不运行.
任何想法?
使用与可搜索相同的活动不是最佳做法吗?
谢谢,
阿利萨
<activity androID:name=".activitIEs.YourActivity"> <intent-filter> <category androID:name="androID.intent.category.LAUNCHER" /> <action androID:name="androID.intent.action.MAIN" /> </intent-filter> <intent-filter> <action androID:name="androID.intent.action.SEARCH" /> </intent-filter></activity>总结
以上是内存溢出为你收集整理的Android:如何将活动声明为主要和可搜索?全部内容,希望文章能够帮你解决Android:如何将活动声明为主要和可搜索?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)