Stop a 2nd Android Emulator opening up - android

Hi I'm creating an Android app but am quite new to it so am having a few problems. I'm using the emulator to run the app. But the problem I'm having is that when I try to debug the app its starting up a 2nd emulator which doesn't have my SQLite database showing in the File Explorer. Has anyone any idea how I can:
Stop the 2nd Emulator from opening up or
Get it to show the database in File Explorer when it does?
I can't debug the App until its sorted.

Just set the emulator you want to run for the project by right-clicking on your project --> Run As.. --> Run Configuration--> go to Target Tab, put a V next to your desired AVD, Apply your settings and Run the project.
Next time when you press the run button in your eclipse environment this will be the AVD that will be used for this project.
Update:
another option would be under the Target tab just set the Always prompt to pick device.
that way you will be prompted before running the application.
Update #2:
when the windows for choosing a devices opens but you can't see your current device what you should do is to open your command prompt(CMD) and type: adb kill-server and then adb logcat to start the server. you current device will be updated in the device chose window.

I get the same issue some time ago with the File Explorer, try with this plugin: sqlitemanager-plugin-for-eclipse.

Related

android studio - emulator doesn't work and genymotion doesn't get recognized

I'm building an app in Android Studio (beta) 0.8.9, though I can't seem to get emulators running. I've made a Nexus 4 and 5 emulator through the options, but I can't seem to get them started. It shows this in the Run App tab.
Waiting for device.
"C:\Program Files (x86)\Android\android-studio\sdk\tools\emulator.exe" -avd smallEmulator -netspeed full -netdelay none
So either it's not starting up, or I'm just an impatient SOB.
I've also downloaded Genymotion and started up an emulator through that, but now Android Studio doesn't recognize the emulator anymore. I try to run my app and check for any running devices, but it doesn't show up, despite the fact that it actually is running.
I've added the Genymotion plug-in, to no avail. No idea what went wrong.
I also have a One Plus One, which I'm not sure how I can debug on that. They don't seem to have drivers for that and haven't immediatly found anything on Google so far.
Any help would be much appreciated.
EDIT: I fixed my problem. I used Genymotion to fix the problem. The running emulator wasn't turning up, because the android SDK's weren't linked to one another. Genymotion and Android Studio used different ones. So I edited Genymotion's settings to use the same one of AS and now it works!
First of all, update android studio. Check if the emulators run from the AVD manager outside Android Studio, I mean by starting it up manually from ur SDK installation folder (AVD Manager.exe) . Check the path of ur emulator in .ini file in C:>Users>user-name >.android>avd. U can make a system variable for ur SDK folder "ANDROID_SDK_HOME" and place the .android folder's content there (the whole .android folder). Sometimes "resetting the adb" after u run emulator may work.
There may be an easier fix than what was previously mentioned. Try opening Android Studio, go to File, Settings, plugins. Select the “Browse Repositories” button at the bottom of the page. Scroll down the displayed page to find “Genymotion”; select it and install it.
When it has installed, restart Android Studio. Again, go to File, Settings, then go to Other Settings. Genymotion should show up as an option. There will be a field that asks for the path to the Genymotion folder.
Mine was: C:\Program Files\Genymobile\Genymotion. At any rate, enter the path, click Apply or OK and Android Studio should recognize Genymotion (You may need to restart AS once again). Now you should have a small red icon on Android Studios tool bar; when you hover over it a pop up that identifies it as “Genymotion Device Manager”. Click on it, select a device to load, click start and allow the virtual device to start completely. Now run your Android Studio project; the Android Studio “Device Chooser” will pop up. You should see the Genymotion device you’d started previously, select it and you’re good.
Hope this helps…

Don't find files in explorer file in eclipse

