Skip to content

Instantly share code, notes, and snippets.

@wujiyu115
Created September 29, 2013 13:32
Show Gist options
  • Save wujiyu115/6752549 to your computer and use it in GitHub Desktop.
Save wujiyu115/6752549 to your computer and use it in GitHub Desktop.
android:getModel
public static String getModle(){
String model =Build.MODEL;
int index = model.indexOf(" ");
if(index==-1)
return model.substring(0);
else
return model.substring(0,index);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment