BB10 - blackberry.io - "Dossier_partagé" access only

Hello

I play with the new blackberry.io API for BB10 and the example provided in the related API documentation. It seems to work, but it also gives access to all the files in the file system. At this moment, I wanted only recursively access like the "sharedFolders" provided when connecting the BB10 Dev Alpha to a PC via USB, as it is not an access application created for images/videos by photo app.

Anyone know how to access only the "sharedFolder"? It would be nice to have more information in the documentation available. I searched the Forum, but could not find something here.

Kind regards.

My questions answered by myself, also to provide such information for all others:

// un-sandbox file system to access shared folder
blackberry.io.sandbox = false;

window.requestFileSystem  = window.requestFileSystem || window.webkitRequestFileSystem;

window.requestFileSystem(window.TEMPORARY, 5 * 1024 * 1024, function (fs) {
    // in order to access the shared folder,
    // config.xml must declare the "access_shared" permission
    // reference file by absolute path since file system is un-sandboxed
    fs.root.getDirectory('/accounts/1000/shared', {}, function(dirEntry) {
        var dirReader = dirEntry.createReader();
        var entries = [];
        // Call the reader.readEntries() until no more results are returned.
        var readEntries = function() {
            dirReader.readEntries(function(results) {
                if(!results.length) {
                    // do some functionality to list entries like:
                    listResults(entries.sort());
                } else {
                    entries = entries.concat(toArray(results));
                    readEntries();
                }
            }, errorHandler);
        };
        readEntries(); // Start reading dirs.
    });
}, errorHandler);

Tip: not all the functions used above are added to this piece of source code.

I hope it will be useful for you!

Kind regards.

Tags: BlackBerry Developers

