What I want to do is to create an application which can perform it's feature without user interaction. This shouldn't have any appicon at Applications page in Device. After installation user don't need to aware of application running in device. I tried with No Launcher Activity in a Demo Application but it is not running code of application and that's obvious. Is there a way to accomplish this task, Does this make any sense?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How can I create this custom Bottom Navigation on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
Yes it is possible, and it makes lot of sense. But it takes lot's stuff to do, for example.
1). You need to make your app as boot start-up means whenever user restart mobile or device your app should automatically start's.
2). Obviously you have to make app with no launcher mode as it's first activity and then call second activity as a service not as an activity.
so basically you have to create something like this.
and while calling service from your mainActivity define it like this.
hideApp // use it outside the mainActivity.
3). Then in manifest define this service as like below.
Edit
WakefulIntentService
is a new abstract class. Please check below. So create a new java file and paste the beloe code in it.