Finding Device (and android version) from code

by Mark Murphy » Fri, 29 May 2009 10:07:03 GMT


Sponsored Links
 > How do I get the device (G1, magic, i7500, etc) programmically, as

Check out android.os.Build.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. anyone meet anonymous mms/sms?

Hi, all,

      We sometimes receive mms/sms whose from field is anonymous.
After check the mmssms.db, all the fields are correct. If it shows
"anonymous", only after we power cycle radio can it be recovered with
correct sender name. Our platform is cupcake1.5. The issue is not easy
to reproduce but happens often. When issue happens, I exit from
Message App and launch it again, the issue still exists. slect that
message and longclick at it and view its detail info, we can find that
the from and to fields all all empty. The screen shows that the from
is "hidden sender". From the code and db, we know PDU_CACHE_INSTANCE
is not correct but DB is correct. Does anyone the issue and the root
cause? Thank you very much.

BR,
Andrew

-- 

2. IMO S9000

Halo RR, mohon sharingnya, apakah ada yg sdh pernah coba ? Bagaimana 
kualitasnya ?

Powered by Telkomsel BlackBerry

-- 
"Indonesian Android Community [id-android]" 

3. Download and Display 9 Patch Images

4. Cellular-WiFi Switch

5. switching between cellular network and wi-fi

6. next activity

7. White Paper - Sony Ericsson Vivaz, the HD ready phone