. Hi, if you are using a bluetooth module I supose it is through serial port on mbed, so first you need to configure the bluetooth module to connect with android phone .
. Refer to manual , there are some commands, first scan for bluetooth devices, than choose your android phone to connect. Once you are connected the bluetooth module acts as a transparent link from mbed serial and your android phone AT commands interface(you can do anything in the phone by this interface).
. I also have a bluetooth module with serial interface, first I need to do a scan with command ATF? than it starts to scan , the mobile appears , than I can do connect to my mobile with command ATA1 and it connects to my mobile(there is a default pin on module that you should input on your phone on the connection request), this is the manual connect mode, for automatic connection I use the mac adress of bluethooth of the phone to make the predifined connection device and it always connect to the phone automatic.
. After connected I have direct access to AT commands interface on the fone, U can test it with command ATI (mobile information) or other to make sure the connection is OK. (Should be better to test it before you implement the code with a serial adapter to PC and use a serial program to communicate with the module to make tests first).
. Then after this step you can think about make a GPRS connection, I think you can use GPRSModuleNetIf class , I have not tested yet, but when I have time I will test it becase I am trying to use a GPRS module to have web access but it needs to do the PPP negotiation first
Regards