Beginning - Christopher M. Judd

fansbutterflyMobile - Wireless

Jul 19, 2012 (5 years and 5 months ago)

250 views

Beginning
Christopher M. Judd
Development
Tuesday, February 1, 2011
Christopher M. Judd
President/Consultant of
leader
Columbus Developer User Group (CIDUG)
Tuesday, February 1, 2011
Remarkable Ohio
Free
Developed for eTech Ohio and Ohio Historical Center
Tuesday, February 1, 2011
University System Of Ohio
Free
Developed for eTech Ohio and University System Of Ohio
Tuesday, February 1, 2011
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,
amy.estep@etech.ohio.gov
, 877.383.2406
Tuesday, February 1, 2011

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

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

3:45-4:40 02/01/2011
Developing Android App with Google App Inventor
More Mobile Apps
Tuesday, February 1, 2011
Android Devices
Tuesday, February 1, 2011
Tuesday, February 1, 2011
Input
Multi-touch
Virtual Keyboard
Speech
Tuesday, February 1, 2011
Location Aware
Tuesday, February 1, 2011
Accelerometer/Gyroscope
Tuesday, February 1, 2011
Camera/Video
Tuesday, February 1, 2011
Android Development
vs
vs
Tuesday, February 1, 2011
Android SDK
Tuesday, February 1, 2011
FREE!!!
Tuesday, February 1, 2011
OPEN SOURCE!!!
Tuesday, February 1, 2011
Eclipse
Android Development Tool
(ADT)
Android SDK
IDE
Emulator
Platforms
Samples
Eclipse Plug-in
Tuesday, February 1, 2011
Getting Started
1.
Install Java Developer Kit (JDK)
2.
Install Eclipse
3.
Install SDK
4.
Install ADT Eclipse Plug-in
5.
Install Android Platform(s)
6.
Configure Android Virtual Device
http://developer.android.com/sdk/installing.html
Tuesday, February 1, 2011
Android Platforms
Name
Version
Level
Cupcake
1.5
3
Donut
1.6
4
Eclair
2.1
7
Froyo
2.2
8
Gingerbread
2.3
9
Tuesday, February 1, 2011
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
Emulator
Tuesday, February 1, 2011
VS
Tuesday, February 1, 2011
Android Development Tools
Java Editor
Debugger
Perspective
Wizards
Profiler
Tuesday, February 1, 2011
Android Architecture
Tuesday, February 1, 2011
MyWebBrowser Example
Tuesday, February 1, 2011
Tuesday, February 1, 2011
Create Project
Tuesday, February 1, 2011
<?
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
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
Run Application
In Eclipse - Run  Run
first time
multiple
devices
Tuesday, February 1, 2011
<?
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
Tuesday, February 1, 2011
Deployment Options
Android Package
*.apk
Tuesday, February 1, 2011
1.
Develop/Test Application
2.
Export/Sign Jar
3.
Upload Application
http://market.android.com/publish
$25
Register
apk File
Screen shots
High Res Icon
Title
Description
Application Type
Category
Price
Website
Email
Phone
etc...
App Details
http://developer.android.com/guide/publishing/publishing.html
Tuesday, February 1, 2011
Analytics
Analytic Companies
Uses
New Users
Device Types
Locations
Events
Android Market Place
Downloads
Active Installs
Errors
Comments
Tuesday, February 1, 2011
Resources
http://developer.android.com
Tuesday, February 1, 2011
President/Consultant/Author
email:
cjuddjuddsolutions.com
web:
www.juddsolutions.com
blog:
juddsolutions.blogspot.com
twitter:
javajudd
Christopher M. Judd
Tuesday, February 1, 2011