2012-05-31

from iphone to android

notes from 2012

business applications
talking to rest api using json
JSON (de)serialiser http://code.google.com/p/google-gson/

rest library
http://code.google.com/p/resting/wiki/TwoMinuteTutorial
http://download.java.net/maven/2/com/sun/jersey/jersey-core/
all suck, just use the basic classes : org.apache.http.client.HttpClient

emulator boot time is good after initial startup (installation).

setup:
http://developer.android.com/sdk/installing.html make sure to include 2.1 (>95 percentile)
http://developer.android.com/sdk/eclipse-adt.html#installing

design:
http://developer.android.com/design/index.html

go trough all tutorials in order:
http://developer.android.com/resources/browser.html?tag=tutorial

having to install kies to get the android usb driver for debugging sucks.
http://www.mkyong.com/android/android-debugging-on-real-device/

tabs in fragments :
http://arvid-g.de/12/android-4-actionbar-with-tabs-example

2D scrolling:
just use webview instead
http://stackoverflow.com/questions/6127696/android-local-image-in-webview
http://blog.gorges.us/2010/06/android-two-dimensional-scrollview/

SharedPreferences etc, de/serialisation sucks for custom objects.
So I'm using gson, to convert everything into json strings.

The action bar is in a state of change. There seems to be 3 different ways of showing menu items.
Old devices with  the menu button holding a full list of menu items.
New devices with the menu items being split between the action bar and the menu button acting as the overflow.
Newer tablets with no menu button showing the overflow menu as a vertical "...".