Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

Things I Keep In My Toolbox

This thread is my ongoing attempt to remind myself of the tools I keep somewhere in my toolbox.

IDE Tools

Web

Cryptography

Design Tools

Development Other

Windows General Tools

Mac General Tools

Setup Eclipse for Android Programming

This is a fairly simple process but there are always a few things I forget.  Once you have your Eclipse setup with Android development, you can Import some of there example projects and run them right way (point to you Android SDK folder and Import project process will find the available projects).

1.  Install a fresh copy of Eclipse just for Android programming.  I like to keep my Android development separate from other development using Eclipse, like Java, etc.  Follow my blog here on configuring Eclipse, I use the path c:\Tools\android-eclipse-XXX.

2.  Install the Android SDK.  I like to install in in my c:\SDKS folder.

3.  With Eclipse open, go to menu Windows^Preferences.  The preferences dialog will open.  Click the Android node.  You should see an input for SDK Location.  Pick the folder where the SDK was installed.  For me it was c:\SDKS\android-sdk.  Click the Apply button, then OK for the Preferences dialog.

image

Android Layout Stops Working in Eclipse

So far most of the Android development in Eclipse has been smooth sailing.  There is one issue I’ve come across over and over, I get the error message "No XML content. Please add a root view or layout to your document."  A few times I was able to fiddle with the layout and it would just start working.  This last ADK update, I had enough so I went searching again.  This time I found an answer to my prayers.  It turns out that if you have any custom device configuration in the layout editor that do not contain the proper qualifiers, you will get this issue, see thread here.

Solution

Add all applicable qualifiers.

1.  Open screen editor list.

image

2.  Open your custom screen, then move the necessary qualifiers over.

image