native vs hybrid: the case for native

14
The Case for Native jeffgodwyll.com

Upload: jeff-godwyll

Post on 12-Apr-2017

112 views

Category:

Technology


4 download

TRANSCRIPT

Page 1: Native vs hybrid: The Case for Native

The Case for Nativejeffgodwyll.com

Page 2: Native vs hybrid: The Case for Native

Scenarios for the native approach...

Existing native skills

Page 3: Native vs hybrid: The Case for Native

Scenarios for the native approach...

A single mobile OS

Page 4: Native vs hybrid: The Case for Native

Scenarios for the native approach...

Single native functionality

Page 5: Native vs hybrid: The Case for Native

Scenarios for the native approach...

Rich UI requirements

Page 6: Native vs hybrid: The Case for Native

The goodies...

Performance aka #perfmatters

Page 7: Native vs hybrid: The Case for Native

The goodies...

Speed

Page 8: Native vs hybrid: The Case for Native

The goodies...

Access to all/most platform features

Page 9: Native vs hybrid: The Case for Native

The goodies...

Large community support

Page 10: Native vs hybrid: The Case for Native

Native Android = Java + XML

Page 11: Native vs hybrid: The Case for Native

Creating the layout

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

Page 12: Native vs hybrid: The Case for Native

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; }}

Page 13: Native vs hybrid: The Case for Native

Let’s build a simple todo app

https://goo.gl/Klvdk7

Page 14: Native vs hybrid: The Case for Native

Helpful linksMust have android libs: goo.gl/SujEfn

Android documentation: developer.android.com

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