08-07-2013 11:36 PM
When i use "equals" function of String class to compare 2 strings, the app will crash.
Examples : pn_infopush.equals(PN_INFO_TIMER)
I have to use "==" instead of "equals". The app will run normarly
Does anyone have clue about that ? I don't understand why.
Thanks for your support!
Solved! Go to Solution.
08-08-2013 07:15 AM
Is there a chance that your variable can get a null value?
Calling .equals no a null object might cause this.
What kind of exception do you get? Can you provide a stacktrace?
08-09-2013 03:37 AM
I recommend to launch your application directly from eclipse, then you'll have the full logcat available.
From the command line you could try to connect adb manually to the BB device or simulator: adb connect DEVICE_IP:5555
08-09-2013 05:36 AM - edited 08-09-2013 05:36 AM
I'have tried but get the error message : "unable to connect to 169.254.0.1:5555" on both simulator and phone
08-09-2013 05:49 AM
adb connect from the command line worked for me when I was running eclipse and it already connected to my device.
I think you need to have an active connection to the device with blackberry-connect -targetHost <device IP> -devicePassword <password>
But this requires you to set up ssh, generate keys for that etc.
The Eclipse plugin does all of this for you and provides logcat out of the box, so it doesn't really worth the pain to make it work from the command line, unless you need it for other purposes too.