When you run the project on the emulator, the APK file is generated in the
bin directory. Keep in mind that just building the project (and not running it) will not output the APK file into the
Right click on the project in Eclipse -> Android tools -> Export without signed key. Connect your device. Mount it by sdk/tools.
No one mentioned this, but in conjunction to the other responses, you can also get the apk file from your bin directory to your phone or tablet by putting it on a web site and just downloading it.
Your device will complain about installing it after you download it. Your device will advise you or a risk of installing programs from unknown sources and give you the option to bypass the advice.
Your question is very specific. You don't have to pull it from your emulator, just grab the apk file from the bin folder in your project and place it on your real device.
Most people are giving you valuable information for the next step (signing and publishing your apk), you are not required to do that step to get it on your real device.
Downloading it to your real device is a simple method.
bin/XXX.apk file can be built automatically as soon as you save any source file:
Window/Preferences, Android/Build, uncheck "skip packaging and indexing..."
Eclipse 3.7 (Indigo): Go to Windows -> Preferences -> Android -> Build and uncheck "Skip packaging and dexing until export or launch"
Also, you can build it manually via Menu -> Project -> **Uncheck "Build automatically"**.
The simplest way to create signed/unsigned APKs using Eclipse and ADT is as follows:
- Right click your project in the "Project Explorer"
- Hover over "Android Tools"
- Select either "Export Signed Application Package" or "Export Unsigned Application Package"
Select the location for the new APK file and click "Save".
- NOTE: If you're trying to build a APK for beta distribution, you'll probably need to create a signed package, which requires a keystore. If you follow the "Signed Application" process in Eclipse ADT it will guide you through the process of creating a new keystore.
Hope this helps.
When you run your application, your phone should be detected and you should be given the option to run on your phone instead of on the emulator.
More instructions on getting your phone recognized: http://developer.android.com/guide/developing/device.html
When you want to export a signed version of the APK file (for uploading to the market or putting on a website), right-click on the project in Eclipse, choose export, and then choose "Export Android Application".
We can a make a signed and unsigned APK file. A signed APK file can install in your device.
For creating a signed APK file:
Right-click the project in the Package Explorer
Select Android Tools -> Export Signed Application Package.
Then specify the file location for the signed .apk.
For creating an unsigned APK file:
Right-click the project in the Package Explorer
Select Android Tools -> Export Unsigned Application Package.
Then specify the file location for the unsigned APK file.
Just right click on your project and then go to
*Export -> Android -> Export Android Application -> YOUR_PROJECT_NAME -> Create new key store path -> Fill the detail -> Set the .apk location -> Now you can get your .apk file*
Install it in your mobile.
The APK file is in the
/workspace/PROJECT_FOLDER/bin directory. To install the APK file in a real device:
Connect your real device with a PC/laptop.
sdk/tools/using a terminal or command prompt.
adb install <FILE PATH OF .APK FILE>
There is no need to create a key and so forth if you just want to play around with it on your device.
To export an unsigned .apk from Eclipse, right-click the project in the Package Explorer and select Android Tools -> Export Unsigned Application Package. Then specify the file location for the unsigned .apk.
For testing on a device, you can connect the device using USB and run from Eclipse just as an emulator.
If you need to distribute the app, then use the export feature:
Then follow instructions. You will have to create a key in the process.
- How to build an APK file in Eclipse?
- How to get back a file that was excluded from a build configuration in Eclipse CDT?
- How to exclude a source file from being build in eclipse (C++)?
- How to include the jars referenced in "Java Build Path" section of an Eclipse project in a jar file generated with Ant using a build.xml file
- How to Import Reconfigured apk File from Amazon Appstore into Eclipse for Signing
- How do I build .war file in Eclipse for Glassfish server
- How do I create a sbt build file from a mixed java/scala eclipse project?
- How do I get eclipse to edit *build.xml as an ant build file
- How build apk file in android studio?
- How do you programmatically remove a file from eclipse build path?
- How to efficiently manage file exclusion from build in Eclipse CDT?
- How to pack build file with upx via eclipse
- How can I automate an Eclipse Build + SFTP File transfer?
- How to build jar using Eclipse "Export as jar option" with a properties file
- How to build android apk using javafxports,opencv3.4, gradle and eclipse
- How to get app version from apk file using JAVA eclipse
- Eclipse c++ how to reinclude excluded file from build
- how to prevent eclipse from regenerating manifest file when creating APK
- How to execute existing build file in Eclipse using ant command?
- How do I show an open file in eclipse Package Explorer?
- How to configure Eclipse build path to use Maven dependencies?
- How do I hotkey directly to File Search tab in Eclipse
- How to attach source or JavaDoc in eclipse for any jar file e.g. JavaFX?
- How to solve "Unresolved inclusion: <iostream>" in a C++ file in Eclipse CDT?
- Eclipse Editor: How to change file format from Dos to Unix
- How can I make Eclipse file search not include svn directories?
- How to achieve that Eclipse clean and build (aka rebuild)?
- How to enable the bar showing file location in Eclipse
- How to build and run Maven projects after importing into Eclipse IDE
More Query from same tag
- Putting JPanels with colored borders in a specific order so they look like a grid
- Overwriting generated target in local maven repository with Maven-Eclipse?
- When executing proguard-maven-plugin, "CreateProcess error=206, The filename or extension is too long" occurs
- web service error when try to connect to database
- Transferred from Netbeans to Eclipse, now "Severe: PWC6117: File "null" not found"
- How to add Thymleaf Snippets to Eclipse IDE?
- Upgrading Subversive connectors in eclipse using the Connector Discovery
- cannot access org.eclipse.core.runtime.IProgressMonitor
- Eclipse New Server Wizard does not accept my JDK as a JDK
- Usage of eclipse warning "field declaration hides another field or variable"?
- Why does the Installed Plugin SDKs not show up Under Liferay in the Liferay IDE Windows Preferences
- How to set JFace ListViewer size?
- GAE error when executing mvn appengine:devserver
- JPA diagram: other attributes are not displayed
- Draw2D / GEF: How to access nested figures (e.g., for connections)
- Why both IF and ELSE case been excuted?
- Export custom android eclipse project to maven build type
- How can I start game developing in android?
- Maven Eclipse plugin bug? failing to auto-add in-workspace dependency JAR to Run Configuration module-path
- Custom views with ADT
- Starting Android Emulator fails
- resource ids in eclipse not shown
- How to Scala Eclipse IDE to connect to existing Hive
- Android programming. Passing a array from one activity to other
- How to install jcdk 2.2.1 in Eclipse [Version: Kepler Service Release 2]?
- Eclipse Data Tools Platform (DTP) - MySQL not available
- Java classes written outside of class brackets
- SetText For EditText
- How can I use Eclipse in a more efficient way
- I can't run my application since my htc desire device is api level 8 (Android 2.2) what can i do?