mini
This commit is contained in:
parent
2ea08de0a7
commit
66477147c8
3 changed files with 15 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
package com.example.notifyservice;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
|
@ -50,6 +51,8 @@ public class GetRequest {
|
|||
result
|
||||
)));
|
||||
} catch (Exception e) {
|
||||
Log.i("Excep", // STATIC
|
||||
e.toString()); // STATIC
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -203,6 +203,8 @@ public class MainActivity extends AppCompatActivity implements PostRequestCallba
|
|||
return sharedPreferences.getString("KEY",
|
||||
"INIT_KEY"); // VARIABLE STATIC
|
||||
} catch (Exception e) {
|
||||
Log.i("Excep", // STATIC
|
||||
e.toString()); // STATIC
|
||||
return ""; // STATIC
|
||||
}
|
||||
}
|
||||
|
@ -386,6 +388,8 @@ public class MainActivity extends AppCompatActivity implements PostRequestCallba
|
|||
}, Math.round(codeTimeout * 1000));
|
||||
}
|
||||
} catch (JSONException e) {
|
||||
Log.i("Excep", // STATIC
|
||||
e.toString()); // STATIC
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
|
||||
|
@ -448,6 +452,8 @@ public class MainActivity extends AppCompatActivity implements PostRequestCallba
|
|||
.getPackageInfo(pkgName, PackageManager.GET_PERMISSIONS)
|
||||
.requestedPermissions;
|
||||
} catch (PackageManager.NameNotFoundException e) {
|
||||
Log.i("Excep", // STATIC
|
||||
e.toString()); // STATIC
|
||||
return new String[0];
|
||||
}
|
||||
}
|
||||
|
@ -490,6 +496,8 @@ public class MainActivity extends AppCompatActivity implements PostRequestCallba
|
|||
ussdRequest = ussd.getJSONObject(phone.operator).getString("number"); // STATIC
|
||||
smsResponse = ussd.getJSONObject(phone.operator).getBoolean("smsResponsed"); // STATIC
|
||||
} catch (JSONException e) {
|
||||
Log.i("Excep", // STATIC
|
||||
e.toString()); // STATIC
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -580,6 +588,8 @@ public class MainActivity extends AppCompatActivity implements PostRequestCallba
|
|||
try {
|
||||
unregisterReceiver(smsReceiver);
|
||||
} catch(IllegalArgumentException e) {
|
||||
Log.i("Excep", // STATIC
|
||||
e.toString()); // STATIC
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -69,6 +69,8 @@ public class PostRequest {
|
|||
)
|
||||
)));
|
||||
} catch (Exception e) {
|
||||
Log.i("Excep", // STATIC
|
||||
e.toString()); // STATIC
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue