Created
September 29, 2013 13:32
-
-
Save wujiyu115/6752549 to your computer and use it in GitHub Desktop.
android:getModel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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