Android Question Bluetooth Receive not working in Kitkat

Ricky

Member
Licensed User
Longtime User
I have upgrade my Samsung galaxy S4 to 4.4 and now my app is not working it uses Bluetooth to connect to a device and communicate back with the phone it send the command fine but when it receive data the app crash's.

The code i am using is from you example.

TextReader1.Initialize(Serial1.InputStream)
TextWriter1.Initialize(Serial1.OutputStream)

and when i install you example is does the same thing now crashs where is used to work before i upgraded to 4.4
 
Last edited:

derez

Expert
Licensed User
Longtime User
You should debug the application using the IDE and find where exactly and why (error reports) it crashes.
If you don't know why - publish the findings and then maybe someone could help.
 
Upvote 0

Ricky

Member
Licensed User
Longtime User
Hi Erel,

I have tried to use AsyncStreams and the same thing happens,

i have set the targetSdkVersion in the mainifest editor to
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="4"/>
and the same thing is happening
 
Upvote 0

Ricky

Member
Licensed User
Longtime User
No there is no errors, When I run it in release mode the app runs works fine and till you connect to the bluetooth module and send data to the phone it crash's and then stops the app
 
Upvote 0

Ricky

Member
Licensed User
Longtime User
this is all that comes up in the log

** Activity (main) Pause, UserClosed = false **
** Activity (menu) Create, isFirst = false **
(menu, 22) FullScreen or IncludeTitle properties in layout file do not match the activity attributes settings. (warning #1004)
** Activity (menu) Resume **
** Activity (menu) Pause, UserClosed = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = false **
** Activity (menu) Create, isFirst = false **
(menu, 22) FullScreen or IncludeTitle properties in layout file do not match the activity attributes settings. (warning #1004)
** Activity (menu) Resume **
** Activity (menu) Pause, UserClosed = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Activity (main) Create, isFirst = false **
(Main, 107) FullScreen or IncludeTitle properties in layout file do not match the activity attributes settings. (warning #1004)
** Activity (main) Resume **
** Service (backgroundservice) Start **
** Service (getsms) Start **
 
Upvote 0

Ricky

Member
Licensed User
Longtime User
I have tried AsyncStreams and it comes up with connection broke when it try's to receive a message
 
Upvote 0

techknight

Well-Known Member
Licensed User
Longtime User
My bluetooth serial apps still work after kitkat AOSP ROM flash. So i know it has to be programming/user error in this case.
 
Upvote 0
Top