Android is there a way to check for a specific device? -
Android is there a way to check for a specific device? -
i writing app layout little off on droid x2. there way observe in code if device droid x2? add together little amount amount of padding layout if is.
thanks
use build.product.
sample code:
if (build.product.contains("droid x2")) { // add together stuff. } another of import point add. if doesn't work, create sure debug build.product contains in order see if right info. otherwise, can check build.model returns , go that.
android android-layout
Comments
Post a Comment