How to load apk on device file system and start - android

I need to know how to load an application into a tablet where all I can do is a file transfer into the file storage area. I am using a tablet that does not have good eclipse usb integration, but I can put the file somewhere on the device, can someone please indicate where I need to place the apk and steps to load it after that. It is android 2.1 tablet Thanks

Just put the apk somewhere on your file system and open it with a file manager (ASTRO for example) in order to install it.
You have to activate "Settings" -> "Applications" -> "Unknown source" before.

Related

Reference file on Android device that was placed via USB

I have an html file that I placed on my Android device via USB (Android File Transfer). Android file transfer doesn't show any paths, so I don't know what directory this file is being placed in. I downloaded a file manager app on the device by ZenUI that suggests the file is in "root/sdcard/theFile.html" but referencing it in an app using "file:///root/sdcard/theFile.html" does not work even if all the appropriate Manifest permissions are in place ("file not found").
I am using a Droid Turbo 2
This is probably device-dependent. On my Nexus 6 is it
file:///storage/emulated/0/Download/file.html
(if you placed your file in Downloads).
If you have an SD-Card inside, maybe just trying emulated/1/... helps, or just download TotalCommander, navigate to the file and look up the properties of the file (Location:) will help you.
Hope that helps.

Auto install Android App after copying to SDCard

I know this is may or may not be possible,but I just want to confirm is it possible in android or not?
So here it goes,Let's say I have an android app ( example my_app.apk) ,I copied my_app.apk from my computer or through pendrive or downloaded from website to my android device( let's say I copied to /sdcard/).I have also activated install app from unknown sources in my phone settings.
Now is there any way through which I can make the App to auto install on the device as soon as I copied to /sdcard folder? I mean my_app.apk should kick auto installation on the device without user navigating to /sdcard of the device and selecting the app and clicking the install option.
I just want to know is this possible in Android? if Yes how can I achieve that? I don't want to use other third party applications to kick off installation,instead the app should kick installation itself as soon as it gets copied to /sdcard folder.
Any help would be appreciated.
I think that is not possible. It is possible to have Android app which checks some folders and detects new file and automatically install new apk files. To install apk package ordinary (from SD card) you should activated installing from Unknown sources in settings. Auto instalation packages aren't possible, because it could be security problem.

Accessing files from genymotion sd card

I have been using genymoton for quite some time now.
Could someone pls. tell me if there is a way by which I can access the files present in the sd card of genymotion emulator?
Currently I have to upload them to google driver and then download on windows.
You can use shared folder for that. It is well explain on this Google+ post.
Here is the brief:
Go to your VirtualBox VM setting / Shared folder tab
Add a shared folder with the folder you want to shared, and check the "auto mount" option
Start your VM as usual from the Genymotion software
Your shared folder is available in the /mnt/shared directory (multiple shared folders are supported)
This is also possible using the Android Device Monitor.
You already have this if you have the Android SDK installed.
This method works for all connected devices, including emulators like genymotion.
In Android Studio, click the icon that says Android Device Monitor in the toolbar.
(This is also available from Eclipse or you can just type monitor in the command line after moving to the tools folder of your installed sdk)
In the Android Device Monitor, go to the File Explorer tab.
Make sure you have a device selected on the left side.
Find the desired file and select it.
For the sdCard you might need to open the storage folder and open the sdcard there.
Click the button on top that says "Pull a file from the device".
Make sure you select Pull, not Push. Unless if you want to put new files on your device ofcourse.
Save the file to your computer...
and voila! The file from your genymotion is now among your other files on your computer. Ready to be used however you like.
Or alternatively you can also use a third party app like airdroid or any advanced file explorer to exchange files between your device and your computer.
(For installing third party apps you either need to find the apk or flash gapps on your genymotion first and go to the play store.)
Another way that I adopted, just install EsFileEx on genymotion.
Grab your files that you want to copy from e.g
/sdcard/WhatsApp/media/dp.jpeg
Swipe to LAN, here you can see your local machine as 10.0.3.2 or any IP. Here you can access your shared folder/drive of local machine/PC, past copied file here and you done!
NOTE! R/W permission should be set on shared folder/drive of local machine/PC
You can use the eclipse with the ADT plugin and browse the file system like any other android virtual emulators. I have been using this for a while, but eclipse crashes at some times.

