Lab2 - Hello Android Adam Porter Derek Juba Hello Android...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Hello Android Adam Porter Derek Juba
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Hello Android See http://developer.android.com/resources/tutorials/hell o-world.html
Background image of page 2
Create an Android Virtual Device AVD is a configuration of emulator options Each AVD includes Hardware Platform Other options e.g., Skin, Screen dimensions, SD card size Storage area Can be created in Android SDK and AVD manager
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Hello Android Create a new Android project Project name: HelloAndroid Application name: Hello, Android Package name: edu.umd.cs.cmsc436 Create activity: HelloAndroid Min SDK: 13
Background image of page 4
Hello Android package edu.umd.cs.cmsc436; import android.app.Activity; import android.os.Bundle; import android.widget.TextView; public class HelloAndroid extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); tv.setText("Hello, Android"); setContentView(tv); } }
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 11

Lab2 - Hello Android Adam Porter Derek Juba Hello Android...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online