I want to make an android application which should be installfrom sd card. i means as the sd card inserted in mobile it should prompt for installing my application. (ex: As soon as we put the tata photon or any other modem in to the system it prompt user to install the application)If i am right it is possible. so please guide me for the same. Please give the code as well.
thanks in advance :-)
If i am right it is possible
You are incorrect.
It is possible for an already-installed Android app to monitor changes in external storage and perhaps auto-install an APK. It is not possible for an uninstalled APK alone to do this, and approximately zero Android devices out of nearly one billion have this capability built in.
You can make a broadcast receiver which will fire when memory card will inserted.Just capture this event you can do what you want.
Related
I am not a guru in the mobile space. So if someone can give me some ideas on why this is happening, it would be great.
I have moved some apps, such as FB, Kindle, etc to SD card because my device storage is running out of space. However, I am noticing, whenever Google Play Store install updates, it moves them back to device. And I have to manually move them back to SD because my device storage is low.
Any ideas on how to fix this problem? Please advise.
Thanks
It happens because they programmatically choose prefered place to install.
hi i am working to create an application that could'nt be deleted or uninstalled even after hard reset or formatting the device but that is failed in such rooting process ,
Now i want a code to install an app automatically from sd card after a hard reset or reboot of an android device ,
The application is to find a lost mobile so that even the lost device is resetted or formatted
my app helps a user to find his mobile
Thank you..
i am working to create an application that could'nt be deleted or uninstalled even after hard reset or formatting the device but that is failed in such rooting process
Build your own ROM mod that has your app pre-installed.
Now i want a code to install an app automatically from sd card after a hard reset or reboot of an android device
That is not possible, fortunately, for obvious security reasons.
AFAIK, There are 2 kinds of android app: System app and User app. If you want to prevent uninstalling from your app, it must be an system app.
If you are developing app for rooted phone (and your phone is rooted also), try to copy *.apk to /system/app then restart your phone.
Hope this helps.
I'm trying to copy my app to an Android phone without an SD card. I've tried bluetooth and I've tried email attachment, but both of them seem to require an SD card for the download to take place. Is there any other way to do this without having an SD card at hand?
I frequently deploy to my phone using the eclipse IDE. Assuming the drivers for your phone are installed on your PC you can connect your phone with a USB cable and simply run the application in debug mode and it will deploy to your phone.
I've also emailed an app to my phone and then install it from my email. Are you certain you have allowed apps to be installed from unknown sources? If you have not you will need to do so.
Here is a procedure if this is from eclipse.
In your project>Bin>file.apk assuming eclipse
send the file.apk file to your phone.
Use an app installer to install the file.apk to your phone.
There you go a copy of your program
In my experience neither the mail client app or anything that imply a download from a website from the browser have being able to install the APKs without compying it on an SDCard before.
The only solution I got working so far would be to open the APK from the Google Drive app.
I suppose other network drive services could works as well but never had occasion to try them out.
We want to install our application on to (thousands of)phones and these phones will be later delivered to clients. Do we have to do this manually? Is there a faster way to do this?
For example, in Windows Mobile, if you put your installation files in a certain folder on SD card and when you insert that SD card to the phone the app is installed automatically to the device. Any similar mechanism on Android?
Thanks in advance.
You can create an update.zip file on an sdcard that will install an application, but you have to boot the phone into recovery mode to run it. I haven't used update.zip this way, but I saw it here: http://www.londatiga.net/it/how-to-create-android-update-zip-package/
Unfortunately it's much more complicated and slow than the old 2577\Autorun.exe method from WindowsMobile.
Other ideas...
ADB + USB hubs: Hook up a bunch of the phones at the same time using USB hubs, run a script to find the device ids with adb devices and execute adb install your_app.apk for each one.
(Requires taking the time to enable USB debugging on each device)
Install from the web: Host the .apk publicly or locally. Now you have to pull up the URL on the phone.
(Requires taking the time to checking that checkbox for installing from unknown sources on each device)
TinyUrl: host the .apk anywhere, shrink the URL, type it into the browser.
QR Code: If the devices happen to have a QR Code Reader like Google Goggles pre-installed, you could save yourself the typing of the URL.
SMS: If all of these phones have service and you have the numbers handy, you could broadcast an SMS to all of them.
Best of luck!
Basically, yeah. See this question for details. You essentially need an army of button-pressers.
I found this:
http://www.harmonyhollow.net/android_injector.shtml
So far it is the best solution I found. I guess it uses adb behind scenes.
Since I added the install location to the manifest (tried both auto and preferExternal) and made my update available in the Market I get some users that can't install the application on their (so far only HTC Desire with Froyo) devices. Is there any known issue on this? Or better a working solution?
I got also the following workaround from a user. Unmount the SD card, install the app, and mount the SD card again does succesfull install the app.
It seems that this is a specific error with this specific device model. Your app cannot help that much. But, among some hacks, the device owner can also try this:
How to Install Apps to the SD Card by Default on Android 2.2 Froyo