Some events are not dispatched when app runs in background
My Android app has a TIMER event which fires once every second to connect a TCP socket (class flash.net.Socket) and send a request.
A packet sniffer confirms that a socket is in fact connecting, request is sent, reply comes back and connection is closed, all happening once per second.
Clearly, even with the app in the background, the TIMER event is occurring every second, because the timer handler is initating every socket.
But not every closing connection causes a CLOSE event to dispatch, because my close handler is called less frequently. Sometimes once in 3 seconds, 8 seconds or even longer.
The CLOSE dispatches correctly once per second when the app is in the foreground.
Why are CLOSE events being missed when the app is in the background? What is the difference between a TIMER event and a CLOSE event, causing one to dispatch correctly but not the other?
Thanks.
I've narrowed my problem down by chopping pieces of code until it works, and I think I have it narrowed down to the code that uses FlexGraphing but need to check a bit more...
It's odd that it works in Flex3 builder though, and there are no errors when I run in as AIR. In fact, the app RUNS, since it is in the task manager, but it won't appear.
Similar Messages
-
At present 2 websites are not opening. When I am trying to open these sites either "problem loading page or the website you are looking is not present". These two messages are being displayed.
Try clearing your browser cache.
Tools > Clear Recent History... - hit Details and make sure only Cache is selected, then select Everything and hit the Clear Now button. -
Withholding taxes not updated when program run in background
Hi,
in a z1 report i do:
SUBMIT z2
VIA JOB lc_jobname
NUMBER v_jobcount
WITH p_fecha = p_fecha
WITH p_file = v_file_in
WITH p_e_file = p_efile
WITH p_client = p_client
WITH p_test = p_test
AND RETURN.
within this z2 report i do:
PERFORM mrm_invoice_create_call(saplmrm_bapi) USING s_rbkpv
tab_frseg[]
tab_co[]
tab_ma[]
c_rbstat_posted
space
CHANGING invoicedocnumber
fiscalyear
return[]
f_subrc.
IF test IS INITIAL.
COMMIT WORK AND WAIT.
ELSE.
ROLLBACK WORK.
ENDIF.
the question is that if i run z1 report online there is no problem but if
i run z1 report in background, withholding taxes are not calculated.
After debugging this is what i´ve found out:
1.- in PERFORM mrm_invoice_create_call(saplmrm_bapi) there is a call to fm FI_WT_POST IN UPDATE TASK
2.- in FI_WT_POST table WITH_ITEM is updated
i guess this could be due to a delay in updating the table so i´m considering doing a WAIT UP TO X SECONDS.
why is it working in online mode but not in background mode?
any idea?
Best regards.Hi,
in case someone is interested this is how i solved the question:
i had badi MRM_WT_SPLIT_UPDAT implemented.
in this badi implementation i had this code (among other checks too):
CHECK sy-tcode = 'MIR4' OR sy-tcode = 'MIR7'.
this code avoided the background job case.
It seems that In a background job sy-tcode is empty.
so i just needed to add this:
CHECK sy-tcode = 'MIR4' OR sy-tcode = 'MIR7' OR sy-batch = 'X'.
and then withholding taxes reappeared again.
(so sad, so true... one day of debugging, sigh)
Best regards.
Edited by: Pablo Casamayor on Feb 2, 2012 4:53 PM -
Some photos are not loaded when surfing on facebook and sites.
Its only with firefox, because i tried other browsers but they did'nt had this problem.
Please help.If images are missing then check that you aren't blocking images from some domains.
*Press the F10 key or tap the Alt key to bring up the hidden "Menu Bar" temporarily.
*Check the permissions for the domain in the currently selected tab in "Tools > Page Info > Permissions"
*Check "Tools > Page Info > Media" for blocked images
*Select the first image link and use the cursor Down key to scroll through the list.
*If an image in the list is grayed and "<i>Block Images from...</i>" has a check-mark then remove this check-mark to unblock images from this domain.
Make sure that you do not block (third-party) images, the permissions.default.image pref on the <b>about:config</b> page should be 1.
Make sure that you haven't enabled a High Contrast theme in the Windows/Mac Accessibility settings.
Make sure that you allow pages to choose their own colors.
*Tools > Options > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
Note that these settings affect background images.
See also:
*http://kb.mozillazine.org/Website_colors_are_wrong
There are extensions like Adblock Plus (Firefox/Tools > Add-ons > Extensions) and security software (firewall, anti-virus) that can block images and other content.
See also:
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
*http://kb.mozillazine.org/Images_or_animations_do_not_load
*http://kb.mozillazine.org/Websites_look_wrong -
Some folders are not opening when I double-click.
Hi. I am currrently on an iMac, running OS 10.6.8. Last week random folders stopped opening when I double clicked them. I found it happening more when I started a new folder ( command n) and renamed it. Whenever I double click, the folder "whooshes" to the left never to be found. The folder stays on the desktop and does not open. The only way to get my items out is to throw the folder away, get an old folder, rename it and take the items out of the trash.
Any ideas as to what the issue may be? I've restarted the computer, shut down the computer, force quit the finder, relaunched the finder etc. I have done an "get info" and made sure everything is "read and write" as well. This is becoming a headache for about a week now.
Thanks for any help.Try clearing your browser cache.
Tools > Clear Recent History... - hit Details and make sure only Cache is selected, then select Everything and hit the Clear Now button. -
Some folders are not showing when I insert external thumb drive
When I insert a thumb drive into usb slot, I do not see all the folders which contain Jpeg files. How do I overcome the problem ?
Sorry if I didnt ask the question properly because my Eng is bad
But I am not intended to write on those drives, I have no third party software installed
I just want to read those files, I copy those files through Windows 7 on my bootcamp partition
However, I can't read those specific files on my NTFS drive in MAC OS, but I know its there because when I plug into another PC, they are showing up fine -
Some links are not working when i click on them
I will click on a link and it loads and then nothing. The only way I can open it is to open link in new tab. This has been happening since the new updates. Very frustrating as I have to resort to Google Chrome in order to not have to deal with this. Lots of links will not open.
Nothing in header. Email from booking.com. Richard
-
HT4009 Some games are not available
Hello;
Why Some games are not available (qatari Apps) ?It all depends on the list of libraries/jars you specify under project properties->libraries.
When you create a Servlet through the JDeveloper wizard for example, JDeveloper automatically adds the needed jars to your project. -
some of my contact names are not appearing when they text message me. They are just showing up as their numbers. I have them saved in my phone so i am not really sure why their names aren't showing up when they message me?
I have this identical problem. For a while my group texts didnt show up on my ipad. Then one day they did, maybe everyone in the group started using the same os version or something. Ever since my first reply to the group there have been complaints of multiple threads. I can not find a pattern for when my group text's decide they want to create a new thread. (it doesnt happen every time) Everyone in the group has deleted the thread, we've all toggled imessage on/off etc. There still hasn't been a solution.
Any help would be appreciated.
Thanks -
My Iphone calendar events are not showing up in iCal when I sync? Syncing has not been an issue till today?
I found this tip from a 2011 discussion on the same topic.
Open iCal and backup or export your entries. Make a note of the fie name and location, you're going to need them in a minute. Once your backup/export is completed, close the iCal application.
Open Finder and remove everything inside the "Username/Library/Calendars" folder. For instance, if your username is "Joe", then move everything inside the "Joe/Library/Calendars" folder.
Open the iSync application. It's located in the "/Applications/" folder. Once iSync is opened, go into the iSync Preferences (iSync -> Preferences) and push/click the "Reset Sync History" button. Then, close the iSync application.
Re-Open the iCal application and Import (File -> Import) a new calendar. When prompted, use your notes from Step #1 to select the file your created earlier. Once completed, close the iCal application (you should have all of your calendar entries back.)
Open the iTunes application and connect your Apple iPhone to the computer.
Within the Advanced section of the Info tab for the Apple iPhone, check the box the overwrites/replaces the Calendar data on the Apple iPhone.
Click the Apple/Sync button. New, modified and deleted entries should now be syncing correctly.
That's it! You should be all set and iTunes, iCal and our Apple iPhone should all be playing nicely as friends again. We've used the exact method to repair our own Apple iPhone at least once... maybe even twice. -
Hello
After upgrading iPhoto 9.1.2 when you synchronize the iphone / iphoto ipad events are not copied correctly (this option checked all the photos on itunes).I found this other thread discussing this topic, no fix, I will revert to 9.1.1 from Time Machine and wait for a new update.
https://discussions.apple.com/thread/3023160? -
When i want to install itunes 10.5 there is an error (some keys are not found). Can someone help me, please???
I have solved the Problem
-
hello..when I download attachments from any email..iPages opens and says some features are not supported and cuts out photos and lengthens my attachments
What format are the attachments? If Pages will not display them properly you will need an application that does. Pages usually opens word documents but can give problems at times, if they are MS Word documents, try Libre Office or failing that you may have to purchase MS Word for Mac, maybe you will need to buy the complete Office suite.
The other possiblity is that you already have a suitable application and Pages is loading the file by default, if so change the default application to open that file type. -
Seems the battery life "range" on my iPhone 4 is eroding and not holding charge, unlike when I first bought it. I have "turned off" apps running in background...
Thanks for sharing.
-
Firefox stops responding and some times dose not start when clicked on alot!
fire fox 9 stops responding for long periods and some times dose not load when clicked on. Also please note fire fox refuses to load the comments section on Yahoo.com under the news tab. The little wheel on the bottom of the page just spins and spins and never loads this area of the page.
I think i know why but wonder since i have had issues with fire fox in the past with the whole not responding and load issues.Firefox which stops responding after some time is a BIG problem. You're not the only one. The problem seems to be with sites which require Java. The problems I seem to have spotted is this : You visit a web site which needs Java so Java asks Firefox for the amount of memory needed and this is lent to JAVA. However, when you leave that web site, Java is naughty in that it doesn't give back the memory borrowd. Firefox then has to consume a lot of memory to the point that the whole computer system grinds to a halt as you have run out of memory.
Search in the forums for high memory or RAM and you will see many threads. In fact, when you first install Firefox it will ask if you want to send anonymous data about the memory usage!!
Maybe you are looking for
-
My computer crashed after about a week or so into the free 30 day trail of Photo Shop CC. (Also I had downloaded the free 30 day trial of Adobe Audition on same computer.) Can I cancel both of those and start over now that I have another computer? Th
-
Faxing from the desktop with a Photosmart C7280
I have several printers some of which allow me to fax directly from the desktop rather than having to scan it on the printer itself. When I install the C7280 it install the printer and it also created a second printer, "HP Photosmart C7200 series fa
-
Hi How do i create Monthly Statements for Customers with Invoices Past Due by 60 Days Only.. Do i have to Create a Custom Program and assign it Correspondence or is there any other way.. Thanks Sivaram
-
Walkman App Version 8.3.A.0.54
Is there a way to create a shortcut on your play lists? As opposed to opening the app, swiping right, selecting play list and the shuffle. On the previous version you could make a shortcut to your Favourites for example. Solved! Go to Solution.
-
Aperture and PhotoStream - too big images?
Just updated my Lion workstation and Aperture to 3.2. Merged to iCloud the whole and I was trying to get a grip on PhotoStream. While taking a picture with my iPhone and having it everywhere right away seems cool, as a photographer with a Canon 1Ds M