Cannot run the sample android application in the codenvy emulator - android

I tried creating an Android workspace with Codenvy with the sample hello world app provided. I built and ran the project. Clicked on 1(execute the run command) and then on 2(preview).
I never saw the hello world activity in the emulator screen and I didn't even see the app installed in the APPS section.
Am I doing something wrong?

You need to follow this guide https://github.com/che-samples/mobile-android-hello-world/blob/master/README.md and install apk once an emulator is started.

Related

Emulator not starting automatically when running react native project in webstrom or VS code terminal

Every time if I want to run RN project I want to start an android studio and start the emulator manually and then go to the terminal and run the RN. if i run the project without starting an emulator it's giving me an error.
error I got when I run the project without starting an emulaotr
from my experience this is expected behavior. On Mac, running an iOS project is able to open the built in emulator, but never on Android. The error is just letting you know there are no devices running.
One helpful thing you can do is create a shortcut or terminal command to open your emulator without opening Android Studio, which is kind of a pain to open just to start an emulator. You can do this using something like what is mentioned here: https://stackoverflow.com/a/33487044/3218158

How to set up an existing React-Native project from a new computer for the first time?

So I recently started working with my friend on his app project and I've had trouble building his react-native based project. It's both ios and android.
On android, I can get as far as building, but when I run the app shuts down instantly or shows a red screen with some firebase error.
On ios, I get a build error.
My question is: what do I need to install when I first pull the repo from github? I run '''yarn install''' straight away and run '''pod install''' from the ios folder but that isn't enough. Anything I should run for android more than the yarn install command I had already used?
Thanks!
It seems your development environment is not set up yet. Follow this link to set up your environment.

See app changes in real time on real device

I have Eclipse with Android Development Kit (ADT) installed, and also SDK. I have connected my Venue7 tabled and enabled USB Debugging.
I've created a simple Hello World app and ran it on my Venue7.
Now is it possible to update the app via Eclipse and see the result #Venue7 in real time? Or do you I have to stop the app and start it again after each change?
When you install your program on your device you are doing just that - installing it. The .apk file you have there is an installation package (apk stands for android package) not an executable file. So yes you have to reinstall it each time you have made changes to the program.
On eclipse I believe you just click the run as android program as the other poster said.
If you are using for the first time, Just see the left side, in package explorer, right click on your package- Select Run As Android application.
You dont need to stop an app. Just Run it from eclipse
If you have made changes in source code and you want to see the effects, you no need to stop the app/device or emulator. But you need to re-run the package again.
You can do this by 2 ways:
Right-click project, run as Android application
CTRL+F11 is to run the application. But for this you have to apply pre-settings as below.
Windows>Preferences>Run/debug > Launching : Launch Operation; "Always launch the previously launched application"

Debugging Cordova / Phonegap on device not showing changes

I'm just getting started with developing android apps with cordova/phonegab.
Everything is installed, blank sample app is running. However it seems changes are not shown. So basically it seems I'm stuck with the first build. I think cordova isn't making a build before running the debugger?!
How do I debug a cordova phonegap app with eclipse adt? Are there any best practices?
Another side question. ADT is either opening the browser or a simple text editor. Isn't were any code highlighting / code editor integrated into eclipse adt?
Thx. I really appreciate your help.
Seems you are following the process correctly but confused due to appname as everytime you create project with below command you app name will be Helloworld
phonegap create project_name
try creating a new project like this
phonegap create hello com.example.hello hello
then load it in eclipse and run.

failed to run Hello World project with launching emulaotor

When Start running Android Hello world project, the eclipse launches emulator, but seems hello world project was not running, the emulator showed "Android" in the middle of the scrren, I tried Android 2.2 emulator, I heard some people opens emulator first then run the project, Havn't tried that yet. is that a correct way?
The Android emulator is slow. So be patient and eventually it will show you a home screen and your project will run.

Categories

Resources