@@ -252,7 +252,6 @@ All types implement idempotent, nil-safe `Close() error`. Error types wrap NDK s
252252<details >
253253<summary >How to record from the microphone</summary >
254254
255- > ** Library:** [ ndk] ( https://github.com/AndroidGoLab/ndk ) (AAudio)
256255
257256``` go
258257package main
@@ -342,7 +341,6 @@ func main() {
342341<details >
343342<summary >How to take a picture from the camera</summary >
344343
345- > ** Library:** [ ndk] ( https://github.com/AndroidGoLab/ndk ) (Camera2 + ImageReader)
346344
347345``` go
348346package main
@@ -496,7 +494,6 @@ func main() {
496494<details >
497495<summary >How to list available sensors</summary >
498496
499- > ** Library:** [ ndk] ( https://github.com/AndroidGoLab/ndk ) (Sensor)
500497
501498``` go
502499package main
@@ -577,7 +574,6 @@ func main() {
577574<details >
578575<summary >How to check device thermal status</summary >
579576
580- > ** Library:** [ ndk] ( https://github.com/AndroidGoLab/ndk ) (Thermal)
581577
582578``` go
583579package main
@@ -615,7 +611,6 @@ func main() {
615611<details >
616612<summary >How to query GPU capabilities</summary >
617613
618- > ** Library:** [ ndk] ( https://github.com/AndroidGoLab/ndk ) (EGL + OpenGL ES 2.0)
619614
620615``` go
621616package main
@@ -706,7 +701,6 @@ func main() {
706701<details >
707702<summary >How to probe available media codecs</summary >
708703
709- > ** Library:** [ ndk] ( https://github.com/AndroidGoLab/ndk ) (MediaCodec)
710704
711705``` go
712706package main
@@ -760,7 +754,6 @@ func main() {
760754<details >
761755<summary >How to read device configuration</summary >
762756
763- > ** Library:** [ ndk] ( https://github.com/AndroidGoLab/ndk ) (Configuration)
764757
765758``` go
766759package main
@@ -801,7 +794,6 @@ func main() {
801794<details >
802795<summary >How to decode an image file</summary >
803796
804- > ** Library:** [ ndk] ( https://github.com/AndroidGoLab/ndk ) (ImageDecoder, API 30+)
805797
806798``` go
807799package main
@@ -857,52 +849,6 @@ func main() {
857849
858850</details >
859851
860- <details >
861- <summary >How to query battery status</summary >
862-
863- > ** Library:** [ binder] ( https://github.com/AndroidGoLab/binder ) — Battery info is available via the AIDL interface.
864-
865- ``` go
866- package main
867-
868- import (
869- " fmt"
870- " log"
871-
872- " github.com/AndroidGoLab/binder/android/os"
873- )
874-
875- func main () {
876- svc , err := os.NewBatteryService ()
877- if err != nil {
878- log.Fatal (err)
879- }
880-
881- level , err := svc.GetIntProperty (" level" )
882- if err != nil {
883- log.Fatal (err)
884- }
885- status , err := svc.GetIntProperty (" status" )
886- if err != nil {
887- log.Fatal (err)
888- }
889-
890- fmt.Printf (" Battery: %d%% \n " , level)
891- switch status {
892- case 2 :
893- fmt.Println (" Status: Charging" )
894- case 3 :
895- fmt.Println (" Status: Discharging" )
896- case 5 :
897- fmt.Println (" Status: Full" )
898- default :
899- fmt.Printf (" Status: %d \n " , status)
900- }
901- }
902- ```
903-
904- </details >
905-
906852> ** More examples**
907853
908854For more examples, see: [ ` examples/ ` ] ( examples/ ) .
0 commit comments