Can RuntimeStore store share some objects customed between applications?

Hello

I know that one application, we can use RuntimeStore to share information, including objects customed.

What happens if sharing objects across applicatioins customed?

Here is my scenario:

1. two applications, app1 and app2.

2. start app1. He puts some customed objects in RuntimeStore.

3. run app2. It attempts to retrieve the objects of app1.

I found this app2 cannot convert object type in type customed as defined in app1, but can convert to some standard objects BB, for example the screen.

So is it possible to share objects between applications customed?

You have a library that share the two applications?

If you then set the store TIME object in the library. If you have not then you need create a library and create the class in the library for applications to use.

Tags: BlackBerry Developers

Similar Questions

  • I can't click on some objects, for example, the sign in boxes in facebook

    I can't click on objects, for example, the sign in boxes on facebook

    Hello

    Please check if this happens in Safe Mode. Safe mode disables the installed Extensionsand themes (appearance) in (Alt + T) Tools > Add-ons. Hardware acceleration is also temporarily disabled - manual setting is Tools > Options > Advanced > general > use hardware acceleration when available. All these settings/options/additional custom modules can also be individually or collectively disabled/enabled/changed to normal mode of Firefox to check if an extension, theme, option or a hardware acceleration is causing issues. Deactivation/activation of hardware acceleration and some types of modules in normal mode may require a restart of Firefox.

    Uninstalling the modules

    Uninstalling toolbars

    Troubleshooting Extensions and themes

    Extensions of the issues

    Options

    You can also consider the function of Reset Firefox via help (Alt + H) > troubleshooting information.

  • Can I sent some info custom as the name of the db in my audit standard audit trails?

    Hello

    I want to register my audit trails db name while doing a standard audit. Audit process can you provide some contexts custom as the name of the comic?

    Hello

    In 11 GR 2, the only custom value that can be set and which is also found in the audit trail is the aud$ .clientid that you can set with dbms_session.set_identifier.

    in 12 c with Unified audit there is a new feature to include data of application context in the audit trail to the statement of VERIFICATION OF NAMES of CONTEXT,

    Greetings,

    Damage ten Monkshood

  • shared object synchronized between threads/listeners

    I don't know if I go about it the correct way.  I'm hoping that someone could help with this situation. Here is basically what I want to do:

    Have a FIFO queue object that contains the data to send to a web application that can be accessed synchronously between threads/listeners.  Given that the coverage of the data can sometimes be slow or even non-existent, I need to wait for the cover, maybe using CoverageStatusListener that runs on a wire and will suspend/resume the thread on state change.  All this must happen without the need of Auditors threads to wait.

    For example:

    data coverage is non-existent

    ListenerA needs to send data, it places in the queue

    data coverage is restored.  Data queue

    ThreadB needs to send the data until the transmission is completed. We need the data in queue

    transmission of complete, passed down from queue data is removed from the queue

    During all this time, I need ThreadB data exist also in the queue object and not be lost when the data is complete and is removed from the queue.  I need ThreadB to continue treatment and do not wait until the transmission is completed.  I played a bit with display of threads that are cycled every five minutes or so if they could not pass successfully, but that logic is not feasible.  Say you are out of the coverage of the data for an hour or two, but you end up needing to pass 50 items.  You have 50 son sitting there waiting to pass.  Or a listener for each point that everyone is trying to send at the same time.  What happens if the device dies or is reset?  I looked at RuntimeStore, but that does not record the data and I don't know what happens when 2 wires need to add data to the queue at the same time.  PersistentStore will not be able to hold the data if/when it becomes too large.

    Here it is the pseudo-code.  I know that some things will probably not work.  Just trying to get down the basic logic.

    public class TestFoo extends Application {
      public static void main(String[] args) {
        TestFoo foo = new TestFoo();
        foo.enterEventDispatcher();
      }
    
      public TestFoo() {
        CoverageInfo.addListener(new CoverageListener());
        ThreadA threadA = new ThreadA();
        threadA.start();
        ThreadB threadB = new ThreadB();
        threadB.start();
      }
      public class ThreadA extends Thread {
        public ThreadA() {
        }
        public void run() {
          while (true) {
            //do stuff
    
            if (/*something */true ) {
    
            }
          }
        }
      }
    }
    
    public class HTTPThread extends Thread {
      private boolean suspended;
      private FIFOQueue queue;
      public HTTPThread() {
        setSuspended(false);
        /*
         * get queue from filesystem???
         * or create new queue if not there???
         * load into RuntimeStore???
        */
      }
      public void run() {
        while (true) {
          if (isSuspended()) {
            try {
              wait();
            } catch (InterruptedException e) {
            }
          }
          //fetch queue from RuntimeStore???
          if (queue.isEmpty()) {
            try {
              wait(); //can notify us when an object is added to the queue???
            } catch (InterruptedException e) {
            }
          }
    
          if (hasDataCoverage()) {
            Object obj = queue.getHead();
            boolean successful = false;
            if (obj instanceof MyObject1) {
              MyObject1 myObject1 = (MyObject1)obj;
              //send data based on MyObject1 structure;
              //set successful
            } else if (obj instanceof MyObject2) {
              MyObject2 myObject1 = (MyObject2)obj;
              //send data based on MyObject2 structure;
              //set successful
            } else {
              //not a valid object of mine for some reason
            }
            if (successful) {
              //get queue again from RuntimeStore???
              queue.removeHead();
              //return queue back to RuntimeStore???
            }
          }
        }
      }
      public synchronized void setSuspended(boolean suspended) {
        this.suspended = suspended;
      }
      public synchronized boolean isSuspended() {
        return this.suspended;
      }
    }
    
    public class CoverageListener implements CoverageStatusListener {
      //Only location this will be started so only one instance exists
      private HTTPThread httpThread;  
    
      public void coverageStatusChanged(int newCoverage) {
        if (!httpThread.isAlive()) {
          httpThread = new HTTPThread();
          httpThread.start();
        }
    
        if (newCoverage != CoverageInfo.COVERAGE_NONE) {
          if (httpThread.isSuspended())
            httpThread.setSuspended(false);
        } else {
          httpThread.setSuspended(true);
        }
        httpThread.notify();
      }
    
    }
    
    public class ThreadA extends Thread {
      public ThreadA() {
      }
      public void run() {
        while (true) {
          //do stuff
    
          if (/*something */true ) {
            //Somehow put data into the queue
          }
        }
      }
    }
    

    I think that there are a number of; habits that will help you design it - the producer/consumer and observer patterns come to mind.  I'm not a design guru so will not pretend even to help you work through this.  But all I can say is that models provide generally well thought out structures for the problems that.  I encourage you to read about them.  You might find these useful references:

    http://www.javacamp.org/designPattern/

    http://zone.NI.com/DevZone/CDA/tut/p/ID/3023

    In general I'm not comfortable with your overall solution.  I would look at something like that

    (a) offer a 'service' to your users that collects the data to send.  There is no need to be a wire, it is just a method that they call and pass in the data.  These data are persisted.  This method 'Add' is owned by the transmission process and is the only visible part of the outside of the treatment.  This treatment should also begin sending wire (see b) if it is not executed.

    (b) have a thread that attempts to send the data.  You can launch this thread on changes in coverage if you want, but make sure that you can have a single run.  This thread should check coverage before attempting to send anything, and just end if there is no point of trying.

    (c) your submission Thread will get in situations where she send and does not receive a response from there is another error.  In this case I recommend the blocking of the Thread for a time and then try to send again.

    (d), I said in (a) that the add-in has been the only visible part of the outside of this treatment.  However you're better instrument your process so that users can find out if your thread is running, how much he sent, if the last transmission worked or not of data and so on.

    Treatment based on a vector of data to send.  Synchronize on this vector before changing.  In the "add step (a), add an element to the vector."  In processing step (b) delete the first item when you have treated.

    There is a problem with this design in that there may be overlap if the sending thread terminate because it has nothing to do and add treatment add something and does not start the Thread because it is actually running.  You must code carefully around that.

    I hope this helps.

  • Can I share my workouts with the application of the activity?

    I got the Apple Watch and love, that the design of the application of the activity, it is nice to remember to get up every hour to my work.  The problem is that I use a lot of apps to track my training because one size does not fit all, and I don't wear my watch $400 so I exercise (I have a striped Mio Alpha 2 for that).  So I have training in the gym followed my pace heart with Wahoo Fitness and followed my weight training with Strong.  After I finished my training, I synchronize Wahoo health or myfitnesspal app.

    Then I put on my Apple Watch and I do not see this workout on the implementation of the activity.  I'm just ignoring the activity app because it does not recognize the exercise I do.  How to share the workout with the application of the activity data?  Or, at least, how can I push workouts to my application of health for the purposes of the activity?

    Hello

    It is not currently possible to share training sessions with the app of the activity in the way you describe.

    The application of the activity titles activity undertaken while wearing Apple Watch. He that follows in general everyday wear and also reflects training sessions which are recorded through the application of integrated training (or Apple Watch of third party apps, if they are able to update the rings of progress).

    Health and fitness data (including training sessions) of Apple Watch, iPhone and any other source is grouped within the health on iPhone app. These data are not (and cannot currently be) back in sync app Apple Watch activity.

    If you want Apple to consider changing how data is shared between the health app and app activity, you can do so here:

    https://www.Apple.com/feedback/watch.html

    More information:

    http://www.Apple.com/watch/fitness/

    Use the activity on your Apple Watch - Apple Support

  • The use of SQLite to store the JSON object

    Hello

    Can someone guide on how to store a JSON object returned after the use of the Adobe provide parser JSON which returns the native object

    as

    resultobject = JSON.decode (data)

    Where the data is a JSON string.

    The 'result' object is a complex subject, but I would like to keep this object because it is in the SQLite database.

    I tried BLOB for the column type but doesn't seem to work to store this object. Ideally, I prefer to use this way to avoid the redesign of the main code as I am currently using the SharedObject method.

    Any ideas?

    Can you just store the data as a BLOB string?

  • Can I set up custody of data between databases already available on two different servers?

    Hi, people

    Can I set up custody of data between databases already available on two different servers? If Yes please can you share the links.

    Host operating system: business Red hat Linux 6.5, 64-bit

    The two DB: Oracle 11.2.0.1

    Thank you

    But my question is that I have already two databases running on two different servers that have different data as well.

    In this case we can able to configuration data guard on these two databases.

    The answer may well be yes or no depending on what exactly you mean. Let me explain... Suppose that my Setup matches your description. I have two database servers, we will call them HOST01 and HOST02. HOST01, I have a database named ORCL1 and HOST02 I have a totally different database named ORCL2. Two databases... two hosts.

    Can I do ORCL2 a physical database ensures for ORCL1? The answer is no, I can't. I can't use another existing database to be one physical standby of another. ORCL2 must be destroyed and ORCL1 copied to HOST02 so that I have a database of duplicate.

    Can I use ORCL2 logical waiting for ORCL1? Yes. However, it would be a rare configuration.

    Can I copy ORCL1 to HOST02 and create a physical standby of ORCL1 on HOST02? And then can copy ORCL2 to HOST01 and HOST01 to provide a physical standby for ORCL2? The answer to both is Yes. You can have the other provide a standby for the guests of the database have sufficient resources to support the primary one and the expectation of the other.

    HTH,

    Brian

  • How can I change the shortcut to move between the layers?

    I am well aware of how to move between the layers, using the keyboard.  I also know how to find my keyboard shortcuts (Edition > keyboard shortcuts).  I am unable to find, however, is where can I change the shortcut to move between layers.  I searched the whole shortcut list a few times now and I don't see it anywhere.  What Miss me?

    The answer is simple.  Shortcuts of Photoshop not all are editable. Some shortcuts cannot be changed.  ALT +, (Select low layer Visible), Alt +. (Select the Visible layer), Alt + [(select the next lower layer Visible), and Alt +](upper layer select next Visible) are the keys to select and scroll through the layers. Only the Visible layer can be selected with these shortcut keys.   This means that you cannot solve any of the visible layers in the Action in a relative way.  They would need to be address by the name of the layer that is a problem for the layer names need not be unique.  There may be more than one layer of the same name.

  • Share some presets

    I tend to take pictures of the abandoned buildings.  I don't have a lot of skill with camera or lightroom.  It seems to me that a useful shortcut would be to share some presets.  Is there somewhere that people don't it?

    Thank you

    Alex

    Hi maximedecary,

    You can start to learn Lightroom by following the tutorials below:

    Adobe Photoshop Lightroom Help | Lightroom help

    Products | Lightroom | Adobe TV

    Many filters are built into Lightroom itself.

    You can go for third party presets if you wish.

  • Why none of the mobile applications are compatible with my Samsung Galaxy Note 10.1 Tablet? I can only use some of the mobile applications with my Samsung Galaxy Note 4

    Each Adobe Mobile App I want to install from the game store Android Google indicates that it is not compatible with my Samsung Galaxy Note 10.1 tablet, but some are compatible with my phone Samsung Galaxy Note 4. I prefer to use mobile apps on my tablet on not on my phone. Can someone explain why I can't use mobile apps on my tablet. I thought that mobile applications are compatible with the tablets and phones?

    Please refer to why none of the mobile applications are compatible with my Samsung Galaxy Note 10.1 Tablet? I can only use some of the mobile applications with my Samsung Galaxy Note 4

    (Double Post)

  • How many songs can be store in an IPod touch 64GB?

    How many songs can be store in an IPod touch 64GB?

    If you want to just load up on music and do not load on apps and leave about 4 GB of free space for a reliable operation of iOS and depending on the quality of encoding, compression of data or not, of anywhere, at least 4000 songs and, eventually, up to perhaps 8 000 songs or, approx.

    My new, 6th gen iPod Touch, 64 GB of storage (56 GB of usable storage space) has my music library complete on this subject with about 2000 songs that use 16 GB of storage on my device

    I use the best encoding settings formats AIFF or Apple Lossless quality.

    I have about 23 GB of free storage space.

    So I wouldn't be able to get up for another 2500 songs or so, if I use another 20 GB of free space for the music, for a CA.  total of 4500 songs.

  • Pitch bend wheel on my pc - 300 midi keyboard Roland. The Modulation part works but when I try to pitch bend a note using the same logic of wheel just plays a continuous note. Can someone give me some advice please? Thank you

    Hi, I have a problem with my pitch bend wheel on my pc - 300 midi keyboard Roland. The Modulation part works but when I try to pitch bend a note using the same logic of wheel just plays a continuous note. Can someone give me some advice please? Thank you

    It's a delicate issue... like some patches cannot stipulate pitchbend...

    But to quickly test your pitchbend wheel actually works properly...

    Download the free lunch monitor...

    Snoize: MIDI Monitor

    Run and see if it sees pitchbend data sent by your keyboard... and therefore by logic.

  • I want to install windows on my new macbook and I need to create a partition. I have not now what size to make my windows partition. Can someone give me some advice?

    I want to install windows on my new macbook and I need to create a partition. I have not now what size to make my windows partition. Can someone give me some advice?

    1. in what year is your Mac?

    2. What is the size of your storage internal?

    3. what version of Windows?

    4 as a general rule 60-100 GB for W8 + / W10 is recommended. You can also create a minimum Windows (30-50 GB) and use an external drive D: for documents applications for portability.

  • I recently had to replace my iPhone 6.  I can't store contact information, such as names and phone numbers.  I enter all the information and click Save.  Then go back and contact is not there

    I can't store the information under telephone contacts.  I enter information and press on save, but go back and contact is not there

    Is - this with iOS 5.0.1 and 4 s?

  • Can I store photos on iCloud and remove them from my phone?

    I'm running out of storage on my phone, and I have a ton of space in my iCloud.  How can I store photos on icloud and then delete them on my phone?

    You can turn oniCloud photo library and have pictures on the phone optimized for the limited iPhone storage.  The instructions in the link are clear enough but I would like to know if you have any questions.

Maybe you are looking for