Reputation: 6983
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
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