Native vs hybrid: The Case for Native

Preview:

Citation preview

The Case for Nativejeffgodwyll.com

Scenarios for the native approach...

Existing native skills

Scenarios for the native approach...

A single mobile OS

Scenarios for the native approach...

Single native functionality

Scenarios for the native approach...

Rich UI requirements

The goodies...

Performance aka #perfmatters

The goodies...

Speed

The goodies...

Access to all/most platform features

The goodies...

Large community support

Native Android = Java + XML

Creating the layout

<RelativeLayout tools:context=".MainActivity"> <ListView .... /> <EditText …./> <Button …."/></RelativeLayout>

Example main activitypublic class MainActivity extends Activity {

@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); }

@Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); return true; }}

Let’s build a simple todo app

https://goo.gl/Klvdk7

Helpful linksMust have android libs: goo.gl/SujEfn

Android documentation: developer.android.com

Android on StackOverflow: stackoverflow.com/questions/tagged/android

Recommended