I pass on the activity number to call a bundle
and then, in such an activity, I have a button to call this number, this is the code:
callButton.setOnClickListener(new OnClickListener() { public void onClick(View v) { Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(bundle.getString("mobilePhone"))); } });
Something is wrong, because when I press the button, nothing happens ...
What am I doing wrong?
PD: I'm using an Android 1.5 compatible project ... maybe the phone call is incompatible with 1.5?
android phone-call
NullPointerException Jan 27 2018-11-17T00: 00Z
source share