This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private class myRecipientCallingNumberFinder extends AsyncTask<Void, Void, Void> { | |
private String Queary; | |
boolean isRecipientNumberFound = false; | |
private List<String> mNameListFounded = new ArrayList<>(); | |
public myRecipientCallingNumberFinder(String queary) { | |
Queary = queary; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*https://www.youtube.com/watch?v=_JOapnq8hrs&t=852s | |
video tutorial for consent sdk android | |
*/ | |
/*https://www.youtube.com/watch?v=_JOapnq8hrs&t=852s | |
If you want i do your job you can hair me any time at Upwork.com: https://www.upwork.com/o/profiles/users/_~01cdffbf3d8a9ad74b/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// call this mathod from your onCreate | |
private void GoogleLogin() { | |
GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) | |
.requestScopes(new Scope(PeopleScopes.USERINFO_PROFILE)) | |
.requestIdToken(getString(R.string.default_web_client_id)) | |
.requestEmail() | |
// The serverClientId is an OAuth 2.0 web client ID, u can get this from google api console like any other api key | |
.requestServerAuthCode(getString(R.string.clientID), false) | |
.requestProfile() | |
.build(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void sendItNow(String senderNumber, String smsBody) throws Exception { | |
Log.d("send sms", senderNumber + smsBody); | |
String SENT = "SMS_SENT"; | |
String DELIVERED = "SMS_DELIVERED"; | |
PendingIntent sentPI = PendingIntent.getBroadcast(this, 0, | |
new Intent(SENT), 0); |