Click here to Skip to main content
15,991,287 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello CP members. I am doing a project in android in eclipse ide platform-java. My project is to share internet connection between phones using bluetooth. Wat API file do i need to use for sharing internet resources through bluetooth? Can someone point me some directions? Thanks in advance...
Posted
Comments
Richard MacCutchan 26-Aug-13 10:38am    
The only answer to this question is: use Google. It is far to general for quick answers.

1 solution

There is no such api exists.Best bet would be select Wireless and Network section of your device and configure Portable and Hotspot mode. So call this settings page from your code via Intent and leave rest of the hard work(configuration) to your device.
Also check..
How to share the Internet connection for two mobiles via Bluetooth?[^]
 
Share this answer
 
v3
Comments
Ashwin2013 27-Aug-13 11:50am    
Thanks but i already knew that. Your answer suggests the devices which supports BT tethering can only be connected. But i wanted to any android device with BT to share internet resource. Can i make use of sockets?

like use Data provider as server and the sharing mobile as client?
would that be possible?
ridoy 27-Aug-13 13:00pm    
yes that would be possible,you can make server client model between 2 android devices ans share data between them.
Ashwin2013 31-Aug-13 4:42am    
Thank You. Another question how will link the port numbers? I mean data sent over bluetooth how will their port number be recognised? will it still work as a server client model?
ridoy 31-Aug-13 7:15am    
yes it is,you can follow a basic android server client bluetooth example from google.That will clear you most i think..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900