How to make image to move on blackberry screen - multithreading

I'm using Blackberry 9800 simulator on Eclipse IDE. my problem is that i really don't know how to make an image to move for my plam game application. Can somebody can help me.. I will really appreciate it.!!thanks in advance gys.!!

Check this BB article: The BlackBerry Graphical User Interface: Part 2 - Direct Screen Drawing.

you have to implement paint method for the field in which you want to draw image.
And note that you have to extent the field with full height & width to move the image all over the screen.

Related

How to display a webview in full screen (autofit)

I am developing a webview app.
I need that the webview covers all the content (all the space available!) but I can't get to this...
I've tried several ways but stil don't understand how to tell the webview to autofit depending on the screen.
Here is my situation now:
And this if I rotate the device
I guess this means that I'm not working in the right way, eh ? Can anybody lead me to this right?
thank you
Add this 4 constraint like this for your webView.

Upside-down splash screen with Cocos2d

I'm using cocos2d v1.0.1 for the iPhone. My app needs to support landscape left and right only. I'm adding the splash image in a rotated portrait mode so when the splash image is removed I can load a background image that is identical to it and do some animations so it appears seamless.
The problem is the splash screen is ALWAYS upside-down in relation to the background image I add. This is regardless of if my rotated portrait image is rotated left or right.
I'm using the default rotation code and setup for cocos. Any help is greatly appreciated!
I will suggest to duplicate the image and name it differently. And use it as per your need instead of using the default.png. It caused problem with me also. Instead of wasting my time I just used this way. Hope this helps. :)

Annotation in UIWebview in iphone sdk

I need help for, scribbling on the webpage i.e where ever the user moves on the uiwebview there it should draw a line according to the touch moves.
Is this possible.
Can any one please help me in this.
Thanks,
Mrudula.
yes it is possible just you have to write uiWebView.scrollView instead of uiWebView for getting coordinates of uiwebview.
I started working on something sort of like this. It doesn't currently let you "draw", but it does let you detect and record relative touch coordinates so that you can scale them correctly when zooming in. The DSAnnotationView object lets you provide a custom UIView to be toggled at the annotation point. Check it out here: https://github.com/justindarc/WebViewAnnotations
-Justin

Draw over camera using JAVA ME

I'm wondering if there is anyway for drawing somethin over the videoControl.
I tried using LWUIT but I can't achieve any result, have anybody done somethin similar? Any help will be appreciate
Nope very few devices will support this. JSR135 camera viewfinder images seem to get drawn by the hardware external to Java, and it gets drawn over whatever you already have on the screen. Nothing you can do about it :(
If you're application user don't argue slow refresh rate I think you can use snapshot feature of VideoControl.
Do not show preview of VideoControl (Hide, Make it's size as zero ...)
Take snapshot from VideoControl
Draw captured image on Canvas
Draw something on it
Do it repeatedly
LWUIT do not help for this issue. It's just graphical widget library on the MIDP Canvas.

J2ME, LWUIT (V. 1.2) - Menu bar from bottom to the right of the screen!

I'm working with the mobile graphic framework LWUIT (V. 1.2) to develop an application for Nokia N97.
Results are striking and elegant but I have a problem: when I rotate mobile screen, menu bar doesn't switch from bottom to the right of screen. Commands remain on the bottom while correspondent mobile buttons are now on the right...
Is there an event that I can intercept when the user open or rotate mobile screen? Or I have to extend some library class to make this behaviour automatic? Or anithing else?
Anyone of you can describe a solution?
Thanks in advance
I didn't use LWUIT much, but you can insert following parameter to jad:
Nokia-MIDlet-App-Orientation: portrait
This should disable auto-rotating on Nokia S60 5th.
If you want to catch an event when the screen rotates, you can check canvas.getWidth() and canvas.getHeight(). If device's screen is not square, its width and height should change.

Resources