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

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -