0

I have built an SMS Service which runs when the mobile phone is on. This service updates a database when a SMS is received and then creates an entry in a log file. Finally, the SMS is deleted. I want my system to be able to sync the database between the Android mobile phone and a PC. For this to happen, I want to send/receive data on a serial port to which the Android device is connected. Is it possible to do so in Android? What would be the best way to implement the sync mechanism?

Cœur
  • 32,421
  • 21
  • 173
  • 232
Op Kaushik
  • 151
  • 2
  • 16

2 Answers2

0

So you want to use the modem Incorporated in the Phone?Or you just want to get all the sms from the Android SMS Aplication?

  • Actually I wish to send data to mobile phones when some one necessary and receive data whenever mobile phone received sms or data. – Op Kaushik Nov 28 '12 at 07:40
0

Your main problem seems to be the communication with the android app. over the USB connection. This has been asked before on SO:

Android apps, communicating with a device plugged in the USB port

This link may also be useful.

You can easily establish a channel on a USB port for your Android application and desktop application to communicate, developing your own sync mechanism. However, this may limit you to USB connection if you choose certain approaches. The Socket-based approach has the advantage that it can be easily ported to a remote wireless connection, enabling your sync mechanism to work on WiFi too.

Community
  • 1
  • 1
Arash Shahkar
  • 635
  • 2
  • 12
  • 24