Reputation: 1
I have to pass data fetched from server to ACTION_DIAL intent. So how could I pass that data to the intent?
Below is my adapter class code:
intent.putExtra,("datafromserver", dataFromS);
How can I handle the fetched from the server and pass this data to the intent?
Upvotes: 0
Views: 79
Reputation: 404
The place where the mobile number is where your received phone number from JSON should be,
Intent intent = new Intent(Intent.ACTION_DIAL, Uri.fromParts("tel", "+91 1166008855", null));
startActivity(intent);
Upvotes: 3