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

closed as off-topic by Byte56 May 26 at 21:40

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Programming questions that aren't specific to game development are off-topic here, but can be asked on Stack Overflow. A good rule of thumb is to ask yourself "would a professional game developer give me a better/different/more specific answer to this question than other programmers?"" – Byte56
If this question can be reworded to fit the rules in the help center, please edit the question.

4  
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
1  
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
2  
-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.

http://developer.android.com/reference/android/os/Build.html

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

http://code.google.com/p/phonegap/source/browse/trunk/android/src/com/nitobi/phonegap/PhoneGap.java

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

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