更换默认主屏幕的Andr​​oid [英] Replacing default Home Screen Android

查看:163
本文介绍了更换默认主屏幕的Andr​​oid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序实现了resul我的应用程序是启动的时候我的平板电脑开始在主页的活动之一。结果
在android清单中的code是以下内容:

in my application I achieved the resul that my app is one of the Home Activity that start when my tablet start.
The code in the android Manifest is the Following:

<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />  

这是我想达到的效果是,用户不能选择是否启动的第一个活动应该是我的活动或默认主页的活动。结果
我想是永远是我的活动。结果
还有一件事,我必须要以删除由用户选择启动活动的可能性呢?结果
先谢谢了。结果
马尔科

The result that i want to achieve is that the user cannot choose if the first activity to start should be the mine activity or the default home activity.
I would to be always mine activity.
There is another thing that i must to do in order to delete the possibility to choose the start activity by user?
Thanks in advance.
Marco

推荐答案

据我所知,你不能这样做,因为这将是一个安全问题。
你不应该这样做,如果你的应用程序是一个正常的应用程序。

Afaik you can't do this as it would be a security issue. You are not supposed to do this if your app is a "normal" app.

也许如果你是root,或者如果你的应用程序是系统,​​那么你可能可以(通过设置应用你作为默认为家行动为例)更改,但是这将是非常非常混乱

Maybe if you are root or if your app is system then you may be able to change that (for example by setting you app as default for the home action) but it would be very very messy

这篇关于更换默认主屏幕的Andr​​oid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