I have a DDMS problem in my eclipse while i'm trying to learn android , that there is no files in file explorer in DDMS ..
What is the wrong ??
i tried to restart eclipse but there was no result !
You have to start an emulator first to see the File Explorer.
Before any emulator is started
And after an emulator is started click on the emulator name to see
Edit
If you find that the names of the files are not appearing as they should, try doing as in the following image.Click on the down arrow(as shown in image).And then select reset adb.It should close and restart it.If it doesn't restart itself then manually restart again.If still not working, update android sdk tools from your sdk manager.However i would suggest to try genymotion emulator for once and see if it works.
One more try
Start task manager then go to processes.There stop adb.exe.Now your adb should stop in eclipse.You can then start the adb again to see if it works.Or you can even stop eclipse.exe and then restart eclipse too, to check if it works.

Run as Android Application

I start Eclipse as a fresh install with all tools updated
I created a virtual device Platform 4 Api lvl 14 Cpu Arm
I try to run the default Hello world by "Run as Android Application" and nothing happens, literally nothing. If the VD is not open when I click Run as Android App then the Virtual device doesn't load up. If it is already opened then the application doesn't load into the device. Basically clicking the "Run as Android Application produces no error log and no results. I have tried this with a number of differently configured V Devices and everything seems to run fine besides not being able to load a program onto a Virtual device.
Its probably something obvious but its preventing me getting started, any help please?
try this:
go to Project properties(Right click on the project select properties from context menu)
Select Run/Debug Settings from left pane
Delete All entries then Add a new one
In project filed select your project

android app not installing, eclipse juno

I'm using Eclipse IDE for Java EE Developers.
I created my first android application project, and it's supposed to display the Hello World message, but I run it and get nothing(well, the emulator starts but then nothing), no console output view, no error.If I run it again the console appears(...WARNING: Data partition already in use. Changes will not persist!) and the emulator opens in new window but again nothing
Please tell me what's wrong and how to install and run the app?
after first run(pic1&2), after second run (pic3)
It sounds like the emulator is already running and you are launching a new instance of it... based on the log it has been launched earlier and perhaps it hasn't shut down properly.
-Restart adb as poitroae suggested in an earlier answer.
-If that doesn't help, restart Eclipse.
-If that doesn't help, restart your computer.
If you're still having issues after that, post back.
When you run the app, you will see the .apk file under the "bin" folder.
Reset/Restart the adb server. You should do that over the command line. Make sure that you are in your /android-sdk-root/platform-tools directory.
adb kill-server
adb start-server
wait! As far as i can make out, you're just launching the emulator. Isn't it? there's a green button at the top. (like a "play" button) just press it.
Or right click on the project you want to run, and click on "run as > android application" and watch the emulator play your app.
try to clean your project from project-> clean and also donot forget to wipe user data on android emulator...
here is some good discussion about your problem...
Using Eclipse for androidSDK, when I go to run, I get WARNING: Data partition already in use. Changes will not persist!

Why every time after running application new android emulator is started and none of them are shown in DDMS section

First my emulator is too slow to work properly. I'm already frustrated because of it. So I closed that emulator and stated another(by running the application). But now my emulator is not showing in DDMS and every-time I run the application it creates new emulator rather than using existing. So I'm not able to run the application on emulator. If I connect a device then the device is showing in DDMS and working properly, but not my emulator.
And please don't tell me to restart emulator, eclipse etc. Because, already a lot of times I have tried it(even restarting PC), but its useless.
Try running the emulator via the command line with the parameter -verbose, might give you some information on the issue.
I solved this issue by going to wards DDMS-> reset adb..
I understand that the emulator speed is too slow. If You want to start the same emulator, You may choose it explicitly.
If you are using eclipse Right click your project -> Properties-> Run Debug Settings -> Click on your project name -> Edit -> and choose 'Always prompt to pick device' .
So now everytime you build your project, you can choose the same emulator.
Hope this helps!!!
I solved this issue by removing the path to platform-tools from my bashrc file.
In Mac OSx, you need to go Run-> Edit Configuration and you need to tick use the same devices for future

Categories

Resources