I use something like the following for notifications. This was done from a Service Module
Sub Process_Globals
Dim Notify As Notification
End Sub
Sub Service_Create
Notify.Initialize
Notify.Notify(1)
Notify.Sound = True
Notify.Vibrate = True
Notify.Icon = "icon"
End Sub
Sub NotifyMe(Message as String)
Notify.SetInfo(Message , Main)
Service.StartForeground(1, Notify)
End Sub
Dear Friend,
I took a very good look at the code you posted for me. It is code for the client device.
What about the VB6server what should the code looks like on the Server's side?
Remember:
Step1. The user cliks a button on the Adroidphone to connect to the VB6Server
Step2. The VB6Server accepts the connection and automatically sends a number to the Androidphone(txtSentText.SendData).
Step3. If the User is not on the phone(not connected), alert him with a notification, sound or email.
My problem is Step3.
How do I code Sttep3 on the Server side?
In plain English, this is what Step3 should say: If the user is not connected, notify him.
In VB6 code, this is what Part3 the Server code should look like:
If sockMain(i).State <> sckConnected Then
???notify him?????
The small section with the interrogation signs is what I want in VB6 coding.
Then the Client side code you posted for me will entter in action.(Client)
I may confuse you but focus only on Step3 in VB6 coding.
Thank you very much. I appreciate you help.
michelg