1、packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppIncomingFileConfirmActivity.java
protected void onCreate(Bundle savedInstanceState) {
setupAlert();
mAlert.getButton(DialogInterface.BUTTON_POSITIVE).performClick();//添加
}
2、packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppNotification.java
private void updateIncomingFileConfirmNotification() {
intent.setDataAndNormalize(contentUri);
mContext.sendBroadcast(intent, null);//添加
//n.setLatestEventInfo(mContext, title, caption, PendingIntent.getBroadcast(mContext, 0,intent, 0));//删除
mContext.sendBroadcast(intent, null);//添加
//n.deleteIntent = PendingIntent.getBroadcast(mContext, 0, intent, 0);//删除
//mNotificationMgr.notify(id, n);//删除
}
3、packages/apps/Bluetooth/src/com/android/bluetooth/opp/BluetoothOppReceiver.java
else if (action.equals(Constants.ACTION_INCOMING_FILE_CONFIRM)) {
....
/*删除
NotificationManager notMgr = (NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE);
if (notMgr != null) {
notMgr.cancel((int)ContentUris.parseId(intent.getData()));
if (V) Log.v(TAG, "notMgr.cancel called");
}
*/
}