Carl Whalley wrote:
> Is there a call I can make to return "HTC G1" etc?
public static String gimmeMyString() {
return("HTC G1");
}
;-)
More seriously, what you are looking for is the android.os.Build class,
particularly static values like MODEL.
> How about one for the carrier, "T-Mobile"?
Well, there are two carriers, possibly.
There is the carrier the phone was customized for (e.g., T-Mobile in the
case of the T-Mobile G1). That's the BRAND static on the Build class.
Then, there is the carrier handling the currently-inserted SIM. I assume
that's available somewhere in android.telephony (ServiceState or
TelephonyManager).
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
Need Android talent? Ask on HADO! http://wiki.andmob.org/hado
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---