I would like to detect how fast is the device on which my Android application is running?
Is there any API to do it on Android? Or do I have to benchmark it by mysel
Try reading /proc/cpuinfo which contains cpu information:
/proc/cpuinfo
String[] args = {"/system/bin/cat", "/proc/cpuinfo"}; ProcessBuilder pb = new ProcessBuilder(args); Process process = pb.start(); InputStream in = process.getInputStream(); //read the stream