1

私のアプリケーションから、Bluetooth設定オプションに移動するようにアクティビティを設定しました。BT設定アクティビティからホームボタンをクリックしてアプリケーションを再起動しようとすると、機能しません。誰かが私にそれについてのアイデアを与えることができますか?

notification=new Notification(R.drawable.icon, "", System.currentTimeMillis());
Intent in=new Intent(getBaseContext(),MainActivity.class);

PendingIntent pi=PendingIntent.getActivity(getBaseContext(), 0, in, 0);
notification.setLatestEventInfo(getBaseContext(), "app name", "Application is now running, press here to open", pi);
notifyMgr.notify(id, notification);
4

0 に答える 0