Generic adapter for Android.