Someone at - he used CameraRoll yet? Seems completely broken.

I am currently implementing navigation for a file using the CameraRoll since File.Browse () methods are still badly broken. I have implemented a method of load using the example of the documentation. Unfortunately, it seems simply crash the application. Here's the code to date.

private function load(e:MouseEvent):void
{
    trace("loading");
    menu.close();
    if( CameraRoll.supportsBrowseForImage )
    {
        var mediaSource:CameraRoll = new CameraRoll();

        mediaSource.addEventListener( MediaEvent.SELECT, imageSelected );

        mediaSource.browseForImage();
    }
    else
    {
        var myFile:File = File.documentsDirectory;
        var filter:FileFilter = new FileFilter("Images", "*.png;*.jpg")
        myFile.browse( [filter]);
        myFile.addEventListener(Event.SELECT,chooseFile);
    }
}

private function imageSelected( e:MediaEvent ):void
{
    trace(e.target.nativePath);
    img.setImage(e.target.url);
}

private function chooseFile(e:Event):void
{
    trace(e.target.nativePath);
    trace(e.target.name);
    var name2:File = File.desktopDirectory.resolvePath(e.target.name);
    trace(name2.nativePath);

    img.setImage(name2.url);
}

I'm detection to see if the film is supported and then using one of the two callback methods to load the file.  It could be done with the method of a reminder if we could rely on the event. Target property from the File.Browse method, but we cannot and this is another problem.

In any case, it seems very simple. When he runs in the sim card, the supportsBrowseForImage property is true indicating it is supported, but on the browseForImage() call, the application disappears. The callback is never called. I think I can see a gray bottom bar as if the app were reduced to a minimum, but I can't bring it back. Heck, I can't yet bring up the system menu. If I redeploy the application (which causes the previous uninstall) it seems to recover.

I use FB Burrito and am, I changed the project settings to use the SDK.94. I use the simulateur.94.

I installed TourDeMobileFlex found here: http://flex.org/TourDeMobileFlex.fxp

The TourDeMobileFlex camera seems to work fine in the 0.9.4 Simulator. He opens the roll and you can choose your image saved previously.

The CameraRoll of the TourDeMobileFlex code:


http://ns.Adobe.com/MXML/2009.
xmlns:s = "library://ns.adobe.com/flex/spark".
paddingTop = "10" >


        
If (CameraRoll.supportsBrowseForImage)
{
var cameraRoll:CameraRoll = new CameraRoll();
cameraRoll.addEventListener (MediaEvent.SELECT, {function(event:MediaEvent):void}
i.source = event.data.file.url;
});
cameraRoll.browseForImage ();
}
on the other
{
l.Text = "CameraRoll; not supported
}
        

    

    
    
        
If (CameraRoll.supportsAddBitmapData)
{
var cameraRoll:CameraRoll = new CameraRoll();
var bd:BitmapData = new BitmapData (640, 480);
bd.perlinNoise (640, 480, 1, Math.floor (Math.random () * 10), false, true);
i.source = bd;
cameraRoll.addBitmapData (comics);
}
on the other
{
l.Text = "CameraRoll; not supported
}
        

    

    
    
    
    
    

Tags: BlackBerry Developers

