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.
For Android emulator press "CTRL + M" with keyboard on emulator for reloading the react native project.
go to /Applications/Android Studio. app/sdk/platform-tools. make sure adb is in directory (use ls command) ./adb reboot.
In Android Studio go to: Tools > Android > AVD Manager. Select your emulator device. Click "Cold boot now" to restart, or "Wipe data" to factory reset.
Press F1 in Genymotion and click on "Reload JS" incase of react-native app development.
Press F2 for Android Studio emulator.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With