blackberry.io.file.saveFile () "safe" available paths?

Hello

I'm building a webworks smartphone app where I intend to store a simple text using saveFile() file.

I've seen plenty of examples using the path of:

filePath = "file:///store/home/user/appdata.txt"; var

I have 2 questions...

1.) are there other available paths? for example one for the files of the user, the other to the data of the application?

2.) is the path of the store/home/user available to the blackbery owner (easily or via Tools?) or is there a path where a file can be placed out of reach of the user?

The reason I ask is that I want to store values of 'secret' in this file and do not want the user to the ruin of their game to 'find' the secrets.  Or worse still to find and publish all over the Interwebz ;-)

for example

levelFourUnlockPassword = AGTY79EBX9708PL

levelFiveUnlockPassword = JSES64KTGW9121V

Follow final question... If there is no folder "safe" to put files away from the user... anyone has a recommendation on encryption 2-way decent to scramble the content? : PEI

See you soon,.

Steve

1.) are there other available paths? for example one for the files of the user, the other to the data of the application?

There is a PlayBook, but not on a BlackBerry Smartphone

2.) is the path of the store/home/user available to the blackbery owner (easily or via Tools?) or is there a path where a file can be placed out of reach of the user?

All paths are accessible by the user

Follow final question... If there is no folder "safe" to put files away from the user... anyone has a recommendation on encryption 2-way decent to scramble the content?

If you store your data in an HTML5 database all data are encrypted and are accessible only by your application process.

Tags: BlackBerry Developers

