You mentioned Android in your first post. How are you connecting your Arduino to your Android? Or is this via B2?
I see you have two serial connections in your ino? Is that correct?
This problems are hard to debug without running your code. I suggest you create a smaller example showing the problem so you can identify the problem/bug more easily.
Kf