Erel Thanks for the reply...however, I think now I am even more lost
So I will try to explain what I did:
1º)create the lib as explainied before, this lib supposed to just send me a log when a Accessibility Event occurs...(I hope)
2º)change my manifest editor as you suggested but nothing happens
3º)change the manifest editor like this to point to a new Service(in my case by now only want to pick up the whastaspp events,although also include sms received to check if it is working)
'la ccesibilityService de mi libreria:
AddServiceText(WhatasppService,
<service android:name="anywheresoftware.b4a.sample.FirstLib">
<intent-filter>
<action android:name="android.accessibilityservice.AccessibilityService" />
</intent-filter>
<meta-data android:name="android.accessibilityservice"
android:resource="@xml/accessibilityservice" />
. . .
</service>)
and create a accesibilityservice.xml like this:
<?xml version="1.0" encoding="utf-8"?>
<accessibility-service
xmlns:android="http://schemas.android.com/apk/res/android"
android:accessibilityEventTypes="typeNotificationStateChanged"
android:packageNames="com.whatsapp,android.provider.Telephony.SMS_RECEIVED"
android:accessibilityFeedbackType="feedbackVisual"
android:notificationTimeout="100"
android:canRetrieveWindowContent="true"
/>
made it read only and copy to RES/XML...no compiling errors...so I guess it is OK
Of course nothing happens on the service:
#Region Service Attributes
#StartAtBoot: False
#End Region
Sub Process_Globals
'These global variables will be declared once when the application starts.
'These variables can be accessed from all modules.
Dim AccesibilityServiceMio As FirstLib
End Sub
Sub Service_Create
Log("creado WhastasppService")
End Sub
Sub Service_Start (StartingIntent As Intent)
Log("empezado WhastasppService")
End Sub
Sub Service_Destroy
End Sub
And I gues that some how I should do something with my "library" right?
I try to dimmed but the dimmed object have a lot of methods, but none is initalize or something like this....
Please any help would be really appreciate!!!
BTW:all the info about the XML content for whastaspp was taken from here:
http://gmariotti.blogspot.com.es/2013/02/how-to-write-dashclock-extension_23.html