车展MainActivity后安装 [英] Autoshow MainActivity after install

查看:92
本文介绍了车展MainActivity后安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,就是它可以显示MainActivity用户,他们在其设备上安装我apk文件后? 因为我已阅读,我们不能我们的AutoLaunch APK安装后,但我只需要证明我的活动,所以这可能吗?

I have a question, is it possible to show MainActivity to user after they install my .apk on their devices? Because I have read that we can't autolaunch our apk after install, but I just need to show my Activity, so is it possible?

推荐答案

的正确安装后不能自动运行Android应用程序。

最大,你所能做的就是听 android.intent.action.BOOT_COMPLETED 的意图,它只会工作,如果用户手动启动应用程序至少一次。

Maximum that you can do is to listen to android.intent.action.BOOT_COMPLETED intent, and it will work only if the user manually launch your application at least once.

这篇关于车展MainActivity后安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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