I want to save all notification in one text file.
我想将所有通知保存在一个文本文件中。
First I have tried it by NotificationListenerService
but it's just for android 4.3+
首先我通过NotificationListenerService尝试过它,但它只适用于Android 4.3+
I want that my service, support android 4.0+
我想要我的服务,支持android 4.0+
Then I tried it by AccessibilityService
and I did not succeed again
然后我通过AccessibilityService尝试了它,我没有再次成功
Would you give me some example code?
你能给我一些示例代码吗?
1 个解决方案
#1
Best route is go through this simple doc and example
最佳路线是通过这个简单的文档和示例
https://developers.google.com/cloud-messaging/
https://github.com/googlesamples/google-services/tree/master/android/gcm
This should give you all the details required.
这应该给你所需的所有细节。
When you receive notification.. saving message to text using any android technique.
当您收到通知..使用任何Android技术保存消息到文本。
#1
Best route is go through this simple doc and example
最佳路线是通过这个简单的文档和示例
https://developers.google.com/cloud-messaging/
https://github.com/googlesamples/google-services/tree/master/android/gcm
This should give you all the details required.
这应该给你所需的所有细节。
When you receive notification.. saving message to text using any android technique.
当您收到通知..使用任何Android技术保存消息到文本。