Commit 6fa850c
docs: improve Context7 docs for Bluetooth, BroadcastReceiver, and general patterns
Address feedback on documentation gaps:
- bluetooth.md: Add complete BluetoothAdapter acquisition flow,
startDiscovery JNI signature ("()Z") and CallBooleanMethod usage,
end-to-end classic discovery with BroadcastReceiver registration,
BLE scanning with GoAbstractDispatch adapter pattern, GATT
client/server sections, expanded constants reference.
- broadcast-receiver.md: Rewrite with registerReceiver as primary
approach. Complete GoBroadcastReceiver.java adapter, Go handler
registration, IntentFilter creation, ctx.RegisterReceiver2() call,
and cleanup. No longer deflects to alternative APIs.
- general-patterns.md: New guide for Android APIs not covered by
specific examples. Covers system services, constructors, static
methods, interface vs abstract class callbacks, reference management,
HandlerThread, JNI signatures, value constructors, common pitfalls.
- context7.json: Add rules for abstract class pattern, NewProxy
limitation, BooleanValue type, and pointer to general-patterns.md.1 parent 7a66a96 commit 6fa850c
4 files changed
Lines changed: 1445 additions & 203 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
0 commit comments