Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Is there code available to view the specs of a phone that is running your application?

share|improve this question
How is this related to game development? –  falstro Oct 24 '10 at 17:16
What exactly do you want to detect? The existence of a front camera? The amount of memory available? –  Ricket Oct 24 '10 at 22:26
It may not be directly related to game dev, but it is needed for my game. Yes, processor, memory... things like that –  Adam Coburn Oct 25 '10 at 1:54
Someone should warn you that whatever you are trying to do with this information that you claim is "needed" for your game is probably not the right way to accomplish your goals. –  Sparr Nov 1 '10 at 7:40
-1 You are asking for code, which should not be done here. Try posting your question here stackoverflow.com –  Vishnu Nov 8 '10 at 13:09

1 Answer 1

up vote 2 down vote accepted

Yes, there is a built in class you can use.


Also you might like to checkout PhoneGap.java for some other useful tidbits.


share|improve this answer
Thanks. This is what I was looking for. I can't get direct specs, but the phone models are enough to get what I need. –  Adam Coburn Nov 25 '10 at 8:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.