Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Bluetoothchat(Unable to launch the BluetoothChat sample application)
Bluetoothchat [message #1046275] Sun, 21 April 2013 17:30 Go to next message
Sol Spring is currently offline Sol SpringFriend
Messages: 1
Registered: December 2012
Junior Member
Hi guys,
I'm a newcomer n got some newcomwer problems.
By now I'm using Eclipse Helios and trying to launch BluetoothChat sample app on the android emulator.
I'm turnning the "bluetooth on" on the emulator setting and still got the "Bluetooth is not available" message when launching the app.
Looked into code and found this:

public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if(D) Log.e(TAG, "+++ ON CREATE +++");

// Set up the window layout
setContentView(R.layout.main);

// Get local Bluetooth adapter

mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();

// If the adapter is null, then Bluetooth is not supported
if (mBluetoothAdapter == null) {
Toast.makeText(this, "Bluetooth is not available", Toast.LENGTH_LONG).show();
finish();
return;
}
}

Well, mBluetoothAdapter is allways NULL.
Tried it under UNO got same results.

1. What can be the reason for that?
2. How can I install the BluetoothChat on my Android machin (Galaxy s6500) running Android 2.3.6?

Thanks all,
Sol
Re: Bluetoothchat [message #1046881 is a reply to message #1046275] Mon, 22 April 2013 13:47 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 4/22/2013 6:57 AM, Sol Spring wrote:
> Hi guys,
> I'm a newcomer n got some newcomwer problems.
> By now I'm using Eclipse Helios and trying to launch BluetoothChat
> sample app on the android emulator.
> [snip]

Feel free to read the sticky posts at the top of this forum before
asking questions. In particular, this one:

http://www.eclipse.org/forums/index.php/t/225513/
Previous Topic:New Member
Next Topic:Need Help-Please
Goto Forum:
  


Current Time: Fri Apr 19 23:26:33 GMT 2024

Powered by FUDForum. Page generated in 0.07911 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top