37
Beginning Christopher M. Judd Development Tuesday, February 1, 2011

Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Beginning

Christopher M. Judd

Development

Tuesday, February 1, 2011

Page 2: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Christopher M. JuddPresident/Consultant of

leader

Columbus Developer User Group (CIDUG)

Tuesday, February 1, 2011

Page 3: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Remarkable Ohio

Free

Developed for eTech Ohio and Ohio Historical CenterTuesday, February 1, 2011

Page 4: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

University System Of Ohio

FreeDeveloped for eTech Ohio and University System Of Ohio

Tuesday, February 1, 2011

Page 5: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

CALL FOR ENTRIES !!eTech Ohio is pleased to announce the

eTech Ohio Mobile Apps Development Contest

The state of Ohio is seeking new apps that showcase Ohio and its unique talents and creativity! eTech Ohio encourages mobile applications developers, both new and experienced, to produce apps that will increase awareness and usage of mobile apps, both in and outside of the classroom. Full guidelines and forms are available online at: www.etech.ohio.gov/appscontest/.

Contact: Amy Estep, [email protected], 877.383.2406

Tuesday, February 1, 2011

Page 6: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

• 8:00-8:45 02/01/2011Developing Apps for the iPhone, iPod Touch or iPad

• 10:45-11:30 02/01/2011Developing Apps for Android

• 3:45-4:40 02/01/2011Developing Android App with Google App Inventor

More Mobile Apps

Tuesday, February 1, 2011

Page 7: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Android Devices

Tuesday, February 1, 2011

Page 8: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Tuesday, February 1, 2011

Page 9: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Input

Multi-touch

Virtual Keyboard Speech

Tuesday, February 1, 2011

Page 10: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Location Aware

Tuesday, February 1, 2011

Page 11: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Accelerometer/Gyroscope

Tuesday, February 1, 2011

Page 12: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Camera/Video

Tuesday, February 1, 2011

Page 13: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Android Development

vs vs

Tuesday, February 1, 2011

Page 14: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Android SDK

Tuesday, February 1, 2011

Page 15: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

FREE!!!

Tuesday, February 1, 2011

Page 16: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

OPEN SOURCE!!!

Tuesday, February 1, 2011

Page 17: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Eclipse

Android Development Tool (ADT)

Android SDKIDE

EmulatorPlatformsSamples

Eclipse Plug-in

Tuesday, February 1, 2011

Page 18: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Getting Started1.Install Java Developer Kit (JDK)2.Install Eclipse3.Install SDK4.Install ADT Eclipse Plug-in5.Install Android Platform(s)6.Configure Android Virtual Device

http://developer.android.com/sdk/installing.htmlTuesday, February 1, 2011

Page 19: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Android Platforms

Name Version LevelCupcake 1.5 3Donut 1.6 4Eclair 2.1 7Froyo 2.2 8

Gingerbread 2.3 9

Tuesday, February 1, 2011

Page 20: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Configure Android Virtual Devices (AVD)

<sdk>/tools/android

In Eclipse - Windows > Android SDK and AVD Manager

http://mobile.tutsplus.com/tutorials/android/common-android-virtual-device-configurations/Common Device Configs

Tuesday, February 1, 2011

Page 21: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Emulator

Tuesday, February 1, 2011

Page 22: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

VS

Tuesday, February 1, 2011

Page 23: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Android Development Tools

Java EditorDebugger

PerspectiveWizardsProfiler

Tuesday, February 1, 2011

Page 24: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Android Architecture

Tuesday, February 1, 2011

Page 25: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

MyWebBrowser Example

Tuesday, February 1, 2011

Page 26: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Tuesday, February 1, 2011

Page 27: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Create Project

Tuesday, February 1, 2011

Page 28: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" >

<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="50px" > <EditText android:id="@+id/url" android:layout_height="wrap_content" android:layout_width="wrap_content" /> <Button android:id="@+id/go" android:text="@string/go_button_text" android:layout_width="wrap_content" android:layout_height="wrap_content"/> </LinearLayout> <WebView android:id="@+id/webview" android:layout_width="fill_parent" android:layout_height="fill_parent" />

</LinearLayout>

res/layout/main.xml

Layout Screen

res/values/strings.xml<?xml version="1.0" encoding="utf-8"?><resources> <string name="app_name">MyBrowser</string> <string name="go_button_text">Go</string></resources>

Tuesday, February 1, 2011

Page 29: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Application Code

public class Main extends Activity { private WebView webView; private EditText url;

public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); url = (EditText)findViewById(R.id.url); Button go = (Button)findViewById(R.id.go); webView = (WebView)findViewById(R.id.webview); go.setOnClickListener(new OnClickListener() { public void onClick(View v) { webView.getSettings().setJavaScriptEnabled(true); webView.loadUrl(url.getText().toString()); } }); }}

<LinearLayout android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="50px" > <EditText android:id="@+id/url" android:layout_height="wrap_content" android:layout_width="wrap_content" /> <Button android:id="@+id/go" android:text="@string/go_button_text" android:layout_width="wrap_content" android:layout_height="wrap_content"/> </LinearLayout> <WebView android:id="@+id/webview" android:layout_width="fill_parent" android:layout_height="fill_parent" />

src/com/juddsolutions/mybrowser/Main.java

Tuesday, February 1, 2011

Page 30: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Run Application

In Eclipse - Run > Run

first

time

multipledevices

Tuesday, February 1, 2011

Page 31: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.juddsolution.mybrowser" android:versionCode="1" android:versionName="1.0"> <application android:icon="@drawable/icon" android:label="@string/app_name"> <activity android:name=".Main" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>

</application> <uses-sdk android:minSdkVersion="7" />

<uses-permission android:name="android.permission.INTERNET"></uses-permission></manifest>

Permissions

AndroidManifest.xml

Tuesday, February 1, 2011

Page 32: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Tuesday, February 1, 2011

Page 33: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Deployment Options

Android Package

*.apk

Tuesday, February 1, 2011

Page 34: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

1.Develop/Test Application2.Export/Sign Jar3.Upload Application

http://market.android.com/publish$25

Register

apk FileScreen shotsHigh Res IconTitleDescriptionApplication TypeCategoryPriceWebsiteEmailPhoneetc...

App Details

http://developer.android.com/guide/publishing/publishing.htmlTuesday, February 1, 2011

Page 35: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

AnalyticsAnalytic Companies

UsesNew UsersDevice TypesLocationsEvents

Android Market Place

DownloadsActive InstallsErrorsComments

Tuesday, February 1, 2011

Page 36: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

Resources

http://developer.android.com

Tuesday, February 1, 2011

Page 37: Beginning - Amazon S3€¦ · Beginning Christopher M. Judd Development Tuesday, February 1, 2011. Christopher M. Judd President/Consultant of leader Columbus Developer User Group

President/Consultant/Authoremail: [email protected]: www.juddsolutions.comblog: juddsolutions.blogspot.comtwitter: javajudd

Christopher M. Judd

Tuesday, February 1, 2011