How can read/write on a file and stored in the internal memory of the device, 10 BlackBerry?

I want to store a string value of my request. After that, I remove my device app & reinstall my app. I want to get the previous value stored in recently installed application.

I think that if I can write the value to a file that is located in the internal memory of the device. After that, I read the value of this file in any time. I am new to the cascade of Blackberry, so I don't know how to write / read a file.

Please help me...

Thanks in advance.

Hi all

I solved my problem. I'm using the code below:

QString call: readFromFile()
{
QFile textfile("shared/documents/Test.txt");
QString str ="";
If (textfile.open(QIODevice::ReadOnly |) QIODevice::Text))
{
QTextStream in(&textfile);

Str = in.readAll ();
}
else {}
QTextStream out (stdout);
off<>
}

TextFile.Close ();

return str;
}

Thank you all for the valuable suggestion...

Tags: BlackBerry Developers

Similar Questions

  • How can I remove "set up files" and completely reload windows xp?

    How can I remove "set up files" and completely reload windows xp? They were installed when I tried to reload xp before and there is always a sp1 on the pc version now.

    This CD should work and it should be bootable.  It seems that if you always boot from the hard drive and then you look at the content of the CD-ROM in Windows Explorer.

    If the BIOS is set to boot from the CD, you should not get a menu asking which device to boot from.  At most, you will get something like "Press any key to boot from the CD-ROM."

    You have an another bootable CD that you know works or do you have another computer you can try this CD to see if it works correctly?

  • My laptop and erased, and indicated that I should go to a site Microsoft S E who seemed so fishy to me, how can I recover all my files and desktop icons?

    My laptop that has the MSE, went empty and indicated that I should go to a Microsoft S E site which seemed so weird to me because he prayed for me to pay but had no insignia info or confirmation of Microsoft authentication. I had to use two different software to clean my pc.

    When I was doing the scans, I saw all my files and documents being examined, but I still can't access it once all the malicious goods have been deleted by Super Anti Spyware and Malware bytes.

    How can I recover all my files and documents. Help, please!

    Rich.

    Hi Amgood4u,

    1. what happens when you try to access documents and files?

    2. you receive an error message?

    3. did you of recent changes on the computer?

    Method 1

    I suggest that you scan and remove any malware or computer virus infections and check if it helps.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx 

    You can also use Microsoft Security databases to scan your computer

    http://www.Microsoft.com/security/PC-security/MSE.aspx

    Method 2

    If the previous step fails, then check if the problem persists in the safe mode and after back with the results.

    A description of the options to start in Windows XP Mode

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

  • files and folders: How can I load all my files and folders to my new account of my external hard drive?

    Who can help, I just put a new account on my computer and deleted the old account. I backed up the old files on my external hard drive. I want to know is how can I load all my files and folders to my new account of my external hard drive? I thank you for your time and knowledge have a very nice evening, Shawn

    Because it's a new account (even if with the same name), the restore procedure is unable to put files and folders in the same place, they came (because this place technically no longer - if yes, then the process is done and the transfer is complete). It can create a set of separate files (maybe even under a new user name, if it has been stored in this way).  If so, all you need to do is copy the data as you would copy any other files and folders (not the main files of the user profile themselves but the data in them) on the new files in your user account and who will take care of the transfer. Here is more information about the restore procedure which may help you in the process.

    Here is an article on the restore procedure:http://www.vista4beginners.com/How-to-restore-files to make sure you do this right.  It's a selective restore of a full or selective backup (not a full restore from a full backup) - but since you did a full backup, it matches your process more closely than would a full restore.

    This is a GREAT article on the backup and restore processes in Vista http://technet.microsoft.com/en-us/magazine/2007.09.backup.aspx , but he won't go into detail about the restoration process - considering almost as easy, of course.  But it teaches you a lot about what is possible and how to do it.  It also focuses primarily on the full backup process, but he did mention the full backup and restore process as well.

    Here is an article on the advanced use of restoration (during normal restore does not work):http://www.mayankraichura.com/post/2009/08/06/Avdvanced-Restore-via-Windows-Vista-Backup-and-Restore-Center.aspx.

    Restore files from a backup
    http://Windows.Microsoft.com/en-us/Windows-Vista/restore-files-from-a-backup

    Back up and restore: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-and-restore-frequently-asked-questions

    I also found the following (but don't know if it of true or not):

    1. after the start of "backup and Restore Center."

    2. I chose "Advanced Restore"

    3. I was did not an administrator password... maybe because my account is an administrator account.

    4 choose "files from a backup made on a different computer.

    5. in the dialog box indicating "Select the location of the backup to restore", select "hard drive, CD or DVD...". »

    6. under the drop-down list box, select your drive/partition and continue

    7. If all the backups on your drive, it will show a list of them.

    8. in my case, he showed a backup, but in the backup location, it will show "backup location is not available."

    9. I was frustrated, but then I somehow just select this backup (Yes... even if he said that thebackup location is not available " ")

    10. and you press "next".

    11 guess what... no error!

    12. a window appeared asking me if I wanted to do a full restore, or I want to select specific folders or files.

    13. I selected the folders I wanted to restore and bingo... it their restored smoothly.

    14. so that the next time see a mistake, try to continue with him... ;)

    I don't know if this will help, but it does not provide much information about the process (when it works).

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How can I send a RAW file and keep it RAW?

    How can I send a RAW file and keep it as a RAW file to the recipient?

    Consider DropBox. It's free and without problem.

  • How can I fix lines horizontal randomly and glitter for the LCD screens for HP Pavilion dv5 Vista?

    How can I correct random lines horizontal and glitter for the LCD screens for windows vista HP Pavilion dv5? Only, it happens randomly and can get all a few minutes at a time every few hours. The entire screen white and black and horizontal lines will appear during the flickering on the half top of the screen only. Nothing else changes. My sound is immutable, and none of my screens change the size or location. However, they may appear up and down during the flashing. Can someone give me an idea of what is wrong? I looked on Google for possible corrections, but most of them seem to be for refresh rate and I don't have a notch for this and can't change it according to the steps they offer.

    Read my initial response on what it takes to please.

    "See if this helps you:

    These lines indicate corruption graphics driver or lack of graphic material.

    Go to the HP Web site > Search a drivers and download article > search your laptop model number > your operating system > drivers for it: either video / graphic / Chipset (according to the wording it) > download and install the drivers.

    http://WWW8.HP.com/us/en/support-drivers.html

    If that fixed it, it seems to me be a problem of graphic material.

    Because it's a laptop; If under warranty, contact HP.

    If is not under warranty, contact a repair shop, local. »

    See you soon.

  • How can I leave my desktop screen and go to the screen where I can click on the icons to go to the websites I want?

    How can I leave my desktop screen and go to the screen where I can click on the icons to go to the websites I want?

    Hello

    Please, move your cursor to the bottom left. You will see a small photo with the screen full of apps, then click on that and you will be taken to this screen,
    It will be useful.
    Josh.
  • How can I transfer my photo files and catalog items on my old laptop to the elements on my new laptop?

    Can I transfer my photo files and catalog items on my old laptop to the elements on my new laptop by simply copying manually on? or is it best done important photo files using organizers "Import" function together with function catalog restore?

    A response to clarify this would be appreciated

    Photoshop Elements help / use Backup, Restore to move the catalog | Organizer | Elements of 6 or newer.

    http://helpx.Adobe.com/Photoshop-elements/KB/backup-restore-move-catalog-Photoshop.html

  • How to read data from several files and add columns in a single file

    Hi guys,.

    I have a problem in adding data from files in different columns. I have the attachment a file A and B which I am reading and not able to get the data in the Result.txt file. Please give your opinion on how can I do this

    You must add the data of all files before proceeding with a single entry.

  • How can I find several duplicate files and remove the using Windows Explorer

    Somehow I see several duplicate on my computer files.  I can tell when they arrived as all the duplicate files ' _10-Mar-15_1. ' " However, I don't know how they arrived.  I think that Google Drive was the culprit, but I can't be sure.

    How we (me) use Windows Explorer to find all files with "_10-Mar-15_1." and delete them all?

    I am using Windows 7 64 bit

    Thank you!!!

    Windows Explorer can do no such thing. To remove recursively a certain file is easy - see below. To identify duplicates and remove some of them is much more difficult, because:

    • Are two files duplicates because
      -They have the same name?
      -They are the same size?
      -They have the same file date?
      -They have the same content?
      -Everything above?
    • When they are, which ones should be deleted?
      -The oldest?
      -The most recent?
      -The batch?

    Here's how to remove a certain file to recursively. Assume that they are in the folder "C:\Users\BHunter\Documents".

    1. Click the start planet.
    2. Type cmd. exe and press ENTER.
    3. Enter the following command and press ENTER:
      dir/s/b/p 'C:\Users\BHunter\Documents\_10-Mar-15_1 '.
      This will show you all the files whose name above.
    4. del /s /q "C:\Users\BHunter\Documents\_10-Mar-15_1."
      This will permanently delete all files with the name above. You cannot restore them.
  • How can I move my pictures, files and catalog to my new SSD

    I have all my photos, files and my catalog Lr5 master saved together on an external HD. If I install a new SSD in my PC can I just copy all the files of the Lr5, main catalogue, and photos in the new SSD then launch Lr buy clicking on the main catalog on the new SSD?

    Hi pm8546,

    Greetings.

    Please visit this link and follow the instructions - http://www.lightroomqueen.com/how-move-lightroom-to-new-computer/

    ~ Rohit

  • How can I make bridge organize files and folders in alphanumeric order?

    I keep my files in nested folders.  In Bridge, everything is in random order.  How can I configure bridge to view these items in alphanumeric order?  It doesn't seem to be preferences for this.  I have seems pretty basic to me, but somehow I'm missing.

    Alphanumeric order (A, B, C, & c.) in each file and between files.

  • How to clean safely on certain files and programs if the C drive is full.

    Vista problem?  How to free up more space.  I have several thousand photographs and I can delete some people.

    Will I need to buy more memory?

    Hello

    see if this program helps you to determine what is take up space

    http://www.Jam-software.com/treesize_personal/

    by default system restore will have up to 15% of the capacity of the hard disk

    you would like to reduce this amount

    http://www.Vistax64.com/tutorials/76227-system-restore-disk-space.html

    http://www.vista4beginners.com/system-restore-space-used

    also use disk cleanup

    http://Windows.Microsoft.com/en-us/Windows-Vista/delete-files-using-disk-cleanup

    also scan for malware

    Download update and scan with the free version of malwarebytes anti-malware

    http://www.Malwarebytes.org/MBAM.php

    and read these information from microsoft on windows optimization

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

  • How can I use external CSS, JavaScript and Images in the PeopleSoft Portal?

    I develop a website and I need to put my CSS, JavaScript and IMG files in a folder on the server that can be used by the objects of my HTML.

    Where should I put the images? How can I get the HTML code of the objects can read these images?

    I tried several things like:

    < link rel = "stylesheet" href = "" < % = psCtxPath % > < % = psHome % > \MyStyleSheet.css "rel ="stylesheet"type =" text/css">"

    "< link rel ="stylesheet"href="\portal\MyStyleSheet.css "rel ="stylesheet"type =" text/css">

    "< link rel ="stylesheet"href="\ps\images\portal_pa\MyStyleSheet.css "rel ="stylesheet"type =" text/css">

    By "Object HTML" do you mean HTML definitions in App Designer? If so, how you use these HTML definitions? You use the PeopleCode GetHTMLText? You want to store your images and CSS in the database where it won't delete whenever you regenerate PIA (Tools fixes and upgrades)? If the answer to all these is Yes, use %Bind(:1) (or: 2: 3, etc.) for your images, JavaScript and CSS. In your PeopleCode, use % Response.GetImageURL (IMAGE.NAME_OF_YOUR_IMAGE), Response.GetJavaScriptURL (HTML.NAME_OF_YOUR_JS_DEFN), %Response.GetStylesheetURL(STYLESHEET.) YOUR_CSS_NAME) to obtain the URL of the item stored in the cache. Pass this URL to the GetHTMLText function as the value for one of bind variables in the HTML code.

    If you put images in the folder root (PORTAL.war) of your web server, and reference to ' / '. If you put them in a folder under PORTAL.war, for example, a folder named ps, use/ps/nameoffile.png. Always use ' / ', not '-' for internet URLS.

  • How can I combine an old file history browsing in the current?

    Several weeks ago my PC C: drive has been replaced, and Firefox has been recreated before I could copy on my old profile to the new drive. Now I want to recover the old browsing history, but of course the new profile already has his own, more recent places.sqlite file, that I don't want to lose.

    How can I combine the two stories?

    It is not possible.

    You cannot merge the history.

    One way to do this would be to use a separate profile and copy the file places.sqlite this profile (file delete an existing places.sqlite-journal).

    Use him copy / paste to copy the elements of the story in a folder of bookmarks in the Menu folder bookmarks.

    Export Favorites to an HTML file and import this HTML file in the current Firefox profile.

Maybe you are looking for