0

私の検索では解決策が見つかりませんでした。おそらく、もっと単純なことでコードが機能しなくなります。

私の活動のjavapageには、OnCreate内にこれが含まれています:

Intent MyCountryCodeIntent = new Intent(this,OutgoingCallReceiver.class);
MyCountryCode = "01";
MyCountryCodeIntent.putExtra("code",MyCountryCode);

設定してstartActivity(MyCountryCodeIntent);sendBroadcast(MyCountryCodeIntent); このアプリがハングアップする

私の OutgoingCallReceiver.class ページには、onReceive 内にこれが含まれています。

 Bundle bundle = intent.getExtras();
 if(null == bundle) return;
 String MyCountryCodeIntent=intent.getStringExtra("code");

多分何かが間違っているかもしれませんが、私は何を見つけることができません..

4

2 に答える 2