I have a purely native Android NDK app, and need to retrieve values such as:
android.os.Build.MODEL
Unfortunately I cannot find good examples of how to go about this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The NDK isn’t meant to replace the Java based API but to supplement it. To get Build you’ll have to find its private implementation in C/C++ or provide the information from Java via JNI.
Pseudo Code: