Back to project page CloudyPhone.
The source code is released under:
MIT License
If you think the Android project CloudyPhone listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.cloudyphone.android.controller.receivers; /*from w w w . j a v a2 s. c o m*/ import org.json.JSONException; import org.json.JSONObject; import android.content.Context; import android.content.Intent; import android.net.Uri; public class MakeCallReceiver extends PushReceiver { @Override public void execute(Context context, JSONObject data) { try { String number = data.getString("number"); Intent callIntent = new Intent(Intent.ACTION_CALL, Uri.parse("tel:" + number)); callIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(callIntent); } catch (JSONException e) { // Wrong message, ignore this message } } }