Similar Questions

  • Problem with blackberry.io.file.saveFile: error #3006

    Hello

    I'm currently storing a lot of binary files for use offline with my client of pocket at some point that I always get this error code in blackberry.io.file.saveFile:

    Error: Error #3006
    

    I have found no solution to this problem and I don't know what the code means? I already searched this on this forum and with Google code, but not luck. Does anyone here know what that means?

    The image in this case (if this could be significant):

    http://appworld.BlackBerry.com/WebStore/servedimages/478660.PNG/?t=18

    Any help would be really appreciated!

    See you soon,.

    Sven

    What SDK WebWorks is - 10 BlackBerry or Smartphone (Java) or Tablet OS (AIR)?

    I just did a search in the source code of the Smartphone SDK and found no matches on this error code:

    C:\Program search in Motion\BlackBerry 2.3.0.9\device_templates\blackberry\web\widget SDK WebWorks

    This suggests that the error comes from the BlackBerry OS, instead of SDK WebWorks.

    Can you tell me, is there a model when you see this error?  For example, you turn on mass storage mode (locks the file system), or you change a map removable microSD?

  • BlackBerry.IO.file... Add to the file?

    My smartphone Webworks app, I would like to save the information to a file and store logging information or performance information.  The blackberry.io.file is available, but it is not obvious to me how to add a file.

    Any suggestion or help would be appreciated.

    Thank you.

    It is not an appendToFile method that would make it a little lighter, but it is certainly possible with what is in the SDK.

    If do you a readFile, then call blobToString on your returned blobData, you can add your registration data to this string (with a +), then go through stringToBlob and saveFile.

  • blackberry.io.file.getFileProperties () does not to torch OS6 bundle 1165 on some files

    Hello

    I just noticed that blackberry.io.file.getFileProperties () returns an empty array of properties on some files on my package of torch OS6 1165 (have not yet been tested all other devices).

    I can reproduce it every time by taking an image of high quality of my camera and then by calling getFileProeprties() on this file.

    Strange thing is that if you take the size of the image (on the lowest resolution, it returns the properties of this file.

    Any ideas?

    Hello world

    Times the number of thread on the torch and the method getFileProperties() on a large file have been fixed in our heads last revision of the code.  We try to get this fixes (among others) and the source code available early in the new year.

    These were fixed as part of our work 'API of evacuation. "  More details on this book can be found in the 'Current Work Items' link found here: https://github.com/blackberry/WebWorks/wiki

  • Is their a utillity built in Win program. 7 who can clean up old files and fix broken paths.

    Is their a utillity built in Win program. 7Pro, 64 bits that can clean up old files and fix broken paths.

    as far as I know is that windows sold out a 2 TB HDD for back ups in less then 2 months.

    Their is nothing wrong with my computer, just for maintenance.

    Hello

    Thanks for asking this question to Microsoft Community.

    I understand you want to get information on all the built-in options that would take care to clean out old files and the broken computer shortcuts. I'll help you find the right options.

    Windows 7 has these options for maintenance, namely disk cleanup, Disk Defragmenter. These options should help.

    Check out these links:

    Slow PC? Optimize your computer for peak performance

    http://www.Microsoft.com/athome/Setup/optimize.aspx#fBid=DBWRBkU74qm

    Important: all by performing the check disk on the hard disk, if bad sectors are detected and if it tries to repair this area, all available data on the risk of being lost.

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    Also run the fixit from the link:

    Difficulty of broken desktop shortcuts and common system maintenance tasks

    http://support.Microsoft.com/mats/system_maintenance_for_windows

    For reference:

    http://Windows.Microsoft.com/en-us/Windows7/optimize-Windows-7-for-better-performance

    In addition, you can use your search engine preferred for all third-party utility which will help recover additional space on the hard disk.

    Third party link WARNING: With the help of third-party software or a link, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third party software or link can be resolved. Using third-party software or a link is at your own risk.

    Hope this information is helpful and let us know if you need more assistance. We will be happy to help.

  • iCloud backup after iOS 10 - some files were not available during the last backup

    HI - we are a company with about 350 users of iPhone and iPad.  I put this in the iCloud in the community section, but I've seen other users have the same problem in this section, so I thought I would add here.

    In order to stop users add their own e-mail accounts on the iPhone that lock us the device through restrictions - deactivation of the accounts section.  It stops and then access the iTunes settings.  In the test of iOS 10.0.1, we have one of the devices (a 16 GB 5 s, who had been a backup at 7:20 that morning), improved 9.3.2 that went well with no obvious problems, then, after a few days to leave the handset to the function, we have lifted the restriction and the backup on iCloud to find any backup not occurred since the upgrade and a message 'some files were not available during the last. backup"in its place.

    If all our staff upgrade their phones (we gave says not yet) then the backups look like they stop.  It is easy to fix, as a manual backup, will complete the process, but you have to remove the restriction to do this.

    We tested on iPhone 5, 5 s, air iPad iOS 8 to 9.3.5 and all have this problem.

    I have exactly the same problem, 16 GB iPhone 5s as well. I plan on raising at my Genius Bar appointment today.

  • I tried to backup my iPhone several times. I get a message indicating that some files were not available at the time of the backup. How can I solve this problem?

    I attempt to backup my iPhone several times and it does not backup. I received a message stating "several files were not available at the time of the backup. How can I solve this problem?

    Hello Lope8725,

    Looks like you are trying to backup either iCloud or iTunes, but you have found an error on files being unavailable. Can reply you with the exact wording or a screenshot of the message you are getting?

    In the meantime, you can solve the problem with either of those two sections depending on whether or not it's iTunes or iCloud:

    If iCloud backup could not be completed or if you can not restore

    or

    If your iTunes backup could not be completed or you cannot restore from a backup

    See you soon!

  • How to read a file .xls to a situation identical to the sequence of the file without specifying the path?

    Hello

    I am trying to open a file .xls existing from the same location as the test sequence file. Can you TestStand search in the location of the sequence input file test file and then select the if present? Also, can we store the output file in the same place without specifying the path to the code?

    Example:

    Input.xls-> input file to the test sequence that must be read.

    Output.xls-> output file created by the test sequence.

    Test.SEQ-> the test sequence that reads Input.xls and creates Output.xls.

    If Test.seq and Input.xls are present instead of D:\Test\, the Test.seq code can be modified to pick up the Input.xls automatically without specifying the path? In addition, can Output.xls be created to D:\Test\ without specifying the path?

    Thank you

    Corinne

    Hi Isabelle,.

    Yes, this can be done. You can get the path to the current sequence file using RunState.SequenceFile.Path. Then find and remove the last '-' using the string functions to get just the path. You can then use this path to manage your files Input.xls and Output.xls.

    -Jack

  • How can I empty my trash? When I opened the page & click on file, deletes not available. (WHY?)

    My computer is slow real. I was told that it could be due to my trash. Go through a lot of junk in there. As I said when I open the page and click on delete file is not available. WHY?

    Hi gregUP,

    Follow the steps in this link to delete the files from the Recycle Bin.

    To remove or restore files in the Recycle Bin

    To empty the Recycle Bin, see:

    Empty the trash

  • Hi, manually remove some files in WINSXS, which files are safe to remove?

    Hi, manually remove some files in WINSXS, which files are safe to remove?

    No, really.

    http://support.Microsoft.com/?kbid=2592038

  • Which files are safe from my C drive to another drive

    I understand that Vista partitions the hard drive into 2 discs. On mine, it seems to be C (Vista) and E (data). My C drive is now full to 90%, while the E drive is (90%) free. I said I should move some files from drive C on the E drive to free up space. I was given good advice? If so, which files are safe to fly over as I really don't want to lose something important. As you can see, my computer knowledge is very basic and any help would be much appreciated.

    Thank you

    Thank you Walter,.

    There are 113 GB on drive E. There is a folder there called recovery of HARD drive, but the drive is definitely called DATA. Should I continue to move files?

    Thank you

    Darren

    Hey daz4239

    «There is a folder in there called HARD drive recovery»

    in where? not in the partition data is it

    If you somehow a collection folder in the application data partition to the manufacturer of the computer to this topic

    You should already have recovery disks form the 'record' in recovery

    Walter, the time zone traveller

  • BlackBerry Leap Leap of BB availability

    When BB Leap will be launched in India?

    Hi @Mani1727

    The BlackBerry Leap will be soon available in India

    Stay up to date please bookmark this post on Inside BlackBerry!

  • I can not package for the project when I used the blackberry resource files

    I can't package the project when I used the blackberry resource files.

    Packaging HelloWorl project
    C:\eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\components\bin\rapc.exe-quiet codename=deliverables\Standard\5.0.0\HelloWorl deliverables\Standard\5.0.0\HelloWorl.rapc-sourceroot=C:\workspace\HelloWorl\.locale_interfaces; C:\workspace\HelloWorl\src; C:\workspace\HelloWorl\res-import=C:\eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\components\lib\net_rim_api.jar C:\workspace\HelloWorl\bin
    Cannot open the C:\workspace\HelloWorl\bin/com.helloresL.crb/ dir
    Error! : error: auditor failed: C:\eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\components\bin\preverify.exe d C:\DOCUME...
    Packaging project HelloWorl failed (taken in 0,219 seconds)

    I have fixed my problems, I was using a unicode language in windows, so I changed the language for non-unicode format.

  • Analyze the blackberry jad file

    Can someone give me a code example to analyze a blackberry jad file and store it in a hastable

    the format is fixed you can use indexOf.
    I doubt that someone has 'sample code' a task like this, but it shouldn't be too difficult to develop yourself.

  • Can use code MNO to get Blackberry - GPS location if not available

    Can we use code MNO for location of the BlackBerry - GPS terminal if not available in this device?

    If yes then give me an idea how?

    If not, then is there any other way to get the approximate location of this device using mobile operator (if no GPS available)?

    Waiting for your answers...

    Thanx

    We can use the google hidden APIs to get the latitude and longitude, by the way

    GPRSInfo.getCellInfo () .getLAC)

    and GPRSInfo.getCellInfo () .getCellId)

    to this API.

    So resolute. Thnx

Maybe you are looking for

  • Address bar does not not in Safari

    My address bar does not work properly in safari, I can't click on it and enter the address manually, which is quite annoying. I deleted the plist of safari in the library but still no luck. Found a temporary solution to http://osxdaily.com/2016/01/05

  • questions for XY STM triggering and synchronization control

    I use a NOR-PCI-6251 and generate signals of two of the ao: 0 and ao:1 outputs. A signal must be a continuous single ramp of a voltage of-10 to + 10 volts for a second. The second signal should be a sawtooth, once again from-10 to + 10 volts ramp, re

  • Can I use instead of AHCI RAID

    Hi, I have a dell inspiron 530. In the bios there is no option AHCI. Since the RAID AHCI she does that mean I can use the same? PS: I have 2 hard drives (no RAID). I tried to boot into windows on the first hard drive, but then it froze on startup a B

  • C309a printer driver fails to install, the drive M: on Windows XP

    C309a printer driver tries to install my drive M: on Windows XP.  Automatic installation of HP fails because the M: drive is not valid.  What should I do?

  • ESXi in UEFI mode

    HelloI need to install ESXi 5.x using the UEFI.Quite sure that my hardware takes care of UEFI.But not sure the steps if... Can someone help me with the same.-Assane