- Running Your Android Application on an Android Emulator
- To Start Your Android Emulator
- To Run Your Application on Your Android Emulator
- How to install an application on android emulator?
- 5 Answers 5
- Application not installing on android emulator
- 2 Answers 2
- Not the answer you’re looking for? Browse other questions tagged android or ask your own question.
- Linked
- Related
- Hot Network Questions
- Subscribe to RSS
- How to install Google Play app in Android Studio emulator?
- 5 Answers 5
- Application not installing on android emulator
- 2 Answers 2
- Not the answer you’re looking for? Browse other questions tagged android or ask your own question.
- Related
- Hot Network Questions
- Subscribe to RSS
Running Your Android Application on an Android Emulator
After you create one or more Android emulators, you can run your RAD Studio mobile applications on your Android emulators. Before you run your application on your Android emulator, start your Android emulator as described below in To Start Your Android Emulator, so as to reduce startup time when you run your Android application from the IDE.
Caution: Android emulators are extremely slow and do not support the same feature set as real devices.
We do not recommend that you attempt to use an Android emulator:
- If you have an Android device, use your Android device instead.
- You can also use Mobile Preview to do initial debugging of an Android app.
To Start Your Android Emulator
- Start the Android Virtual Device Manager: Select Start | All Programs | Embarcadero RAD Studio XE6 | Android SDKs | Android AVD Manager .
- In the Android Virtual Device Manager, select your Android emulator in the list and click Start.
- On the Launch options dialog box, click Launch:
To Run Your Application on Your Android Emulator
- Open your Android application in RAD Studio.
- In the Project Manager, enable the emulator as the target platform. If necessary, expand the Target Platforms node and double-click the Android target platform. (The active target platform is displayed using a bold font.)
- Expand the Android node in the Project Manager.
- Expand the child Target node.
- Double-click the target Android emulator to activate it. (The active emulator is displayed using a bold font.) Note: If the emulator is not shown, right-click the Target node and select Refresh. If the emulator still is not displayed, see Using the Target Node.
In the following image you can see an emulator named rsxe6_android running, and the target platform setting activated in the Project Manager:
- In the device selector in the FireMonkey Mobile Form Designer, select the device that matches the emulator you are using. For example, if your emulator uses the WQVGA400 device, select 3.3″ WQVGA Android Phone (240dp x 400 dp).
- Run your application:
- Run with debugging ( Run >Run or F9)
- Run without debugging ( Run >Run Without Debugging or SHIFT+CTRL+F9)
- Compile and deploy messages should appear in the IDE.
- If the emulator is not running, the IDE displays: «The selected emulator is not running. Do you want start it?» Click Yes. A «Launching emulator» message is displayed.
- Open your emulator screen and watch for the app to appear. In the following image you can see a custom Nexus 4 emulator running a simple Hello World! application:
RAD Studio builds your application for Android and runs your application on the selected Android emulator. If the active Android emulator is not running, RAD Studio shows a dialog box that gives you the choice to start your Android emulator. If your Android emulator screen is locked, unlock it to access your application.
Android emulators run much slower than real devices due to the ARM platform emulation on top of a non-ARM system; if performance prevents you from using an Android emulator side by side with RAD Studio, see Running and Debugging Your Android Application Remotely. For obvious reasons, emulators also lack some of the physical features that real devices provide, although you can emulate some features], such as geo location.
Источник
How to install an application on android emulator?
When i enter «adb install asdasd.apk» to cmd returns «error:device not found». How can I fix this?
5 Answers 5
Just copy that apk file into ( D:\android-sdk\platform-tools ) android sdk platform tools.
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?
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»
you click on «Start» use command on cmd as,
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
then cmd prompted-> Success
You can also use command
command for check whether emulator is in the list
Actually you may need to run AVD several times
Источник
Application not installing on android emulator
I am developing an application in android Geocoder.When I run the applicaion its showing
[2011-01-11 11:08:13 — GeoTourProject] Automatic Target Mode: using existing emulator ’emulator-5554′ running compatible AVD ‘Name’ [2011-01-11 11:08:25 — GeoTourProject] Application already deployed. No need to reinstall. [2011-01-11 11:08:25 — GeoTourProject] \GeoTourProject\bin\GeoTourProject.apk installed on device [2011-01-11 11:08:25 — GeoTourProject] Done!
What should i do to install the application on android stimulator.
Thanks in advance Tushar Sahni
2 Answers 2
I would suggest you to make some changes in the code (like inserting a space in the .java files in your project) so that project is recompiled & deployed.
If it still throws error ‘Application already deployed’ then you can uninstall application by using adb uninstall & then install app
If you are not getting any errors, then probably you are already fine. Restart the emulator just to be sure. Rebuild the project and run it.
It takes a few seconds(takes about 20 on mine) for the emulator to start ans show the app.
It may also be deployed, but tucked inside the menu. So, drag open the menu bar where you see the applications such as Alarm etc. There you should see your own application too. Just click it to open it.
Not the answer you’re looking for? Browse other questions tagged android or ask your own question.
Linked
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.12.3.40888
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
Источник
How to install Google Play app in Android Studio emulator?
I am completely new to using Android Studio and I am trying to install the Google Play app on the emulator. I have installed the Google Repository and Google Play Services as well as a Google APIs x86 Atom System Image from the SDK manager and I am able to set up Google Play Services for my sample application.
I would now like to install the Google Play application on my emulator. How can this be done ? Any suggestions or a solution itself would be most appreciated. Also, thank you very much for your time.
5 Answers 5
Starting with Android Studio 3.0 Canary 1, you have now some options of devices that come with the Play Store app built-in(Nexus 5X and Nexus 5 on image below).
After a long while of testing, everything seems to be outdated. I can’t find necessary APK’s like GoogleLoginService.apk , etc.
I got it to work by installing two virtual devices.
- My Device (a Samsung Galaxy Tab A with custom skin and sizes)
- A device, which had the «Play Store Available» icon in your AVD-Manager on the site where you can create a new profile.
I installed the first device and the second device with the same Android version, and used one profile from Samsung (because my tablet is a Samsung).
After that step, I compared the config.ini file located in:
On Ubuntu/Linux it’ll be in
Change the following variables to:
Here’s an example diff of what fields will be changed:
After that you’ll probably have to re-download the system image for the device, which you can do from Tools > AVD Manager.
Here’s an example screenshot of what that’d look like:
Once done, restart the device, and Play store will be installed and ready to use.
Источник
Application not installing on android emulator
I have developed an application on android.I have used Map overlay class in application.When i try to install the application its showing in console
[2011-01-10 10:39:38 — GeoTourProject] Uploading GeoTourProject.apk onto device ’emulator-5554′ [2011-01-10 10:39:39 — GeoTourProject] Installing GeoTourProject.apk. [2011-01-10 10:39:45 — GeoTourProject] Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY [2011-01-10 10:39:45 — GeoTourProject] Please check logcat output for more details. [2011-01-10 10:39:45 — GeoTourProject] Launch canceled! Can anybody tell me how to proceed with it? Thanks in advance
2 Answers 2
From the name of your emulator.. I guess you will be using an app which has maps. If yes, you need to create the AVD using Google API with the right API Level (and not normal AVD). If you can’t find Google API within your «Android SDK & AVD Manager», you need to install from the «Available Packages» option.
Create a new emulator which contains Google API and GPS Support as property from property selection.
Not the answer you’re looking for? Browse other questions tagged android or ask your own question.
Related
Hot Network Questions
Subscribe to RSS
To subscribe to this RSS feed, copy and paste this URL into your RSS reader.
site design / logo © 2021 Stack Exchange Inc; user contributions licensed under cc by-sa. rev 2021.12.3.40888
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.
Источник