如何更改默认的Andr​​oid的桌面应用程序? [英] How to change default Android's Desktop application?

查看:101
本文介绍了如何更改默认的Andr​​oid的桌面应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我听到了Android的桌面,我可以改变一个应用程序。 我在寻找如何做到这一点的一些信息。

I hear that the Android's desktop is an application that I can change. I'm searching for some information about how to do that.

推荐答案

我猜你的意思是,当你preSS你想拥有你的应用程序中的Home键出现,而不是默认主屏幕?而且你在一个无根的手机是什么意思?

I guess you mean when you press the home button you want to have your app there instead of the default home screen? And do you mean on a non-rooted phone?

我使用一个意图过滤器对于这一点,即我希望我的活动启动电话启动,并默认主屏幕。

I use an intent filter for that, i.e. I want my activity to start on phone boot-up and be the default home screen.

<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"/>
</intent-filter>

在一个普通的手机,用户将得到一个选项,您的应用程序,默认主屏幕虽然在第一之间做出选择,虽然他可以标记一个复选框,然后总是选择这个应用程序为默认的屏幕,然后 - 但你的应​​用程序无法强制用户这样做。

On a regular phone, the user will get an option to choose between your app and the default home screen though at first, although he can mark a checkbox then to always choose this app as the default screen then - but your app cannot force the user to do that.

这篇关于如何更改默认的Andr​​oid的桌面应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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