Similar Questions

  • Workspace BB10 blackBerry 10 vs personal space: can it be established in a telephone use only personal?

    Can someone who has a BB10 phone for personal use only still set up a "workspace" on their own. I want to say without needing a company account? It seems to me that it might be useful for the partitioning of different types of activities on the other.

    The phone must be run on a BES10 server for it to have a space to work on it. No BES10 server does not have personal space only.

    See you soon.

  • BlackBerry Smartphones Blackberry 9800 - file access slow - Please HELP

    Hi all

    I'm new to the Forum of blackberry, but have used a bberry for years... I bought the new blackberry 9800 and love. But lately I had problems when access to the records of the unit, it's the situation.

    1. click on the Applications folder-> perfect 2-3 seconds to open-> go back

    2. click on the Applications folder-> open-> go back 2-3 seconds (repeat 3 - 4 times)

    3. click on the Applications folder-> 10-15 seconds to open - > back out (lock device or wait a minute or two)

    4. click on the Applications folder-> perfect 2-3 seconds to open the folder

    As you can see, you access the slowest records, he gets this is not limited to a few files but it also seems to slow down the entire system, I removed almost all of my applications on the phone always have this problem. I have a lot of free memory. So far, I have tried

    1 wipe device reinstall everything (problem returns after a day or two)

    (2 wipe device reload OS, reinstall any problem comes back after a day or two)

    3 will try tonight to reset the device, reinstall the OS, remove information from the user to the BES snack Server some strange permissions are pushed back, or a corruption of the database, reinstall only a small subset of applications that worked well on the blackberry 9700

    The only thing I can say is this started happening in installed an app from app world called "Server Monitor" I don't know if that's the problem...

    If anyone has any ideas please, I'll Sling that thing off the wall if it continues to be

    OS version 6.0 Bundle 695 (v6.0.0.246, platform 6.4.0.105)

    A battery Pull does not solve the problem...

    Thanks in advance

    Al.

    updated my blackberry to the latest version of the operating system and works perfectly now

  • Update Atheros Driver for "Local access" only the wireless. HP G60 laptop

    Hello

    Loads of reading on the internet about this Vista Local Access Only. Recently moved property and now guess what this PC cannot connect via wireless, never made any other device.

    Tried to configure IPv4 only etc, still have questions.

    Is there a link to check the latest version of the driver for the laptop computer help section, HP doesn't seem to make it easy to locate and download?

    Thank you

    Dan.

    Hi Paul,.

    Thanks for the link... Hard to find this driver on the HP website no such direct link!

    I continued to research on the web and found similar version driver.

    Product: Atheros AR5007 802. 11 b / g WiFi adapt
    Class material: Net
    OS: Windows Vista 32-Bit
    Version: 9.2.0.480
    The driver date: 10/01/2012

    Immediately huge, up and running.

    Of course the driver via rlink will allow you to correct excatly the same as...

    Thanks again for the response...

  • Windows XP pro, can not see desktop (just a blank screen) at startup. can access only via the Task Manager. How can I fix? __

    Windows XP pro, can not see desktop (just a blank screen) at startup. can access only via the Task Manager. How can I fix?

    In the Task Manager, click on "File" and select "new task (run).

    Type explorer.exe, and then press the ENTER key.

    If you are able to connect successfully to the windows, scan the entire computer using updated anti-virus software and check the virus.

  • Unidentified network Local Access only on Vista Home Basic using Ethernet.

    Have 2 laptops not identified network Local Access only on Windows Vista Home Basic.  One is a Toshiba and the other is a Dell.  I can use the Ethernet on the Toshiba to one of the The Fire Dept. I work at. (From lastweek, haven't checked since.)  I can't go to the other Station.  Get Local access to the unidentified network only.  I get also home and when I checked the Dell, get the same message.  I can connect wirelessly.  How can I solve the unidentified network problem?

    Hello

    If your system is running Hello , Netmagic or any other party 3rd network try to uninstall.

    Try also.

    Type Cmd in the search text box.

    Press Ctrl-Shift-Enter keyboard shortcut to run a command as administrator prompt.  Allow the elevation.

    Type route delete 0.0.0.0 press ENTER.

    Type ipconfig/flushdns press enter

    Restart your computer.

    Jack-MVP Windows Networking. WWW.EZLAN.NET

  • Local access only on wireless network

    My laptop (Toshiba Satellite L350-203 with Vista SP1 HPE) has lost the ability to connect to the internet using my home network. I have McAfee Internet Security and charge of IE8, but both were present before the problem appeared. My home network is now displayed as 'unidentified public network' and the laptop has "local access only". He seems unable to keep the WEP key for the network as it asks everytime I try to connect. I confirmed that the WEP key is correct. There are 3 other computers in the House that connect without a problem, so I guess that the router is not the source of the anomaly. I tried accessing another network to another place (with any necessary safety information) but get the same result, so that other computers can connect successfully. I am able to access the internet via an account mobile broadband (using a "dongle"), but I added this account after the problem appeared, so once I don't suspect it as being the culprit. Diagnosis in the "network and sharing Center" routines are unable to solve the problem, so any help is most welcome.

    Roy Mac

    Hello Roy Mac,

    Thank you for using the Microsoft Windows Vista Forums.

    You receive an error or the error codes when you try to connect?  You're obviously network savy upward so if something seems repetitive please ignore, you tried to delete the location and replace?   Is there any software for the high account mobile broadband that could changed settings?  Are you able to connect to the router with an ethernet cable access to the internet without problem?

    A wireless network uses authentication and encryption to help stay secure. Authentication controls access to the wireless network. Encryption helps to ensure that malicious users cannot determine the contents of wireless data frames.  Windows Vista includes a new wireless network configuration setting. The new setting indicates whether a wireless network is broadcast or not broadcast. You can also use the new configuration setting that a Windows Vista wireless client connects to a non-broadcast network.

    I've added two links below one for Microsoft and one for the installation of networks and networks the Toshiba site.  Please let us know status.   Thank you!

    The software that you used with Windows XP to connect to wireless networks is not compatible with Windows Vista. Alternatively, you can use Windows Vista to configure wireless networks.

    To connect to a wireless network in Windows Vista, follow these steps:

    1. click on Start

    Collapse this includes this image

    , then click on connection to.

    2. click on the wireless network you want to connect, and then click connect.

    Note During the connection process, you may be prompted for a key WEP Wired Equivalent Privacy (). If you do not have this key, contact the network administrator to help wireless.

    For more information about connecting to wireless using Windows Vista, see the Microsoft Web site at the following address:

    http://TechNet.Microsoft.com/en-us/library/bb878035.aspx

    How to connect to a wireless network in Windows Vista
    http://support.Microsoft.com/kb/928429/en-us

    Toshiba.support:
    http://www.CSD.Toshiba.com/cgi-bin/TAIS/support/JSP/outFrm.jsp?ofId=AskIris&SearchString=wireless+connection+Vista

    Engineer James Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • Windows Vista - unidentified network Local Access only tried everything please help

    Hello

    I have an Acer Aspire M1610 running Windows Vista Home Premium Service Pack 2 and 2 days ago when I turned it on the internet was not working and it says unidentified network Local access only. I use a wired Ethernet connection. I don't know how it happened as before I had used the computer as usual and the Internet worked very well. I did a lot of research and read a few forum posts about this problem and tried a few solutions but non of them worked. I tried the following:
    (1) disable my firewall and anti-virus who didn't work, I turned their back on immediately.

    2) press Ctrl-Shift-Enter keyboard shortcut to run a command as administrator prompt.  Allow the elevation.

    Type route delete 0.0.0.0 press ENTER.

    Type ipconfig/flushdns press enter

    Restart your computer.

    (3) the internet protocol version 6 clear, disable and enable the thing

    (4) if same Norton software removal tool I had uninstalled the when I got the computer I read that uninstall it by using uninstall windows is not entirely remove it.

    (5) another thing in the command prompt I don't remember exactly what it was, and I can't find the site Web is because I looked so much of.

    (6) I even reset my computer to factory settings and then uninstalled all unnecessary software and trials that come with and used the software again Norton removal tool.

    Does anyone know how to fix this? Any response will be greatly appreciated.

    Thank you

    Hi Alex,

    Have you tried to assign the IP addresses manually?

    I wish that refer you to this article-

    http://support.Microsoft.com/kb/928233/en-us

    Note: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs.

    Back up the registry - http://windows.microsoft.com/en-US/windows-vista/Back-up-the-registry

    Thank you.

  • local access only: unable to connect to the internet

    Recently, my laptop has trouble to connect to my home network. It's a laptop Dell and Windows Vista. This laptop used to connect wirelessly to the network without any problem, but lately, whenever it connects, it is said that "local access" and does not allow me to use the internet. " This problem occurred at the same time I replaced my old router with a new. Another laptop and other devices can still connect to the internet with this new router with no problems, but my laptop stops the message "local access only".

    After some research, I discovered that in typing "Cmd" in the search bar after clicking the start menu, run this program as an administrator, type "netsh int ip reset" in the command prompt, then by restarting my computer would fix my problem and my laptop would work very well and connect to the network and to the internet with no problems. However, as soon as my laptop is entered 'sleep' mode or has been disabled, when it was turned on again the problem persists and I have to follow the process of using the command prompt and restart the computer every time I turned on my laptop.

    As you can imagine, this process can be quite annoying and I would like to find a more permanent solution to my problem, especially since the past several times, I tried this workaround, it failed, so my laptop is once more without internet access. If anyone has any suggestions, it would be appreciated I am completely puzzled. Thanks for any help.

    Hello

    Method 1
    I suggest you try the steps from the following link:

    Windows Vista cannot obtain an IP address from certain routers or some non-Microsoft DHCP servers
    http://support.Microsoft.com/kb/928233

    Note: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article: back up the registry in Windows Vista

    Method 2
    In addition, you can disable IPv6 to see if that nor does not affect the wireless adapter.

    To disable IPv6:
    (a) go to start, right click on the network, and then click Properties.
    (b) network and sharing window will appear, then click on manage network connections.
    (c) network connections window will appear. Here you can right click on the network adapter that you want to disable IPv6, then click Properties.
    (d) in the local area network connection properties window, clear the Internet Protocol Version 6 (TCP/IPv6) check box, and then click OK.

    Method 3
    I suggest you try the steps from the following link:

    Windows wireless and wired network connection problems
    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

  • I can't connect to the Internet via the wireless network. It shows that I have local access only. I can't connect even in SafeMode with network.

    I can't connect to the Internet via the wireless network. It shows that I have local access only. I can't connect even in SafeMode with network.  I have Ping www.microsoft.com and the answer is "ping request could not find host www.microsoft.com.  I am connected to the network wireless through my iPad and can connect via my smartphone. This leads me to believe there is only something configured properly on my laptop. Can anyone provide assistance?

    Hello

    You can try a system restore...

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

    .. .choose time, until this problem (you may tick to show more older restore points).

    Tricky

  • Wireless showing local access only.

    Hello, I recently changed my broadband provider, and I have a new router, the wireless connection (IPv4) on the display of my laptop displays like local access only and custom to connect to the ' net. Local and internet connection Ethernet fine, work, this isn't a problem with the router online. The previous broadband router connected wireless without problem, my PS3 is connected wireless to the new router, so I think it's something to do with the settings on the laptop. The connector on the laptop wireless is Atheros AR5007. The Wi - Fi connection and show that two separate networks, and the wireless is displayed as a network identified, public. I searched the forums and found a post that said sometimes there are problems affecting the wireless with some routers IP address, but the specific fix has not worked for me. Can anyone help? I'll throw my laptop out the window in frustration or break my neck tripping over the ethernet cable. Help, please!

    Hello

    Did you change your computer?

    I suggest you to follow the steps from the links and check out.

    Windows wireless and wired network connection problems

    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

    How to reset the Protocol Internet (TCP/IP)

    http://support.Microsoft.com/kb/299357

    In Windows network connection issues

    http://support.Microsoft.com/kb/313242

    Windows Vista cannot obtain an IP address from certain routers or some non-Microsoft DHCP servers

    http://support.Microsoft.com/kb/928233

  • Local access only under vista on HP Pavilion

    I recently had problems getting a wireless connection with my laptop (Pavilion dv6700) running vista. I had previously run it for 2 years without problem, but after returning from Sweden (where there is still no wireless connection problem), I was often only able to get a local access. Is not on all networks - my University library system works very well, for example, but the personal network of my apartment as well as the network of my parents, as well as a local coffee shop that I had previously connected to fine, only get local access.

    I saw it is a common problem, but have not seen a definitive solution, so I was wondering if someone could help?

    Hello

    Method 1:

    I suggest you to follow the article below for more information onsetting up a wireless router and check if it helps to solve the problem:

    http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-a-wireless-router

    Method 2:

    I also suggest you follow the article below about to set up a wireless network and check if that helps:

    http://Windows.Microsoft.com/en-us/Windows-Vista/setting-up-a-wireless-network

    Method 3:

    Also, follow the steps in troubleshooting from the link and check if that helps

    Windows wireless and wired network connection problems

    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

    Method 4

    Try troubleshooting from the link and see if it helps:

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-network-connection-problems

    Also refer to:

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-networking/wireless-connections-with-Vista-local-access-only/75eb9192-238f-4ADB-9303-3d40bccbf399

    Hope this helps

  • unidentified network - local access only

    Hi, so I have this old Sony Vaio for four years, I used a wired internet connection for the past four years, until what we moved house and received a wireless router. our friend connected to me, and everything worked well, until I had to format the system. I tried the troubleshooting, looked through various forums, but nothing helps, like many, I understood what to do. I reset the router and it works fine on the netbook to my mom, but on the vaio, it says unidentified network - local access only. just to add, it uses a system windows vista Home premium.

    Hi Zuzanna Feliszek,

    Method 1: You can follow the steps mentioned in the link below to retrieve the Winsock2 corruption

    How to determine and to recover from Winsock2 corruption in Windows Server 2003, Windows XP and Windows Vista
    http://support.Microsoft.com/kb/811259

    Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base.
    How to back up and restore the registry in Windows


    Method 2:
    you can follow the steps described in the article below, which deals with a similar question

    Network connectivity fails when you try to use Windows Vista behind a firewall device
    http://support.Microsoft.com/kb/934430


    Method 3:
    download and install all Windows Update available (Service pack (SP) 1 and 2)
    http://Windows.Microsoft.com/en-us/Windows-Vista/install-Windows-updates

  • unidentified network and local access only

    We have a wireless connection and our router is realtek. However, our network is unidentifyable! He said that it is a public network and gives local access only. When an ethernet cable is plugged into our computer to the router connect to the local network overrides this and we have local and internet connection.

    What is the problem that causes our network to not be recognized? I tried to diagnose and repair and renew the IP address, and none of these work.

    Its very frustrating...

    Thank you
    Christina

    Hello CJ135,

    Please make sure that your computer is configured toe "obtain an IP address automatically".

    Open (run as administrator) command prompt and enter the following commands...

    -netsh winsock reset

    -nbtstat - rr

    -netsh int ipv4 reset

    Restart you computer *.

    Method 2

    If you would please check that you have installed SP1 you Vista computer and on the XP computer you have installed SP3?  So that you can make networking 2 computers successfully, they must be on the latest Service packs.  Just click Start and right click on computer and go to properties.  This will tell you what Service Pack you are running.  While windows are open.  would you please check the name of working group on both computers.  It is imperative that all the computers on your network are on the same workgroup.  For example, Vista default workgroup is labeled "Task force" and working XP Group is labeled "MSHOME".  So that both computers to interface with success, the workgroup name must be the same.  In addition, please make sure that 'everyone' has full control on the folder and the shared folder.  If you please you would follow with me as best as possible, I'd be very happy.

    Method 3

    If you have a 3rd party software such as Norton or Mcafee security, disable temporarily and attempt to connect.

    Please check if you are able to connect to the internet.  If you please you would follow with me as best as possible, I'd be very happy.

    Thank you

    Aaron Griffin
    Microsoft technical support

     
  • Vista connects to my router, but for local access only.

    I am running windows home edition vista 32 bit on my laptop and until today I had no problems with my internet connection.  I've updated my norton 360 today and had no problems until I rebooted a few hours later.  I can connect to my router but it gives me local access only.  My Linux Ubuntu 10.4 and Mac OS X system is running to the same router with no problems.

    What can I do to connect my Vista laptop to internet?

    So I got on my windows to try what you say and guess what. -_ - (indifferent face) my vista decided to take my wireless and give me access to the internet after most of the month.  I don't know what happened.  I didn't have anything new in the last three days... It's fixed now, but I still don't know what it does break.  Any ideas as what caused it?

Maybe you are looking for