I am looking for a way to get different UI design for different API’s. Google search gave me a link:http://developer.android.com/guide/google/play/publishing/multiple-apks.html#CreatingApks
In this link it states it is better to create different Apk’s for different API and play store will take care of choosing the best one for the phone.
Is this the only method or is there any easy way?
Well thats possible if you are ready to write more code,
One thing you can do if you want it to achieve different API levels with different UI is to detect API level runtime by using this constant:
android.os.Build.VERSION.SDK_INT. It returns one of these values.Now according to this version you can have different
layout xmlto be set as contentView of your activity.Note : This has more maintenance hazard. In case you want to add/remove any UI element you have to modify all of your layout XMLs in your application.