java documentation as follows:
@ Override
public void onClick (View v) {/ / rewrite onClick method
Intent myIntent = new Intent (Intent.ACTION_DIAL) ;/ / create Intent object
Sample_3_5.this.startActivity (myIntent) ;/ / start Android built-in dialer
}
XML as follows:
android: versionCode = "1"
android: versionName = "1.0">
Error is android.content.ActivityNotFoundException: No Activity found to handle Intent {act = android.intent.action.DIAL}
See the real book ANDROID 2.0 game development, a lot of online search method code should be right, and why there has been this error? AVM is no dial this function?

I was such a virtual machine, seeking advice Great God!
Reply:
On the phone to run through, AVM how to add dialing function? Why did not it?
Reply:
Another version of the virtual machine
Reply:
Need permission to join the corresponding authority
Reply:
Theoretically no problem, you try to do this:
Intent myIntent = new Intent (Intent.ACTION_DIAL, Uri.parse ("tel: 123"));
If there is not, you use the real machine test to see if the phone uplink not.
Reply:
force close look at the log,
Upstairs Try this, it should be possible, at that time I do this, would be to have a property in the layout, but sometimes there are problems that property, as last modified in this way
Intent myIntent = new Intent (Intent.ACTION_DIAL, Uri.parse ("tel: 123"));
Reply:
No problem on the real machine, the virtual machine out of this error, it is estimated that API function did not call it. .
No comments:
Post a Comment