Monday, June 15, 2009

Android Magic

Sometimes things happen - your phone turns into a BRICK :)

After many many hours of Googling - couldnt find an entry on how to Reset my Android Magic to factory settings. Lots on the G1 - but the Magic does not have a Alt-W keys - lol.

So here goes - if your phone is completely toast - then follow this.
Warning - this may turn your phone into a Brick and will definitly DELETE your personal settings/details.

1. Take battery out
2. Put battery back
3. Press and hold 'Home' & 'Back' key
4. Press 'On' button once (while holding 'Home' & 'Back')
5. After a few seconds you should see a white screen with little skaterboy Droids
6. To Clear Storage press to 'Action' button once (thats the little ball)
7. Phone should now reboot
8. Good Luck............don't call me - i'll call you.

Wednesday, June 10, 2009

Issue 1 - Dalvik Conversion Error

Common Issue

When starting/running your first 'Hello World' Applications - you may get a error message:
Conversion to Dalvik format failed with error 1

This means "Attempt to include a core VM class in something other than a core library.
It is likely that you have attempted to include the core library from a desktop virtual machine into an application, which will most assuredly not work."

To fix (In Eclipse):
  • Right-click on your 'Hello World' Package in the Package Explorer.
  • Select - Properties
  • A window should appear, in the left list - select 'Android'
  • In the Project Build Target - ensure an option is selected (e.g. Android 1.5)
  • Even if already ticked - press 'Apply' button then 'OK'
  • The Problem "should" now disappear.

Good Luck
Some notes from my installation experience:

Setting up the SDK:
  • Set your System Variables Path to '\tools' directory within the SDK folder.
  • (MyComputer-Properties-Advanced-Environment)

Setting up ADT:

  • Start Eclipse.exe
  • From Eclipse add the ADT installation folder as a software update.
  • (Help-SoftwareUpdates-Available-Add Location / Tick all options - Install
Using the Emulator for the first time (while in a project within Eclipse)
  • First you must create a AVD (Android Virtual Device)
    • To see your available targets execute (from Windows Command Prompt in your '\tools' directory)
    • android list targets
    • To create your AVD execute
    • android create avd --target --name
    • Start Emulator and execute
    • emulator -avd

Tuesday, June 9, 2009

Getting Started

What I decided to use:

Eclipse (Ganymede) with JDK 6 as my IDE
Android SDK v1.5 r2
ADT v0.9 (Android Development Tools for Eclipse)

You will also need the latest Java Runtime.

All downloaded - busy installing now....Learnings / Tips and Trick to Follow

The Beginning........

This blog was started to detail my journey into becoming a Java Developer - specifically for Android Applications.

Hopefully many people will contribute, advise and maybe even learn from my experiences.

I have many years of development experience - but it has all been around Microsoft.