You must login or register to participate.

Description

Learn how to write applications for Google Android based phones, such as the the T-Mobile G1™.

Prerequisite: Java programming experience. If you don't have any Java programming experience you should consider the Learn Java Programming learning path before you attempt to tackle this one.

To get started, JOIN THIS GROUP.  Then click on the Activites tab. Next complete each of the Activities.  And finally compete in the Challenge Activity.

Click the Details tab for more information.  Once you are done with this learning path, try the Digital Graphics Lab

Learning Path and Challenge Activity Provided By

A special thanks to T-Mobile USA, sponsor of the "Building Applications for the G1 Mobile Phone" Learning Path!

MBellish Home Screen

MBellish Home Screen

Description

After finishing this Activity, you shoule be able to:

  1. Create the “Start Screen” of the app. You will layout different UI elements on the screen.
  2. When you click on the “Get Picture” button you should be able to display all the available images in the sdcard, or Media Gallery, of an emulator or phone.

You will learn the following Android skills and concepts:

  1. An Android Activity,  is an “activity” that  presents a visual user interface for one focused action that the user can undertake
  2. How to create a Simple User Interface (UI) Screen using XML
    • UI Layouts (How should I organize my stuff on theScreen?)
    • Adding different resources: Strings (the text I want to display) and Drawables (the images I want to draw on the screen)
    • Adding Buttons to the Screen layout
  3. How to inflate an XML UI in the Activity.
  4. How to add  functionality to the Button Click callback.
  5. How to create an Intent.
  6. How to start an Activity using  the Intent

Basic Steps

  1. Download the source code zip file for this exercise.  Save it on your computer, and unzip the file.
  2. Visit the instructions for this activity, and perform the steps in the instructions.
  3. Remember to use the forum if you need any help.  There is a part in the instructions that shows how to upload new pictures to the SD card, but they are untested on Windows (the developers of the instructions only had Mac systems).  If you are on Windows, and having trouble with this, check the forum for help.
  4. When finished, submit your application as a Android Package (.apk) file.  To find the application .apk, look in your Project directory, there should be a directory (folder) called bin.  In the bin directory, there will be a file called ProjectName.apk.  That is the file to submit.  To find your Project directory, right-click on the Project in Eclipse, select Properties, and then look at the Location field on the Resource page.  That is the Project directory.

Recent Submissions

icon

mbellish

0
August 9, 2009 by tinyang
icon

MBellish

0
July 27, 2009 by estelendur
icon

MBellish Home Screen

0
June 26, 2009 by GNic24
icon

Hello Android

0
August 3, 2009 by tinyang
icon

Home Screen

0
July 24, 2009 by brynpttrsn
icon

MBellish

0
July 9, 2009 by shadbot
icon

MBellish Home Screen

0
June 22, 2009 by Felix9288

Activity Forum

Topic
Replies
Posted
Last Reply
11
Aug 4, 2009
by tinyang
30 weeks 2 days ago
1
Aug 4, 2009
by tinyang
32 weeks 5 days ago