Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. PhoneNumber = (String) tempAL.get(0);
  2. PhoneNumber.trim();
  3. tempAL.remove(callingIndex);
  4. if (PhoneNumber.length() > 0) {
  5. finish();
  6. makePhoneCall(PhoneNumber);
  7. }
  8. }
  9.  
  10. if (ContextCompat.checkSelfPermission(callresult.this, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {
  11.  
  12. ActivityCompat.requestPermissions(callresult.this, new String[]{Manifest.permission.CALL_PHONE}, REQUEST_CALL);
  13.  
  14. }
  15. else {
  16.  
  17. if (COUNT == callMade) {
  18. startActivity(getIntent());
  19. String dial = "tel:" + PhoneNumber1;
  20. Intent i = new Intent(Intent.ACTION_CALL, Uri.parse(dial));
  21. startActivity(i);
  22. }
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement