I want to develop a service at system Level for Android which can not be stopped by a user.
Is this possible ?
How can I achieve this?
thanks
Check this
I hope it is helpful for you.
how to stop an android service only when there are no other activities in my app
Related
I've been doing a few searches on google trying to find a way to run foreground services in react native but I haven't found much about it.
Is anyone aware of how to accomplish this?
This is what I mean by foreground service: https://developer.android.com/guide/components/services.html#Foreground
Edit: for some reason the link isn't working anymore.This is the good link as pointed out by DAN.
Here's a package react-native-foreground-service i found, while I was dealing with the same issue.
I have an example React Native Foreground Service app here. In this example, I'm doing a Bluetooth scan every 10 seconds and attempting to run a Foreground Service so that the scans will continue even if the app isn't in the foreground.
You can remove the call in index.js that does the BLE scan and you'll have a simple RN Foreground Service example.
I want to create an reminder app on android. How it works after closing the app? Thank you.
Its called services. You can run process in background once you get permission from user.
please learn more about services from here:
https://developer.android.com/guide/components/services.html
I am developing an application in which I start a service which will run in the background,
Now I want to make this service invisible to the customers so that they can not stop it.
Is that possible?
Any help regarding this issue will be appreciated.
Thanks
You should not and cannot do such a thing. This will violate the basic privileges of the user over his phone and is a potential (big) security hole.
Don't run it. Then it won't show up and the users won't be able to stop it.
i want to get the event when mobile is switched on in my application.
so, how i handle/get switched on event of mobile in my app, is it necessary to run my app in background?
can anyone help me?
Thanks in advance.
Have a look at the discussion in this thread:
Is it possible to write an Android broadcast receiver that detects when the phone wakes up?
Do you know if it is possible to launch a service directly after the installation of my application on the phone ?
Thanks
No, this is not possible or supported in Android. You can do it the first time the App is opened.
No this is not possible. But you can check if your application is first started.