Hey Guys. I'm working with a collegue on a android app. At some point the app starts Bluetooth by itself without user interaction. This is written in C++. Now I want to turn the main Bluetooth Symbol on, to inform the user that Bluetooth is turned on.The same for WiFi.
I could create my own notifications, but that's 开发者_运维问答not what I want.
How can I access the main notification symbols in Java?
Another question about notifications: I have a notification for my main app. Every time I click on the notification the app is restarted (onCreate is called). When I click the Home Button, when my app is in the front is shows the home screen and by clicking on the app symbol it resumes the app (onResume is called). I want exactly the same behaviour when I click on the notification. How do I achieve this?
thanks in advance
Afaik, this works only if you call it from Java, or call into corresponding Java methods via JNI, which will update the proper notifications for you.
精彩评论