I have two devices on Android. First doesn't have GSM module, second have it. I need to make calls and send SMS from first device programmatically.
For that I want to pair this devices with Bluetooth. As I know Android has built-in support for calls via BT. But how to send SMS from first device through second device using BT?
Try this Its working fine for me Bluetooth chating working using UUID.
Related
Bluetooth communication should happen between Android Tablet, Android Phone and Headphone/Headset/Helmet.
Android Phone: Responsible to send Incoming call and Media Infotainment data to the Android System (Tablet).
Android System (Tablet): is responsible to take actions [Media: (Play/Pause/Next/Previous) and Phone call: (Accept, Reject, Silence)] based on the data received from the Android Phone. Also send Map navigation instruction to the Headset/Helmet.
What I had tried so far,
RFCOMM connection between Android Table and Phone that send and receive data to and from Tablet to Phone. But doesn't allow to control phone to take actions sent from Tablet.
Possible approach
Bluetooth Headset profile will do the same thing, so any way to set Bluetooth profile while connection between Tablet and Phone will solve the Media and Incoming phone call requirements.
Is these possible? If so what are the possibilities to achieve the same?
I want to use Bluetooth BLE to receive data from heart rate and send a command to second device. I write two program acccording to android sample(http://developer.android.com/samples/BluetoothLeGatt/index.html).
first program is to use the android to receive heart from A device by bluetooth.
second program is to use the android to send command to B device by bluetooth.
I merge two Bluetooth service into one program. but it seems not work.
i created, one BluetoohManager, one BluetoothAdapter, two service classes,two BroadcastReceiver, two BluetoohDevices. I don't if it is the right way. it seems not work. Does anyone have some code example? or does someone can tell me how to modify the android code example (BluetoothLeGatt) to deal two bluetooth devices?
We have some of the best libraries available for bluetooth communication, this might help you
Bluetooth LE Library for Android
SmartGattLib
android-btxfr
Android-BluetoothSPPLibrary
Android-Bluetooth-Library
Can Android app installed in tablet show alert for in-coming Call or SMS of any other device (Nokia,iPhone,Window) with it is paired by blue-tooth ?
What i am able to do -
I can pair android device with any other device (Nokia,iPhone,Window) by blue-tooth protocol.
Now how can detect that there is In-coming call or SMS on device which is paired with ?
Anybody has idea for similar feature in android ?
One way of implementing it is to write two applications one for each device which will communicate via bluetooth.
You will have to define and implement a protocol between the two devices.
The application on the phone will register to listen for Intents for incoming call and incoming SMS. For example look at http://www.krvarma.com/2010/08/detecting-incoming-and-outgoing-calls-in-android/
and
Once you receive these intents on the device then send information to other device through the defined prtotocol using bluetooth. For example you can use XML to communicate.
And then on the other device application you will show notifications using Activity.
I hope this helps
Is it possible to send SMS from Android emulator to a mobile phone via a GSM modem connected to a USB port of computer ? If it is possible how can I do that
Thanks in advance!
You could do that but android won't detect it as a native antena, in other word, all functions from android to send sms or initiate a call won't work.
If the device is visible is /dev/.. You could be able to open it and send command trough serial. Unless someone wrote a driver so android can load it for gsm communication inside the emulator, my guess is that it's pretty useless.
Anyway, the emulator does have a way to test sms sending as far as I can remember, and if you really want to send sms trough your gsm dongle, It's probably a better idea to start writing a script using python for example. There is also a library that enable sms sending from linux, it might also work on other platforms.
Sending sms from python from computer:
http://designbuildtestrepeat.wordpress.com/2008/06/26/sms-over-3g-and-bluetooth-from-python/
Checking incoming sms for emulator android:
http://davanum.wordpress.com/2007/12/15/android-listen-for-incoming-sms-messages/
Sending sms between emulators:
http://xjaphx.wordpress.com/2011/07/07/sending-messages-among-devices/
And then it really depends on what you need. You didn't exactly said why you wanted to do that. You didn't say if you wanted to test sms messaging or wanted to send actual sms from computer. It's not really clear why you need android and the gsm modem at the same time.
Presently I am doing my work in the android field. I am trying to develop an application to send a message from my bluetooth/wi-fi enabled mobile to other bluetooth/wi-fi enabled mobiles without pairing.
Is it possible to send message to another mobile in my blueooth or wi-fi range without pairing? If it possible how can I send the message to another mobile with out pairing?
If your talking about SMS this does not apply.
For Wifi have a look at this project http://code.google.com/p/remotedroid/.
For Bluetooth this thread explains how to archive what your looking for.
http://developer.android.com/guide/topics/wireless/bluetooth.html
To send data over to Bluetooth device all you need is the Mac address of that device.
Read the Bluetooth tutorial, its very helpful.
Shortly and sweetly, No.. You cant send messages to other mobiles without some kind of authentication.
For sending Message (SMS,MMS), I don't think so, Without pairing how could you know the device Id, to which you want to send a message, And if you don't pair the devices then how they communicated to each other,
EDIT: For bluetooth As per my knowledge it's impossible to send or receive data over RFCOMM sockets without pairing.
And for WiFi , setup parallel server/client threads on each device, and send whatever you want. To discover services on a local network you can optionally use zeroconf.
Look at these links,
Bluetooth pairing without user confirmation
Bluetooth SPP between Android and other device, UUID and PIN questions
How to send and receive data in Android Programming using bluetooth without pairing?