Welcome, Guest. Please login or register.

Login with username, password and session length
July 31, 2010, 10:04:31 AM
Pages: [1]
  Print  
Topic: JSR-82 on Samsung Mobile MIDP  (Read 2707 times)
« on: June 09, 2008, 12:31:18 AM »
Angeleon
Newbie

View Profile
*
Karma: +0/-0
Posts: 2



Hello people,

First time I've stumbled upon this forum and I do hope that I will find some help here, as I've found no other help concerning this. The online resources for developing java for Samsung mobile are, to say the least, horrible.

I have a very specific problem, which is that the Samsung E900 (and probably more Samsungs), respond positively on calls such as
  Class.forName("javax.bluetooth.LocalDevice")

but still freezes completely when calling
  javax.bluetooth.LocalDevice.getLocalDevice()

No exception or error is thrown, but the application cannot continue after this call. I call Class.forName for the other bluetooth libraries
as well and all of them return not null and no exception is ever thrown, which would normally mean that the phone has bluetooth, but
the fact that it freezes and that the Samsung mobile webpage claims that it does not have bluetooth makes me believe that it might be
a problem with Samsungs.

Have anyone ever experienced something like this? Any help would be great.

//Patrik

Logged
« Reply #1 on: June 10, 2008, 06:20:27 AM »
Angeleon
Newbie

View Profile
*
Karma: +0/-0
Posts: 2



I've found a workaround for this particular problem, which is by no means a good solution, but quite acceptable for my purposes.

By calling the getLocalDevice function in another thread, and waiting for a short while. If the thread has not finished by that time, odds are that it has crashed and that means we have detected that the phone cannot use the bluetooth api.

Any better suggestions would be helpful though.
Logged
« Reply #2 on: July 28, 2008, 09:25:54 PM »
11559kk
Newbie

View Profile
*
Karma: +0/-0
Posts: 3



I also have some problems by using the getLocalDevice() method, it throw an exception, my mobile is samsung D508, i am still trying.
Logged
« Reply #3 on: July 15, 2009, 12:41:10 PM »
rs_shadow0000
Newbie

View Profile
*
Karma: +0/-0
Posts: 1



By calling the getLocalDevice action in addition thread, and cat-and-mouse for a abbreviate while. If the cilia has not accomplished by that time, allowance are that it has comatose and that agency we accept detected that the buzz cannot use the bluetooth api,
Logged
 
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC