C carycai Member Licensed User Longtime User Apr 5, 2017 #1 I find one thread about the AccessibilityService as below,but it is too old. https://www.b4x.com/android/forum/threads/create-an-accesivilityservice.33081/ Could any one port the AccessibilityService? I just want to monitor other app's message and interactived with it. many thanks.
I find one thread about the AccessibilityService as below,but it is too old. https://www.b4x.com/android/forum/threads/create-an-accesivilityservice.33081/ Could any one port the AccessibilityService? I just want to monitor other app's message and interactived with it. many thanks.
C carycai Member Licensed User Longtime User Apr 6, 2017 #2 carycai said: I find one thread about the AccessibilityService as below,but it is too old. https://www.b4x.com/android/forum/threads/create-an-accesivilityservice.33081/ Could any one port the AccessibilityService? I just want to monitor other app's message and interactived with it. many thanks. Click to expand... could anyone port this service and i can pay for it? I really need this library. Upvote 0
carycai said: I find one thread about the AccessibilityService as below,but it is too old. https://www.b4x.com/android/forum/threads/create-an-accesivilityservice.33081/ Could any one port the AccessibilityService? I just want to monitor other app's message and interactived with it. many thanks. Click to expand... could anyone port this service and i can pay for it? I really need this library.
DonManfred Expert Licensed User Longtime User Apr 6, 2017 #4 MarcoRome said: Do you see also THIS Click to expand... This is not a Accesibleservice. What should he do with the Notificationlistener? Upvote 0
MarcoRome said: Do you see also THIS Click to expand... This is not a Accesibleservice. What should he do with the Notificationlistener?
MarcoRome Expert Licensed User Longtime User Apr 6, 2017 #5 Hi Great Don Yes i know this. It depends on what has to do with the AccessibilityService. The same is often used to trap notifications. With Notificationlistener .. for example could intercept all notices ( as example in attachment ) Attachments NotificationListenerExample.apk NotificationListenerExample.apk 151.7 KB · Views: 753 Upvote 0
Hi Great Don Yes i know this. It depends on what has to do with the AccessibilityService. The same is often used to trap notifications. With Notificationlistener .. for example could intercept all notices ( as example in attachment )
C carycai Member Licensed User Longtime User Apr 6, 2017 #6 MarcoRome said: Hi Great Don Yes i know this. It depends on what has to do with the AccessibilityService. The same is often used to trap notifications. With Notificationlistener .. for example could intercept all notices ( as example in attachment ) Click to expand... thanks,i want to monitor IM program such as Wechat(in China) income message,and reply to the sender with something,depends on what the income message content.it just like a automation reply robot,that is i want to create. the above thread i have seen before,but not try.i Will try tomorrow. but i think may be the AccessibilityService is the best solution.it can monitor,can simulate click,and send text to special textbox. but for my poor java, i can not wrap this service and import in b4a. or may be there is a better solution. thanks for your reply. Upvote 0
MarcoRome said: Hi Great Don Yes i know this. It depends on what has to do with the AccessibilityService. The same is often used to trap notifications. With Notificationlistener .. for example could intercept all notices ( as example in attachment ) Click to expand... thanks,i want to monitor IM program such as Wechat(in China) income message,and reply to the sender with something,depends on what the income message content.it just like a automation reply robot,that is i want to create. the above thread i have seen before,but not try.i Will try tomorrow. but i think may be the AccessibilityService is the best solution.it can monitor,can simulate click,and send text to special textbox. but for my poor java, i can not wrap this service and import in b4a. or may be there is a better solution. thanks for your reply.
corwin42 Expert Licensed User Longtime User Apr 6, 2017 #7 carycai said: could anyone port this service and i can pay for it? I really need this library. Click to expand... What API levels need to be supported? If API level 13 and below is required, the configuration of the accessibility service has to be done by code. So this will add a bit more effort to the library. For API 14 and above it is possible to configure the service just in XML in the manifest. This will be easy. What exactly do you need? I guess you want to react on notifications? So you only need the TYPE_NOTIFICATION_STATE_CHANGED event? Upvote 0
carycai said: could anyone port this service and i can pay for it? I really need this library. Click to expand... What API levels need to be supported? If API level 13 and below is required, the configuration of the accessibility service has to be done by code. So this will add a bit more effort to the library. For API 14 and above it is possible to configure the service just in XML in the manifest. This will be easy. What exactly do you need? I guess you want to react on notifications? So you only need the TYPE_NOTIFICATION_STATE_CHANGED event?
C carycai Member Licensed User Longtime User Apr 6, 2017 #8 the API level above 14. when my friend send message to me,there will be a notification in the status bar.the app should enter into the app,and get the lastest message information:from who,when,what. so app can send some text in textbox and click send button. so the TYPE_NOTIFICATION_STATE_CHANGED may be OK. you can test with Whatapp,if you can send message to your friend automatic. Upvote 0
the API level above 14. when my friend send message to me,there will be a notification in the status bar.the app should enter into the app,and get the lastest message information:from who,when,what. so app can send some text in textbox and click send button. so the TYPE_NOTIFICATION_STATE_CHANGED may be OK. you can test with Whatapp,if you can send message to your friend automatic.
corwin42 Expert Licensed User Longtime User Apr 6, 2017 #9 You will be able to get notified when a new notification pops up with an accessibility service. It may even be possible to parse the notification text to get the user. The problem would be to automatically send a reply to the messenger when it does not have an API. Upvote 0
You will be able to get notified when a new notification pops up with an accessibility service. It may even be possible to parse the notification text to get the user. The problem would be to automatically send a reply to the messenger when it does not have an API.
C carycai Member Licensed User Longtime User Apr 7, 2017 #10 I have tested NotificationListener library,it can pick up the message text send by my friends.BUT as you say,it is hard to relay a message automatically. Maybe i should think another method. Thanks for you help @corwin42 @ MarcoRome @DonManfred Upvote 0
I have tested NotificationListener library,it can pick up the message text send by my friends.BUT as you say,it is hard to relay a message automatically. Maybe i should think another method. Thanks for you help @corwin42 @ MarcoRome @DonManfred