Search code examples
androidandroid-studiogenymotion

How to reload app in Genymotion and Android Studio without rebooting the emulator?


I am using Android Studio 0.9.9 and Genymotion 2.3.1.

When I press run app in Android Studio, the Android Studio will allow me to choose to deploy my app in Genymotion which I usually do.

At this point, the app is running.

Let say at this point, I want to make a change in the code.

I saved the changes in Android Studio.

How do I reload my changes and redeploy the app without rebooting the Genymotion?

EDIT Ultimately, just upgrade to latest stable downloads of Android Studio was the solution.


Solution

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

    If I understood correctly you want to erase and re install your application from your emulator. To do so,In your emulator, go to Menu-->Settings-->Apps, then choose your application and unistall it. Then, go to Android Studio and run your applciation.

    Edit considering 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 change to your code, then to see in in action you must re-run the application. However, if you want your default starting activity to be Activity B, then you should 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 the activity B code, where you want your application to start from.