开发者

How to prevent non-touch phones to see application in Android Market

I thought this would be a开发者_如何学Pythonn easy one but I was wrong...

My app won't work on non-touch android devices so I don't want it to show up in market for these.

I hoped to find a property to set in AndroidManifest.xml but the closest match I can find is this:

android:reqTouchScreen

The type of touch screen the application requires, if any at all. The value must be one of the following strings: 

Value   Description
"undefined" The application doesn't require a touch screen. (The touch screen requirement is undefined.) This is the default value.
"notouch"   The application doesn't require a touch screen.
"stylus"    The application requires a touch screen that's operated with a stylus.
"finger"    The application requires a touch screen that can be operated with a finger.

So what I would like to do is set reqTouchScreen to both stylus and finger, which isn't allowed. Or, a simple reqTouchScreen=yes would be nice :)


As the documentation you copy-and-pasted from tells you, use two <uses-configuration> elements.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