Android Question Gtalk/msnMessenger/WhatsApp

persianpowerman1

Active Member
Licensed User
Longtime User
hey guys... is there any way we can do this???

Just like we can intercept a call/sms.. before it rings...
I want to be able to intercept in coming data from the internet and display it in a common Edit text...
For example...
Now ... if a message is coming in for either Gtalk/MsnMessenger/whatsApp/FBmessenger... i can get it and display it in my common place in my App... rather than me having to (open and switch) between each web messenger all the time.. got it?!

any ideas????

YO!han
 

persianpowerman1

Active Member
Licensed User
Longtime User
Erel... i guess i'll have to wait for 4.3 cz my phone still running 4.1... any ideas to still work it...?

lastly 1 small clarification:-
in your code
B4X:
Dim extras As JavaObject = jno.GetField("extras")
        extras.RunMethod("size", Null)
        Log(extras)
        Dim title As String = extras.RunMethod("getString", Array As Object("android.title"))

how did you know about "extras"... or... "size"... or ... "android.title"...??? is this stuff in the android sdk or java etc...
cz how would i know something like that exists??
is there something to read/learn from... so i know what i could write in those quotes(" ") ?

thanx,
YO!han
 
Last edited:
Upvote 0

persianpowerman1

Active Member
Licensed User
Longtime User
hi man,
thanx for taking time to reply.. appreciated

i took it out from a part in your example... ie... "NotificationListener"

just to ask you.. how can i know all the possible parameter options like.. "size"... "android.title"... "extras".. etc..
from where did you get those.?
is it from some java knowledge... or i need to look up the sdk stuff...
 
Upvote 0
Top