storage array for use in different classes

HI - newbie here. Need a bit of advice on how to proceed. Use version 5 of the SDK, have a main class that calls a GPS receiver and a further appeal to a listener of SendLocation. If both are running on different threads, of the main class. In the GPS receiver I want to do is to create a table of positions GPS who have not been sent to a server, so GPS can try to get a post every minute while the SendLocation listener can not send every 5 minutes so I need to the table. However to cause 2 separate categories, I need the table to persist in some way (this is because it could be used across more than just the 2)... So 2 questions:

-J' is already using a persistent storage object, but I can't see how to add a picture in a persistent storage. If anyone knows what I have to do to add to this?

-Secondly, I want the listener SendLocation to delete the details once they were sent and that they do not need to persist through the device resets. I would be better to create a singleton in the runtimestore and use it? If for the same question, how to create a table in a singleton - can find integers, strings etc but never the tables...

If someone could give advice it would be greatly appreciated.

an array is an object, and any object can be stored in the runtime store.
This means that you can store a table directly in the runtimestore.

Martin is, of course, right to say that a public static variable is visible between threads in the same instance of the application, that the details are not known here, I added the information for your safety.

as a tip on the ground: the qualifiedcoordinates object is reused by the system, if you want to store or compare its values to copy them into a new object.

Tags: BlackBerry Developers

