elios264
elios264

Reputation: 395

Detect multi touch capabilities android

Im currently working on a game that uses multi touch to apply zoom to the camera but i i want to put a magnifying glass in those devices that does not have multi touch capabilities.

I've already searched and i cant find the answer,

thanks!

Upvotes: 1

Views: 956

Answers (1)

Wesley Wiser
Wesley Wiser

Reputation: 9851

I think this what you're looking for:

if(getPackageManager().hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH)) {
  //do multitouch
} else {
  //do magnifying glass
}

Upvotes: 4

Related Questions