ALT Enter point, maintain the instance unique app!
Hey all,.
Unlike most who put up the other entry points in their applications of BB, I would like to keep a single instance in which the user interface and the background code treatment will be contained. In other words, no separate instance for unemployment insurance and background processing. My other entry point is made to run at startup, in order to maintain the running background processes, even after restarting the device.
My attempts have been unsuccessful so far. I find myself with several instances after restart, I can see in the bb application selector (long press menu key).
Here is my code. I hope yall can find something in there that I'm doing wrong. Thank you!
public class HelloWorldDemo extends UiApplication implements SystemListener { public static HTTPInterface _httpInterface = new HTTPInterface(); private static HelloWorldScreen _mainScreen; private static HelloWorldDemo theApp; private HelloWorldDemo() { pushScreen(new AppScreen(this)); } /** * Entry point for application * @param args Command line arguments (not used) */ public static void main(String[] args) { // Create a new instance of the application and make the currently // running thread the application's event dispatch thread. String deviceVersionString = DeviceInfo.getSoftwareVersion(); String deviceVersionSubString = deviceVersionString.substring(0, 3); BingModel.deviceVersion = Double.parseDouble(deviceVersionSubString); if (theApp == null) { theApp = new HelloWorldDemo(); } if (args != null && args.length > 0 && "startupEntry".equals(args[0])) { //checking to see of app was set to run in background, before reboot occured. boolean isChecked = BingModel.retrieveState(); if(isChecked == true) { // If system startup is still in progress when this // application is run. if (ApplicationManager.getApplicationManager().inStartup()) { theApp.addSystemListener(theApp); } else { //theApp = new HelloWorldDemo(); theApp.doStartupWorkLater(); } //theApp = new HelloWorldDemo(); theApp.enterEventDispatcher(); } else System.exit(0); } else { BingModel.isRunStartup = false; //if (theApp == null) //{ /// theApp = new HelloWorldDemo(); //} theApp.enterEventDispatcher(); } } private void doStartupWorkLater() { invokeLater(new Runnable() { public void run() { doStartupWork(); } }); } private void doStartupWork() { BingModel.isRunStartup = true; UiApplication.getUiApplication().requestBackground(); } public void powerUp() { removeSystemListener(this); doStartupWork(); }
This code works perfectly for me now. No other entry and no runtime stores.
It will work for someone else who needs their application to run at startup, but only stay running in the background if a framework had been put in the application before restarting or powerdown took place.
This line retrieves a persistent var/setting, which determines whether or not keep the app running in the background at the start or close.
Boolean isChecked = BingModel.retrieveState ();
I hope this helps others!
public class DailyDesktop extends UiApplication implements SystemListener { public static HTTPInterface _httpInterface = new HTTPInterface(); private static HelloWorldScreen _mainScreen; private static DailyDesktop theApp; private DailyDesktop() { pushScreen(new AppScreen(this)); } /** * Entry point for application * @param args Command line arguments (not used) */ public static void main(String[] args) { // Create a new instance of the application and make the currently // running thread the application's event dispatch thread. String deviceVersionString = DeviceInfo.getSoftwareVersion(); String deviceVersionSubString = deviceVersionString.substring(0, 3); BingModel.deviceVersion = Double.parseDouble(deviceVersionSubString); theApp = new DailyDesktop(); theApp.addSystemListener(theApp); theApp.enterEventDispatcher(); } private void doStartupWork() { UiApplication.getUiApplication().requestBackground(); } public void powerUp() { removeSystemListener(this); boolean isChecked = BingModel.retrieveState(); if(isChecked == true) { BingModel.isRunStartup = true; doStartupWork(); } else { System.exit(0); } }
Tags: BlackBerry Developers
Similar Questions
-
Problem - Alt Enter points using Ant
I have problems using the
tag. Bb-ant-tools suggests that it is a nested tag of CAP, but when I run the present, I get an error that is not a nested tag! What should I do to fix the below to set up an alt entry point?
[code]
title = "${title}" vendor = "${provider}.
version = "${version}".
Description = "${description}".
systemmodule = 'true '.
runonstartup = 'true '.
startuptier = '7' / >
<>
title = "${title}".
arguments = "click."
systemmodule = "false".
runonstartup = "false".
startuptier = "7".
RibbonPosition = '0 '.
"icon ="... / img/OrangeA.png "/ >
[/ code]Thank you
Here's how to create another point of entry with bb-ant-tools:
where default.properties is an Autostart entry point:
description=My Elite App for BlackBerry runonstartup=true systemmodule=true vendor=Mobiyana, LLC. version=1.0
and gui.properties provides the icon and the user interface:
description=My Elite App for BlackBerry icon=../res/icon-32x32.png title=Elite App vendor=Mobiyana, LLC. version=1.0
-
Clone Hyperion planning and production to create the instance of development
Hello
We have recently upgraded to 11.1.1.1, and currently, we do not have a test instance. We want to create a test instance. To create an instance of the application of the oracle bs, clone us the app and create a new instance. However when we try to do the same with the planning application, our dev instance is always pointing to the instance of prod. How can we get the dev instance to point to the dev database. Our configuration is essbase on linux and other applications are based on windows.
Pointers are greatly appreciated.
PrasadHello
I did not fully understand what you have done, say you that you have installed v11 on test machines and copied on patterns?
If you cloned just the planning system database, then all data sources will point to the location of origin and will need to reconfigure, it's that if it allows you to reconfigure the data sources, I don't know how you have configured.
The best option with planning is to create an empty application on the target computer, and then migrate the schema.
If you want to take this option while the migration was covered many times here, is such an example here:- Migration of Hyperion Planning Application
See you soon
John
http://John-Goodwin.blogspot.com/ -
Why use ins and out of the points for the clips?
Hello
I use PPCS3 and never understood the need for the ins and points for the clips.
Always just, I took my clip (no matter how long or short) and he parried on the chronology of the sequence.
Is this just another method or y at - it something I'm completely missing when it comes to the ins and outs?
I guess it depends on what you are used to doing.
Any guidance here on where the ins and outs made a big difference would be appreciated.
Thank you
Simon
Simon,
You are using and the Points on the instances of your footage on the Timeline. You're just doing it on the timeline, instead of in the Source monitor. It's a matter of how you want to work. PrPro offers many ways to do different operations. We could also use the monitor fitting to do this, if that's how they want to.
Good luck and we hope this helps,
Hunt
-
When you type text, cursor jumps suddenly to a point in the text already entered. Use Ctrl Z to recover. How to stop this?
I use Windows 7 on a Dell Inspiron.
I recently did a "clean boot" who has cured a problem of high CPU usage, but left me this cursor jumping problem. I have to look at the screen as I type to be aware of these breaks that often occur at random.
Hello Malcolm,
Yours is a laptop? If so, you're probably brushing the touchpad with your Palm or fingers. The easiest way around this problem is with an external mouse with touchpad disabled. To disable the touchpad go to control panel, Manager of devices and look under the mouse or HID for her. Then, right-click on it and select Disable (not uninstall - it will reinstall itself only if you do).
You can also connect an external mouse and select the option for Notification of Touchpad to disable the touchpad when an external mouse is present. This setting can be found in the mouse properties dialog.
Let me know if this solves the problem for you.
Kind regards
BearPup
-
How many users can use the unique apps?
How many users can use the unique apps?
A... the owner
Cloud license allows 2 activations http://www.adobe.com/legal/licenses-terms.html
-Install on a 2nd computer http://forums.adobe.com/thread/1452292?tstart=0
-Windows or Mac has no importance... 2 on the same operating system or 1 on each
-Two activations may NOT be used at the same time (noted in the link above of the license)
-
Question 1: The button "Buy now" does not work when you select a plan.
How to reproduce the problem:
1. go in terms of pricing and membership creative cloud | Adobe Creative Cloud
2. choose a plan, then click on 'buy now '.
3. you go to a blank page instead of the next steps in the payment.
Question 2: Can not select "Monthly Plan" for a "unique App."
How to reproduce the problem:
1. go into "https://creative.adobe.com/plans".
2. under "Unique App", select a product and then try to select the "monthly Plan" in the second menu drop-down.
3. for some reason, it isn't get selected and the price is replaced with the ellipsis (...). I expect the monthly price to appear.
Please notify.
Thank you.
Contact adobe during the time pst support by clicking here and, when available, click on "still need help," http://helpx.adobe.com/x-productkb/global/service-ccm.html
-
I have a subscription unique app (photoshop) of CC. I downloaded to a single computer. I have download problems
Have you installed the Adobe Creative Cloud Desktop from here: creative cloud desktop application
and then use the desktop creative cloud app to install applications?
Using creative cloud | Download, install, update or uninstall applications
You can access the desktop creative cloud application by clicking on the icon creative cloud, located in the bar of tasks (Windows) or Apple menu bar (Mac OS) and install applications from there.
Alternatively, you can install from here if you have any questions:
Direct download links of Adobe CC 2015 : designer Cloud 2015 release
-
The upgrade to complete the CC of 2 unique apps
Hello
I have 2 applications from now on, Ae and PR I seek in get the Ps and AI. I thought I had to buy all applications in a single purchase, each time to buy a new one. In my account management, it is said, "upgrade to full CC and make the best of the complete CC plan."
The subscription of Ae and Pr is annual sub with monthly payment. USD 23 per app. If I update to complete CC and pay 59 USD per month do to use full versions of applications? as ae, pr, ps and AI?
Stupid me, I thought that I had to buy all 4 as unique app purchases.
How can I get 2 simple apps to 1 full teaspoon? do not use more money than necessary
Thanks for confirming. I contacted the support by live chat for adobe. The solution was to the end, one of the unique app subscriptions and to improve.
-
Can I pass a plan unique app of the student without penalty discount plan?
I have I'll soon be a student, but to do the first program earlier than that, is it possible to upgrade to the plan reductions CC student without having to pay for the rest of my plan unique app as well once I become a student
-Thank youHi Charles,
This might be useful: update or change your plan creative cloud
For more details; Please contact customer service
Kind regards
Sheena
-
I see that Adobe has the full creative for $29 / mo - discount to existing subscribers. But, I did not have this option when selecting 'upgrade' of my unique app account. How to get the price reduced?
Single update for all http://forums.adobe.com/thread/1235382 clouds can help
-
Problem with the trial and unique app contract. (a).
My efforts to download the first a "test" and now a unique App contract for one year for InDesign
keep a failure. Can you please help me solve the problem?
Post edited by: Peter Spier
If you have a cc subscription go here, sign in and start your download - https://creative.adobe.com/
-
Create a unique app from the dps, I did the kiosk App?
Hello
I am user of the CTC.
Create a unique app from the dps, I did the kiosk App?
N °
-
help... I can't find the link in creative cloud to download the digital edition of unique app edition. I am a member creative cloud. Where did this app listed on the page creative cloud?
Suz
Tools DPS are buiilt in InDesign CS6 - Folio overlays and Folio Builder. You can download the latest updates of these tools in InDesign by going to help > updates or downloading updates of http://www.adobe.com/downloads. Remember that you need a Mac to create an application. Here is the step by step guide that will help you create your app: http://help.adobe.com/en_US/ppcompdoc/Step_by_step_guide_to_dps_se.pdf
-
Using the coordinates entered to set the starting point of a Tween
Hello
I have a movieclip 'pano_mc' that moves around through the movement of the mouse, there is a hotspot (hs1_mc) nested within it (which moves with the Pano_mc), I have a hs1_mc event delivery, once pressed allows me to get the x and y 'pano_mc' at the point of delivery, I need a way to use these x and y corodinates to set the starting point for the interpolation , on Pano_mc.
Cannot use 'this' (as shown in the link above) that the event is on the hs1_mc and if I just use '_x' interpolation setting, it begins where the film is originally and not where it is when the delivery is executed, where I get the cordinates right here.
var hotSpotTweenX:Tween = new Tween (pano_mc, "_x", mx.transitions.easing.Elastic.easeOut, 0, "400", 3, true);
Is there a way to fill '_x' with the var newx:Number = stagePosition.x; who holds the accurate cordinate of the pano_mc at the time of the press...
I need to be able to use the coordinates xy of the pano_mc captured by the delivery, to set the starting point of the interpolation which then tweens the movie at a predefined point... create an interpolation of seemless...
Can anyone shed some light on this... Thanks in advance"_x" isn't the starting value. This is the property you're interpolation. your ' 0 'is the starting value and your '400' (which really shouldn't be in quotes) is the value of end to resolve your problem, use a variable instead of ' 0'.
Maybe you are looking for
-
I uninstalled firefox, keeping its data as it is then reinstalled, but it does not appear'zone alarm toolbar' & ' so think web video downloader for firefox button "... This has happened Each time Firefox opened == I reinstalled firefox
-
Table 1 d of digital waveforms
I have a table 1 d of digital waveforms and I need to work with the data. I can't get the 'mass' to work with any function table or any other type of function also. I need to be able to convert these so I can find a particular value in the table. Tha
-
Print data LabVIEW using the MATRIX printer?
How to program in LabVIEW such as some data may be printed matrix printer? p/s: the matrix printer (EPSON TM - U220) is connected to the computer via a serial port. I thank very you much for the replies... =)
-
Original title: MS Wireless Optical Mouse 2000. Hi all A Microsoft Wireless Optical Mouse 2000 work with a 1.0 Microsoft Wireless Optical Desktop receiver? It will work with a 2.1 Microsoft Wireless Optical Desktop receiver. So maybe the operating fr
-
Hai I found a thread about the bar shortcuts, but not found response for the it.wish the answer to this thread. I've seen the shortcut bar used in blackberry storm.it seems cool.tried difficult to put in place the shortcut bar, but it seems nice. I w