Similar Questions

  • Why do I get th eerror message saying "someone else is using my IP address?

    Original cleaning disc title: maintenance

    Is message appears: someone else is using my IP address. What this means and how do I get rid of this.  This seems to indicate that someone else has access to my computer without my knowledge

    Hi Sylvia,.

    Please answer the following questions.

    1. Once you get the error message?

    2. What is the exact error message?

    3. Since when are you facing the issue?

    4, is your computer on a network?

    5. did you of recent changes to the computer?

    I suggest you to reset the router and then reassign the IP manually once and check. You can go through the link to do so.

    Change TCP/IP settings

    http://Windows.Microsoft.com/en-in/Windows7/change-TCP-IP-settings

    Let us know the results.

  • E-mails calling for someone trying to use my real account?

    E-mails calling for someone trying to use my real account? Those that I claim come from Apple support community.

    Probably not. Change your password just in case and do not respond to emails.

  • I have a serial number and request code when I bought Adobe Acrobat of TechSoup. For some reason, I can't post it after the download, and now I can't use it yet at all. Please notify.

    I have a serial number and request code when I bought Adobe Acrobat of TechSoup. For some reason, I can't post it after the download, and now I can't use it yet at all. Please notify.

    What is the exact error you get when you enter your serial number?

    Chat support: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • I use LR6 and seemed to have lost my metadata information about camera lens - camera - and the settings on my information

    I use LR6 and seemed to have lost my information on - camera - lens metadata and settings on my information?

    CTRL-click on any of the headings on the right side panel (Kewording will do). Then choose "Show all" in the context menu you get.

    HAL

  • I dropped my phone from a height accidentally and now its completely broken and destroyed I can't access anything and all my photos are on it and the battery decreases very quickly please how to unlock my password without touching my screen its broken

    I dropped my iPhone 4S height accidentally and now its completely broken and destroyed I can't access anything and all my photos are on it and the battery decreases very quickly please how to unlock my password without touching my screen its broken and I can't touch I have all my studies on this subject two years ago and I still need the documents please someone help Please I need my pictures and documents

    Hello

    You must make an appointment at apple store in for breach of warranty replacement.

    You pay part of the cost of using iCloud upward when you configure new iphone.

    Even apple ID.

    See you soon

    Brian

  • My old iphone 6s is completely broken, it does not or registry that it is connected when plugged into a computer. I'm able to recover photos from the SIM card with an adapter USB SIM card or through any other way?

    My old iphone 6s is completely broken, it does not or registry that it is connected when plugged into a computer. I'm able to recover photos from the SIM card with an adapter USB SIM card or through any other way? I also do not save anything with AllAccess, icloud, or through my computer as you would with a digital camera.

    The photos are not stored on the sims, sorry.

    You can always try the Recovery Mode, little to lose at this point. If it doesn't, I suggest taking it to an Apple Store for testing.

    Recovery mode:

    Turn off your iOS device.

    Plug charge cable to the computer only (not to the device yet).

    Open iTunes on your computer.

    Hold the button to power on your device and do not let go.

    Plug the cable into the device while keeping the power button.

    Wait for the computer to detect the device and wait that he eat.

    Restore as New first, then restore sauvegardΘ if you wish.

    https://support.Apple.com/en-us/HT201263

  • The screen on my Satellite P30 is completely broken

    I have the laptop above and a week ago the laptop fell, my partner was out with the machine in time and I don't know it fell on concreate must have rolled. Now, the screen is completely broken. What I see is a white blob, it publishes, but then I get a "disc error".

    The HARD drive does not sound good. His will required: a new full enclosure, HARD drive and screen, there are also a few other internal parts rattling as a toy for children. Could someone give me a figure of ball game?

    Thank you

    Hello

    The new parts would cost a fortune! The display is one of the expansive laptop parts.
    I think you should try to get a laptop second hand or parts.
    Perhaps you could find something on the sales platform very famous internet auction. Take a look here

  • Creating completely broken cloud

    Sick of the usual garbage with creative cloud requires me to connect several times, I decided to do something. Oops. Now, creative cloud is completely broken. I deleted everything and now I can not install anything...

    I have a retina MacBook Pro 15 "El Capitan running end of 2013.

    Then I followed the guide to creative cloud sign me or asking to connect you several times. Step 3 suggests removing the creative Cloud Desktop application. Good idea. Follow the guide for this. Then I downloaded the installer of creative cloud. Tried to run. Nothing.

    Righto, try solutions more creative Cloud installer does not open. A ran the vacuum cleaner on creative cloud. Still nothing.

    Start to get desperate. Start to remove the CC apps (Lightroom, Photoshop, Bridge, InDesign). No, nothing.

    It's bad. Now get rid of everything in / library and ~/Library which looks like it has something to do with Adobe.

    Nothing. Absolutely of zippo. Never mind is not able to sign in CC. Now, I have no Adobe application on my system and no way to get them.

    I got it with the disgustingly bad software quality that I got used to with Adobe products in recent years. Such things used to be so good. Now it's garbage.

    Any suggestions?

    OK - this time it wasn't Adobe. A patient rather Adobe tech remotely connected on my machine and I tried all kinds of stuff for about two hours. Nothing has worked. But in the end, he suggested that I try a different network. I was on my normal ISP ADSL (which must remain anonymous). So I changed to a 4G network via iPhone tethering and Jenifer. All of this worked instantly. My ISP must be something weird.

    Now I have to clean up the mess. Nuts.

  • I downloaded the trial version of ambient light recently and have not yet used.  It seems that someone in Uruguay has hacked my email account.  Can someone give me advice on how to handle this?  I have no intention of submitting a credit cardnum

    I recently downloaded the trial version of ambient light.  I have not yet used.  There is no eveidence that someone hacked into my email account.  I was intending to buy Hall of light at the end of the trial period, but have no intention to submit my credit card information until it is resolved.  I appreciate all the advice on how to handle this and secure the information I have.  Thank you.

    Start buying, security of your email account. After that when you go to buy the LR or the photographers subscription plan, you will be on the secure site of Adobe and has nothing to do with your e-mail account that is currently being hacked.

  • I bought a used iPhone 4S and erased and the previous owner had his account iCloud out of it, but I can't yet to complete the set up because he says sim card is not supported?

    I bought a used iPhone 4s to a friend of mine, and they took their offshore and all iCloud account as they were supposed too. It still won't let me complete the set up it says that my card SIM of Fido is not supported, but the last time I saw the information of the carrier when the person that I bought the phone he said 15.5 Fido I think. Do I need to phone apple or what I call fido and to somehow cope? I myself remember having to change devices when using a fido handset represent the last I checked, and I'd love to have this figured out without having to pay more money. Help lol

    The error you see on the SIM not supported is indicative of the device being locked to another carrier SIM card that you provide to. I suggest you check that with your friend and see if this device has been locked to another carrier. Could be called Apple, but all they could do was tell you what carrier of the device is locked to Apple do not unlock phones. Once find you the carrier, you need to contact and see if provide unlocking services, and if they do, see if you qualify to unlock. Once again, your best first call is to the friend you bought it from.

  • Licenses in common/dynamic: all the PlayBook apps use it yet?

    I'm curious to know if anyone uses licenses either grouped or dynamic models in their PlayBook application, even if you are totally ignorant in the application itself.

    In other words, you configured license model for your application in the portal provider to be either people?

    In the affirmative, please let me know what the app is so I can buy and download it (preferably not an expensive application ).  I'm interested in looking at the content of the app folder in archive (since RIM has kindly put trivial for it) to see if there is something in there that represents the license key data.  (I checked about 100 applications so far and none have resorted to these licensing models, but mostly I just checked in free applications.)

    If this information is displayed, it should be possible to recover in the application and use it to "close the loop" on this license thing and actually start to use this mechanism to protect against piracy.  It would also largely irrelevant that our applications are completely exposed in backup archives for now.  (After all, when was the last time you used the software on a PC which can not examine in detail, if you were so inclined?)

    Okay, so I finally found the license key in the PlayBook.

    As mentioned earlier, at first, I was using my sandbox account to buy the app, and although the key appears immediately after download, it seems not be stored anywhere.  (She was also the license key delivered to the original purchaser of the application according to the portal provider report of purchase, but that's a story for another time.)

    I've disabled my sandbox account and tried again.  As mentioned, this time, that the license key appears whenever I run App World and let me easily tap to copy to the Clipboard.

    I wouldn't be hard to have a user that and stick it in a field in my application to activate it, if I were to add such a feature.  It may take a bit of practice for them to do, and I could very well imagine that support costs could be quite high, because many users would not probably has an idea how to follow instructions.  RIM: this should really be improved with an API!

    Anyway, I did another backup for DM and looked at the archives.  This time I was able to find the license key in the backup, if it is not in the folder of my own app.  I won't go into the details here... it benefits no one.

    I don't see that there is no way for our applications retrieve this information programmatically, so for now we seem to depend on the user action manual, which sucks, but at least gives us a step in the right direction.  For an application with sufficient value to justify the cost of implementation of this and support/training/mothering users through the technique of the copy/paste the license key, it is at least technically feasible now for use as a method for the best protection against copying.

  • have Firefox existing to use another hard drive completely

    My hard drive on my laptop is running out. I get corruption especially when I run Firefox and constantly, run chkdsk because vista is not able to handle the constant of e/s. is it possible that I can transfer everything to my new hard drive USB so that my existing installation of Firefox does not access the old drive more? It seems to be the only application causing blue screens due to disk corruption. I will replace the drive but who want to be able to run Firefox until I do. (coming soon) Thank you.

    Thank you very much @jscher2000 for lightning fast help. Success! At first, he wouldn't and kept back running like a new facility because I was running always Firefox 35 and when I checked it for info version automatically updated itself to 37.0.1, and now it starts from the D: drive as if it was from the c: drive, and it seems that access to drive c : internal is now minimal.

    I also noticed that my ini file has been removed with the upgrade and it probably did not work with the v35 because I would probably have to edit it. (Isrelative and path). Yet once again, thank you so much, I wanted to really operate as before with all my recorded history as I have always run with 22 open tabs and never delete my history, cache or cookies, and is probably why it takes 3-4 minutes for my c: stop disk activity (firefox may close its open files) after I closed firefox. This seems to do what I want it to!

  • Google search using https but seems to return results to undecryped

    Since the upgrade to v14, I believe that, whenever I type in a google search in the search bar or the Firefox start page, the results are back as a page of illegible characters (for example an exclamation mark on a background of black triangle). I noticed that the search is using an https address. If I remove the s of the part of https in the URL generated by the address bar Firefox and press ENTER, it comes back as usual. It seems that research is the recovery of the figures, but Firefox is not decipher the results or not properly decipher them and simply display the results.

    You can check the preferences of network.http. * on the subject: config page and delivery to zero all users "BOLD" network.http set prefs by default via the context menu-> reset.

    Check at least:

  • On a forum, someone suggested the use of Silverlight, but after downloading I don't see what useful purpose it serves.

    I downloaded and installed Silverlight (of Microsoft) by a recommendation on a blog. When I ran the program in the folder programs nothing happened. I also have a Silverlight blog where conducted an interview with the Director. I got most of what he's supposed to do, but cannot see what he done for me personally. I was under the impression that it was useful for some Web sites that have a financial content, but so far I was not able to appreciate its purpose.

    Y at - it (y) websites that can demonstrate the value of Silverlight with the program interact with it?

    Microsoft Silverlight was to have several functions their release, but is still not completely accepted with web developers, so there are not many sites that use it in any mode. The only site I know that uses Silverlight is Netflix.com for streaming movies.

Maybe you are looking for