blackberry-eclipse-plugin

Http connection error on the blackberry real device

限于喜欢 提交于 2019-12-02 03:10:26
I am trying to build a simple application for testing purpose in which I am making a simple Http connection .The code is running perfectly on the simulator but when I am testing the app on the real device it is not returning any response code. I think there is some error in http connection . Here is the code that I am using for http connection: httpConnection = (HttpConnection)Connector.open("http://www.google.com"); The device that I am using is Blackberry 8520 v5.0.0.592 Also give me some tips on how to do the debuging of any app from real device using eclipse plugin. Thanks in advance. If

Send JSON Request from blackberry application

拜拜、爱过 提交于 2019-12-01 14:34:16
how can i send JSON request from blackberry application that works as client to the server to get an information from the server to use them in BB application i use blackberry eclipse under windows 7 i try this code public void loginRequest() throws IOException, JSONException{ HttpConnection c = null; InputStream is = null; int rc; JSONObject postObject = new JSONObject(); postObject.put("method", method); //postObject.put("params", Parameters); try{ c = (HttpConnection)Connector.open(urlPath); // Set the request method and headers c.setRequestMethod(HttpConnection.GET); c.setRequestProperty(

Send JSON Request from blackberry application

五迷三道 提交于 2019-12-01 13:44:22
问题 how can i send JSON request from blackberry application that works as client to the server to get an information from the server to use them in BB application i use blackberry eclipse under windows 7 i try this code public void loginRequest() throws IOException, JSONException{ HttpConnection c = null; InputStream is = null; int rc; JSONObject postObject = new JSONObject(); postObject.put("method", method); //postObject.put("params", Parameters); try{ c = (HttpConnection)Connector.open(urlPath

HttpConnection not working in real device -Blackberry

我怕爱的太早我们不能终老 提交于 2019-12-01 10:25:17
问题 this is my code public String Serverconnection(String url) { String line = ""; if (DeviceInfo.isSimulator()) { url = url + ";deviceSide=true"; } try { HttpConnection s = (HttpConnection) Connector.open(url);//*i get the exception here* s.setRequestProperty("Content-Type", "application/x-www-form-urlencoded"); s.setRequestProperty( "Accept", "text/html,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"); s.setRequestProperty(HttpHeaders.HEADER_ACCEPT

Blackberry runtime error: FRIDG: could not find img/logo.png

时光怂恿深爱的人放手 提交于 2019-11-28 14:34:22
I recently had to prepare a BB app for submission to the BB app world, but I have an issue when running the app. Basically, I've created a new Blackberry project, using the "use existing source" option to point to the sources I've got from the developer that actually developed this app. Building the application just works, but when I want to start the app it immediately quits with a NullPointerException. When debugging the application, the debugger halts at the following line: Bitmap bitmaplogo = EncodedImage.getEncodedImageResource("img/logo.png").getBitmap(); With the following error: [0.0]

BlackBerry simulator can connect to web service, but real device can't

微笑、不失礼 提交于 2019-11-28 12:53:48
I am developing BlackBerry application that connects to the web service. When I developed on simulator, I used BlackBerry MDS for simulator and everything just went fine. My application (running on simulator) can connect with my web service perfectly. Please note that the simulator and the web service are on different PCs. Now, my project is done. I tried deploying my app to the real device (BB 8520). When I used the app on the device, I found it can't connect to the web service. I did a research on the Internet and I am sure it must be due to MDS issue. It seems like I have to do something

Blackberry Apps - Importing a code-signed jar into an application project

醉酒当歌 提交于 2019-11-28 10:26:42
I'm working on a library project that Blackberry Java developers can import into their projects. It uses protected RIM APIs which require that it be code-signed, which I have done. But, I can't get my Jar imported and working with a simple helloWorld app. I'm using the eclipse plug-in Blackberry-JDE. EDIT : Solution found.... since I found the solution I removed the things I've tried, leaving only the solution ... BUILDING THE SDK/Libary (use BB-ANT-TOOLS, either in eclipse or standalone) steps: A) I had to build my SDK's jar as an 'cldc' application not as a 'library' project, using BB-ANT

BlackBerry - use own JAR file in own project

橙三吉。 提交于 2019-11-27 08:43:01
(I have solved my problem, so have edited it to look more like a blog post - the final working solution has been placed as an "answer" below.) Aim I want to package our BB libraries (v4.5 OR v5.0) into JAR format, so we can give application source code to clients WITHOUT giving library source code. Workaround Currently, I have my SDK, and my apps, all setup with source code, as different projects in the same workspace. All projects compile. My SDK is setup as a library project, my apps as applications. In each app, I add the SDK project to the build path. Eclipse handles the build perfectly,

Blackberry runtime error: FRIDG: could not find img/logo.png

风流意气都作罢 提交于 2019-11-27 08:29:01
问题 I recently had to prepare a BB app for submission to the BB app world, but I have an issue when running the app. Basically, I've created a new Blackberry project, using the "use existing source" option to point to the sources I've got from the developer that actually developed this app. Building the application just works, but when I want to start the app it immediately quits with a NullPointerException. When debugging the application, the debugger halts at the following line: Bitmap

BlackBerry simulator can connect to web service, but real device can't

陌路散爱 提交于 2019-11-27 07:22:19
问题 I am developing BlackBerry application that connects to the web service. When I developed on simulator, I used BlackBerry MDS for simulator and everything just went fine. My application (running on simulator) can connect with my web service perfectly. Please note that the simulator and the web service are on different PCs. Now, my project is done. I tried deploying my app to the real device (BB 8520). When I used the app on the device, I found it can't connect to the web service. I did a