将App设置为设备的启动应用
来源:互联网 发布:自学plc编程 编辑:程序博客网 时间:2024/06/10 10:23
最近在做Android TV盒子的有关项目
碰到一个问题,需要将自己写的App设置为盒子启动后最先显示在电视上。即,替换原有的Launcher(HOME) 。然后可以自己植入一些广告,启动显示自己的个性界面。
为了到达这样的效果。需要在AndroidManifest.xml文件中设置这样的代码:
<activity android:name=".activity.MainActivity"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.HOME" /> </intent-filter> </activity>
这样然后签名出来的apk就可以做为设备的HOME App了。一般来说,设备都会有默认的HOME App,当你再安装一个HOME App时,重启设备的时候,设备就会弹出对话框,让用户选择使用哪一个作为HOME App。
0 0
- 将App设置为设备的启动应用
- 将WEX5打包的应用设置为开机自启动
- android 将自己的APP 设置为开机启动,不闪桌面
- 将linux设备设置为服务器
- 将传入的文件设置为自启动程序
- Android 将自己的Launcher设置为默认启动
- Android 将自己的Launcher设置为默认启动
- C#实现将应用程序设置为开机启动的方法
- 如何将APP预置为系统应用
- 设置android应用为设备管理器
- 将设置为开机自启动
- 将MongoDB设置为服务随机启动
- 将oracle设置为自动启动
- 将redis设置为开机启动
- 关于IOS程序设置启动画面以及图标的设备目前主要为:IPhone设备 和IPad设备
- 一,入门基础—— 3. 设置App启动的设备方向
- 设置App的启动页
- 怎样将应用程序设置为自动启动和怎样禁止不必要的启动程序。
- 数据库技术及应用
- php中fsockopen模仿post与get详解
- 【C++面向对象】重载++操作符
- LeetCode #377 - Combination Sum IV - Medium
- win7 x64 上安装theano
- 将App设置为设备的启动应用
- ViewPager和ListView
- Android--RecyclerView,SwipeRefreshLayout相关
- 阿里百川码力APP监控 来了!
- 冒泡、选择、插入、归并、快速排序代码
- Activity与intent
- 【MySQL】10条SQL优化语句,让你的MySQL数据库跑得更快!
- Windows 下的 Redis 集群搭建
- inotify使用