image in SVG shows it on the Simulator, but not on the device

Hi all

I put theelement in an SVG file with an image that I pick up store or the SD card. I can see the image set on the Simulator, but am not able to see it on the device.

Here is the code snippet I definition of the element in the image:

SVGElement "newelement" = (SVGElement) _document.createElementNS (SVG_NAMESPACE_URI, "image");
newElement.setTraitNS (XLINK_NAMESPACE_URI, "href", dittos);
newElement.setFloatTrait ("x", 0);
newElement.setFloatTrait ("y", 0);
newElement.setFloatTrait ("width", Display.getWidth ());
newElement.setFloatTrait ("height", Display.getHeight ());
_svg. AppendChild (newelement);
Invalidate();

Thanks in advance.

~ Shri

It was with the size of the Image. Too big a picture and the device wont set it to SVG canvas.

If the scale down the image and set the image if you want to set asin SVG.

Tags: BlackBerry Developers

Similar Questions

  • Rental app run on the Simulator, but not in real device!

    Hello

    I made a simple application using GPSDemo in JDE, I get altitude, longitude, latitude... I tried in the Simulator (9000) and it worked perfectly.

    But when I put it on my BB (bold 9000), I can't get the location information. I've done some tests and I think it's because the location.isValid () return false!

    I checked the settings of the BB and the GPS is activated.

    Do you know what is the problem? And what can be the solution ?

    Thanks for your help and I apologize if my sentences are strange, I'm French and not very versed in English ^^...

    Ok! I found the solution! The problem wasn't my code, it came from the camera. I had update (outdoor) GPS data in the advanced options because it was the first time I tried to use it.

    And now it works perfectly!

    Thank you for all your help

  • Can deploy app in the Simulator, but not to the device

    Sorry about this newbie question, but how is it that a simple HelloWorld application compiled in Eclipse runs just fine on the Simulator, but cannot be installed on a 8320 Curve by the Blackberry Desktop Software?

    I use the latest version at all.  The message returned by the desktop software is:

    ! There was an error importing files.
    No additional applications can be found. Your file can
    contain applications that already exist in the list of applications,
    are not compatible for your device, or errors.

    However, I am able to deploy the application on the handset using the command line tool:

    C:\Eclipse\plugins\net.rim.ejde\vmTools\JavaLoader.exe -usb load \workspace\HelloTest\deliverables\Standard\5.0.0\HelloTest.jad
    

    This installs the application, which then runs correctly on the device.  I can then reload the list of app on the Blackberry Desktop Software tool and it shows HelloTest, but under the properties of the Application-> dependencies it says:

    "Application not available (net_rim_cldc).

    It seems that some dependence crept in the generation of the application and that confuses the desktop tool.  The curve is running 4.5 OS.

    Should I just throw this office tool, or how can I clean the application so that it installs correctly?  Obviously, this is just foreplay before building a much broader application, and I wish I had these little glitches will hamper ASASP.

    Thanks for any help!

    You should be able to download a plugin 4.5 on the site to update. Go to "help > install new software" to open the screen of software available. If you have not yet done so, add the updated BlackBerry site to your Eclipse configuration:

    1. Click on "available software Sites.
    2. Click on the button 'Add '.
    3. Enter a name such as 'BlackBerry update location' and set the location http://www.blackberry.com/go/eclipseUpdate/3.5/java
    4. Click OK, then OK again to return to the screen of the software available

    The 'working with' menu drop-down, select the location of BlackBerry Update (or whatever you named it). Expand the BlackBerry Java plug-in category and you should be able to select an appropriate plug-in version.

  • When I click on the shortcut it does not open firefox but if I hold the cursor on the short cut it shows tabs from last time, but not open them

    But if I hold the cursor on the short cut, that it shows the last tab and how many pages come from my last visit, but will not open them no matter how many times I click it

    If you think that your Firefox window can be "off-screen" somewhere, what happens sometimes to certain users, this discussion has a few things to heal that: when I go to open firefox it appears on my toolbar, but not on my screen where it is?

  • App works on the Simulator, but not on the device

    Just try to run the helloworlddemo app compiles fine and works on the Simulator without problem. All I get on the device is an icon of the application that does nothing when clicked.

    I had read this might have to do with the version of the JDE is high for the operating system on the device, but I'm running JDE 6.0.0.37 and the operating system on the device is 6.0.0.666

    I tried with my own app first, compiled, signed it and get the same result as helloworld, then its certainly some mounted sort of question but I have no idea of what

    Thank you

    Sheldon

    Thought of it - was to set the permission of application so that all 3 items were "allow."

  • Private opens in the Simulator, but not on the device

    Hello world

    I have a BlackBerry Tour 9630 (4.7.1.61). I'm running the 4.7.0 Simulator in Eclipse.

    Does anyone know why my application would open up a private in the Simulator without problem, but the browser does not open on my real device? I get no error on the device, it just goes to the next screen. I confirmed that the internet works on the device, and I don't see why use only the type of browser BIS would be a problem (I also tried BES).

    Here is my code:

    UiApplication.getUiApplication().invokeLater(new Runnable() {
        public void run() {
    
        BrowserSession session = BrowserLocator
            .createBrowserSession(BrowserLocator.BROWSER_TYPE_BIS);
                if (session != null) {
                    session.displayPage(loginUrl);
                }
    
        AuthorizeScreen authorizeScreen = new AuthorizeScreen();
        UiApplication.getUiApplication().pushScreen(authorizeScreen);
        UiApplication.getUiApplication().popScreen(OAuthScreen.this);
        }
    });
    

    Thank you!

    Thanks for your help.

    The session was to return null. I was able to reproduce this behavior in the simulator using a different type of browser not supported by the service books. Finally, I removed my own BrowserLocator() class (for the call of a certain browser) and replaced by the BrowserSessionFactory() provided in the JDE samples. I now have the browser on the opening device.

    What is the safest Bet, to use the default browser of the device, or use a browser BIS?

    Thank you!

  • GPS works on the Simulator, but not on phone

    Hello

    I created a simple application that gets the location of the device's GPS. The app works perfectly on the Simulator, but I have no GPS updates on the phone. I've been in options-> device-> Location.Settings on the phone and can see the GPS updates are coming through. But the app says there is no valid received GPS.

    I tried it on BlackBerry 9800... All I get on the phone is 'pending GPS update', that my app is displayed if no valid GPS don't trouble is received.

    Thanks in advance.

    Kevin

    C criteria = newCriteria();

    c.setHorizontalAccuracy (Criteria.NO_REQUIREMENT);

    c.setVerticalAccuracy (Criteria.NO_REQUIREMENT);

    c.setCostAllowed (true);

    c.setPreferredPowerConsumption (Criteria.POWER_USAGE_HIGH);

    LocationProvider lp;

    Try

    {

    LP = LocationProvider.getInstance (c);

    if (lp! = null)

    {

    lp.getLocation (timeout);

    lp.setLocationListener (newMyLocationListener(),-1, 1, 1);

    }

    on the other

    {

    Dialog.Alert ("sorry - your phone does not support GPS");

    }

    }

    catch (Exception e)

    {

    System.

    Err.println (try ());

    }

    }

    private class MyLocationListener implementsLocationListener

    {

    public voidlocationUpdated (LocationProvider provider, a place)

    {

    if (location! = null& location.isValid ())

    {

    QualifiedCoordinates qc = location.getQualifiedCoordinates ();

    Try

    {

    Lat string = Double.toString (qc.getLatitude ());

    String long = Double.toString (qc.getLongitude ());

    UpdateScreen ('place of registration successfully');

    }

    on the other

    {

    UpdateScreen (' Failed to day location ');

    }

    }

    catch (Exception e)

    {

    }

    }

    on the other

    {

    UpdateScreen ("waiting for GPS update");

    }

    }

    public void providerStateChanged (LocationProvider provider, intnewState)

    {

    TODO: If the provider has been disabled, then disable the reporting

    }

    }

    Try the examples of programs that you can find here:

    http://supportforums.BlackBerry.com/T5/Java-development/BBM-shareContent/m-p/1796237#M203486

    or here:

    http://supportforums.BlackBerry.com/T5/Java-development/simple-location-API/Ta-p/1145951

    See if these work on the unit.  If they do, look at the code listed and compare with yours.

  • Event Swipe works in the Simulator, but not on the device

    I'm using panels on my 9900 and I have 4 panels that the user will slide back and forth similar functioning BB app world, changing the summary of comments on signs etc..

    My expection who was up and down for scanning of touch screen functions and the touchpad has the same function by default, that is to the left and right slide on the screen should also be identical to forehand and left on the block to tack. But it does nothing for the panels when you use the trackpad.

    So I replace NavigationMovement and and can see the touchscreen and the track pad to generate a NavigationMovement event with +/-x according to the direction slide. So I'm first puzzled why hit swiping the trackpad on the left and right triggers not the same behavior by hitting swiping left and right on the touch screen.

    Accept that as a limitation of the API, I added my own features to NavigationMovement to inject a key event when user left or right on the trackpad moves. As follows:

    EventInjector.TouchEvent [] moveEvents = new EventInjector.TouchEvent [7];

    moveEvents [0] = new EventInjector.TouchEvent (TouchEvent.MOVE, 420, -1, -1, 60-1);
    moveEvents [1] = new EventInjector.TouchEvent (TouchEvent.MOVE, 360, 60,-1, -1, -1);
    moveEvents [2] = new EventInjector.TouchEvent (TouchEvent.MOVE, 300, 60,-1, -1, -1);
    moveEvents [3] = new EventInjector.TouchEvent (TouchEvent.MOVE, 240, 60,-1, -1, -1);
    moveEvents [4] = new EventInjector.TouchEvent (TouchEvent.MOVE, 180, 60,-1, -1, -1);
    moveEvents [5] = new EventInjector.TouchEvent (TouchEvent.MOVE, 120, 60,-1, -1, -1);
    moveEvents [6] = new EventInjector.TouchEvent (TouchEvent.MOVE, 60, 60,-1, -1, -1);
    EventInjector.TouchEvent.injectSwipeGesture (480, 60, moveEvents);

    It works perfectly in the Simulator, but on the device, there is no movement at all. So I thought that maybe the touchpad on the Simulator is more sensitive than on the real device, so I added a menu item to perform the injection above. Again, this works perfectly on the Simulator, but nothing on the device.

    Has anyone tried this brain left and just before the injection?  Up and down the injection works perfectly on the device.

    Have you enabled event injection in request permission settings for your application?  It is disabled by default.  You can do so by going to Options-> Application, select your application and click on change permissions.  You can also request these permissions programmatically using the class ApplicationPermission.

  • my world event working on the Simulator, but not on the device

    Hi guys,.

    I'm using BB bold 9000. I have attached directly to the device and debugging. I'm getting "background switch detected for myapp (261) that does NOT have the tunnels open - defocus is NOT called" on the device debugging. but it works fine on the Simulator (my ultimate task is slaughtering an application from another application) any idea?

    Thank you

    Thank you guys, it's worked.

  • Work of Auditors in the Simulator but not actually "BOLD"

    Hey - if anyone knows how to get a "BOLD" handset to allow listeners (PhoneListener, KeyListener, OutboundMessageListener) I would appreciate it. My app uses listeners and works very well in the Simulator, but only sporadically on the actual handset. Does anyone know how it works?

    See you soon,.

    Justin Dutoit

    I think you need to post a snippet of a listener of non-working, if you want to help more with this.

  • The following HTTP requests fail in the Simulator, but not on the device (4.2.1)

    Anyone had this problem before?  I do a HTTP request and then according to the return add another to my queue and the other repeatedly fails on the Simulator.  However, I tried to run on the device and everything worked perfectly.  I know this is a pretty vague description, but I was wondering if there was any problem known about.  He could make debugging in the simulator that is very difficult in the future.

    marchywka, I think it has something to do with the WiFi in the Simulator.  It works the first time, but in certain circumstances later fail.

    I couldn't understand it, but I decided to not use WiFi when it is the Simulator and use WiFi on the device.

  • How to create ePUB with full-size images/pages to adjust according to the device?

    Friendly greetings,

    I tried, for almost two months, to convert/create my 7 books that are printed in electronic books; with the first edition had to be Nook, with Kindle on the list. Unfortunately, I am still working on just get the first one published! And I could really use any assistance to get this figured out. My intention was to publish several weeks ago... now my despair must publish before the weather gets too hot and the children are outdoors most of the time... or at least not later than Easter. (: 0)

    First of all, my books are books of photo/poetry for children of all ages. They were all designed in Photoshop, where I also created images full size for the first eBook. I received the specifications of B & N for the different devices of Nook. In the assumption that it would be better to create the largest files, thus allowing smaller size devices to fit the page accordingly to fit and the most important would not encumber a smaller image, I size my pages to 1280px x 1920px at 72 dpi. (now I hear 150 is standard?)

    My text is included in the image that design is an image = a single page. I've included a version only the full text of the poem/story at the end for those who want to set the text or use a voice reader. I obviously all original, but for the publication they were all saved as jpg.

    After a fight and a lot of frustration, I managed to finish the manuscript for Barnes and Noble Nook press Manuscript Editor. My internet is molasses and so much of this has been done in the wee hours of the morning when the rest of the time zone is asleep. I had only a page with a problem, an additional empty line/space was irreparable. I published and it had been completely sloppy to be published, although the preview looked a-okay. Only on the upper left of each image/page 1/6 was visible in the corner of my laptop to PC or Nook of my Tablet Android App. So I desperately waited another 10 hours, hoping that no one would buy my book Meanwhile, so he could be removed from the sale.

    I downloaded a demo of InDesign CC, and after two weeks of not even being able to create a new single document for some reason any twisted, I bought a month membership. So far, I am not entirely convinced of this creative Cloud malarkey together, as much... that, like I said my internet is slow... it took me nearly 20 hours just to download the software. (It is really difficult to provide records, seriously?) After a cat and a phone call that I can, in theory, now use InDesign.

    I created a new Document for Digital Publishing to the above specifications (1280 x 1920 px). I did rectangle the size of the page placeholders and place one image per page. This usually inserted the image to 50% and I have to select 100%, and then move them if necessary to place.

    So my first question is: is it possible to place an image at 100% without having to do this step further resizing? Or is there another way to place the image in the size of the page without any of these other measures that would be too good.

    Well, after placing several pages/images I have also selected each and went to Options of Export Object and checking the rasterization of Custom and "resize to text Flow.  I then exported ePUB trial to see how it would look. On the PC and tablet in landscape mode it was far better than the other, but about oh 1/3 from the bottom of each page was cut. On the Tablet, I turned to portrait and voila full page. Woohoo! But alas, I don't want to limit it.

    is there something I am doing wrong? Did I miss a step or two somewhere so that the complete picture should appear on the page? I feel like I'm about to turn the page on this thing, but he's stuck in the one after that.

    I would greatly appreciate any insight, advice, help anyone can offer. I ran the gauntlet of Barnes and Noble... cough, cough... support and apparently I ask questions that cannot respond to any press corner rep and the forums out there have no idea about InDesign. It's almost like with all fantastic beautiful screens out there today nobody wants to picture books! How National Geographic?

    Thank you very kindly.

    In case it is necessary: my laptop using Window 7 64 bit Pro, InDesign CC is 64-bit and my 10.1 Android tablet. I can view the EPUB files in the corners for PC and Nook for Android. I also have a Kindle, LumiRead and various other applications on the tablet. I also have someone get a glimpse of the finished epub, if needed, on a Mac, iPad, or Android phone... even if I don't have not one of these. Don't know who has a corner I can look good. Thanks again.

    Q: is it possible to place an image at 100% without having to do this step further resizing?

    Here I think you want your images to fit within size full page automatically. For this, you can try the following steps:

    1. create a new doc

    2. menu Goto object, and then choose image mount options

    3. Select adjust automatically and fitting drowdown, select "adjust the content to the frame. See the screenshot below:

    After that, your images should adjust automatically in full page placeholder images. Please let me know if this does not work or if the problem you are experiencing is different and I did not understand your problem correctly.

    Kind regards

    POOJA

  • Qosmio F16 - 14Q - internet USB device showing! in the Device Manager

    Hello

    "my USB device that connect to the internet does not and I wanted on this subject in the Device Manager, it appears under the drive of cd-rom and other two devices below the CD with"! "sign and then I removed the cd-rom drivers.

    Can some give me a link to download the cd-rom driver and help make my USB device work?
    On the drivers, I didn't know my kind of Qosmio in the driver list, he writes back the Qosmio F16 - 14Q.

    Please help me

    I put t know what USB device do you use but if it doesn't work, you must have the driver for this device of some. Part material Toshiba doesn t support third so try please talk with your internet provider and ask for help.

    Another thing: I put t know where you bought your Qosmio but I assume it has been offered to Pakistan. The right support page should be http://asia.toshiba.com/pakistan

    As far as I know, optical drive uses the standard Microsoft driver so that you won't find a driver for the CD-rom drive.

  • USB key shows in 'remove hardware safely', but not under the heading of discs

    The first time I used this USB flash drive, I transferred my library iTunes from my old computer to my new laptop and it worked, but now when I plug the flash drive, nothing comes up on my laptop.  The flash drive will appear on the taskbar under 'remove hardware safely', but it is not recognized under the heading "devices with removable storage".  I tried the flash drive on other computers to see if it's just my laptop but nothing appears on the other computers either.  What should I do?

    Hi kkaydance,

    Let us first check if AutoPlay is enabled, follow these steps

    Step 1: AutoPlay  

     

    1. open AutoPlay by clicking the Start button, clicking Control Panel, on material and audio and then click AutoPlay.

    2 choose an action each time you plug in a device or insert a disc.

    AutoPlay

    http://Windows.Microsoft.com/en-us/Windows-Vista/AutoPlay-frequently-asked-questions

    Step 2: Locate the device in Device Manager

    1. open Device Manager by clicking the Start button, click on the Control Panel, clicking system and Maintenance, and then clicking Device Manager.

    If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    2. in Device Manager, look for the USB device, and then double-click the device name.

    3. under the gaze of general tab for the status of the device for any error code indicated.


    http://Windows.Microsoft.com/en-us/Windows-Vista/get-help-with-Device-Manager-errors

    If the problem persists,


    Step 3:
    run the fixit provided in the link below.

    http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-solving-problems-with-USB-devices

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Can I extend the horizontal slide show in a straight line but not full page from top to bottom?

    Can I extend the horizontal slideshow in a straight line on the page from start to finish, but not full page up and down?

    Hello

    Please check these videos to help:

    https://www.YouTube.com/watch?v=BDgERSf2a5k

    https://www.YouTube.com/watch?v=diUtfwFGI1w

    Thank you

    Sanjit

Maybe you are looking for

  • BIOS password

    I sold a lot of 32 HP ProBook 6560 b and HP Compaq Pro 6200 microtours and all machines have disappeared, but the customer called and said that they cannot pass the BIOS password.  My company has not set a BIOS password, so I don't know how he can go

  • After updating my Satellite A200 does not start

    I tried to update my laptop A200 - 1 MB, but during the process of updating the power down, I try to start computer once again, but no POST at all.Please what can I do?

  • slow dvd burning

    I have a 1140i burner and it worked great for about a month, but has recently started to read and burn at 2 x max. It was read and burning at 16 x what can I do?

  • Z585 Ideapad - display turns off after 1 Minute

    Hi all I just bought a new Ideapad Z510 (Core i7 4702MQ, GeForce GT 745 M, display Full HD, 1 TB HDD + SSD. I have a strange problem: when I connect to an external monitor via HDMI it shuts down after a few minutes. The same display connected via VGA

  • All my emails and contacts are gone? How to recover?

    This morning I have connected to my hotmail account and EVERYTHING disappeared.  No emails... No contacts.  How can I retrieve this information?  Help, please!