On Tue, Sep 27, 2011 at 10:40 AM, Aitor Mendaza Ormaza
<[email protected]> wrote:
> I wish to now if it is possible to now the technology of the screen by code.
> Depending on the screen technology (if it is resistive or capacitive) I will
> like to do one thing or another.
> Is there any function  such as isCapacitive() or similar in android?

Use the touchscreen public data member of the Configuration object
(obtained via getResources().getConfiguration() from your activity).

http://developer.android.com/reference/android/content/res/Configuration.html#touchscreen

Or, if your changes are purely tied to resources, use the -finger,
-stylus, and -notouch resource set qualifiers.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to *Advanced* Android Development_ Version 2.0
Available!

-- 
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

Reply via email to