public class OutgoingReceiver extends BroadcastReceiver { public OutgoingReceiver() { } @Override public void onReceive(Context context, Intent intent) { try { Bundle bundle = intent.getExtras(); number = bundle.getString(Intent.EXTRA_PHONE_NUMBER); dbOutgoing = new DBOutgoing(ctx); dbOutgoing.InsertOutGoingCallDB(number, "0", "0"); Toast.makeText(ctx, "Outgoing: "+number, Toast.LENGTH_LONG).show(); } catch(FileNotFoundException e) { e.printStackTrace(); Toast.makeText(ctx, String.valueOf(e),Toast.LENGTH_LONG).show(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)