I have install Eclipse, SDK and ADT in my machine.
Can anyone assist me how can I run .apk sample files in Eclipse?
Thanks.
You ofcourse cannot open the .apk file in your eclipse IDE. You need to install it on emulator as like we install it on our devices.
Go to your Command Prompt, type
adb install Sudoku.apk and it will install it on your emulator. (Remember, load the adb to your path variables and change your directory location where you have already placed the Sudoku.apk)
You need to create an emulator using the Android Virtual Device Manager. Then when you run it as an android application it will launch the emulator.
http://developer.android.com/guide/developing/devices/index.html
Should cover what you need to know.
you can push a file in emulator by Eclips( and you device that connected to eclips)
1-in device tab select your emulated phone and start it
2-pushing your apk file in file explorer tab by clicckig on PUSH A FILE
It Works.
Related
I created an android project with the eclipse ADT from the android-bundle, and generated the apk. I downloaded and installed Genymotion with the integrated Oracle Virtualbox on my computer running Windows XP. How to run my application with Genymotion ?
If you have a genymotion emulator running ADB will detect it and give you the option to install it directly on it from eclipse. Another option is to install it through terminal by doing:
adb install myapk.apk
Before using adb from terminal remember to set up ANDROID_HOME, and add ANDROID_HOME/platform-tools to the path. Hope this helps
if you have APK than just Drag and Drop to Genymotion emulator by default it store in
/sdcard/download(its toast location where store file) go to there and manually install your APK
you can also put any file not only APK :)
This is online plugin for eclipse http://plugins.genymotion.com/eclipse
after install it you can use as native emulator.You can find icon in eclipse menu start emulator from it and run project
To deploy an application to a virtual device, use either of the following methods:
Drag and drop the application APK file into the virtual device window.
Run the following command: adb install .apk.
Download and install the application directly from the virtual device
using a web link.
I followed the instruction on this tutorial How do you install an APK file in the Android emulator? but it doesnt install the apk. instead, it gives me this message "adb is not recognized as an internal or external command"
i think the problem here is im using a portable adt plugin and also a portable eclipse. is there anyway to install a downloaded apk file in my portable emulator?
go to your platform-tools folder from your android sdk dir and try in cmd promt
adb -e install c:/Projectapk_folder/yourapk.apk
Note: Emulator is in running mode.
EDIT: type adb command and check
C:\android-sdk-windows\platform-tools>adb devices
List of devices attached
0A3AAD40xxxx2F device
Just try this solution....
Click emulator Setting Click Apps First uninstall your app and again install
I finally found the answer. Yay! :) See this
The easiest way ever
1- First play the emulator from AVD manager
2- Just drag the .apk file and drop on the emulator screen
I tried on mac and it works well
I got an APK from the Internet.
Can I install and run the APK on the emulator?
If yes, how to do it?
Yes it is possible
first copy that .apk file into "platform-tools" folder of your android-SDK then open the command prompt and go to "platform-tools" folder now type "adb install _" here underline means your .apk file name. then press enter. it's DONE
Be sure that your emulator is running.
Use adb to install apk on emulator (or any connected device as well):
adb install file.apk
Re-install, keeping application data:
adb install -r file.apk
adb documentation is available here: http://developer.android.com/tools/help/adb.html
Yes you can.
Easiest way is to download the apk file from within the browser on the emulator, then install it from the notifications menu.
Alternatively, you can install the Android SDK (which you might already have done if you have the emulator) and use adb install my.apk which should install to any available device (so long as only one is available). Use adb devices to check what devices are available - when you run the emulator, it should show up there.
N.B. you will need to enable unknown sources in the applications menu of settings for this to work.
Place it in your host and download the .apk file from your emulator browser.
Yes!
Place your .apk file in the platform-tools folder of SDK, go to command prompt (path to ADB) and run the following command:
adb install your_apk_file.apk
I'm not sure if it will work, but try to open the File Explorer of the emulator through DDMS perspective in Eclipse, and copy/paste your apk in a folder. Then navigate to that folder from your emulator and launch the apk.
When i enter "adb install asdasd.apk" to cmd returns "error:device not found". How can I fix this?
Just copy that apk file into ( D:\android-sdk\platform-tools ) android sdk platform tools.
and then open the cmd prompt.
then, come into that platform tools path in cmd prompt.
then, give like this in cmd -- adb install (appName).apk
wait few minutes and get success respomse in cmd prompt..
First, familiarize yourself with a concept of AVD. That's basically an instance of the emulator - it has a bunch of settings, like the Android version to use and screen size and an SD card image.
You cannot install stuff "in the emulator" - you can only install stuff into a specific AVD. For that, you need to create and run an AVD first. For that, use "AVD Manager" from Eclipse or standalone.
Under the Android SDK folder in Explorer, run "AVD Manager". Choose an AVD (or create a new one if you don't have any). Select, click "Start".
Does the emulator show up when you run the following command?
adb devices
If not, you might have to boot up the AVD first, but if I remember correctly it should be starting it up by itself.
Have you created a new emulator for your project? And are you using Eclipse? Eclipse has an ADT plugin which is useful as it allows you to open the AVD manager through it. This plugin will give you this option in the Windows tool bar of Eclipse: Windows>AVD manager.
Create a new project based on the emulator and click the run button which will install your project onto the emulator. If you have an Android device I recommend turning USB development mode in your phones settings and running your project straight onto your device as it will be a lot faster. Hope this helps
this is what i did :
first run the "AVD Manager"-> choose an AVD -> click "Start"
immediately after
you click on "Start"
use command on cmd as,
adb install asdasd.apk
then in my case (Windows), asked to place .apk file in data/local/tmp/
what i did was copy and paste .apk file into data/local/tmp
and again use command
adb install asdasd.apk
then cmd prompted-> Success
You can also use command
adb devices
command for check whether emulator is in the list
Actually you may need to run AVD several times
I need to rely on external app (Barcode scanner in my case). The eclipse emulator crashes when I try to download it from within the emulator itself.
Is there a way to download it using the emulator?
Or Is there a way to directly install the APK and make it available for my application?
I ran the emulator from eclipse.
Check to see if the device is detected using :>adb devices
I ran the adb install foo.apk
This installed the APK in the emulator.
If the Command prompt says no AVD, you will need to create one >android create avd -n <avd-name> -t 2
Installing the apk in the tools is considered the best practice
You could download it to your computer, copy it to the sdcard, then install a file manager in your phone, I use ASTRO, browse to the apk in ASTRO and open it, this will ask you to install it. Before you can install it, you need to set your phone to allow Unknown Sources (i.e. non-Market apps) to be installed (Settings -> Applications).