background with best practices GUI thread

Hi all

I need to develop an application with background threads over an o and a graphical user interface easy to access some data from the background to the execution of threads and set some parameters to send to these discussions.

I read on this forum and a few doc in KB, found more or less a strategy:

1. make the application with an alternative entry point. I start the background thread when the application starts without any argument. When I click on the alternative input I with arg gui, then I have a splash screen.

2. to push some parameter and to background threads, I use persistent object.

What is the right way?

Can someone send me some examples, any interesting doc Ko or post?

You seem to have quite right, at least how I would.

You can consider using RuntimeStore as PersistentStore.  PersistentStore allows you to add things to your Threads process and/or save the results so that these data are kept after a failure of the device. If you have things that can get lost or are not Persistable, a shared area of RuntimeStore will also act as an ease of communication between your UI and Threads.

You think about the implementation of a SystemListener in your background Application so that the wires can be turned off when the device is powered off and powered upwards again on restart.

I also find it useful to time to completely stop long discussions and start a new.  This just frees all the resources that the thread may have caught accidentally.

You may need to think about how provide you authorization for background processing.

Hope this is useful.

Tags: BlackBerry Developers

Similar Questions

  • Question/design architecture with best practices?

    Question/design architecture with best practices?

    Should I have separate Web server, weblogic application and IAM?
    If yes that how this time will communicate, for example can I webgate on the server that will communicate to each other?
    Any reference to decide how to design and if I have weblogic separate one for enforcement and one for IAM that how session management will take place etc.

    How is general design happens IAM project?

    Help appreciated.
    I have a business web application deployed on weblogic1 and OHS1

    deploy webtier on this OHS1 to protect the resources on OHS1. webtier will be recorded at OAM (where will be able to communicate with OAM)

    I also IAM deployed on weblogic2 & OHS2

    IAM components have weblogic. then ok. But you don't need to ohs2 here, unless your application itself requires OHS for hosting. But here, you mention that it is fair to IAM - so no need to OSH here. IAM installing requires weblogic.

    wanted to know where should I create provider (weblogic1 or weblogic2), and install webgate (OHS1 or OHS2 or both)?

    I hope it is clear now. If this isn't the case, query post for what is not clear.

  • Best practices for the design of a printing environment?

    Greetings,

    If there is a better place for this, please let me know.

    Objective:

    Redesign and redeploy my printing environment with best practices in mind.


    Overview: VMWare environment running 2008 R2, with about 200 printers. I have a majority of printers HP ranging from 10 years old again. LaserJet MFP, OfficeJets, etc... etc... In addition to the copiers Konica, Xerox and Savin. Many of our models of printer are not taken in charge in 2008, and still less x 64.

    Our future goals include services eprint, as well as the desire to manage the print quality, and levels of consumition by something like Web Jetadmin.

    Currently we have a 2003 Server x 86 server running our printers very old and 6 months ago the rest on a single x 64 server 2008r2. We ended up not giving it the attention to detail, it is necessary and pilots have become very congested, this led to a PCL6 only, UPD update that ended up corrupting several drivers through the UPD PCL 5 and 6 of the spectrum. At this time, we brought a second server 2008r2 and began to emigrate to those affected. In some cases, we were forced to remove manually the drivers off the customer system32-> coil-> driver and reinstall.

    I've not had much luck finding good best practice information and thought I'd ask. Some documents I came across suggested that I should isolate a universal driver to a single server, such as 3 servers for PCL5, PCL6, and Psalm then, there is the need to deal with my various copiers.

    I appreciate your advice, thank you!

    This forum focuses on the level of consumer products.  For your question you can have the best results in the forum HP Enterprise here.

  • Machines and ESXi ESXi virtual memory best practical considerations

    We have a new Infrastructure built current and capacity planning that happens. It would help if someone can provide me with best practices on the hardware requirements while building ESXI hosts.

    See the technical white paper for a bit more on this topic below.

    https://www.VMware.com/PDF/Perf_Best_Practices_vSphere5.5.PDF

  • Best practices for setting in RoboHelp to create .chm?

    I have Tech Com Suite 2015. I need to make a FrameMaker book .chm file. I tried to do directly from chassis, but was not happy with the results, so I will try to do a RoboHelp project instead.  Can someone help me with best practices to achieve. I would like to than my files related to RoboHelp, so that I don't have to start over if they are updated. I tried to work with it. You can fix things after you import? For example, if I have does not have difficulty cross-references (and delete page for example numbers) in FrameMaker, before the import/lining, what I have to do it again?  I have worked with FrameMaker for quite a long time, but I'm less familiar with RoboHelp. Is there a video or webinar showing how to do this? Or can someone give some tips and things that I should know about this procedure. Thank you

    Hello

    1. the table of contents at the same level:

    To create levels of navigation OCD in a table of contents in the output to publish FM, we need to change either the first indent, the property size or weight are.

    We determine the level by setting these properties by Tag:

    -First indent,

    -Font Size,

    -Font

    by example, so if you want to have titre3 appear inside Title2 like this:

    Titre3

    Title2

    In Para designer > properties updated by designer of these 2 tags (Heading2TOC, Heading3TOC):

    -First indent Heading2TOC Heading3TOC more

    - Or font of Heading2TOC less Heading3TOC

    - Or the size of the police of Heading2TOC less Heading3TOC

    2. the option Enable browse sequence allows the navigation arrows. Try to activate the option "activate browse Sequence. (apply the latest Patch, help > updates)

    3. Once you create your table of contents, you will see the title of the chapter begins to appear in the breadcrumbs.

    Main effort, you'll need to do, is to create a table of contents leveled once it made should solve the issues you face.

    Amit

  • Separate management / VMotion Best Practice?

    We're heading to 4.0 ESX ESXi 4.1.  Our servers have 4 physical Gigabit NIC.

    On ESX 4.0, we lack 2 vSwitches:

    vSwitch0

    Service Console - Active vmnic0 - vmnic3 watch

    VMkernel - Active vmnic3 - vmnic0 eve

    (Unique network interface cards / IPs by function)

    vSwitch1

    Port VM - vmnic1 and vmnic2 active groups

    (Several VLANS to resources shared)

    With the changes in ESXi, is recommended to separate the management of VMotion as we did with ESX?  Notice that we use the same subnet for these two functions.

    Personally, I would prefer combining Management and VMotion.  VMotion will not only benefit an additional NIC usage, especially with the multiple simultaneous VMotions?  At the same time, it seems not that management traffic would be impeded to the point of needing to separation, as we use the same subnet.  In addition, security should not be a problem, since the new, we use the same subnet for management and VMotion.

    Your configuration is consistent with "best practices". I prefer separate management taffic VMkernel myself, even if it will cost me some performances of vMotion.

    ---

    MCITP: SA + WILL, VMware vExpert, VCP 3/4

    http://blog.vadmin.ru

  • update of best practices of folios

    Hello

    I have a couple of folios that must be updated every month.  Could someone please help me with best practices for planning the release of the new folio and you ensure that it replaces the old one in the Viewer?

    To begin with, in the folio builder Panel, can I create a new folio every month or can I remove items from folio of last month, change its name and keep reusing that?

    I'm also a little confused about how to plan a new available for producers of folio.

    I would really appreciate hearing how the whole process must be managed, Panel builder folio to folio digitalpublishing.acrobat.com producer

    Thank you!

    You're doing a completely new folio for January so that publish in Folio Producer when you want to live for your readers. It replaces the previous edition, he lives next to her. Your readers will be able to see these two questions in your viewer and can choose who they want to download and read.

    You can leave the new folio not published in Folio Producer until the day you are interested in to go live and then click on publish. You can also use our new feature of advanced publication date to schedule a date up to 7 days in advance for the folio automatically go live. You will see this option when you click on the button publish on the folio.

    Neil

  • Windows 7 - best practices doc?

    Any who have seen a doc with best practices on preping has Windows 7 to a view model / Linked Clone.

    I know it's a bit like Windows XP, but stuff like Win7 Enterprise incl. Media Center and other 'useless' things like default.

    / Jakob

    This is the best thing I've found so far for Windows 7 and discover 4.X.

    http://www.creedtek.com/?p=37

  • Best practices - dynamic distribution of VI with LV2011

    I'm the code distribution which consists of a main program that calls existing (and future) vi dynamically, but one at a time. Dynamics called vi have no input or output terminals. They run one at a time, in a subgroup of experts in the main program. The main program must maintain a reference to the vi loaded dynamically, so it can be sure that the dyn. responsible VI has stopped completely before unloading the call a replacement vi. These vi do not use shared or global variables, but may have a few vi together with the main program (it would be OK to duplicate these in the version of vi).

    In this context, what are best practices these days to release dynamically load of vi (and their dependants)?

    If I use a library of project (.lvlib), it seems that I have to first build an .exe that contains the top-level VI (that dynamically load), so that a separate .lvlib can be generated which includes their dependencies. The content of this .lvlib and a .lvlib containing the top-level VI can be merged to create a single .lvlib, and then a packed library can be generated for distribution with the main .exe.

    This seems much too involved (but necessary)?

    My goal is to have a .exe for the main program and another structure containing the VI called dynamically and their dependents. It seemed so straighforward when an .exe was really a .llb a few years ago

    Thanks in advance for your comments.

    Continue the conversation with me here is the solution:

    Runs like a champ. All dependencies are contained in the packed library and the dynamic call works fine.

  • Best practices with streams WCCP of WAAS

    Hello

    I have a module WAAS SRE 910 in 2911 router that intercepts packets this router with WCCP.

    All packets are received by the external interface (gi 0/2, connected to a switch with port configured in vlan WCCP) and are sent back to the router via the internal interface (IG 1/0 connected directly to the router):

    WAAS # sh interface IG 1/0

    Internet address: 10.0.1.1

    Subnet mask: 255.255.255.0

    State of the admin: to the top

    Operating status: running

    Maximum transfer unit size: 1500

    Entry errors: 0

    Entry packets dropped: 0

    Packets received: 20631

    Output errors: 0

    Output packets dropped: 0

    Load interval: 30

    Input rate: 239 bps, 0 packets/s

    Output: 3270892 bps, 592 packets/s

    Packets sent: 110062

    Auto-negotiation: on

    Full Duplex: Yes

    Speed: 1000 Mbit/s

    WAAS # sh interface 2/0 gi

    Internet address: 10.0.2.1

    Subnet mask: 255.255.255.0

    State of the admin: to the top

    Operating status: running

    Maximum transfer unit size: 1500

    Entry errors: 0

    Entry packets dropped: 0

    Packets received: 86558

    Output errors: 0

    Output packets dropped: 0

    Load interval: 30

    Input rate: 2519130 bps, 579 packets/s

    Output rate: 3431 bps, 2 packets/sec

    Packets sent: 1580

    Auto-negotiation: on

    Full Duplex: Yes

    Speed: 100 Mbps

    The default route configured in module WAAS is 0.0.0.0/0 to 10.0.1.254 (interface of the router).

    It would be better that the packets leave module WAAS of the external interface (instead of the internal interface)?

    Is there a best practice recommended by Cisco on this?

    Thank you.

    Stéphane

    Hi Stephane,

    That's right, internal interface means SM1/0.

    The best way is to have traffic at the start of the internal interface module so that we are sure, it hits the redirect exclude statement and that we do not have the crest of the loops because WCCP.

    Kind regards

    Nicolas

  • Best practices for client internal connectivity with Horizon view 6

    Hi all

    I saw configuration with a server connection and security.  Internal clients connect directly on the connection to the authentication server, while the external clients through the Security server.  Recently, one of my friends and I had to discuss our configurations.  It has all of its traffic to the Security server.  Its installer seems to be supported by the latest diagrams in the view documentation 6.  What is the best practice?

    Thank you!

    I can certainly see how this diagram is confusing, but it is intended to show the internal clients through directly load balancing to servers connection. If you look at the architecture guide and white papers, they are all show internal clients without going through the security servers.

  • Best practices for network configuration of vSphere with two subnets?

    Well, then I'll set up 3 ESXi hosts connected to storage shared with two different subnets. I configured the iSCSI initiator and the iSCSI with his own default gateway - 192.168.1.1 - targets through a Cisco router and did the same with the hosts configured with its own default gateway - 192.168.2.2. I don't know if I should have a router in the middle to route traffic between two subnets since I use iSCSI ports linking and grouping of NETWORK cards. If I shouldn't use a physical router, how do I route the traffic between different subnets and use iSCSI ports binding at the same time. What are the best practices for the implementation of a network with two subnets vSphere (ESX host network: iSCSI network)? Thank you in advance.

    Install the most common iSCSI would be traffic between hosts and

    the storage is not being routed, because a router it could reduce performance.

    If you have VLAN 10(192.168.1.0/24) iSCSI, VLAN 20 (192.168.2.0/24) ESX

    MGMT and VLAN 30 (192.168.3.0/24) comments VMs and VLAN 40 (192.168.4.0/24)

    vMotion a deployment scenario might be something like:

    NIC1 - vSwitch 0 - active VMK (192.168.1.10) MGMT, vMotion VMK (192.168.4.10)

    standby

    NIC2 - vSwitch 1 - current (VLAN30) guest virtual machine port group

    NIC3 - vSwitch 2 - active VMK1 (192.168.1.10) iSCSI

    NIC4 - vSwitch 2 - active VMK2 (192.168.1.11) iSCSI

    NIC5 - vSwitch 1 - current (VLAN30) guest virtual machine port group

    NIC6 - vSwitch 0 - MGMT VMK (192.168.2.10) standby, vMotion

    VMK (192.168.4.10) active

    You would place you on VLAN 10 storage with an IP address of something like target

    192.168.1.8 and iSCSI traffic would remain on this VLAN. The default value

    gateway configured in ESXi would be the router the VLAN 20 with an ip address of

    something like 192.168.2.1. I hope that scenario help set some options.

    Tuesday, June 24, 2014 19:16, vctl [email protected]>

  • Best practices for vCenter 5.1 with Microsoft SQL Server 2008 R2

    I am looking for a best practices or really any documentation on configuring vCenter 5.1 with a SQL Server 2008 R2 database. I see that SQL Server 2008 R2 is supported, but that's all. Any help is appreciated.

    Unless you have a huge (and I mean huge) environment, the vCenter database in general is not that big of a deal or go-getter and was apparently not deemed worthy for some secret magic tips because of this.

    Standard SQL "best practices" and observe the standard installation documentation when deployment vCenter and you should be good to go.

    Some documents on the vCenter more in-depth database are here:

    http://www.VMware.com/resources/TechResources/10162

    http://www.VMware.com/resources/TechResources/10302

    Also, I highly recommend you watch this recording of VMworld:

    http://www.YouTube.com/watch?v=5Ly64_ca7-I

  • Work with several sequences-best practices

    Hello.

    I ve just started using Adobe Premiere CS6. My goal is to create a long movie, which is based on 30 hours of footage in raw gopro recorded on a recent trip of 2 hours.

    Now my question is, what is the best practice for working with many sequences/clips?

    You have a single file of heavy project, with all the clips?

    Or make you small chapters that contains number of sequences x/x minutes long and ultimately combine all these?

    Or how would you do it the best way, so its easier to work with?

    Thanks a lot for your help.

    Kind regards

    Lars

    I make a primary sequence in your project and then modify the individual scenes in the form of separate sequences, and then nest them in the primary sequence.

    That way, you would have a single file of project heavy with all the media files (raw video, music, etc.).

    I find it easier to work with. With the help of several project files would get too complex and fragmented throughout the of your computer.

    I work with a lot of video GoPro, so I wonder what your Setup looks like. What device you have, and how your computer/Premiere Pro is configured?

  • The best practices with only 4 cards network network

    I'm used to esx with fiber channel without configuration.  This will be my first experience connecting esx to an iscsi san.

    I just have 4 network cards on the server and wonder what is the best practice.

    I think that 2 of the 4 network cards will be dedicated to the San for HA.

    But the other 2 types of throw me a loop for.

    I know I want to console, vmotion and trunk for VLANs, but I don't think I can have all 3 on the same vswitch?

    Am I stuck with having the console and vmotion on a network card and the trunk of the other?  IE - no failover?

    Is there anyway to get console, vmotion and trunk at all exist together?

    Thank you in advance.

    If it were an election, I vote for Josh26

    Just a few additions to his recommendation:

    vSwitch0:

    2 natachasery connected to the ports of the trunk on the pSwitch (vmnic0, vmnic1)

    Service - VLANxxx - Portgroup (vmnic0, vmnic1 active standby) Console

    VMkernel Portgroup for vMotion - VLANyyy - (vmnic0 vmnic1 standby, active)

    Machine Virtual Network - VLANzzz - (vmnic0, vmnic1 active standby)

    vSwitch1:

    2 natachasery (vmnic2, vmnic3)

    VMkKernel Portgroup for iSCSI

    With the above configuration you separate iSCSI traffic, what is most important.

    SC and the VM network share a teddy and vMotion has its dedicated Teddy.

    Everything is redundant.

    André

Maybe you are looking for

  • Mobile suddenly stops the post 10 ios upgrade

    My iphone6 intermittently stop unexpectedly post the upgrade to ios10.sometimes the phone is too slow to react. Can someone help me on this?

  • Battery - background activity to App Store

    I know that the last thing that needs Community Support of Apple is another complaint of battery, however, this case appears to be different then all the others that I've seen here and I am completely baffled. Just within the last 48 hours, my phone

  • Why can't properly install my wireless adapter?

    I can't install my usb wireless adapter, well I run and it shows that its been installed but then when I go into the Device Manager does not here please help IM on windows vista btw I tried to install in SafeMode as well no difference and the adapter

  • Unable to set the desktop backround

    I tried easy access... make it easy to see... Make sure the box is unchecked directions... juice it won't work... juice I bought this netbook last week... don't know if I should put back or what?

  • Lightning causes problems and I have no sound when they play. I tried all the fixes adobes. Any ideas?

    I went through all the patches Adobe is no indication, no chance. It does not work in any browser, IE, firefox, chrome. Sometimes the error message is flash crash, sometimes it's a script error. Any suggestions?  Thank you Win 7, 4530 HP probook, all