微嵌工业平板开发论坛

 找回密码
 立即注册
搜索
热搜: android wince6.0
查看: 396|回复: 0

androidk开机直接进入用户的程序的方法

[复制链接]

24

主题

4

回帖

104

积分

注册会员

Rank: 2

积分
104
发表于 2021-10-27 10:42:47 | 显示全部楼层 |阅读模式
此demo可以让用户开机之后,直接进入用户的apk,而不是进入桌面,
主要是修改 AndroidManifest.xml来实现:

修改之後的AndroidManifest.xml如下:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.demo.ld.bootupdemo">

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".BootActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.HOME" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.MONKEY" />
            </intent-filter>
        </activity>
    </application>

</manifest>

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|微嵌工业平板开发论坛

GMT+8, 2024-5-19 02:57 , Processed in 0.021297 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表