I need to get the phone’s up time. To do this, I was calling android.os.SystemClock.uptimeMillis(). However, this throws an UnsatisfiedLinkError. Any ideas on what the issue might be?
Thanks!
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 app had two parts, one that ran on the phone and one that ran on the machine. I was trying to call android.os.systemclock from the app that runs on the computer. Moving it to the daemon that runs on the phone fixed the issue.