Here is the info:
Should I need a library for this?¿?
Actually I tried and create it with this code:
But I think I have no idea what I am doing...
I added to b4a ,dimmed it and a lot of methods appear...?¿?¿And it supposed to just create a log when a notification get in....
Actually it also says to change the manifest like this:
It is too late.....
Any help would be really appreciated
Thanks in advanced
B4X:
http://developer.android.com/training/accessibility/service.html
Should I need a library for this?¿?
Actually I tried and create it with this code:
B4X:
package anywheresoftware.b4a.sample;
import anywheresoftware.b4a.BA.ShortName;
import android.accessibilityservice.AccessibilityService;
import android.util.Log;
import android.view.accessibility.AccessibilityEvent;
@ShortName("FirstLib")
public class FirstLib extends AccessibilityService {
/*
* Return a log of the AccesibilityService
*/
private final static String TAG="WhtNotificationService";
public static final String PACKAGE_NAME = "com.whatsapp";
@Override
public void onAccessibilityEvent(AccessibilityEvent event) {
Log.d(TAG,"new Event="+event.toString());
}
@Override
public void onInterrupt() {
}
}
But I think I have no idea what I am doing...
I added to b4a ,dimmed it and a lot of methods appear...?¿?¿And it supposed to just create a log when a notification get in....
Actually it also says to change the manifest like this:
B4X:
<service android:name=".MyAccessibilityService">
<intent-filter>
<action android:name="android.accessibilityservice.AccessibilityService" />
</intent-filter>
. . .
</service>
It is too late.....
Any help would be really appreciated
Thanks in advanced