Android apps without marketplace

I want a know if it's possible to install a android application that I created but without passing by the market place, because the apps is for my company only. And the solution must also be legal.
Compile into .apk, send the file to everyone (in email) and use android to open the apk file and it will ask if you want to install it.
Moreover, make sure the settings in your phone allows unknown source installation.
Yes, it's possible and 100% legal. Just build the apk (using Eclipse with the plugin or the command line tools) and distribute it as you like.
If you don't have an ATT phone, then you can do this easily by clicking "allow installations of 3rd party apps" or whatever that setting is called. You can then just put the .apk file onto your SD card and open it with a file explorer like astro.
If you have an ATT phone, you'll have to download the android sdk and use ADB to push the app onto your phone.

Android application deployment [duplicate]

How can I install an application without any developer tools (Eclipse, Android SDK tools)?
I've compiled and created an .apk file. Now I am gonna send this apk file to my friend.
He is not an Android developer; he doesn't know how to use Eclipse or the SDK.
And I don't want to publish my application to android market.
Is there a way to launch the application on a real device without publishing it or having access to a machine with the SDK?
You can deploy the .apk file on your local server(apache or jboss) with a static IP to make the file available for download. Now just open the download link of the apk file in your mobile browser. The device will automatically start the installation after the download completes.
The way I usually do this is:
Plug in my USB cable to my PC and mount my SD card on my computer
Get the APK file somewhere on my SD card on the phone
Unmount the SD card on my PC, allowing the phone to see the SD card contents again
Use Astro File Manager or some similar app to browse to that file on the SD card and select it, which will prompt you if you want to install the app on your phone.
You should set
Settings -> Application -> Unknown sources
to allow installation from non-Market.
Then, once your application is published somewhere, you can download it an install it.
Also you can use 'adb install ' to install apk's to your device.
Though this approach requires you to have adb available on your computer and adb is part of the sdk.
Another, easier approach, is using DropBox. This enables you to save the apk in the dropbox/public folder, create a URI from there and supply this to your friend. Then have him download the apk. Android will notify him when it's done, so he only has to click the notification and Android will ask him whether or not he wants to install this software.
Try DeployGate. With the service you can generate a download page like this:
https://dply.me/7hmric
Then it will guide your friends to install your app and you can see how is going, e.g. which version is installed or updated, or app is crashed, in realtime.
Though it's a very common question, there were no simple way to achieve it. Even if we can send people an APK file through whatever, they have to change the "Unknown Sources" setting before the installation. We have to take care of this kind stuff everyday. It's simply a waste of time. So we made DeployGate, a tester-friendly private app distribution service to help the developers just like you. :)
Disclaimer: I'm a developer of the service.
Hopefully you will find the answer from here Install Android application on Android Device
Add your APK file to your device SD card and run it, you must allow to install non-market application on your device before you going to install.
Go to Setting -> Application Setting ->Unknown Source and tick check box which will allow to install non-market application on your device
what i usually do is:
1. Through mail: i send the .apk to their mail id.
2. do open his mail in his mobile. and download the attached .apk.
3. it will ask for installation and do run.
If doing from a windows based server with IIS 7.
Setup a website, with a page named default.asp
Add this line to the asp page;
Setup a mime with extension '.apk' and MIME type 'application/vnd.android.package-archive'
When you connect to the page http://yourUrl.co.uk, it will automatically start the download, and include it in the download manager so it can be selected from the drop down menu using default installer.
If the MIME isn't setup correctly then you will have to use a file explorer to open the apk with an installer.
Step-1 : Run Application in AVD First, then Close it.
Step-2 : See in bin/ folder contain AppNm.apk file.Just right click and copy it.
Step-3 : Now Connect Your Phone with Pc and Turn USB Storage on from your phone.
Step-4 : Now go to in your SD card Location and Paste it any location. just remember that location.
Step-5 : Eject/Remove Your phone from pc and check your file in SD card
Step-6 : Now click on it and install....

Categories

Resources