blackberry

exposing methods as web service operations in winform

落爺英雄遲暮 提交于 2019-12-08 11:26:33
问题 can't I expose my methods as webmethods in a winform and have other clients call them as webservice? Basicall I am trying to get my winform app to host a webservice without asp.net or iis. I am trying to get a ^% &^& blackberry to communicate with my winform app....tried for hours looking for some other way of getting the two to talk without http webservice. I was looking at UDP but & & BB does not provide any documentation for Visual Studio development other than webservice. 回答1: One thing

how can i call background application from ui Application+blackberry

瘦欲@ 提交于 2019-12-08 10:43:24
问题 i am trying to make a uiapplication If i click on a button then a background thread must start which should run even when my application is exited how can i do that I created a background thread but it gets stop when the app exits. 回答1: Create your application as a system module that starts automatically and runs in the background. You can have an alternate entry point that will pass an argument to the main app to start your GUI. When you exit the GUI it won't exit the entire application. 回答2

How to check for an active internet connection in blackberry SDK?

风流意气都作罢 提交于 2019-12-08 09:14:42
问题 How can we check internet connection is available or not in a blackberry application? When I send request to my server that time I want to check my device connection availability. 回答1: Hi u can test your connection by this code. public static boolean isConnectionAvailable(String networkName) { HttpConnection connection; try { HttpConnectionFactory httpConnectionFactory = new HttpConnectionFactory("http://m.google.com"); connection = httpConnectionFactory.makeConnectionUsing(networkName); if

Blackberry error: “Module attempts to access secure API”

放肆的年华 提交于 2019-12-08 09:14:30
问题 I am trying to run my application on Blackberry 9360. I am getting an error: Module attempts to access secure API I have already signed the application, but still I am getting this error. Can anybody tell me the solution? 回答1: You will need to sign the code every time you make a new build. I had to move the code over to blackberry device using Eclipse > > Load Project(s) on device, as opposed to using blackberry desktop manager. If you are using Windows, make sure you have turned UAC off. 回答2

HTTPS page not loaded on BrowserContent

╄→尐↘猪︶ㄣ 提交于 2019-12-08 08:21:36
问题 I am implementing an embedded browser in my app, and because it has to be compatible with OS 4.0, BrowserContent is my only choice. When opening a HTTPS page the screen is blank, but this problem doesn't occur when a BrowserSession is used. So I put a println after the BrowserContent part, and it doesn't show up in the console output. So I think this is something wrong with that. class BrowserScreen extends MainScreen { private RenderingSession _renderingSession; private HttpsConnection

The difference between blackberry simulator for debug/run in eclipse

戏子无情 提交于 2019-12-08 08:21:30
问题 When i click Run -> Debug Configuration there will be a 3 different types of simuator : blackberry simulator blackberry device and blackberry simulator(running) Which one should i use? This is the picture : And everytime i want to debug my code in the simulator(f11), the annoying question will be appear. This is the picture : My questions are : which one should i use? what is the different? and is there any way to make the annoying question (2nd picture) never appear again? (I dont know what

what is this control and how to use it in BB 10 cascades for navigation

自闭症网瘾萝莉.ら 提交于 2019-12-08 07:38:53
问题 I need to develop a bb 10 cascades app in which i need to add a control like in this image http://subefotos.com/ver/?37868d57047746ce1ea9ca55b7637e9eo.jpg#codigos (rounded in red color) when i touch on second bubble, i need to show second screen ,for third bubble third screen and so on. Default screen should be displayed is first screen(first bubble high lights) but how to do it in BB 10 cascades and what is that control called in bb 10? Please help, Thanks !!! 回答1: -------AM ADDED PAGE

How can I invoke the Blackberry camera and save the picture that is taken in my code?

柔情痞子 提交于 2019-12-08 07:35:42
问题 I'd like my user to take a picture as an attachment by using the built in camera. Is there someway to invoke the camera on a button press and save the resulting taken picture? 回答1: The other option is to use the BlackBerry Invoke API to start the native camera application and listen for a file system event: Invoke.invokeApplication(Invoke.APP_TYPE_CAMERA, new CameraArguments()); then, later: class FileExplorerDemoJournalListener implements FileSystemJournalListener { public void

String Formatting + Blackberry + java

最后都变了- 提交于 2019-12-08 07:24:29
问题 I am facing a bit problem with formatting of string. In my application I need to send an email to a web service.The format of the email need to be like this Name Class Section Position Sam 5 A 1 Joseph 7 C 4 For this I have used /n and /t for line breaks ans spacing. But the real problem is with the 'Name' item. The length of 'name' item varies. Currently my approach is that I am taking a reference string sufficiently long and padding blank spaces in each name string until its length is equal

tunnel failed in blackberry bold. why?

冷暖自知 提交于 2019-12-08 07:17:06
问题 I created a j2me program and ported it to the blackberry bold. The program does some http queries. Every now and then these fail with the exception: 'tunnel failed' My APN settings are correct (since sometimes it does work). I connect with ' ;deviceside=true ' appended to the url I notice that when the browser has just been active, the program always works. However when the browser hasn't been active for some minutes and I start the program, I get the tunnel failed errors. 回答1: The problem