Eclipse + Android SDK bugs and workarounds, common mistakes

If you have already used Eclipse with Android SDK, you probably have some experience with known and unknown bugs. I'd like to show you some of these, and help you how to solve them.
First of all, if you got the following message from the running Emulator, except that the process is your Project, then you have to open up DDMS.
You can find DDMS button in the upper-right corner of Eclipse. Once you are in DDMS, Select your running Emulator from the left, and see what is happening by Clicking on LogCat tab (bottom of the screen).
Scroll all the way down, then start scrolling upwards, until red-colored lines show up. Probably you have NullPointer Exception or something like that, so I can't help you on that one, but I try my best to solve some other problems that you may have had.

1.Android Version 1.6 (Level 4) DDMS bug:

„emulator-5554 disconnected! Cancelling „

When you are running an emulator with the version mentioned, and you go to DDMS Tab ? File Explorer, then after a few seconds your emulator is going to be disconnected. Reason unknown, but there's a workaround although not the best..

Solution:
If you want to use File Explorer: Right Click on your Project, Properties - Android, and select the version 2.1 (Level 7).
Save your Project. After you've tested everything you want in File Explorer, change your version settings back.
If you don't need File Explorer: Simply close the File Explorer Tab in DDMS.

2.emulator: ERROR: the user data image is used by another emulator. aborting:

[2010-03-18 09:00:40 - PhoneLister]Android Launch!
[2010-03-18 09:00:40 - PhoneLister]adb is running normally.
[2010-03-18 09:00:40 - PhoneLister]Performing com.xy activity launch
[2010-03-18 09:00:40 - PhoneLister]Automatic Target Mode: Preferred AVD 'android16emu' is not available. Launching new emulator.
[2010-03-18 09:00:40 - PhoneLister]Launching a new emulator with Virtual Device 'android16emu'
[2010-03-18 09:01:06 - Emulator]emulator: ERROR: the user data image is used by another emulator. aborting

Solution:
That means you have to close your already running Emulator, then Eclipse is going to start a new one if you click on Run/Run Debugger again.
The reason can be many various things, for instance the bug we've discussed above.

3.Toast doesn't print/show text:

It's actually not a bug. Sometimes you can easily forget to add the „.show()” method by mistake.
So instead of: Toast.makeText(this, "blabla", 3);
use: Toast.makeText(this, "blabla", 3).show;

4.Changes in codeline don't have any effect when an Emulator is running:

This is a minor problem. Sometimes your emulator data-image file is not updating itself, so no matter what's in the codeline, actually you are running a previous version of your Application. (Even after several „re-Run”)

Solution:
Restarting emulator with the option „Wipe User Data” solves the problem.

At last, but not least, you may have to restart your Eclipse workspace once in a while, to get things working again. I hope you found this article helpful, and feel free to add comments and share bugs/solutions that you know.

Comments

I must say that overall I am really impressed with this blog.It is easy to see that you are impassioned about your writing. I wish I had got your ability to write. I look forward to more updates and will be returning.

Hire Joomla Developers | Joomla Programmers for Hire

I am very much pleased with the contents you have mentioned. I wanted to thank you for this great article. I enjoyed every little bit part of it and I will be waiting for the new updates.Free music lyrics

This is a nice blog. Good clean and nice informative blog. I Will Be Coming Back Soon, Thanks for posting Some Great ideas and I'll try to return back.

free cell phone spy software

Hey, Now i’m actually glad I’ve discovered this specific information and facts. Nowadays bloggers publish only about gossips and world-wide-web this also is actually frustrating.
العاب طبخ

Hi! thanks for this wonderful post! I was just browsing around and I found your site. I was actually hesitant to read this because it's too long, but I was attracted to your title. Your post was really something. Full of interesting and curious ideas. Keep it up.
flex belt reviews

You are truly a good writer and thank you for sharing your points of view. stainless steel cookware sets

Eclipse and Android SDK bugs and workarounds plays important role in the smart phone accessories store.It is outstanding article. It is very useful and informative. I was searching this information. austin sclerotherapy

You also know how to make people rally behind it, obviously from the responses taking time and real effort to make a good article !!
Round Rock Painting Contractor

Very useful.
i have searched onlione for this solution.
Problem fixed thanks.
Other websites are too complicated.
laura hennings

Fantastic post! I'm actually getting ready to do more computer marketing and coming across this post is very useful.Excellent blog here with all the valuable information you've got. Keep up the excellent work you are doing here.
luminess air reviews

good post, i like it. also you can find cool android apps on this page

The blog was absolutely fantastic! Lot of great information which can be helpful in some or the other way. Keep updating the blog, looking forward for more contents...Great job, keep it up
Psoriasis Cream

