How to restart the application in Genymotion and Android Studio without restarting the emulator?

I am using Android Studio 0.9.9 and Genymotion 2.3.1.

When I click run the application in Android Studio, Android Studio will let me choose to deploy my application in Genymotion, which I usually do.

At this point, the application is running.

Let's say at this point I want to make changes to the code.

I saved the changes in Android Studio.

How to reload my changes and redeploy the application without restarting Genymotion?

EDIT Ultimately, just updating to the latest stable download of Android Studio was the solution.

+6
source share
6 answers

First, as mentioned in eyal-lezmy, you should download Android Studio 1.0.2 Stable edition (you always want the latest edition, especially if the IDE is as fresh as Android Studio .

If I understand correctly, you want to uninstall and reinstall the application from your emulator. To do this, in your emulator, go to Menu โ†’ Settings โ†’ Apps , then select your application and unistall. Then go to Android Studio and run your application.

Change based on your comment Reload being the fact that if my app has a button in activity A, and I press it, and it opens activity B, and I go back to Android Studio to type a comment, I want to reload the app and it auto starts right back at activity A

If you make any changes to your code, and then to see in action, you must restart the application. However, if you want the default initial activity to be Activity B , then you must go to your manifest file, remove this from Activity A code:

<action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" />

and place it inside action code B where you want your application to start with.

+1
source

Press F1 in Genymotion and click Update JS to start developing responsive applications.

Press F2 for Android Studio emulator.

+5
source

-Switch off emulator
-In the Genymotion window, click the settings icon opposite the device name
-under "Android system settings", check the box "Show Android navigation bar"
-click ok and run the emulator

You will get a navigation bar where you can kill the application.

+1
source

I ran into a similar problem in Android 2.3.7 under Genymotion. I just closed the application before starting

0
source

If you only need to restart (update) the application on your Genymotion mobile emulator and see the latest changes in the code, you will do the following:

  • Go to the window of the Genymotion virtual device that you are still running;
  • Hover over the top panel with the แดง Expo logo
  • Left-click and hold
  • Move the cursor to the update symbol โ†ป and click on it
0
source

You really don't have to do anything. When you click the IDE button to create and deploy the application. Android Studio will close it, install it, and then run it again, including your changes.

What is happening on your side?

By the way, I really advise you to update Android Studio, since version 1.0, soft, is very stable and behaves as expected.

-1
source

Source: https://habr.com/ru/post/981326/


All Articles