Similar Questions

  • I download Apple Quicktime for use in my class of biology to my PC - not a procuct apple how I can do

    I download Apple Quicktime for use in my class of biology to my PC - not a procuct apple how I can do

    Apple has removed QuickTime for Windows. Why do you need it?

  • How to create a Java array for use with jsoup AddAttributes ()?

    Hello. Anyone used jsoup to clean HTML submitted by users?

    When I ask jsoup to add additional attributes to the white list I get this error: "the addAttributes method was not found."

    The AddAttributes requires a table. I tried to use a CF array, an array of Java and even a string, but nothing has worked.

    I'm using CF8. My test code is:

    <cfset jsoup = createObject("java","org.jsoup.Jsoup")>
    <cfset whitelist = CreateObject("java", "org.jsoup.safety.Whitelist")>
    <cfset html="<div style='font-size:24pt;'>This is BIG text</div>. This is an unwanted script: <script>alert('Boo!')</script>.<br>">
    <cfset myAttribsArray=[":all","style"]>
    <cfset myAttribsArray=javacast("string[]", myAttribsArray)>
    <cfset sanitized = jsoup.clean(html, Whitelist.relaxed().addAttributes(myAttribsArray))>
    <cfoutput>
    <textarea rows="10" cols="60"> #HtmlEditFormat(sanitized)#</textarea>
    </cfoutput>

    The code works if I don't bother with AddAttributes () but I need to add the style attribute to the white list. Can anyone help please? Thank you.

    The AddAttributes () API reference is here:
    http://jsoup.org/apidocs/org/jsoup/safety/whitelist.html#AddAttributes

    You can see the signature of method setAttributes() as follows:

    
    

    If you run you will see setAttributes() expects a string and an array of strings.

    addAttributes(java.lang.String, java.lang.String[])
    

    Given that, do something like:

     jsoup = CreateObject("java","org.jsoup.Jsoup"); whitelist = CreateObject("java", "org.jsoup.safety.Whitelist"); html="
    This is BIG text
    . This is an unwanted script: .
    "; myKeys=["style"]; sanitized = jsoup.clean(html, Whitelist.relaxed().addAttributes(":all" , JavaCast("string[]", myKeys))); WriteOutput("");
  • How is upgrade from Standard to Enterprise Version - difficult to migrate vm to ESX server for Central storage for use with VMotion

    Hi all

    We plan to upgrade our current system. We have 1 ESX Server with Standard operating system. Adding 2 more ESX Server with Enterprise edition and upgrading of our current business. We have about 15 VM on our current ESX Server. The migration process is difficult to move the virtual machines in storage Central for use with VMotion. I intend to take the ESX 3.5 Fast track class before you start the upgrade. I am trying to plan a project planned for the time to migrate these courses.

    Any guidance would be great.

    Robert

    Here is a link to the plugin - http://sourceforge.net/projects/vip-svmotion/

    The amount of time it will take to migrate the virtual machine online all depends on the size of the drive, the configuration of storage etc.

  • Should we use FIX or RR for ALUA storage array?

    We have activated just ALUA on the CX4-240 storage array.

    After the restart ESXi hosts, the policy path is set to fixed.  Need to change us to Round Robin?

    Your opinion is requested.

    Thank you

    Hello

    As mentioned earlier, Vmware HCL says that you can make the VMW_PSP_FIXED

    http://www.vmware.com/resources/compatibility/detail.php?deviceCategory=san&productid=4427&deviceCategory=san&partner=30&keyword=cx4%20240&isSVA=1&page=1&display_interval=10&sortColumn=Partner&sortOrder=Asc.So if you would like to switch to RR,you have to check with EMC to know its Supported path policy. Since your FLARE code is 29, it would be good if you can get updated (Flare 30) after confirmation by EMC.

  • Configuration of MXL port for PS-M4110 storage array

    Dear all,

    I have to configure my Force10 MXL GbE 10/40 for PS-M4110 storage array. I have two PS-M4110 connected to ports 0/13 and 0/15. I have configured the following way.

    FTOS (conf) # don't activate any dcb

    FTOS (conf) # enable iscsi

     

    Configuring the ports 0/13 and 0/15 (ditto)

    OTF (conf-if-you-0/15) con #sho
    !
    interface TenGigabitEthernet 0/13
    no ip address
    MTU 12000
    hybrid portmode
    switchport
    FlowControl rx tx off
    spanning tree bpmh edge-port
    spanning tree rstp edge port
    spanning tree portfast 0
    spanning tree pvst edge-port
    Profile-compellent iSCSI
    no downtime

    I just need to know if these settings are correct. And what I have to configure iscsi target (3 260 860) ip address of the port-(A.B.C.D) as well? If Yes, then what IP should be given here? Group-IPaddress?

    I used this guide as a reference.

    http://Dell.to/1uxp4LW

    And it seems that you have everything in place. The guide recommends not to use iscsi optimization for large san deployments. You can browse the guide too, just to double check.

  • Storage spaces for different size tables

    Hello

    I have a situation that everyone has probably, so I would go into more detail about this.
    Working with databases with different objectives, a single OLTP and OLAP one another, the two tables with different sizes... some with 1 M, some with 100 M and others with 150 G or more.

    Recommendation of the Oracle, so the suite all storage spaces are created in the form of LMT, but I don't know if I can put something else to optimize performance, such as reading or writing, once the databases have different objectives and therefore with different behaviors.

    If someone could help me how I should give attention, I really appreciate.
    The version of database can be regarded as 10g and 11g.

    Thank you.

    Alex

    No, really no need to worry about direct allocation tablespace in realtion to the performance of the queries. There are some operations such as the allocation of file extensions and tablespace performance impact scope object, but it can be difficult to see this. Just make sure your expandable size of file on the data files extension is large enough so that the next object needing another measure will also not wait as the file expand. With the maximum of a measure in a size auto-allouer tablespace is 64 M, a volume of measure G 1 file would be 16 degrees of object so 15 additional objects may expand (at this size) before a another file extension becomes necessary.

    What to do is determine if you want to count automatic sur-affectation to manage measurement of object allocations or to use uniform extensions so that each measure in the tablespace is the same size. If you use uniform extensions then you must make a choice of the same size for all or separate objects in small object and object of large size tablespaces and use a different scale for each size. Maybe 512K for small and 8 M wide. It's just a matter of how you want to manage your tablespace usage and growth.

    HTH - Mark D Powell.

  • ESX server with 2 different storage array?

    Hello.

    I currently have my ESX servers connected to storage DS4700 and most berries.  Each ESX is double path via a switch which, in turn, allows me to see my DS4700.  My question is, can I i the area my ESX Server so that it can "see" my DS8300 and I would be able to assign LUNS of my ESX servers with no problems?  Both can coexist?  I think I should use for my DS4700 host bus adapters and host bus adapters that are dedicated to my DS8300?  A UNIX point, these 2 storage arrays do not 'communicate' the same way (for example, SDD and RDAC).

    Thank you.

    Steph

    SDD driver is for the multipath. VMware has its own multi-channel driver that is shipped with ESX server, you won't not any 3rd party multipathing software.

    In any case to be abel to see camps Bay you have no need to activate the software multpathing. It is intended only to provide a redundant path to any logical unit number hosted by a single table through several MS SPs/Ports.

    Area just for DS8300 ESX Server and a new analysis should see the new targets and when you present LUNS to your host definetion analyze again another you should see the DS8300 LUN.

    I hope this helps.

    -Surya

  • While creating a slide show with pictures, can you assign music to a specific set of photos? I would use 5 different pieces of music for every 5 parts of my slide show.

    While creating a slide show with pictures, can you assign music to a specific set of photos? I would use 5 different pieces of music for every 5 parts of my slide show.

    No, you can't.  One solution is to create 5 different slideshows and export them to the office where you can bring together them in a single quicktime movie file and use it.

    If you have a copy of iMovie 6 HD, it can be hacked to work with El Capitan. With it you can assign exactly music groups of slides in the slide show:

  • How can I delete a file on my iOS device that I downloaded from my iCloud? I just want to keep the Preview on my iOS device without using my storage iOS for the entire file.

    How can I delete a file on my iOS device that I downloaded from my iCloud? I just want to keep the Preview on my iOS device without using my storage iOS for the entire file. This means that the file is still in the iCloud and available to be downloaded to any device.

    In practice, I want to be able to scan and download through my documents located in my iCloud and once I didn't need them on my iOS device I would like 'load their return to the cloud' to my storage of the iOS device is not used.

    Thank you in advance to the community!

    Max

    The only way I found to do that once a file has been downloaded is to remove it and add it again through either from Finder on Mac or iCloud.com.

  • When you subscribe to an application using a different email for your apple ID

    When you subscribe to an application using a different email from your apple-ID

    Will be the details of this figure yet the subscription to (and editable) under your apple ID?

    Im having trouble cancel the payment for the registration of an application (I think that's why) I used a name user ad nother email what is my apple ID.

    Can someone help me?

    Greetings Ninabnina,

    Thank you for using communities Support from Apple!

    From your question, it sounds like you subscribed to a service of an application using an in-app purchase. If this is correct, this in-app purchase or subscription would be bound to this specific Apple ID.

    Do an in-app purchase

    You can make in-app purchases in applications that offer.

    You must enter your password Apple ID to make in-app purchases. You have two options to password to choose from with in-app purchases:

    • Always demand: when you make a purchase, you will be always asked to enter your password, even if you are signed in with your Apple ID.
    • Ask after 15 Minutes: when you make a purchase, you will be asked to enter your password only once every 15 minutes.

    You can also configure Touch ID to make in-app purchases. Learn how manage your password preferences.

    If you have problems by performing an in-app purchase, make sure that your payment information is up-to-date.

    On in-app purchases - Apple Support

    If you think you can make the purchase with another Apple ID, you can connect to this ID and view your purchase history to confirm.

    See your purchase history in iTunes on Mac or PC - Apple Support store

    If you just need help the cancellation of the subscription, the following article will explain this process.

    View, change or cancel your subscription - Apple Support

    If you do not know what Apple ID the purchase or subscription was made on, you can try to have reported the problem directly to our support of iTunes Store by using the following link.

    Report a problem with an item purchased from the iTunes Store, App Store, Mac App Store, and iBooks Store - Apple Support

    If you still hit roadblocks, you can contact the iTunes Store support directly and they should be able to help understand this situation and get these cancelled subscriptions.

    Apple - Support - selection

    Have a great day!

  • Batchmodel: How to use the different positions of the switch-for EHR?

    Hello

    I use the Batchmodel OR three EHR. HAD the current number can be read from RunState.TestSockets.MyIndex.

    Can the lot this three EHR. What is the way - OR to use different maneuvers (OR-SwitchExec) to each dut?

    TestPlan is for example

    Configure the DMM

    Put

    Measure

    Turn off the switch.

    Switching is of course different for each Instrument.

    I really should add an if around each switching (= endless work) or is there an easy way that I'm not currently?

    If (RunState.TestSockets.MyIndex == 0)

    DUT1 switch

    Else if (RunState.TestSockets.MyIndex == 1)

    Switch to DUT2

    Else if (RunState.TestSockets.MyIndex == 2)

    Switch to DUT3

    on the other

    end

    Thanks for the tips

    Best regards

    OO

    I wouldn't use either of the prerequisite or if things... It's too much work and I'm lazy.

    I would just use the built in step of switching:

    http://zone.NI.com/reference/en-XX/help/370404G-01/NISE/TestStand/

    Name your routegroups in Switch Executive to match your shooting numbers.

    For example, in the process (s) to connect: box can have the following expression:

    "SigGenToUUT" + Str (RunState.TestSocket.MyIndex)

    And have a road connecting the signal generator to the UUT named SigGenToUUT0.  It would be for USE in socket 0.

    Just a thought!

  • I want to use two different images for a button state...

    I want to use two different images for a button state... [Normal] grayscale media social icon outline [rollover] color media social status icon.

    Option 1:

    Create a status button which becomes transparent in the mouse above.

    Have the other underneith of the image.

    Option 2:

    Create a status button with a background image.

    Then select a different background image for each State.

    You can also do cool stuff like Sprite buttons too.

    Example: Adobe Muse Social Sprites by MuseThemes

    Widget page: Adobe Muse Social Sprites by MuseThemes

    Themes of Muse had a great video about these doing just now.

  • If I buy the adobe cc then can I use it on several laptops at the same time? I use two different computers for my work. as a photoshop and illustrator, for example.

    If I buy the adobe cc then can I use it on several laptops at the same time? I use two different computers for my work. as one for photoshop and Illustrator for example.adobe

    This excerpt from: terms of conditions of use Adobe software should help to clarify the terms for you:

    ..... You can activate the software on up to 2 devices (or virtual machines) at the same time, if these activations are associated with the same Adobe ID for the same person, except http://www.adobe.com/go/activation_fr. However, you cannot use the software on these devices simultaneously.

    You can also see:FAQ: where can I find the terms of membership and the terms of use?

  • Help! I used a different email address for my subscription of CC as my Adobe email address!

    Inadvertently, I used a different email address when I paid for my subscription of clouds that I use to connect to the Adobe forums. The result is that the programs that I have installed are 30 days in trial mode. Could someone explain a work around for this?

    I saw that someone referenced this page as a possible solution in this forum, but I don't see how this assistance: https://helpx.adobe.com/creative-cloud/kb/asks-serial-number-error.html

    Once you disconnect, change the email ID and then reconnect.

Maybe you are looking for