Could just be my computer. Thanks.kral oyun | ben 10 oyunları | robot oyunları | internet oyunları

Excellent tutorial! totally a understanding expertise! Louis Neiger

Reading through Your post Gives me a lot of information. You are truly a good writer and thank you for sharing your points of view. Looking forward to read some more from you. Goodluck!
magic jack reviews

Reading is my passion. Browsing Through Your Site Gives me a lot of Knowledge in So Many Ways. Merci pour la efforts you made in writing and sharing your points of view. Looking forward to learn some more from you. Keep it up
insanity workout review

Just getting into doing some development for Android. Really valuable post.

wow thanks for the tutorial android apps

All the contents you mentioned in post is too good and can be very useful. I will keep it in mind, thanks for sharing the information keep updating, looking forward for more posts. Thanks Assurance Auto

The blog was absolutely fantastic! Lot of great information which can be helpful in some or the other way. Keep updating the blog, looking forward for more contents...Great job, keep it up.Claude Monet

Every day, or so it seems, new research shows that some aspect of lifestyle - physical activity, diet, alcohol consumption, and so on - affects health and longevity. Physical fitness is good bodily health, and is the result of regular exercise, proper diet and nutrition, and proper rest for physical recovery. The field of nutrition also studies foods and dietary supplements that improve performance, promote health, and cure or prevent disease, such as fibrous foods to reduce the risk of colon cancer, or supplements with vitamin C to strengthen teeth and gums and to improve the immune system. When exercising, it becomes even more important to have a good diet to ensure that the body has the correct ratio of macronutrients whilst providing ample micronutrients; this is to aid the body in the recovery process following strenuous exercise.

Eine rente abschliessen.

Modern technology has become a total phenomenon for civilization, the defining force of a new social order in which efficiency is no longer an option but a necessity imposed on all human activity.
no no hair removal reviews

It might be good, if something like this, in the manuals provided with the use of Android. We can think of it as a bonus that contains science. pheromone cologne

Really nice and helpful page by the way. cool design.
Übersetzungen Italienisch Deutsch

Eine Bausparkasse vergleichen.
Wie eine Baufinanzierung funktioniert.
eine Fertiggarage vergleichen

do you have some info about symbian mistakes?
Tenniskurs Stuttgart

A very good and informative article indeed . It helps me a lot to enhance my knowledge, I really like the way the writer presented his views. windows hosting

nice share,thanks man
daily news

All the contents you mentioned in post is too good and can be very useful. I will keep it in mind, thanks for sharing the information keep updating, looking forward for more posts. Thanks Photography jobs

gums and to improve the immune system. When exercising, it becomes even more important to have a good diet to ensure that the body has the correct ratio of macronutrients whilst providing ample micronutrients; this is to aid the body in the recovery process following strenuous exercise.hd helmet camera

Wie die Hundeversicherung abgeschlossen wird.
Wie man Tagesgeldkonten vergleichen muss.

Eine Altersvorsorge im Vergleich testen.

In the following are some web page links to places that we connect to for the fact we believe they will be well worth visiting.

bedroom sets

Oh yes i know these problems. Thanks for the help. Keep it up.
Sprachschule London

Please keep on posting such articles as this is a rare thing to find these days.California dui lawyer

It must be more appealing with the new features. Better security is all we are dreaming of. Many have faced nightmares, you know..
Bastrop Remodeling Company

Quelques articles intéréssants sur le marché de l'ebook :
ebook
ebooks
books
book
ebook
news ebook
news ebook
news book
histoire ebook
invention ebook

Bubs beware.
These solutions and walkarounds will help solve any more bug issues
buy acne no more

Bugs really bug me.
Nice to see a blog with bug busting remedies.
Bugs say goodbye
dave ruel

Hello, I love reading through your blog, I wanted to leave a little comment to support you and wish you a good continuation. Wishing you the best of luck for all your blogging efforts.Time capsule

A very good and informative article indeed . It helps me a lot to enhance my knowledge, I really like the way the writer presented his views. motorcycle auctions

My AVD runs really slow. I have to wait like 15minutes before it shows up. So what I do is when I'm building my app, I never close the emulator. airport transfers

A very good and informative article indeed . It helps me a lot to enhance my knowledge, I really like the way the writer presented his views. xperia play cases

wholesale jewelry sounds awesome. do keep it up.

I hate bugs but thankfully you have some bug busting ideas here
.nikki young

Works now for me,thanks so much for the solution,very good post!forex signals

Home AutomationFantastic beat ! I wish to apprentice at the same time as you amend your website, how can i subscribe for a weblog site? The account helped me a acceptable deal.

Hi, you explained the topic very well. The contents has provided meaningful information thanks for sharing info
Android application development