總綱
android13 rom 開發總綱說明
目錄
1.前言
2.源碼查找
3.我們先實現第一種改法
4.實現第二種改法
5.第三種改法代碼參考
6.編譯測試
1.前言
我們從導航欄這里,點開這個藍牙的接收框,彈出來的對話框,使用android studio 的layout inspector可以發現這個是 Bluetooth里面的對話框
進入藍牙源碼
packages/apps/Bluetooth
先大概的瀏覽下bluetooth里面的信息,
看看有沒有Notification之類的
一般通知操作方法
Intent snoozeIntent = new Intent(this, MyBroadcastReceiver.class);snoozeIntent.setAction(ACTION_SNOOZE);snoozeIntent.putExtra(EXTRA_NOTIFICATION_ID, 0);PendingIntent snoozePendingIntent =PendingIntent.getBroadcast(this, 0, snoozeIntent, 0);NotificationCompat.Builder notificat