Skip to content

Instantly share code, notes, and snippets.

View ameerhamza6733's full-sized avatar
🎯
Focusing

Hamza rafique ameerhamza6733

🎯
Focusing
View GitHub Profile
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;
}
@ameerhamza6733
ameerhamza6733 / AdmobConsentSimple
Last active June 8, 2020 15:05
Simple for Consent sdk android admob
/*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/
@ameerhamza6733
ameerhamza6733 / Google-People-API-Android
Last active November 14, 2018 06:48
Retrieving information about a contact with Google People API (java) android
// 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();
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);