Skip to main content



      Home
Home » Newcomers » Newcomers » Bluetoothchat(Unable to launch the BluetoothChat sample application)
Bluetoothchat [message #1046275] Sun, 21 April 2013 13:30 Go to next message
Eclipse UserFriend
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 09:47 Go to previous message
Eclipse UserFriend
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: Sun Jul 27 12:01:26 EDT 2025

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

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

Back to the top