我们可以在没有一个Android的用户界面创建一个APK [英] Can we create an apk without an user interface in android

查看:120
本文介绍了我们可以在没有一个Android的用户界面创建一个APK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个APK,在没有一个Android的用户界面。我需要尽快得到一个应用安装在设备启动服务。是否有任何可能的方式来创建没有UI的APK。

先谢谢了。


解决方案

  

和我需要尽快得到一个应用安装在设备启动服务。


幸运的是,这是不可能通过正常渠道(例如,Play商店),出于安全原因,的由于Android 3.1 。您的应用程序没有运行,直到设备上的东西使用显式意图来启动你的组件之一,并且已安装的应用程序时肯定不会发生。

欢迎您打造您的硬件,或您自己的定制ROM,有您的应用程序pre-安装。在这种情况下,你可以安排能够马上运行。

I want to create an apk, without an user interface in android. And I need to start a Service as soon as the Applicaton gets installed on the Device. Is there any possible way to create an apk without UI.

Thanks in advance.

解决方案

And I need to start a Service as soon as the Applicaton gets installed on the Device.

Fortunately, that is not possible for an app installed through normal channels (e.g., the Play Store), for security reasons, since Android 3.1. Nothing of your app will run until something on the device uses an explicit Intent to start up one of your components, and that most certainly does not occur when your app is installed.

You are welcome to build your hardware, or your own custom ROM, that has your app pre-installed. In that case, you can arrange to be able to run right away.

这篇关于我们可以在没有一个Android的用户界面创建一个APK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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