← Back to team overview

meadl-devel team mailing list archive

Re: Debugging Android client

 

Thanks, Jorge.

I apologize for the bugs on the first try. I didn't do any testing in a virtual device with the constant thought that I had no access to bluetooth connection. I should have mocked a bluetooth object to test other parts of the demo program.

Don't worry about me losing sleep once in awhile. Losing sleep is essential for learning and it's a good sign that I am truly gaining new knowledge and experience on software development.

Cheers,
Eric

Quoting Jorge Silva <jorge.silva@xxxxxxxxxxx>:

Sorry, I meant to say the application connects to the Bluetooth module
and receives data from it.

cheers!
Jorge

On 05/26/2010 06:04 PM, Jorge Silva wrote:
Hola Eric,

You did a very good job! I made some changes to your code to get the
program running on my phone. You can see the changes here:

http://bazaar.launchpad.net/~jorge-silva/meadl/btcomm-switch-event/revision/10

The application connects to the phone and receives data (I know this
because I was debugging), but crashed when displaying it (the activity
seems to never come back from spawning the thread, so it never displays
anything). I also turned your 'if' statements into a switch-case for
now, which will not fix the bug but makes it a bit easier to follow the
code. I didn't have a chance to test though since Zongyi has picked up
the board. I'll have to set up a computer client or the other arduino
board to keep debugging your code.

You can try merging my changes to your branch in the meanwhile with:

bzr merge lp:~jorge-silva/meadl/btcomm-switch-event

Get some sleep!

cheers!
Jorge







Follow ups

References