-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem on android #114
Comments
What's the error message you are receiving? And from what line? |
App crashes and back to the system, so there is no any error message. It crashes on:
I cant find in logcat any useful information. |
Post your bluetooth.initialize related code |
function bluetooth() { function btOK() { function btFALSE() { |
Hmm, looks fine to me. Can you try using the example src and see if that gives the same result? And what version of Android are you running? |
I'm using Android 4.4.2, cordova 4.1.2, Android API 19. Example works fine (?). |
I have made very simple app - HTML load only cordova.js and my-app.js, my-app.js only initialize bluetooth and it also crashing... here is source: http://www.vad.org.pl/simple.zip. Thanks (in advance ;) for all sugestions! |
Looks fine, but I can't really determine the issue without more log and crash information. |
Sure - can you tell me what should I log? full logcat? |
Here is logcat: http://www.vad.org.pl/logcat.txt. I think it's interesting part: E/AndroidRuntime( 9102): FATAL EXCEPTION: pool-1-thread-2 |
Ahh, I figured it out. Try adding an empty parameters object even if you aren't specifying any parameters. Or change line 427 to: if (obj == null || getStatusReceiver(obj)) Will fix this when I make the next update. |
Stil crashes app :( |
I had the same problem. Passing the empty obj as parameter actually fixed it.
|
Or just make that conditional evaluate to true all the time. |
Puhhh... Finally found it! Thanks! Took me a long day of searching. |
I have made simple code that initializes BT, then scan for devices. It works properly on iOS, but the same code on Android crashes app. How to debug it? What can be a problem?
The text was updated successfully, but these errors were encountered: