Re: [android-developers] App force closes when Bluetooth connection occurs
Did you check the logcat? Is it completely silent? It's weird that there wouldn't be an exception thrown, but I spose weirder things have happened. Kris On Mon, Sep 19, 2011 at 6:04 AM, Steven Bruce wrote: > Hi > > I have been following the Bluetooth guide on the Android developer > site and have got everything working so far but now I am really stuck. > Despite my code looking virtually identical to the one in the > Bluetooth page it just doesn't work. Is that code wrong or something? > > I have my two thread, connectThread and acceptThread. The acceptThread > successfully initialises itself and is set running up to the point > where the serversocket waits for a connection by the other device. Its > when the other device performs the actual connection attempt when the > server side device force closes the application. > > I have stepped through the program and the problem occurs immediately > as the connection attempt is made. Its like some internal connection > error but there are no exceptions thrown. I am completely stumped on > this. Been trying for a couple of weeks now and I'm getting nowhere. > Anyone got any ideas what the problem could be? > > Steve > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] App force closes when Bluetooth connection occurs
Hi Kris Yes there is a bunch of stuff in the logcat outpu window. I will try and post a copy of it on here later on. I have a feeling it maybe something to do with the randomly generated UUID I got off the internet. Maybe it has to be very specific type of UUID? I will include the output from logcat in a while. I am still learning my way around the debugger at the moment. Setting break points and stepping through the program is about as far as I am with it. Steve Kristopher Micinski wrote: > Did you check the logcat? Is it completely silent? > > It's weird that there wouldn't be an exception thrown, but I spose > weirder things have happened. > > Kris > > On Mon, Sep 19, 2011 at 6:04 AM, Steven Bruce wrote: > > Hi > > > > I have been following the Bluetooth guide on the Android developer > > site and have got everything working so far but now I am really stuck. > > Despite my code looking virtually identical to the one in the > > Bluetooth page it just doesn't work. Is that code wrong or something? > > > > I have my two thread, connectThread and acceptThread. The acceptThread > > successfully initialises itself and is set running up to the point > > where the serversocket waits for a connection by the other device. Its > > when the other device performs the actual connection attempt when the > > server side device force closes the application. > > > > I have stepped through the program and the problem occurs immediately > > as the connection attempt is made. Its like some internal connection > > error but there are no exceptions thrown. I am completely stumped on > > this. Been trying for a couple of weeks now and I'm getting nowhere. > > Anyone got any ideas what the problem could be? > > > > Steve > > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com > > For more options, visit this group at > > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] App force closes when Bluetooth connection occurs
On Tue, Sep 20, 2011 at 12:34 PM, Steven Bruce wrote: > Hi Kris > > Yes there is a bunch of stuff in the logcat outpu window. I will try > and post a copy of it on here later on. I have a feeling it maybe > something to do with the randomly generated UUID I got off the > internet. Maybe it has to be very specific type of UUID? I will > include the output from logcat in a while. I am still learning my way > around the debugger at the moment. Setting break points and stepping > through the program is about as far as I am with it. > > Steve > As long as the UUIDs are the same, this is fine, (i.e., it's supposed to be randomly generated for your app...) Kris -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] App force closes when Bluetooth connection occurs
Not had a chance to run the debugger yet as its tough getting the other person to lend me their phone to help with the debugging. lol. Are there any other reasons why it wouldn't work? Maybe incompatible devices? One is a Sony Ericsson Xperia Arc and the other is an Xperia X10. Both running Android 2.3.3. Kristopher Micinski wrote: > On Tue, Sep 20, 2011 at 12:34 PM, Steven Bruce wrote: > > Hi Kris > > > > Yes there is a bunch of stuff in the logcat outpu window. I will try > > and post a copy of it on here later on. I have a feeling it maybe > > something to do with the randomly generated UUID I got off the > > internet. Maybe it has to be very specific type of UUID? I will > > include the output from logcat in a while. I am still learning my way > > around the debugger at the moment. Setting break points and stepping > > through the program is about as far as I am with it. > > > > Steve > > > > As long as the UUIDs are the same, this is fine, (i.e., it's supposed > to be randomly generated for your app...) > > Kris -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] App force closes when Bluetooth connection occurs
On Mon, Sep 26, 2011 at 8:12 AM, Steven Bruce wrote: > > > Not had a chance to run the debugger yet as its tough getting the > other person to lend me their phone to help with the debugging. lol. > Are there any other reasons why it wouldn't work? Maybe incompatible > devices? One is a Sony Ericsson Xperia Arc and the other is an Xperia > X10. Both running Android 2.3.3. > Most likely if it's a crash it's something wrong in your code, or you aren't handling an exception (even if it's some sort of connection failure or something). Also double check you have the permissions for Bluetooth. Kris -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] App force closes when Bluetooth connection occurs
Also, using BT between android / non android devices hasn't worked out terribly well for people in the past... Kris On Mon, Sep 26, 2011 at 11:30 AM, Kristopher Micinski wrote: > On Mon, Sep 26, 2011 at 8:12 AM, Steven Bruce wrote: >> >> >> Not had a chance to run the debugger yet as its tough getting the >> other person to lend me their phone to help with the debugging. lol. >> Are there any other reasons why it wouldn't work? Maybe incompatible >> devices? One is a Sony Ericsson Xperia Arc and the other is an Xperia >> X10. Both running Android 2.3.3. >> > > Most likely if it's a crash it's something wrong in your code, or you > aren't handling an exception (even if it's some sort of connection > failure or something). Also double check you have the permissions for > Bluetooth. > > Kris > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en