Search This Blog

Tuesday, May 17, 2011

Eclipse IDE tips for Android Development

Perspectives (top right of screen)


JAVA
DEBUG
DDMS – device info, processes, fake GPS (GPX,KML etc), fake tel info

         - file explorer, memory allocation, threads,
            logcat (logging output)

 

_______________________

Window> Andriod SDK AVD manager – setup emulators

_______________________

CTRL+SHIFT+T = open type (eg MyClass)
CTRL + SHIFT + R = open resource (eg main.xml)
CTRL+O – overview of methods in class.. can search with wildcards * too

SHIFT+ALT+R – rename a type and all xrefs to it
CTRL+SHIFT+O = organise the imports (eg add / remove android.os.Bundle)

Also if you add:

Button b;

then hit CTRL+SHIFT+O it’ll add import android.widget.Button;

No comments: