Ted pottel
Ted pottel

Reputation: 6983

Android: Is there a way to tell what device your app is running on

My app is crashing on the new Samsung Galaxy smart phones. I was wondering if there is a way to detect if it is running on these phones? (So the Galaxy phones would not run the code that causes them to crash, but the remaining smart phones would run it)

Upvotes: 0

Views: 96

Answers (1)

aromero
aromero

Reputation: 25761

There a number of constants in the android.os.Build package than can help with what you are looking for. In particular there is a MODEL constant which refers to the name of the product.

Upvotes: 1

Related Questions