Android emulator as window inside Eclipse - android

Is it possible to put the emulator inside eclipse, as a tab/window? I've got dual monitors and my typical setup is eclipse full screen on one side and chrome full screen on the other one typically on an developer.android.com or stackoverflow and the emulator UNDER chrome most of the time until I'm debugging.

I do not know if it is possible in Eclipse, most probably not (I could be wrong).
You can try out MotoDevStudio though. The development environment looks exactly like Eclipse, so you wouldn't have much trouble switching over. And more importantly, it has the Android Emulator running inside a tab in the IDE.

Related

Android Layout Inspector fails with timeout error

When I try to inspect my application's layout in a simulator, by going Tools => Layout Inspector, it always fails with one of the errors:
1.
Error obtaining view hierarchy: There was a timeout error capturing the layout data from the device.
The device may be too slow, the captured view may be too complex, or the view may contain animations.
Please retry with a simplified view and ensure the device is responsive.
2.
No active windows displayed by com.instabridge.android.dev
The layout is not particularly complex, and it does not contain animations, just map with some views. Android Studio is 3.4.1. How do I fix it? Or how to find the cause of the errors?
Found a really strange solution.
Open your app, go to android home screen, open another app, now use Layout inspector in Android Studio.
It worked and I see my app's view hierarchy.
UPDATE
P.Melch claims that you don't even need to open another app, try just sending your app to background.
I had the same issue on Android Studio 3.4, but I was able to use the Layout Inspector on Android Studio 3.5 Beta 1 without any problems.
I am working with a very complex view, so I suspect that is what led to the trouble on Android Studio 3.4. Both the failure I saw and the success were with a physical device.
Try to use a real device instead of the simulator.
When running the simulator and android studio, your laptop/mac/whatever might be running out of memory.
I always prefer to run the layout inspector on a real physical device. It works the same as with the emulator once you're connected with adb

Android Emulator shows only on a small part of the screen

I have a problem with my android emulator. It only shows a fraction of the screen.
Screenshot:
I have Android Studio version 3.0.
I tried a lot of things. I could fix the error when I use the emulator with Software emulated graphics but it is really slow.
know someone the solution?
thank you.
Make sure you have configured hardware acceleration correctly.
Disable the Device Frame by edit action.
Start the emulator and Go to Extended Control
Go to Settings and change OpenGLES render to Desktop native OpenGL
Restart Emulator and Resize the Emulator Window.

Android AVD screen appears blank

I have started learning android myself, I have setup the enivronment I am following this link, I have successfully created Hello World app,but when I am running it,the AVD is appearing with black screen with just android word on it.
I have followed each step mentioned in the link,but no luck there is no error in console too, I saw solution in this link and I have waited so too long but its still showing just android word and not Hello world.
Also Please suggest some good book/tutorial for android
Restart your AVD, it takes some time in the beginning. You need to have patience and wait till the home page comes in the emulator. If this doesn't work try to use another Android AVD as mentioned in the above ans.
Also you should prefer Android Studio over eclipse.
Android is the intro of the emulator for some reason your emulator cannot starts,restart your emulator or create a new one. I recommend you use GenyMotion for Android emulator . Some good tutorials for android:
http://developer.android.com/index.html , http://www.androidhive.info/ , http://www.vogella.com/

android app displaying different content than ADT

So I am developing an app and I am not sure what had happened. I have everything set up correctly on the ADT but the emulator and my device show up differently. I'm not sure what code to put up. I have tabs with scrollview and text on the ADT but my device just has no tabs and the text overlaying eachother
First thing I would personally try would be to uninstall the application from the mobile device and rerun the code. Second thing to check would be the resolution off both devices? Maybe your mobile has lower resolution than the emulator and as a result the displayed output is a mess? Are you getting the expected output displayed in the emulator? I am nowhere near good at android development, but that's what I would try. Hope I helped at least a bit.

Android Emulator is crashing a lot

I am trying to test my app on android emulator. So as soon as, i am choosing run the application, a new window pops up on the screen and after taking 1-2 minutes, it goes not responding.
I also tried running the emulator separately using AVD manager. Using this, i am able to start the emulator; but after 3-4 minutes - it goes "not responding".
OS- Windows 7 32 bit [ intel pentium 3.00 GHZ + 2GB RAM]
Java - 1.6
Android SDK - i have the latest SDK with 3.0 OS
IDE - eclipse Helios Service Release 2.
Plz help, i am unable to do anything.
Update: can you guys point me towards other 3rd party emulators which i can use?
Update2: My emulator is taking too much time in launching now. Can this be a cause? If yes, then how do i decrease the boot time?
(This isn't so much of an answer, but might go some way to figuring out the source of the problem; I'd comment on the original question instead but don't have enough rep to do so)
I keep having this problem too. I have an app with a few activities, one of which contains a layout with a Canvas which runs its own thread to do drawing processing. All of the activities run fine except for this Canvas activity which seems to crash the emulator in the way the OP described (the emulator .exe itself crashes rather than the application within the emulator) if left to run for a few minutes. As far as I can tell I'm not doing anything unusual with the thread - I copied the Lunar Landar example in the SDK and worked from that so I'm doing everything "by the book". The app runs fine on real devices.
So, while I realise the OP may be long gone, could anyone else with a similar problem confirm that the affected Activity is using a Canvas, drawing Thread, or anything like that? This problem is a real pain and I can't find any other discussions/solutions for the matter.
EDIT: I recently did a complete, clean re-install of the most recent versions of Eclipse and the Android SDK with all the updates and that seemed to solve the problem. Guess there was a bug in an older version of the emulator that was fixed in a more recent release.
Have you enabled snapshots. If you enabled it then you can be trying to open a incorrectly saved snapshot. If so, while starting the emulator with launch options, uncheck launch from startup
#mudit:remember Android 3.0(Honeycomb) is dedicated entirely to only tablets and not the mobile phones..
Does the emulator prompts you "not responding" in your app or when you just start the emulator without launching an app, too?
A strong advice: you don't need to restart the emulator for every app launch, just keep him running (maybe you already do that).
Does the logcat show some errors prior to the "not responding"? Have you tried creating another AVD?

Categories

Resources