Eclipse ADT rev 22 Crashes My App

It was one of those days, you realize there is an update and you think, yeah sure, what can go wrong. So the problem at hand. Running Eclipse (Juno, version shouldn’t matter) with ADT, Android Development Tools, and you updated the ADT to rev 22. You’ll get numerous errors if you’re very unlucky.  When you run your

Read More

Eclipse Java TODO Comments

Use TODO comments for code that is temporary, a short-term solution, or good-enough but not perfect. TODOs should include the string TODO in all caps, followed by a colon: // TODO: Remove this code after the UrlTable2 has been checked in. and // TODO: Change this to use a flag instead of a constant. If

Read More

Java Parse String To Integer

The simplest way to parse a string in e.g. Java or Android to an integer is using the parseint String myString = “42”; int number = Integer.parseInt(myString); Note that you will need to catch the the exception NumberFormatException in case the string does not hold a number which can be parsed try {     myNum =

Read More

Eclipse failed, Java was started but returned exit code=-805306369

Eclipse suddenly started to hang when starting up around “Loading Workbench” 805306369. Eclipse stopped responding and you get the dialog to close the program. “Java was started but returned exit code=-805306369” The error shown afterwards: “Java was started but returned exit code=-805306369” If you are running java 1.6u21 then look at Eclipse Bug 319514 and The Oracle/Sun

Read More