How to implement by scanning image for Blackberry 5.0 and later version OS devices?

Hi all
I need to develop the functionality of drag in an application. To do this, I added five bitmapfield in five different verticalfield Manager and these five verticalfiled have been added in a horizontalfield with the Horizonatal Scroll property manager. And try to implement features of shot using Touch events. Code below works for Blackberry OS 5.0 devices, but its does not work in Blackberry 6.0 and later OS devices.

protected boolean touchEvent (TouchEvent message)
{

try {}
int x = message.getX (1);
int y = message.getY (1);

int eventCode = message.getEvent ();
if(eventCode == TouchEvent.Down)
{
DX = x;
DY = y;
}
Another yew (eventCode is TouchEvent.UP)
{

UX = x;
UY = y;

disX = Dx - Ux;
disY = Dy - Uy;

If (disX > (Display.getWidth () / 3) & this.index)<>
{

If (this.index<>
This.index ++;
vfmImage [this.index] .setFocus ();
System.out.println ("disX:" "+ disX +" different: "+ (Display.getWidth () / 3) +" Index: "+ this.index);

}

ElseIf (disX < display.getwidth()="" -(display.getwidth()="" +="" display.getwidth()/3)="" &&="" index=""> 0)
{

if(this.index>0)
-This.index;
vfmImage [this.index] .setFocus ();
System.out.println ("disX:" + disX + "different:"+(Display.getWidth()-(Display.getWidth() + Display.getWidth () / 3 ")) +" Index: "+ this.index);

}
on the other
{
if(index==0)
{
vfmImage [1] .setFocus ();
}
on the other
{
vfmImage [this.index - 1] .setFocus ();
}

vfmImage [this.index] .setFocus ();

}

}

}
catch (System.Exception e)
{
Dialog.Alert ('catch');
e.printStackTrace ();
}
Return super.touchEvent (message);
}

Thank you
Sylvie

Hello

Use this api
http://www.BlackBerry.com/developers/docs/5.0.0api/NET/rim/device/API/UI/extension/component/picture...

Kind regards
pp

Tags: BlackBerry Developers

Similar Questions

  • Minimum speed required for Esx 3.0 and later versions

    Hi all

    I had install esx 3.0 on my (gateway laptop dual core 1.6 Ghz cpu). But when I connect through the Victoria Cross, it takes a lot of time (continuous rotation) and once it connects, and many times it times out. Then I thought of her as the lower cpu speed. Memory was 3 GB. Even if he signs it doent let me add a virtual machine inside the VC.

    (1) what is the minimum speed we need to install VC, ESX and VIC. I ask this because I was looking to buy a desktop imac 2.16 GHz or a mac mini to 2 GHz. I don't want to take any chances. I think 2.4 Ghz will be more than enough.

    (2) what products after version 3 can be installed on a desktop/laptop computer?  Can we 3.5 install following the same doc xtravirt? What the thin version of Esxi?

    Thanks for any help,

    REDA

    You would execute this VMware Fusion then?

  • How to load a scanned image to facebook?

    How to load a scanned image to facebook?

    I don't know, but I'm sure that the answer will not associate Adobe Reader.

  • How to improve a scanned image of a document

    I received a scanned image (to 600ppp in TIFF format) a will written in 1782.

    Most of the ink has faded over time, where only lower 1/3 is actually readable.

    The scanned image of the will, is the best version I've seen of this will, to this day.

    However, the majority of the ink is still quite faded to not be readable/transcribed.

    Y at - it a hope of improvement in the image so that it can actually be readable, so transcription of the Act.

    Thank you for your time, consideration, and cooperation, I really appreciate.

    Hello! There are a few different methods, you can try, I would recommend save another file to modify/play with, until you reach your result desired. Play with the brightness, contrast and sharpness are some to help you improve the document.

    Below, I've posted some useful links.

    http://DCRP.CED.Berkeley.edu/resources/graphicstutorial/NewPage/Photoshop/C-2-%20Editing%2 0scanned%20images%20in%20photoshop_r1.pdf

    Please post back with questions, if any of the links above help, you can post and the image of the document so that users here can give advice.

    Janelle

  • How can I have the link for the student downlaod PS6 PS version?

    Hi all

    Who can help me?

    I have the product key to student PS6 PS version but I lost the installation CD. How can I have the link for the student downlaod PS6 PS version?

    Thank you

    CS6 - http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html

  • How can I add session variables for the subject field and the body of the e-mail Message?

    How can I add session variables for the subject field and the body of the e-mail Message? Tried several combinations, but do not seem to correct the syntax.

    This is the code I have. I need to change all the form variables in $msg in session variables. The $to part is supported. What remains are the $subject and $msg fields.

    $à = « à : ». $_SESSION ["toemail"];
    $subject = '$firstname $lastname, your registration details ';
    $from = "from: [email protected]"; "
    $msg = "Dear $title $firstname $lastname\r\n\nThank for the registration for the design of your dream Home.\r\nWe have received this following details details of you-\r\n\nClient-\r\n\nOccupation: $occupation \r\nPhone No.: $phone \r\nE-mail: $email\r\n\nPresent $ location: \r\n location\r\n\nPresent address: \r\n$ address\r\n\n\nFollowing are specified by you - design requirements \r\n\nBasic Features\r\n\nNo." floors: $floors\r\nNo. of bedrooms: bedrooms\r\nNo of $. of bathrooms: $bathrooms\r\nFloor region: $sqft\r\n\nFurther Suggestions: $ Plan\r\n\nSplit one further\r\n\n\nType floor: $splitfloor\r\n-remarks: $splitfloorremarks\r\nOpen floor: $openfloor\r\n-remarks: $openfloorremarks\r\n\n\nList of the rooms to be Included\r\n\nFoyer: $foyer\r\n-remarks: $foyerremarks\r\nDrawing: $drawing\r\n-remarks: $ alive drawingremarks\r\nFormal: $formalliving\r\n-comments : $ alive formallivingremarks\r\nFamily: $familyliving\r\n-remarks: $familylivingremarks\r\nHome Office: $homeoffice\r\n-remarks: $homeofficeremarks\r\nDining: $dining\r\n-remarks: $diningremarks\r\nMaster room: $master\r\n-remarks: $masterremarks\r\nMaster bathroom: $masterbath\r\n-remarks: $masterbathremarks\r\nMaster Dressing: $masterdress\r\n-remarks: $masterdressremarks\r\nBedroom: $bed\r\n-remarks: $bedremarks\r\nBathroom: $bath\r\n-remarks: $bathremarks\r\nDress: $dress\r\n-comments : $dressremarks\r\nStudy: $study\r\n-remarks: $studyremarks\r\nLibrary: $library\r\n-remarks: $libraryremarks\r\nPowder room: $powder\r\n-remarks: $powderremarks\r\nPrayer room: $prayer\r\n-remarks: $prayerremarks\r\nKitchen: $kitchen\r\n-remarks: $kitchenremarks\r\nPantry: $pantry\r\n-remarks: $pantryremarks\r\nUtility/area of work: $utility\r\n-remarks: $utilityremarks\r\nBalcony: $balcony\r\n-remarks: $balconyremarks\r\nStore: $store\r\n-remarks: $storeremarks\r\nLaundry : $laundry\r\n-remarks: $laundryremarks\r\nVeranda: $veranda\r\n-remarks: $verandaremarks\r\nCar porch: $carporch\r\n-remarks: $carporchremarks\r\nGarage: $garage\r\n-remarks: Theater garageremarks\r\nHome $: $theater\r\n-remarks: room of $theaterremarks\r\nMaid: $maid\r\n-remarks: $maidremarks\r\n\nOther general remarks: $general\r\n\nPlease note that the fields have been left blank in your form will be considered undecided details and used in discretion.\r\nIf of the architect , it better to add more later, design requirements please feel free to reply to this email with the details. « ;
    $fla = mail ($to, $subject, $msg, $from);

    Thanks in advance!

    askintrades wrote:

    How can I add session variables for the subject field and the body of the e-mail Message?

    What you want to do? Given the nature of your question, it seems that you probably don't know what a session variable is used. The PHP manual describes the purpose of sessions here: http://docs.php.net/manual/en/intro.session.php.

    I need to change all the form variables in $msg in session variables. The $to part is supported. What remains are the $subject and $msg fields.

    $à = « à : ». $_SESSION ["toemail"];

    Why do you need to change the form variables in session variables? They are already stored in session variables, or they come directly from the form?

    The $to part is not supported. When you pass $to to the mail() function, it should contain only an e-mail address, not a string that begins with "to:

  • How to implement point filters fixed for FPGA

    Hello!

    I am applying the bandpass filter Butterworth for FPGA.

    I managed to develop filters of fixed point that suits my needs, but I don't know how to implement on a table in a project after the FPGA code generation. I tried to understand it in the examples, but I was not very successful.

    My time to finish what runs, any help would be really appreciated...

    Any suggestions?... some examples?

    Thanks in advance

    I've already done that and solved the problem.

    In any case thank you and have a nice day

    Ljubica

  • Cascades: How to set the background image for the menu drop down and etc...

    Hello

    Is there an easy way to set the background image for the menu drop down and etc, current support only black as a background?

    Thank you

    Tom.

    Welcome to the forums!

    This is currently not supported unfortunately.

    I encourage you to save a feature for this request:

    https://www.BlackBerry.com/JIRA/secure/dashboard.jspa

    See you soon!

    Martin

  • How to develop the Rss reader for Blackberry java?

    HII,

    This is my first post in this forum, I'm new mobile app, can everyone, how to develop the Rss aggregator for java Blackberry?

    I've attached a zip file which would be useful for you, check it out it's a RSS reader coll, I used some of the techniques for my application, please mark as solution, thank you.

  • How to make a URL shortcut for Blackberry device homescreen for delivery

    Hi, I did some research and it seems confused. So I thought I would ask here.

    As we know to Blackberry 6.0, there is possibility to save a URL as a shortcut to the home screen.  The URL will be different for each device, so it could be sent to the user via email and they might click on it and open it in the browser and save on the home screen.

    However my question is how to do this automatically. Could press us the shortcut (different URL for difference appliances) through the BES Server? Is there another way if there is no BES Server?

    By running this c# application: http://supportforums.blackberry.com/t5/BlackBerry-Push-Development/Sample-code-A-simple-C-push-appli..., I am capable of pushing the a url shortcut to both Blackberry 6.0 and 5.0 simulators. This would allow us to push different URLS for different devices.

  • How to bring existing J2ME app for BlackBerry

    Hello

    I have several existing J2ME applications (for Sony Ericsson, Nokia etc.) CLDC1.1 MIDP 2.0.

    Now I would like to run on BlackBerry.

    Usually, I use the latest eclipse 3.5.1 (using MTJ and history eclipseme),

    but had to go down to 3.4.1 for BlackBerry IDE plugin installed (correct or is there a way to stay with eclipse 3.5.1?)

    The HelloWorld BlackBerry now works very well in the Simulator.

    But how can I tell my existing J2ME Midlet eclipse projects to be aware of BlackBerry?

    How to run them on the BlackBerry Simulator or real BlackBerry?

    Thank you
    Marcel

    Thank you very much, I did it today.

    I just my approach (steps) in another thread:

    http://supportforums.BlackBerry.com/T5/Java-development/how-debug-normal-MIDlet-Eclipse-project-with...

    I'm closing this thread, the other thread is always open to collect more information on this problem.

    Marcel

  • BlackBerry smartphone how to download the file Word for Blackberry 9700

    How to download word for blackberry 9700?

    I launch Desktop Manager-> Media-> Media Manager, but it fails.   But I can't find any icon to transfer files from PC to device Backberry word.

    My Blackberry is 9700, V5.0.0.330 (Platform 5.1.0.91)

    A word document is not that a media file would be my first assumption on why it would fail using the Media Manager.

    Have you tried attaching the file to an e-mail and send to yourself or the document and connect your device to your PC and drag and drop into document folder in the memory of your device or media?

  • How to implement a WYSIWYG editor for WebApp in Business Catalyst

    I created my own WebApp in Business Catalyst and I want to implement a WYSIWYG editor for custom fields of multi line string.

    Can I use the one that BC is used in the WebApp admin interface?

    I see they use radeditor and I wonder if I can implement this in my own WebApp interface?

    I worked around this by implementing my own tinyMCE function, but the only thing that escapes me is the ability to insert images through a picker file dialog box. In my view, there is a paid plugin to tinyMCE to implement a file picker, but I don't know if it would work with Business Catalyst, or if I then it must also implement an ASP connector with it to find the files (which I guess we wouldn't have access to).

    Can we use WYSIWYG in British Colombia application in our own WebApp intefaces?

    Hello

    Could you please visit this link and see if this helps you to achieve what you are looking for.

    One-third of the online resources for web developers

    Under "Improved the text editor"

  • How to export Illustrator images for iOS 7 iPad and iPhone

    How to make an asset I have created in Illustrator and save them in resolutions appropriate for iOS (retina, non-retine, iPhones and iPads, etc.)?

    I looked at these pages, but they did not help me understand what to do in Illustrator to get the result intended:

    http://beageek.biz/how-to-create-launch-images-app-Xcode-iOS/

    http://www.idev101.com/code/User_Interface/launchImages.html

    http://www.Axialis.com/tutorials/make-iPad-icons.html

    Please don't give answers about Flash, Adobe AIR or Photoshop. These applications, including Adobe AIR are not what I need assistance.

    The question is about Adobe Illustrator.

    I'm building an application in xcode on a MacBook Pro and using Adobe Illustrator CC.

    Thank you

    W

    Should be OK to create your image in the respective pixel dimensions, and then export to 72 dpi.

  • How can I change the images for af:statusIndicator?

    The default icons (occupied and unoccupied) have a deep blue background, which is different from our background color selected for the application.

    According to the documentation of ADF for Section 16.6 Web development:

    "... you can use skins to change the actual image files in the component."

    Is there a code example on how to modify the image for af:statusIndicator?

    Hello

    You can check [this post | http://forums.oracle.com/forums/thread.jspa?threadID=615673] for some samples.

    Arun-

Maybe you are looking for