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.
Related
I have developed a android application using phonegap. I have registered certain recievers which get invoked as per my needs. Now the issue which i am facing is that if my application is already open then the reciever is opening the activity again. It happens because i coded in such a way. But suppose if my application was close then there is no issue.
So i think so i need to check whether the activity is open and then open it accordingly. Any suggestions?
This post contains set of solution which might help you decide which one is suitable for you requirement.
Checking if an Android application is running in the background
I have an android application. I want to auto start my application after the installation finished.
IN other words I want to call an activity of my own application after installation.
Let me know is it possible? If yes how can I do it ?
Thanks,
Pravin
Your app isn't in memory after it is installed. It won't be able to call itself.
Also; after looking at all of your other questions, why do I get the feeling you are writing some sort of malware? The user owns their phone, not you.
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
Just wanted to know is there a way to protect an application from getting uninstalled. I know it's possible if i add the application as a device administrator but this is not enough.
Is there a way I could pop up a message asking for the security code before un-installation starts ? any ideas highly appreciated.
You can create two applications. The first will be you application and the second will listen for remove intents and will triger an action if your first applications is removed, but this is only a basic protection since the user can remove the second application first.
The only possible solution is to modify the android source. As there are applications that can't be removed (gmail, contacts, telefon app, sms app, facebook, twitter) there must be a flag that you can use for your requirement. But I doubt that there is a way on a non customized android os...
I think it's impossible If application is installed by user.
Application can be uninstall by user too.
I think "application protection" on the market do what you want.
Try to implement an BroadCastReceiver listen ACTION_PACKAGE_REMOVED.
How can I get open and close time for all installed app. I have to create a app that will calculate app usages statics on phone.
Thanks,
Ajay
On the application level you would need to run a service that periodically checks and tracks statistics itself. At the platform level, you should be able to easily make modifications to track this fairly accurately..
I donot think it is at all possible.