I'm new with Java and android and i need to basically retrieve hardware serial number from my device. I've tried the following:
import android.content.*;
import android.os.Build;
public static String recup_android()
{
String androidid;
String SerialNumber;
androidid=android.os.Build.MODEL;
SerialNumber=android.os.Build.getserial;
return SerialNumber;
}
I'm facing the following error: java:40: error: cannot find symbol
SerialNumber=android.os.Build.getserial;
^
symbol: variable getserial location: class Build 1 error :compileDebugJavaWithJavac FAILED
What am i missing there? If I return androidid (MODEL) it then works OK. Maybe something to have with the class declaration??
Thanks in advance for your precious help Elie