Interact with the Application in backup and restore?

I use a persistent storage to save data in my application.  I would like to be able to retain these data for the upgrades of the device.  Suite How To - backup and restore of small amounts of data using SyncItem, I added another point of entry to my request and created a class that extends SyncItem.  I can now properly save and restore my data with Desktop Manager.

At the start, my request has copy data storage persistent local data structures.  While it is running, it only reads and writes on these local structures.  At the exit, he empty local data in persistent storage.  For this reason, if my application is running during a restore, will overwrite the data in persistent storage, but my application continues to run with the obsolete data.  Ideally, I would like to say my request to re-read a persistent storage.  Can I call methods in my application?  In setSyncData, I tried to use UiApplication.getUiApplication () to get a reference to my application, but it throws a ClassCastException.  Any ideas?

Thank you.

UiApplication.getUiApplication () returns the application to the foreground, which can only be your app.  Instead, you can store a reference to your application in the RuntimeStore while it is running.  The restore process could then access the RuntimeStore object and call methods in your application to know that he has read the new, refreshed from the PersistentStore data.

The RuntimeStore works in a way similar to the PersistentStore, with the exception that RuntimeStore data are not permanent (it is lost when the device is reset).

Another approach is to alert the application using a GlobalEvent.

What is - world events and global event listeners
Article number: DB-00145

http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800620/What_Is...

Tags: BlackBerry Developers

Similar Questions

  • Help required with error 0 xC0000001 when opening DULL of the start menu and also impossible to create the recovery Dell backup and restore file.

    I use computer dell laptop inspiron 15 5558 with 8.1 windows preinstalled in it.

    I wanted to reinstall windows but I have no recovery media. Also I'm unable to create a new recovery media from Dell backup and restore. Also, I am unable to open feel of backup and restore in the start menu as this error comes up on screen

    Its always not available on him would happen, rumors were that he should have been made available yesterday, but Microsoft decided not to release it yet:

    http://winsupersite.com/Windows-10/Windows-10-build-10586-heads-slow-ring-insiders

  • Music and video through the center of backup and restore backup

    Vista Home Premium Centre of backup and restoration of claims that music and video files can be saved on CD or DVD. The structures of folders are created; However, the folders are empty. I disabled McAfee and tried with the same result. Can video and music files (mp3 and wma) be backed up by the backup center and restoration? Thank you.

    Hi ChicagoExPat,

    Make sure that the disks are writable, which means that you can add, remove, or modify the content. If you decide to use this method and have a lot of files to backup, be sure to have enough disks to complete the job. The back up files Wizard you indicates how much space you need whenever you perform a backup and recommends the type of media to use.

    For more information, please visit the following links:

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

    http://Windows.Microsoft.com/en-us/Windows-Vista/methods-for-backing-up-your-files

    Hope this information is useful.

    Jeremy K

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

  • My programs do not work after the use of backup and restore.

    I had to restore my laptop to original settings and now my program files do not work or even appear in the start menu. They show on the C drive.

    I used all my programs and files backup and restore for the restoration.

    How can this be repaired?

    Reinstall the programs.

    See you soon. Mick Murphy - Microsoft partner

  • Regarding activation and the process of backup and restore in windows 7

    First of all thanks a lot for the reply of my previous post about windows activation.

    I activated my copy of windows 7 Home premium system builder license successfully in my custom bench. I ordered an ssd drive and I want to install fresh in my ssd and avoid the cloning. Now my question is after installing windows SSD it will activate normally as it was for my hard drive (I used the online activation process). If this isn't the case, then what's the process?
    My next question is after the installation I want to create a file system image of my windows (in SSD) c partition to external hard drive for security. But currently, I have a lot of content in my HARD drive. So if I use windows system image backup option it will also create a backup of the rest of the partition so or I can choose only drive c (my ssd only)? nozzles it will save a lot of space and during recovery, I can only restore C drive and leave intact records. Or I have to use a third party s/w for the recovery of the image?
    Please help me...
    Thanks in advance...

    First of all thanks a lot for the reply of my previous post about windows activation.

    I activated my copy of windows 7 Home premium system builder license successfully in my custom bench. I ordered an ssd drive and I want to install fresh in my ssd and avoid the cloning. Now my question is after installing windows SSD it will activate normally as it was for my hard drive (I used the online activation process). If this isn't the case, then what's the process?
     
    You will need to use the phone activation:
    How to activate Windows 7 manually (activate by phone)
     
    1) click Start and in the search for box type: slui.exe 4
     
    (2) press the ENTER"" key.
     
    (3) select your "country" in the list.
     
    (4) choose the option "activate phone".
     
    (5) stay on the phone (do not select/press all options) and wait for a person to help you with the activation.
     
    (6) explain your problem clearly to the support person.
     
    http://support.Microsoft.com/kb/950929/en-us
    -------------------------------
     
    My next question is after the installation I want to create a file system image of my windows (in SSD) c partition to external hard drive for security. But currently, I have a lot of content in my HARD drive. So if I use windows system image backup option it will also create a backup of the rest of the partition so or I can choose only drive c (my ssd only)?
    You can choose only C:\ or several partitions.
     
    nozzles it will save a lot of space and during recovery, I can only restore C drive and leave intact records. Or I have to use a third party s/w for the recovery of the image?
     
    You can also use Easeus backup, but built into the imaging system should be enough.
    Please help me...
    Thanks in advance...
  • in the windows 7 backup and restore bookmarks to find file for Chrome

    I forgot to save my favorites of chrome before I upgraded to windows 7 10.

    But I have a back up and restore files created a few moments before I upgraded to windows 10.

    Where can I find that my favorites of chrome in windows 7 restore file?

    In one of the subfolders in the % localAppData%\Google\Chrome\User data directory.

    (usually C:\Users\UserName\AppData\Local\Google\Chrome\User data).  They would usually be in the subfolder 'Default', but if you have deleted or created different users, they can be in an another subfolder.

    John

  • Backup and restore cannot start

    Hi all, there

    I was wondering if someone could help or at least shed some light on this problem.

    I try to run "Backup and recovery of Dell" and it does not start with the message "Dell backup and restore has encountered a problem and needs to close. We are sorry for the inconvenience ".

    He used to work in the past, then suddenly it stopped. I wanted to make a backup because it is asking me to do and it fails.

    I wonder if there is a problem with my scores, I haven't changed somehow, but it seems that I have an extra partition to a colleague with a similar, but not the same dell computer.

    Thank you very much if someone could help that would be great.

    The EventVwr says:

    Log name: Application
    Source: Application error
    Date: 16/03/2016 14:58:55
    Event ID: 1000
    Task category: (100)
    Level: error
    Keywords: Classic
    User: n/a
    Computer:
    Description:
    The failing application name: Dbr.exe, version: 2.8.0.62, time stamp: 0x5664aadf
    The failed module name: unknown, version: 0.0.0.0, time stamp: 0x00000000
    Exception code: 0xc0000005
    Offset: 0x0eaabd22
    ID of the process failed: 0x40b8
    Start time of application vulnerabilities: 0x01d17f8bad9564d9
    The failing application path: C:\Program Files (x 86) \Dell backup and Recovery\Dbr.exe
    Path of the failing module: unknown
    Report ID: 828a7aa3-cf59-4b77-88b4-90980f350b6e
    Faulting full name of the package:
    ID of the failed package-parent application:
    The event XML:
    schemas.Microsoft.com/.../Event">


    1000
    2
    100
    0 x 80000000000000

    147397
    Application




    DBR.exe
    2.8.0.62
    5664aadf
    unknown
    0.0.0.0
    00000000
    c0000005
    0eaabd22
    40b 8
    01d17f8bad9564d9
    Recovery\Dbr.exe and C:\Program Files (x 86) \Dell Backup
    unknown
    828a7aa3-cf59-4B77-88B4-90980f350b6e





    Log name: Application
    Source: .NET Runtime
    Date: 16/03/2016 14:58:55
    Event ID: 1026
    Task category: no
    Level: error
    Keywords: Classic
    User: n/a
    Computer:
    Description:
    Application: Dbr.exe
    Version of the Framework: v4.0.30319
    Description: The process was completed due to an unhandled exception.
    Exception details: System.NullReferenceException
    Battery:
    at Win7Library.Win7Lib.GetWin7Lib (System.String)
    at STUICore.Backup.Cloud.CloudProfileManagement.GetLibraries)
    at STUICore.Backup.Cloud.CloudProfileManagement.PreLoadProfileInfo (System.Object)
    at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object)
    at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem)
    at System.Threading.ThreadPoolWorkQueue.Dispatch)
    at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback)

    The event XML:
    schemas.Microsoft.com/.../Event">


    1026
    2
    0
    0 x 80000000000000

    147396
    Application




    Application: Dbr.exe
    Version of the Framework: v4.0.30319

    Description: The process was completed due to an unhandled exception.
    Exception details: System.NullReferenceException
    Battery:
    at Win7Library.Win7Lib.GetWin7Lib (System.String)
    at STUICore.Backup.Cloud.CloudProfileManagement.GetLibraries)
    at STUICore.Backup.Cloud.CloudProfileManagement.PreLoadProfileInfo (System.Object)
    at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context (System.Object)
    at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
    at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem)
    at System.Threading.ThreadPoolWorkQueue.Dispatch)
    at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback)


    Program Dell BU appears to be corrupted. Uninstall and download and reinstall. Get the same/correct version and reinstall. It should be the same version as when the computer was new. You can use the built-in in the windows version of backup instead.

    www.dell.com/.../Dell-Backup-and-Recovery

  • where did bookmark.htm located after the system backup and restore?

    My drive hard was not so much the system windows vista backup and restore function told me to back up what I did on an external hard drive.  Reference Dell comes to replace the hard drive, so now I want to recover my old internet favorite Solution Explorer (no, I never exported bookmarks to an html file - stupid, I know).  were the bookmarks or somwhere bookmark.htm file on my external hard drive and can I somehow get back them?

    Favorites are stored in files URL - a favorite in a file. Search for your
    hard drive for them. Type in a command prompt (type in search of start command
    Make the box then right click and choose Run as administrator)
     
    dir c:\*.url/a/s
     
    --
    ..
    --
    "surfdude67" wrote in message news: bf66c6b5-714 b-40ae-93fb-0210bcedd95b...
    > my hard drive wasn't so much the windows vista backup and restore system
    > service told me to back up what I did for an external hard
    > by car. Reference Dell comes to replace the hard drive, so now I want to recover my
    > old favorites to the internet Explorer (no, I never exported bookmarks to a
    (> html file - stupid, I know). were the bookmarks or the bookmark.htm file
    > saved somwhere on my external hard drive and can I somehow get back them?
     
     
  • Windows backup and restore inefficiency

    I use Windows Backup and Restore to backup personal files from my desktop Win 7 to an external HD. Then, from there, I use Windows Backup and Restore to "restore" my files to backup data to a second location, my laptop.

    It works fine but there is what appears to be a huge inefficiency as part of the restoration of this process: When Restore detects a file on my laptop to a previous restoration with the same name in the form of the new backup file to restore, it offers only two options: overwrite the saved old file with the new backup file , or jump and don't write anything.

    There is no reference to a third option: overwrite old files if and only if the new files with the same name have a date-time later.

    If I do regular backups, it should expect that most of the files in the backup of the former will have not changed in the new backup. But if I choose the option to NOT overwrite the old files of the same name, old file of the same thing, but even with the new dates and times get skipped also and not are not updated. (Given that the choice of the screen jumps to for each of hundreds or thousands of files with the same name in two backups, I check the little box to make the same choice for ALL these cases, rather than manually examining each instance.)

    So if I select the option to change the value nothing, backup and restore is worthless because newly saved files with a more late date-time than in the previous backup will be not updated in the restoration. If I decide to choose to overwrite the previous version of the file was changed or not since the last 'restore' (which is what I do), then use of time and energy of the restore process is increased enormously.

    Y at - it a setting I'm missing that would restore process has replaced the files of previous restorations if and only if the new version of the files have a date-time later?

    If not, this very simple option can be added to backup windows and restore utility?

    If you want this level of options, use a third-party backup application.

    Or wait in the hope that the next version of win may have the added options

  • MS complete PC Backup and Restore for Vista Ultimate backup programs and files?

    I'm new to computers and there is still a lot to learn, I have an OS Vista Home Premium and I think to upgrade to Ultimate and I read that the complete PC Backup and restore can be used with MS Virtual Server to back up the computer. But what I read didn't specifically tell me if she saves some programs I downloaded, it says full backup but computer language being what it is I don't quite mean it as programs and files, which is what I'm interested in. So I can save my programs and files with this system? I don't want to go all the time, trouble and upgrade costs if I can only do half of what I want to do. Thanks a lot for any help on this idea.

    Hello

    When you perform a full backup of the computer, all programs, files and system settings are included.

    Read the articles for more details:

    Back up your programs, files and system settings

    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-your-programs-system-settings-and-files

    See also:

    Back up and restore: frequently asked questions

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

  • Can I download or buy MS complete PC Backup and restore to my Home Premium Vista or a third-party equivalent?

    I've been on a computer for a year so there are a lot of things and I do not know, I had a virus my corrupted files and I had to wipe the hard drive and I want my system backup procedures. I have a Dell Inspiron 1545 laptop with OS Vista Home Premium on a platform bit 68 I found it didn't have the complete PC Backup and restore program for backup. The system I save file, but not programs I could download, as I understand it, this program is in Business or Ultimate Vista OS so I wonder if I can download this program on my computer? Either the backup program by itself, or the program professional/ultimate, preferably something that is free.  Or can I download another program that does the same job? I found that I can backup to a virtual server, mounting vhd and MS virtual machine so I have this in mind too, for any help or suggestion is appreciated. Thank you.

    Hello

    No, you can not download this complete Vista PC Backup program and there is no platform bit 68 (try 64 bit)

    as you have Vista home Premium to will have to use 3rd party software to do

    Here is one you have to buy.

    http://www.Acronis.com/

  • backup and restore will not upgraded

    I'm about to go from 8.1 to 10 & followed a Dell advises pop-up on upgrading the version of BACKUP and RESTORE I want to make sure that I have the system & data backup before you take the leap win10

    It's R & B will supposedly start the download to install the upgraded version but then disappears. I checked the Task Manager and I can't follow what happened to R & B. I opened/re-opened several times, but I get the same result.

    Please can someone advise? I've been trawling the net for a possible solution without success.

    Hi all

    I gave up on the dell system backup B & a. Note there was a premium account.

    I did as Okaganafan suggested and backed up my data using Windows history file. I have win8.1 & the system maximum return was not available. But I managed to manually run the Windows Image backup.

    I also took a manual backup of my data to an external drive, created an ISO to win 8.1 (just in case).

    The win10 upgrade was painless, even if, as expected, it took some time. It has been ~ 24 hours well. Dell B R & updated now too & suggest that do all kinds of disks of backup & recovery. I'll make those soon.

    I am really disappointed with the Dell Premium B & r t was no help!

  • Change password of Windows backup and restore

    I have recently changed my password administrator and need my Windows backup so that this new change. When I go through the button "check your network credentials ' Options, and select the"re - enter your user name and password"need me through the page"Configuration Backup. Without asking me to effectively re-enter credentials.

    So, despite this ridiculous process. How can I re - enter the correct credentials that windows backup needs.

    Kind regards.

    Hi Martin,

    Thanks for posting your query in Microsoft Community.

    Since you are already connected to the PC via the administrator password, backup and restore will require not just any password because it is a feature of Windows. It is possible that you need to enter the password if you are working on network PC using Backup and Restore.

    You can watch the video in the article below:

    Back up your files

    Hope this information is useful. Please feel free to answer in the case where you are facing in the future other problems with Windows.

  • Backup and restore error Win7

    I tried the upgrade to win 10 for 30 days, but restored to Win 7 Pro. Before the trial, my backup and restore has been recorded successfully on an extra partition (d :)) after returning to Win7, I now get the error code: 0 x 81000031.) I tried the work around to restore my default libraries, but that it was not fixed. Are there settings that I can adjust to record the scheduled additional partition backups, again (yes I know that it is on the same drive...)?

    Hello

    Thanks for posting your query on the Microsoft Community.

    According to the description, I understand that you are getting an error code.

    I suggest you to refer to the suggestions of the engineer to Support Microsoft Ankit Rajput replied on 6 December 2015 and check if that helps.

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-update/back-up-error-code-0x81000031/4960e55e-4551-4A3B-ad0f-bb08063d4d5e

    Hope this information helps. Please let us know if you need any other help with Windows in the future. We will be happy to help you.

  • Vista Home Basic. My restore backup and restore is "RunOnce", how do I change to normal?

    I downloaded a program from the internet and immediately unitnstalled, because it was not what I expected. Now my "backup and restore is on" RunOnce.  How to change backup and restore back to normal?

    Hello

    1. What is the name of the program you downloaded / installed?

    I suggest that you perform a System Restore to the point your backup and restoration were normal.

Maybe you are looking for