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.
Related
Is it possible to start a service without open the app or without launching the app. Explaining the scenario
User Download and install the app.
User do not open the app. Even not a single time after the installation.
Now I want to start a service in above scenario, maybe on reboot of device or any other way.
Is it possible? Many blogs and posts say that it's not possible.
Is it possible
Not since Android 3.1, to help prevent "drive-by" malware installations.
I've seen that some apps only start working after a phone reset. Usually are apps that will run silent on the phone. The first time they run they'll ask for some info or prefs. How does those guys do it?
Welcome to SO!
These "apps" running at startup are basically Services that the Android framework invokes on startup. If you want your app to be invoked at startup.
Instead of Service, you could also call an Activity
http://www.androidcompetencycenter.com/2009/06/start-service-at-boot/
BTW, a similar question was posted here. To avoid your question being blocked/closed, it's best to follow the guidelines here.
Happy Coding! :)
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.
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.
When a user tries to launch an application I want to suppress that application and then call another application. Example I want the user to authenticate himself before launching a particular system application (settings application etc). The authentication application should pop up every time the user launches the settings application
I know you will have to use broadcast receivers and intents but have no clue how to do it.
Sounds like you should create a "lib" project that have public interfaces that you can use.
Then share them between the apps instead of trying to execute another app?
But what I know this is not possible to actually execute up another app, since this then gives dependency to something that you don't know if it is installed. It must already been started if the intents should work.
Also like the answer before, it could be used for abuse.
Look at this link for more information:
http://mylifewithandroid.blogspot.com/2007/12/playing-with-intents.html
I sort of hope this isn't possible... Launching a different application from the one the user actually clicked? Leaves the door open for abuse.