I am trying to run the DroneFirst example which I downloaded from the DJI Drones page.
I get the following error when the application starts:
**************************** BaseApplication **************************
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
java.lang.SecurityException: getDeviceId: Neither user 10121 nor current process has android.permission.READ_PHONE_STATE.
at android.os.Parcel.readException(Parcel.java:1693)
at android.os.Parcel.readException(Parcel.java:1646)
at com.android.internal.telephony.ITelephony$Stub$Proxy.getDeviceId(ITelephony.java:5139)
at android.telephony.TelephonyManager.getDeviceId(TelephonyManager.java:914)
at dji.internal.e.a.f(Unknown Source)
at dji.internal.e.a.c(Unknown Source)
at dji.internal.e.a.a(Unknown Source)
at dji.internal.e.a$1.run(Unknown Source)
** Activity (main) Pause, UserClosed = true **
I get the following error when the application starts:
**************************** BaseApplication **************************
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
java.lang.SecurityException: getDeviceId: Neither user 10121 nor current process has android.permission.READ_PHONE_STATE.
at android.os.Parcel.readException(Parcel.java:1693)
at android.os.Parcel.readException(Parcel.java:1646)
at com.android.internal.telephony.ITelephony$Stub$Proxy.getDeviceId(ITelephony.java:5139)
at android.telephony.TelephonyManager.getDeviceId(TelephonyManager.java:914)
at dji.internal.e.a.f(Unknown Source)
at dji.internal.e.a.c(Unknown Source)
at dji.internal.e.a.a(Unknown Source)
at dji.internal.e.a$1.run(Unknown Source)
** Activity (main) Pause, UserClosed = true **