BT747 conversion to Android

Bild von supergreg

hi, I managed to convert the BT_J2ME to Android using this tool:
http://www.netmite.com/android/index.html

The converted application now runs on my Samsung Galaxy Ace but it won't connect to my photomate 887 bluetooth GPS device (please see pics attached).

it takes some time to convert the application as the Netmite server is very slow. and you will have to install the netmite 'app runner' on your android device first. you don't need any other hacks though.

I would really like to know if other people tried this before and how it worked on their android phone?

Bild von mdeweerd

Hi It looks like netmite

Hi

It looks like netmite evolved ;-).  I only tried in the emulator (I do not have an android device) and besides getting stuck because of bluetooth, there was also another issue which seemed to find its cause in netmite.

[Check http://www.bt747.org/forum/bt747-android-volunteer#comment-907 to read about what I extracted from the logs].

 

Did you check this (access rights on certain files):

Features 1.6.0.7  download

  • Support JSR 82 - Bluetooth API
  • Note: G1 has bug in that cannot allow app use Bluetooth server mode. only client mode is allowed.
  • check /dev/socket/bluetooth & /dev/socket/dbus_bluetooth if permission is srw-rw---- then should change to srwxxrwxrwx

I have contacted the "author" of netmite several times in the past (last time is june 2010), but he seemed like a busy guy and while he did acknowledge reception of my messages, I did not get a reply regarding the core issue.On the thread I referred to above, somebody provided a trace that looked like this:W/System.err( 779): [Error] Problem with Bluetooth device discovery.

W/System.err( 779): (javax.bluetooth.BluetoothStateException: Bluetooth Device is not available)

W/System.err( 779): javax.bluetooth.BluetoothStateException: Bluetooth Device is not available

W/System.err( 779): at com.intel.bluetooth.BluetoothStackBlueZ.nativeGetDeviceID(Native Method)

W/System.err( 779): at com.intel.bluetooth.BluetoothStackBlueZ.initialize(Unknown Source)

W/System.err( 779): at com.intel.bluetooth.BlueCoveImpl.setBluetoothStack(Unknown Source)

W/System.err( 779): at com.intel.bluetooth.BlueCoveImpl.detectStack(Unknown Source)

W/System.err( 779): at com.intel.bluetooth.BlueCoveImpl.access$500(Unknown Source)

W/System.err( 779): at com.intel.bluetooth.BlueCoveImpl$1.run(Unknown Source)

W/System.err( 779): at java.security.AccessController.doPrivilegedImpl(AccessController.java:205)

W/System.err( 779): at java.security.AccessController.doPrivileged(AccessController.java:178)

W/System.err( 779): at com.intel.bluetooth.BlueCoveImpl.detectStackPrivileged(Unknown Source)

W/System.err( 779): at com.intel.bluetooth.BlueCoveImpl.getBluetoothStack(Unknown Source)

W/System.err( 779): at javax.bluetooth.LocalDevice.x_a(Unknown Source)

W/System.err( 779): at javax.bluetooth.LocalDevice.getLocalDevice(Unknown Source)

W/System.err( 779): at net.sf.bt747.j4me.app.b.g.a(Unknown Source)

W/System.err( 779): at net.sf.bt747.j4me.app.b.a.a(Unknown Source)

W/System.err( 779): at net.sf.bt747.j4me.app.b.a.g(Unknown Source)

W/System.err( 779): at net.sf.bt747.j4me.app.a.b.run(Unknown Source)

W/System.err( 779): at java.lang.Thread.run(Thread.java:1058)

W/System.err( 779): at com.netmite.andme.MIDletThread.run(Unknown Source)

W/System.err( 779): [Info] Returning Discovery Error


It could be that the way the bluetooth port is opened is not compatible with Android, so we'ld need to find/know of a way that works for netmite and apply that.