I've altered my rfcomm.conf to connect on channel 0 and then rfcomm
listen hci0 0 which starts it listening. However the phone tries to
connect for a bit then fails. It sounds like this problem here.
I'll fire up my other laptop and scan mine in a bit using sdp.
Code is here: https://github.com/eb4890/qrblue if anyone wants to test.
It is a MyFirstAndroidApp and also the first bit of java I've written
for a while, so mainly bits copied and pasted.
I suspect I need to setup the UUID to be the same (I'm using a generic
SPP UUID I picked up from somewhere). Anyone know a way of doing this
easily (python) for testing purposes? Or do I need to borrow some
hardware?
Will
It uses the semi-standard barcode scanner app. Which is open source so
we could rip the code out if we can't find a way of bundling it.
Also it now works!
Also I am anti-ADK at the moment as it requires android 2.3. However
with a USB host we could do ADB stuff like
http://code.google.com/p/microbridge/
This does rely on the user being able to put their phone in debug mode.
Will
So I'm going to make it an Activity to be inherited from, so you get
direct access to the socket.
Will
Mind posting the source somewhere? I've been looking for an example of
a service that gets data and then informs (potentially multiple)
activities of the data it gets. Does it rely on setting up the intent
again each time (a la comet requests), so that you can use
Activity.setResult () or does it have to be done by making the gui etc
broadcast listeners(I've not looked at those)?
Will
While I think about it I'll knock up some simple GUI tests too
Thtf might be because you are trying to open a socket in a background thread.