以编程方式将我的应用添加到android中的AutoStart应用列表 [英] Add my app to AutoStart apps list in android programmatically

查看:133
本文介绍了以编程方式将我的应用添加到android中的AutoStart应用列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望我的应用在安装后出现在自动启动列表中.

I want my app to be in the autostart list after installation.

我知道当我安装类似(whatsapp)的应用程序时,它会自动进入自动启动列表. 我希望我的应用程序保持不变

I know when I install an app like (whatsapp) it goes automatically to the autostart list. I want my app to be the same

我在此问题中尝试了代码 如何自动启动Android应用程序?

I tried the code in this question How to Autostart an Android Application?

但不幸的是,没有答案实际上使应用程序自动启动.

but unfortunately non of the answers actually made the app autostart.

不确定我是否做错了事

我需要自动启动应用程序的原因仅仅是为了从Web服务获取通知.因为除非打开或自动启动应用程序,否则该应用程序不会收到通知

the reason that I need the app be autostart is just to get notifications from the webservice. as the app does not get notifications unless its open or autostart is on

非常感谢您的帮助

谢谢

推荐答案

很少有流行的应用程序在后台运行,而不会在内存清理周期中被杀死(许多流行的OEM定制堆栈ROM来优化电池/内存),因为它们是这些制造商将其列入白名单".对于您的应用程序,您可以手动(通过设备的相应设置")将其列入白名单,也可以通过将用户重定向到相应的设置页面以将应用程序列入白名单而进行实用地应用.

Few popular apps run in background without being killed during memory cleanup cycle (many of the popular OEMs customize the stack ROM for battery/memory optimization), because they are "White listed" by these manufactures. For your app you can whitelist it either manually (via corresponding "settings" for the devices) or pragmatically by redirecting users to the corresponding settings page to white list the app.

请在此处

这篇关于以编程方式将我的应用添加到android中的AutoStart应用列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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