Hi, I try to follow android's Debugging and Profilling UI article and started the hierarchyviewer.
I am following the steps in the tutorial:
start emulator
start app
open cmd and start hierarchyviewer
select my activity and wait. The application is the spinner sample from SDK samples.
However, all rendering time related info are n/a, no measure time, no layoutime, no drawtime, no color circles, as show in the screen shot.
I also tried to exit eclipse because some info said debugger may causing problem but nothing changed.
am I missing any thing?
Thanks
Apparently, this only works from Android 2.3 onwards
(see https://groups.google.com/group/android-developers/tree/browse_frm/thread/b8aac9fe39ec1941)
Related
I'm trying to run a sample Xamarin app and I think my Android emulator is acting up. I've tried enabling Hyper-V, increasing the RAM, telling it to use the host GPU, launching the virtual device from the command line instead of the GUI, and double checking that I have the correct version of the build tools for the version of Android I'm attempting to run.
As a test I've just run the emulator by itself without an app and have discovered that it still shows a white screen even when it is apparently running, somehow. The first image is what I get when I press the Screenshot button. The second image is what I actually see on my desktop. It's been like this for over 10 minutes.
Any advice? I've been Googling like crazy and can't seem to work this out.
Have you tried simply changing the renderer?
Go on the sidebar menu, click the 3 dots>Settings>Advanced and try changing the OpenGL ES Renderer
I'm new to Java, haven't used Eclipse in probably 2 years. We're starting up a mobile dev team at work, and I'm just going over the tutorials on the Android site:
http://developer.android.com/training/basics/firstapp/running-app.html
Simply just created a project, launched the virtual device manager, have that emulator running, then click Run -> Run as Android application in Eclipse .
I've been staring at this screen for about 5 minutes now:
It says "Launching (100%)" in the bottom right corner of eclipse, and this Progres window just says Launching, but the emulator isn't doing anything.
I know emulators are generally pretty slow... But is this normal or did I do something wrong?
That happened to me too, and still does at times:
Close the emulator and execute the program again
If that didn't work, execute the program while the emulator is running. A new emulator will pop up, close the old emulator
If that didn't work, delete device and create a new one.
Also, is there anything at all popping up on the Logcat view?
I would recommand checking the list of process afterwards. Sometimes when i brutally terminate an app in eclipse, the process is still running.
But i'm on PC and i use an older version. Maybe it has been fixed.
I am using the hello android tutorial and creating an avd through eclipse. When starting the emulator no image is used. It simply displays a black back screen with the word ANDROID in the center and a blinking cursor at the end of the word ANDROID. I have followed the steps to the T for installing the SDK, Eclipse, and the ADT. Even starting the emulator as a standalone produces the same result. Is there a step I am missing to get the emulator to load an android environment to test in?
How long are you leaving it before you close the emulator? In my personal experience I have found the emulator to take quite a long time (Even up to a minute, sometimes longer) to fully boot up to the home screen.
I'd advise waiting a little bit longer just to make sure you're not closing it before it loads.
Edit:
Also have you tried looking at the log to the bottom of Eclipse? If for some reason there is a problem in fully loading the emulator there may be some sort of error message posted there to keep you informed.
I followed the tutorial to the letter. I select run then the emulator starts up. Problem is that I never get to a home screen, nor does the text hello world display.
Is there a way to test my installation of the emulator?
Take into account that the android emulator takes some time to load.
Wait for a few minutes and check logs on the DDMS to see if everything is loading correctly.
It does take a while to start up. But remember that you don't need to close and run the emulator every time you want to test your project. Just leave it open and it'll just launch your application when you want to run it.
I had the same problem and discovered (by clicking all the buttons in the emulator) that if you press the home button (little house) then the launcher icon (grid of squares) that the app I was launching had been successfully installed and I could run it by clicking on it. I still don't know why running it from Eclipse wasn't getting all the way into the app, but at least it was installed and I could run it from the emulator.
Press and hold the power button in the emulator.
If you have the time and patience, check out this site:
http://bid.berkeley.edu/cs160-fall10/index.php/Tips_and_Tricks
It provides a great walkthrough on installation and setting up Android development. See if you miss any steps?
so I just recently (yesterday) started developing on the Android platform. So far I have created a Hello World application as described in their tutorial, but it does not run. When I run it, it waits at the blinky Android screen, then finally moves to the screen where it says Android in a fancy font and its kind of glossy and silver but never moves from there. What have I done wrong? Thank you.
That just sounds like the Android emulator isn't starting properly.
If you run adb logcat from the command line, or open "LogCat" view in Eclipse, do you see any messages appearing? You may have to select the "emulator-5554" device first from the "Devices" tab first.
Try exiting the emulator and eclipse both, and then restarting eclipse and running the project once again. This worked for me.