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) 
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!


Other Threads

1. testing applications on non developer's-devices

Is there a way to do that?


2. made change in

I added a new gpio-keys.kl file to the out/target/product/beagleboard/
system/usr/keylayout directory and modified the development/
emulator/keymaps which should create a gpio-keys.kcm file.  How do I
build the there a parameter that I can set on the
command line when I do a build?



3. Key Injection & INJECT_EVENTS

4. SYSFS based accelorometer

5. Getting and Sending Data From the Web (URLConnection via http)

6. How Truncate Text With 3dots In Table Layout

7. Icon issue - building with 2.1 sdk for 1.5 target