• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps How I get table of Action and data of Intent?

Hi all!
I am new member.So,i need your help
I have got a problem with Intent in Android
I coded an example about Intent
Ex :Intent.ACTION_DIAL,URI.parse(phonenumber.getText().toString())
phonenumber is a String from EditText
But when the Emulator runned .Then, a dialog occur with message : "TestCall has stopped"
TestCall is my project

=> I don't know how to fix this error.Can you help me?
I also want to get a table of ACTION and DATA of Intent
I hope this table is fullly .It can explain clearly every kind of ACTION and Uri
Thanks!! ^-^
 
can you post your code?

To create a dialer intent you use something like this:
(use ACTION_DIAL)

[HIGH]

String uriString = "tel:555-555-5555";

Intent i = new Intent();

i.setAction( Intent.ACTION_DIAL );
i.setData( Uri.parse(uriString) );
i.setFlags( Intent.FLAG_ACTIVITY_NEW_TASK );

mContext.startActivity(i);

[/HIGH]to get the action and data from an intent
[HIGH]
String action = intent.getAction();
String data = intent.getData();

Log.v( TAG, "action = " + action );
Log.v( TAG, "data = " + data );

[/HIGH]Source: https://en.wikipedia.org/wiki/URI_scheme
tel
Used for telephone numbers
Permanent
RFC 5341
RFC 3966
RFC 2806
tel:<phonenumber>
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones