Force the persistent data that is not retained on App upgrade

Hello

I'm developing a new version of an existing application. The earlier version of the data stored in the persistent store of the device. When a user installs the new version of the application, they get a prompt saying something like "the persistent data is stored on the device. You want to keep these data? ».

If the user answers Yes, the application will continue to use the old data which has been made persistent by the initial version of the application. This isn't what I need to happen.

If the user answers no, the app will wipe the old dat and rebuild the store persistent with my current data. It is the course of action I want to request each time.

Since there is no way to guarantee that each user will select 'NO' to this prompt, is it possible to configure the new version so that the data is not retained automatically?

What other options are there for dealing with this situation?

Thank you

The f

If the application can access the old data, why not just remove them when the application runs? In order to distinguish, again, you can design new data to contain a signature value that is not present in the old data. (For example, you can set your local record store to have record 1 always contain version store data, in a format that is not likely to be present in earlier formats.)

An upgrade does not (usually) follow the same procedure with regard to the persistent data as a sequence of uninstall/install. However, there are occasional messages here on updates apparently lose persisted data that was supposed to be preserved. I did not understand everything exactly what are the causes which, but it has not considered the norm.

P.S. If you use RecordStore instead of Persistable, custom classes are not relevant. The record store is deleted when all the MIDlets in the MIDlet suite, who created the store folder is uninstalled.

Tags: BlackBerry Developers

Similar Questions

  • compare the data and the output data that do not exist

    Hello
    I've written a procedure to insert data into a table 3 where I compare the data between two tables, if it matches it insert in the table test_a Joanie. If the exists not or other tables i.e. test_code and test_type it should output this data, where there is no. my code works for a single table, which is test_code. It's not DBMS display a line that is not in the table test_type. could just tell my why? Assume that if test_code a line which is only not in test_type it should out saying this line of incompatibilities with test_type and vice versa.

    -Here's my code

    Test of CREATE OR REPLACE PROCEDURE. GET_data
    IS

    BEGIN
    DELETE test.test_a;
    FOR c IN (select a.cCODE,
    a.type,
    a.Indicator,
    RTrim (xmlagg (xmlelement (e, a.codenum |))) (') a.codenum order) .extract ('/ / text()'), ',') codeNUMber.
    b.CCODE cc,
    b.type tp,
    b.Indicator ind
    test.test_code a, test.test_type b
    where a.ccode = b.ccode (+)
    AND a.type = b.type (+)
    AND a.indicator = b.indicator (+)
    Group of a.ccode, a.type, a.indicator, b.CCODE, b.type, b.indicator
    order of a.ccode)
    LOOP
    BEGIN
    IF (c.cCODE = C.c.c.
    AND C.type = C.tp
    AND C.indicator = C.ind
    AND C.SYS_IND = C.SYSIND) THEN
    insert into test.test_a (CCODE, type indicator)
    values (C.cCODE, C.type, C.indicator);
    ON THE OTHER
    dbms_output.put_line (' rules for cCODE issue: ' |) C.cCODE);
    dbms_output.put_line ('type: ' |) C.type);
    dbms_output.put_line (' indicator: ' |) C.Indicator);
    dbms_output.put_line (' problem of rules for CC: ' |) C.C.C.) ;
    dbms_output.put_line ('tp: ' |) C.TP);
    dbms_output.put_line ('ind: ' |) C.IND);
    END IF;
    EXCEPTION
    WHILE OTHERS THEN
    dbms_output.put_line (' rules for cCODE issue: ' |) C.cCODE);
    dbms_output.put_line ('type: ' |) C.type);
    dbms_output.put_line (' indicator: ' |) C.Indicator);
    dbms_output.put_line (' problem of rules for CC: ' |) C.C.C.) ;
    dbms_output.put_line ('tp: ' |) C.TP);
    dbms_output.put_line ('ind: ' |) C.IND);
    END;
    end loop;
    commit;
    END;
    /


    Thank you

    You must use a FULL OUTER JOIN instead an OUTER JOIN for this.

    Just curious, why do you need to use dbms_output instead to execute the SQL query with additional conditions (if part of your procedure)?. You can use two times, one to insert those that match and one for the selection of others who do not match.

    Kind regards.

  • Request for the old data that does not correspond to new data within a given period

    Hi all

    The reports that I need to create one for all employees who were going from one Department to another within a given period. The way I ran this report in Reportsmith (taken from our old system) was to compare the dept field from the start date to the dept in the end date field and it gives me these associate who had moved. I had to do it this way b/c dept changes can occur using several different types of actions (change to Surv, promotion, etc.), none of them exclusive to only change dept. We now use Oracle HRMS and I need to create this report even with this system using SQL.

    Does anyone know how to compare the data between two different dates and shoot those who do not match? Your help will be GREATLY appreciated!

    Best regards,

    Yasmin E. Alberto
    HRIS analyst
    [email protected]

    Hello

    Here is an example of an INSERT statement that may be relevant to this issue:

    INSERT INTO emp_action (empno,   action_date,                           deptno)
                    VALUES     (7902,    TO_DATE ('2009-06-18, 'YYYY-MM-DD'),   10);
    

    If someone wants to help you, in doing anything more than guess, then that person probably will need create tables that are similar to yours (but much smaller).
    To do this, they can issue instructions CREATE TABLE to the tables, the INSERT commands to fill (put data in) the tables.
    The tables invloved in this problem are probably simple, so if I can see some INSERT statements, I can probably write instructions CREATE TABLE myself and save you the trouble.

    For more info on INSERT, see the [Manual of the SQL language | http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_9014.htm#sthref8944]

    If you compare the deptno to a row of a table to the previous line, you can use the analytic LAG, something like this:

    WITH     got_prev_deptno  AS
    (
         SELECT     empno
         ,     action_date
         ,     deptno
         ,     LAG (deptno) OVER ( PARTITION BY  empno
                                     ORDER BY         action_date
                          )   AS prev_deptno
         FROM     action_table
    )
    SELECT     *
    FROM     got_prev_deptno
    WHERE   deptno         != prev_deptno
    AND     action_date >= TO_DATE ('2009-01-0'1, 'YYYY-MM-DD')
    AND     action_date <  TO_DATE ('2009-03-01', 'YYYY-MM-DD')
    ;
    

    Like all functions, the OFFSET is described in the [Manual of the SQL language | http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/index.htm#I].

    Published by: Frank Kulash, June 18, 2009 11:53
    Originally missed a few quotes.

  • How to remove fasteners of the persistent disks that do not have a desktop computer?

    Hello community,

    We have a small problem in our society. We use VMware View 4.5 and really like it. Our office is based on Win7 and everything works really well. But for some Ford, we managed to create persistent discs attached... without a desktop computer?

    As you can see on the capture screen, desktop computers are used with persistent records. Five of them are assigned to a user, but do not have a desktop computer. Users can work, because they have a new drive persistens, created automatically. But the 'old' are now and can not be spare, cause her are not attached! But without disassembly, we cannot delete it. Just posted discs can be deleted... it's a doom loop

    So maybe someone has already had the same error? I mean... the files do not exist on our storage and users can work, there is no problem with this, but it seems that the database of the vmware view do not know, that the files have disappeared... is there a way to delete the entries in the database for this five-disc?

    We have tried to export (with the tool on the server) and re-imported, but it doesn't work, cause, you are not able to remove things when importing data backups... What can do us?

    Hello
    Take a look at the link:
    In the other discussion, the solution was: connect with ADSI, go to OU = data disks and remove entries
  • Here is a list of the driver updates that do not install for one reason or another: Intel Desktop/Workstation/Server Express Chipset SATAAHCI controller your driver is out of date.

    Here is a list of the driver updates that do not install for one reason or another:

    Intel Desktop/Workstation/Server Express Chipset SATAAHCI controller

    Your driver is out of date.

    The installed driver date 30/05/2012

    New driver Date 18/09/2012

    After the next driver update > the following message appears:

    This driver downloaded successfully.

    You want to install it now?

    Yes. Then was the following result:

    Please update your Windows update Agent version.

    You can download the latest version by clicking here.

    If the Microsoft FixIt solution above does not solve your problem.

    Check on the Intel site.

    For example: http://www.intel.com/p/en_US/support/detect

  • request to get the next date which is not a public holiday

    Hello world

    I need help for a query.  consider the following data

    holiday

    -------------

    SELECT To_Date('12/28/2015','mm/dd/yyyy') double holiday

    UNION ALL

    SELECT To_Date('12/25/2015','mm/dd/yyyy') double holiday

    UNION ALL

    SELECT To_Date('08/31/2015','mm/dd/yyyy') double holiday

    UNION ALL

    SELECT To_Date('05/25/2015','mm/dd/yyyy') double holiday

    UNION ALL

    SELECT To_Date('05/04/2015','mm/dd/yyyy') double holiday

    curr_DATE

    -----------

    SELECT To_Date('12/25/2015','mm/dd/yyyy') double holiday

    UNION ALL

    SELECT To_Date('12/24/2015','mm/dd/yyyy') double holiday

    UNION ALL

    SELECT To_Date('12/23/2015','mm/dd/yyyy') double holiday

    data of curr_date are the main table.  given a date, I want to join the vacation and the date of the Curr so that the result will be a date that is not a holiday.  for example, what gives 28 Dec.  the next available in curr_date < 28 dec date is dec 25. However, dec25th is a holiday on the guest table if the output should be dec 24.

    Another example is the following: given dec 25 date, the previous date, unless that Dec. 25 is dec 24th dec 24 is not in the host table output should therefore be dec 24.

    Another example: I'll add another line to the curr_date table. If the data will look like this

    curr_DATE

    -----------

    SELECT To_Date('12/28/2015','mm/dd/yyyy') double holiday

    UNION ALL

    SELECT To_Date('12/25/2015','mm/dd/yyyy') double holiday

    UNION ALL

    SELECT To_Date('12/24/2015','mm/dd/yyyy') double holiday

    UNION ALL

    SELECT To_Date('12/23/2015','mm/dd/yyyy') double holiday

    given dec 29, the next available in curr_date date is less than 29 dec 28 dec. However, dec28th is holiday in the host table. the next available date is dec 25 in curr_date, but once again dec25 in the host table.  the next available date is 24, but this date is not in the host table output should therefore be 24/12/2015.

    So basically I want to do this in the query by joining the two tables.  can anyone help? pl/sql is ok if it cannot be done using quries.

    Hello

    If you want to use a join, here's one way:

    SELECT MAX (c.holiday) AS last_non_holiday

    OF curr_date c

    LEFT OUTER JOIN holiday h ON h.holiday = c.holiday

    WHERE c.holiday< to_date="" (:cutoff_date,="">

    AND h.holiday IS NULL

    ;

  • What is happening with the DNS requests that cannot not find a matched host (A) RR in the zone are sent to WINS servers, but there is no WINS server installation?

    What is happening with the DNS requests that cannot not find a matched host (A) RR in the zone are sent to WINS servers, but there is no WINS server installation?

    Hello

    Please repost these questions in the Technet Forums

    http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer

    See you soon.

  • Why the time & date that sits on the computer change whenever I have Vista premium edition reboot.using

    original title: why the time & date that sits on the computer change every time I have Vista premium edition reboot.using

    Larson

    Larson

    Make sure you set your time in the right time zone.
    Right-click in the time at the bottom right > set date/time > time zone

    If this isn't the problem, then...

    You probably need a rew CMOS battery.

    How to replace the CMOS battery
    http://www.computerhope.com/issues/ch000239.htm

    CMOS battery
    http://murfsgarage.cybertechhelp.com/CMOS.htm

    ATTENTION: while the battery itself is very good cheap, be careful if you decide to replace yourself.
    It is better to have another friend who knows also computer be with you together.

    The safest way is to pay the Department store. But it will cost you.
    Your call.

  • I installed a new router (Netgear N300) wireless and my laptop is the only computer that does not connect to the internet.

    Connected to the new router, but locally only.

    Currently, I installed a new router (Netgear N300) wireless and my laptop is the only computer that does not connect to the internet. The small icon to the left of my screen says only: ACCESS: LOCAL ONLY.
    BASICALLY,.

    I have Windows Vista Home Premium, notebook Compaq (Presario CQ60 to be exact)

    I can connect if I use a cable, but its disadvantages.

    I can connect wirelessly with my PC and Ipad. and Internet access.

    I TRIED:
    Various patches microsoft such as resetting TCP, safe mode with network, reset the router. »

    Thank you in advance and we hope you can answer this soon!

    I use an Atheros AR5007 802. 11 b / g WiFi Adapter(Compaq laptop) for the moment so this is useful. Thanks again!
    Someone suggested that I update my wireless driver. I am open to this idea, if anyone can find a safe and legal site with the download.

    Hi Bryyaan11,

    You can check out the link to HP support and try to download the drivers for your wireless card updated:

    Support HP & drivers

    For more information, you can also consult the following article:

    Updated a hardware driver that is not working properly

    You can also check the following items and try the steps:

    Windows wireless and wired network connection problems

    Solve problems, find wireless networks

    Hope this information is useful.

  • Tried to open the Excel spreadsheet in Sharepoint, but get the message "cannot open the window because it contains the following features that are not supported by Excel in the browser: sheet Protection.

    I tried to open this Excel spreadsheet in Sharepoint and received the following message.

    "Cannot open the window because it contains the following features that are not supported by Excel in the browser:

    -Protection plate

    You want to try to open the message in Excel? »

    Learn more about the unsupported features.

    YES                       NO

    When I type 'Yes', I had then the second message.

    "To open this workbook, your computer must have a version of Microsoft Excel is installed and your Web browser must support opening files directly from Excel in the browser".

    What should I do?

    Original title: sharepoint excel files

    Tommy:

    I have 64 bit explore.  So I guess that the thought is that the error message was generated by the incoming file, as I have other files Excel I can access in Sharepoint with no problem?  I sent the file Outlook e-mail and was able to open it with no problem at all.  .

    Thanks for the information,

    Jim

  • How to find the library files that are not due to problems of indexing

    I need help to know how to find the library files that are not as a result of indexing problems?

    I use Windows 7

    Thank you

    Charlene

    Try to open the folder that the library uses directly.  For example, if it is your Documents folder, open C:\Users\Charlene\Documents

  • I have an epson 520. I just changed my ink, but the ink levels that do not reflect on the computer. What can I do?

    I have an epson 520. I just changed my ink, but the ink levels that do not reflect on the computer. What can I do?

    Contact Epson for their advice.

  • I can't install the new application on my iphone 5s revel.  I tried to install the update, and that did not work.  I deleted my app and rebooted my phone and tried a clean install and that no longer works... Help!

    I can't install the new application on my iphone 5s revel.  I tried to install the update, and that did not work.  I deleted my app and rebooted my phone and tried a clean install and that no longer works... Help!

    Please see the post below updates on the issue of the revel facilities:

    Problem installing Adobe Revel 2.3.2

  • How to load at the beginning of the persistent data for an application that will implement a persistent database.

    I'm developing a smartphone application that will create a persistent database to store the data.  But I want to initially load the database.  Does anyone have suggestions as to the best way to do this?

    "How safety is the persistent database" - in my experience, very.  I worry about losing it.  The option of charging is more useful as a way to get a user wandering on the rails.

    I suspect delete cod, you will need to provide in a separate application, i.e. a separate alx, or download the jad file separate of OTA.

    Is not a snippet of code to remove a cod, have a look round I think remember me someone on this forum Announces some.

    Here's a code snippet that shows if a cod is present and if so, use it.  This cod contains only data, a little as you want.  In this case, the data is XML, which the application takes a string and then analysis.

            String moduleName = "";
            int handle = CodeModuleManager.getModuleHandle(moduleName);
            if ( handle != 0 ) {
                try {
                    String className = "";
                    Object dataObject = (Object) Class.forName(className).newInstance();
                    String dataString = dataObject.toString();
    
  • Generate data that are not available in the table

    I have a table that has monthly data for agents. Example of table structure is the following:

    create table agt_dum)

    agent_id number,

    number of months,

    Commission number)

    Examples of data include:

    AGENT_ID MONTHS COUNCIL

    1150
    12100
    1625
    2110
    2220

    Month value can be from 1 to 12.

    So as you can see these data is missing for the agents a few months.

    Here, the requirement is I need to generate data for each agent for 12 months. If the data is not already in the table and are should include agent_id, month number and commission is equal to zero.

    The output for the above data would be:

    AGENT_ID MONTHS COUNCIL

    1150
    12100
    130
    140
    150
    1625
    170
    180
    190
    1100
    1110
    1120
    2110
    2220
    230
    240
    250
    260
    270
    280
    290
    2100
    2110
    2120

    I tried SQL query with full outer join. I was able to generate data for columns of MONTHS and the COMMISSION using the NVL function. But I have been unable to generate the AGENT_ID.

    Please share your suggestions.

    I'm using Oracle 11 g 2.

    Thank you

    Sudhanshu

    If you need something like:

    WITH agt_dum (agent_id, MONTH, commission)

    (SELECT 1, 1, 50 IN all double union)

    Select 1, 2, 100 of all the double union

    Select 1, 6, 25 Union double all the

    Select double union all 2, 1, 10

    SELECT 2, 2, 20 DOUBLES)

    all_months as (select rownum as LUN double connect by rownum<=>

    SELECT *.

    To all_months:

    partition outer join agt_dum ad bequeathed (agent_id) on (ad.month = am.mon)

    /

    It is not yet complete, but I'm sure you can handle the rest...

    HTH

Maybe you are looking for