Monday, September 9, 2013

[android help] why bluetooth chat is not working properly?


why bluetooth chat is not working properly?


android - why bluetooth chat is not working properly? - Stack Overflow







Tell me more ×

Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

















when i connect first time via bluetooth i can send sms ..but if i disconnect then again connect with anyone keeping bluetooth on i couldn't send sms though i could connect with that device..but if i trun off bluetooth and again turn on it and connect with some one then i could send sms...is there any problem with my onStop() and onDestroy() method??do i have to use onFinish() method????



@Override
public void onStop() {
super.onStop();
if(D) Log.e(TAG, "-- ON STOP --");
}

@Override
public void onDestroy() {
super.onDestroy();
// Stop the Bluetooth chat services
if (mChatService != null) mChatService.stop();
if(D) Log.e(TAG, "--- ON DESTROY ---");
}

//here is my full code of bluetooth chat class
http://paste.ubuntu.com/6082004/


















default






Read more

stackoverflow.comm



No comments:

Post a Comment

Google Voice on T-Mobile? [General]

Google Voice on T-Mobile? So I recently switched from a GNex on Verizon to a Moto X DE on T-Mobile. I had always used Google Voice for my v...