Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
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.