Develop an android project with codenvy - android

I'm trying to use codenvy to develop android projects, but I don't know how I can launch the emulator to see my project running. I found this video(https://www.youtube.com/watch?v=HqkHOWbFrDQ) about using manymo as a cloud based emulator but I don't know how to use it with the current version of codenvy.
EDIT : I clicked on the "run" button but I got no window poping up, here is a screen-shot of my project :

We now have a built-in emulator. When you launch the runner you'll first see a gray screen - at that point right-click and choose "Emulator" from the pop-up. It'll take a moment to load then you should see the Android logo and then the home screen.

Related

How to change battery level in android studio 4.1 emulator

I am using Android Studio 4.1 and the emulator looks like this
Now i am following a tutorial series where the person has old version of Android studio but he is able to change battery level of his emulator using the options provided. The options are accessed by this button
Now I have right clicked everything. Searched on YouTube but I cannot find this option. So it would be great if someone can guide me
You can't access that from within the tool window, unfortunately:
So you'll need to uncheck the Launch in a tool window box, and it'll run in a separate window. The tool window version is new so I assume they'll add the options at some point though.
(If you need to find that settings screen, do Ctrl+Shift+A and type Emulator)

Change default Android emulator when debugging Xamarin.Forms app?

I installed VS2017 a few days ago, created the simple app Build your first Xamarin Forms App, and now I want to debug.
I am having issues with the default Android emulator created by the VS2017 installation (Android_Accelerated_x86_Oreo) so I created a new emulator. This is the screenshot.
How can I change the default so it debugs in the newly-created emulator?
I wanted to point out that I'm new to all of this, so I would like to run it without having to install anything else. I would like to see something run before I install anything else.
I also wanted to point out that I've tried clicking on "Start" on either one of them when not in debug mode, and I get Could not start emulator. Unable to load DLL 'DismApi' error.
The only way it automatically starts is if I hit F5 and the emulator window pops up. Then I go to Tools > Android Device Manager and the default emulator says "Stop" (it's running). If I click on "Stop" and then press "Start", I will get the same error again: Could not start emulator. Unable to load DLL 'DismApi'.
Where you launch the debugger just click the arrow pointing down to open the dropdown. Then select you new device. It will stay as you default device. Please see the image for reference:
Note: You may have to restart Visual Studio for your new device to appear.

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.
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.
-Turn off the emulator
-In Genymotion Window click the settings icon infront of the device name
-under "Android system options", check the "Show Android navigation bar"
-click ok and start the emulator
You will get the navigation bar from where you can kill the app
I have met a similar problem in Android 2.3.7 under Genymotion. I just closed the application before starting
If you only need to reload (refresh) an application on your Genymotion mobile device emulator and see your last changes in the code, you are going to do the following:
Go to the window of Genymotion virtual device, that you run yet;
Point cursor on the top bar with ᴧ Expo logo
Make left click mouse and hold it
Move cursor to the refresh symbol ↻ and push on it
You actually don't really need to do nothing.
When you click on the IDE's button to build and deploy your app. Android Studio will close it, install it and then run it again including your changes.
What's happening on your side?
Btw, I really advise you to update Android Studio, since the 1.0 version, the soft is very stable and behaving really as expected.

Intel XDK (Applications in HTML5)

Well, I have an application in HTML5, Intel made ​​the XDK (build in android)
Well when I install and then open the application, when al tightness input, it opens the keyboard and locks the application, making it close. Can you help me?
Without a code sample or more information it is hard to help you but I will suggest you try one of the demos that has an input field on an Android device and see if you have better results. Then at least you can look at the sample code to try to debug your application.
Open the Intel XDK
Click Start a New Project
Click Work with a Demo
Click on the first sample 'App Framework'
Click Use this Demo
Name your project
Click CREATE
You can use the Develop>>Design view to play with the input field or the Emulate tab to test the input field.
Click on the BUILD tab
Under Android click BUILD
Click UPLOAD TO SERVER
Click BUILD APP NOW
Click DOWNLOAD apk
Open a console or terminal prompt
Use adb install *.apk to install your app on device
Use the input field.
To debug your application:
Click Emulate tab
Click on the little bug in the top left corner of the Intel XDK tool bar next to the reload button.
Click Console in the pop-up dialog
See if there are any errors in your application in red font.
We have a webinar on debugging that will be posted soon but for now you can reference this video for an overview on how to debug an app remotely on your device:
https://software.intel.com/en-us/html5/videos/how-to-debug-apps-remotely-using-the-intel-xdk
You can add several console.log("gets here! line #: 27"); in your code and you will see them in the console window when you run your application remotely or in the emulate tab.

Start two Android emulators with different locale

Most of the idea is in the title, I just would like to know if it is possible to start 2 emulators at the same time with 2 different locale (to test the I18n of my app). If there was a way of doing it in Eclipse, that would be greater...
Something like
If you click the Button for starting the emulator in Eclipse (the litlle mobile phone) Eclipse should open a dialog that lets you choose which android virtual device (AVD) you want to start. You can create a second AVD in this dialog and then start them both after each other.
Now you have to change the locale of one of the emulators to the wanted language. The emulator should save this settings so you have to configure this only once.
In Eclipse, this is easy to do. Use the Android Virtual Device (AVD) manager to set up as many emulators as you want. Depending on whether you've updated to the latest version of the Eclipse plug-in, the button to launch the AVD manager will either be a black phone or the Android Robot's head above a black square with an arrow in it. Either way it's in the toolbar near the shortcuts for Save, Print, etc.
In the AVD you can create various emulators with different Android versions (download other SDKs in the 'Available Packages' menu in the left). Once you've created the emulators, start them with the button on the right. You can have multiple emulators running at the same time if you want. The emulators have a program installed on them already called 'Custom Locale' that lets you change their location information. You can't do this while creating the emulators, but it's saved when you do in the emulator so you don't need to do it every time.
After that, to choose which emulator your program will run on, change its run configuration Target to manual. This is done by clicking on the more options arrow next to the green 'Start Program' button, selecting Run Configurations, the Target tab, then selecting manual. You can also do this by right clicking on your project in the project browser (list on the left), and the option is under 'Run As' -> Run Configurations.
To connect adb to a particular emulator or device, use one of the options "-e", "-d" or "-s " as documented for the ADB tool.
http://developer.android.com/tools/help/adb.html
In general the documentation is a great place to start.

Categories

Resources