Hi,
I got a few question about android studio.
I am doing some static code testing.
I need to know:
1) How to export the apk out and run to see if it is compatible or not?
2) How to connect via usb and load the program to see if it can run or not.
3) What is the difference between running API Level 23 and Level 24, how to determine if device using API level 24?
Also, I am running an exercise whereby, when a button on phone is pressed. This will be executed. dev_id_complete = tm.getDeviceId();. How, can I see the output in runtime when I am using a real phone instead of an emulator?
I got a few question about android studio.
I am doing some static code testing.
I need to know:
1) How to export the apk out and run to see if it is compatible or not?
2) How to connect via usb and load the program to see if it can run or not.
3) What is the difference between running API Level 23 and Level 24, how to determine if device using API level 24?
Also, I am running an exercise whereby, when a button on phone is pressed. This will be executed. dev_id_complete = tm.getDeviceId();. How, can I see the output in runtime when I am using a real phone instead of an emulator?
if (permissionCheck != PackageManager.PERMISSION_GRANTED) {
ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.READ_PHONE_STATE}, REQUEST_READ_PHONE_STATE);
} else {
final TelephonyManager tm = (TelephonyManager) getBaseContext().getSystemService(Context.TELEPHONY_SERVICE);
String dev_id_complete;
dev_id_complete = tm.getDeviceId();
if (dev_id_complete == null){
dev_id_complete = "0000000000";
Last edited: