How to continue scheduled sync even when application in sleep mode
Hi All,
How can we make sure our application will continue to be active even in sleep mode?
I am assigned a feature for our iOS Mobile application that can periodically update user's current geolocation onto remote database.
It works fine when the mobile devices are in activate mode. The timer expire event fired -> grab newest geolocation -> send to database.
However, it did not work at all when devices went into sleep mode. Depending on when/where the devices went to sleep, the code stopped at different points. Like, The timer expire event never fired. The synch with database stops in the middle. The sniffer gps events never return. etc.
I tried to use NativeApplication.nativeApplication.executeInBackground = true as mentioned in (http://forums.adobe.com/message/4386837). However, my flashbuilder compliented can not find this executeInBackground property. (my flash builder is 4.6, air application is 3.1). I tried with -swf-version=16 and with air application set as 3.3 and did not help.
First question: will executeInBackground be the right solution for solving my problem? From document, it sounds like the continue executation is not garanteed.
Second question: For executeInBackground issue, How can I pass the runtime error.
Third question: Is there any better way to implement this type of activities?
Thanks in advance,
If you want to let it sleep, and you are connected via ethernet, you could use WakeOnLan. If you want to print and the server is sleeping, you can wake it up over ethernet.
Jim
1.8 SP G5/iMac G4 FP/PB G3 Pismo Mac OS X (10.4.7) XLR8 G4 Upgrade for Pismo
Similar Messages
-
I deleted the picture in iphoto, then emptied my iphoto trash, but the picture is still showing on my computer when i go into my trash under “all images” How do you delete pictures even when you empty the trash and they stay in the computer?
Wtih iPhoto 9 when the iPhoto Trash is emptied the files get moved to the Trash bin in the Dock as a second chance to change your mind. Look in the Dock's Trash bin.
OT -
I have an iPhone 5 and it shows on the Mail Icon that I have over 3,000 emails to read but the number continues to increase even when I have read the email. I thought once you have read an email it drops off the count of "new emails"
The received emails should show in two locations:
1. In the All Inboxes tab of Mail.
2. The Inbox for each mail account,
If your emails are not showing in these locations try quitting the mail app and then reset your iPhone.
Go to the Home screen and double click the Home button. That will reveal the row of recently used apps at the bottom of the screen. Tap and hold on the app in question until it wiggles and displays a minus sign. Tap the minus sign to actually quit the app. Then tap anywhere on the screen above that bottom row to return the screen to normal.
To reset your device. Press and hold the Home and Sleep buttons simultaneously ignoring the red slider should one appear until the Apple logo appears. Let go of the buttons and let the device restart. See if that fixes your problem. -
Wifi disconnects when waking from sleep mode; running Mountain Lion
Had this same issue with Lion as well,, wifi disconnects when waking from sleep mode,,,any ideas how to fix this pesky issue?
Hi Sky,
This has worked for a few...
Make a New Location, Using network locations in Mac OS X ...
http://support.apple.com/kb/HT2712
10.7…
System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
10.5.x/10.6.x/10.7.x instructions...
System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
The interface that connects to the Internet should be dragged to the top of the list.
Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.
For 10.5/10.6, System Preferences>Network, unlock the lock if need be, highlight the Interface you use to connect to Internet, click on the advanced button, click on the DNS tab, click on the little plus icon, then add these numbers...
208.67.222.222
208.67.220.220
Click OK.
Also, turn off IPv6:
System Preferences » Network » AirPort » TCP/IP tab » Configure IPv6
Or whatever Interface you use. -
My iphone 4s will not find my 6500A 710n-z when in powersave/sleep mode. I really don't want to disable the powersave mode...it already has latests firmware installed. Suggestions? It will print if I wake up the printer by hitting the power button to wake it manually.
I had this problem for about 3 months Now, but today I think I fix it, by clicking on SETTINGS and then DO NOT DISTURB and switching MANUAL from green to White, now I receive my calls, try this it worked for me..:)
-
Hi All, Since updating to Lion, my imac won't recognise the ext HDD (Maxtor) when waking from sleep mode, I have tried another port, diisc utility (Ext HDD not listed in here) but nothing works. I now find that I have to restart the imac to get the drive recognised..which is fine until the imac goes into sleep mode then I lose the drive and have to restart etc etc.....anyone suffering same issue. The Ext Drive worked perfectly until the upgrade..
Thanks for this, and apologies for delay in replying...in between seeing your post I backed up the ext hdd to another mac and used the disc utility to erase and repair and then re mounted the ext hdd. OK. I have then tested the ext hdd being recognised when waking from sleep mode a few times and everything appears to be fine. If this doesn't work (long term) I will follow the instructions as you have suggested....
I now have a new problem with my HP printer (Photosmart Plus) which is not being recognised by a new wireless router..Ok whilst the router is switch on and I have reconfigured the printer..but when the router is switched off overnight and then switched back on...I get a 'printer is not connected' message and have to go through the re configure routine all over. I am minded to think this is a router problem as the same issue is happening to my wifes Mac Book Pro (which is only a few weeks old)...any suggestions.. -
Macbook air keeps disconnecting from internet when going to sleep mode
New macbook air keeps losing Internet connection when going into sleep mode. Have tried deleting and re adding network and adding DNS 8.8.8.8 still is disconnecting.
Also, since Lion update 2 days ago Internet is very sluggish
HELPPPPPP!!!You're not the only one. See here:
https://discussions.apple.com/thread/3704539?start=0&tstart=0
The current fix is to turn off sleep mode or use an Ethernet cable. -
Hi,
I have an Imac 2.8 GHz Intel Core 2 Duo desktop which I have upgraded to lion.
Recently I keep getting kernel panics when waking from sleep mode and I cannot figure out what it is.
I am not very computer savy - I.e. I use a computer but don't know programming etc.
The computer then asks me to shut down and restart.
Any help would be much appreciated as this is driving me crazy.
An example of the latest kernel panic log as as follows:
Fri Jan 6 21:25:02 2012
panic(cpu 0 caller 0xffffff80002c266d): Kernel trap at 0xffffff80002936b3, type 14=page fault, registers:
CR0: 0x0000000080010033, CR2: 0x0000000000000020, CR3: 0x000000000f636000, CR4: 0x0000000000000660
RAX: 0x000000000006f9d8, RBX: 0xffffff800445d598, RCX: 0x0000000000000020, RDX: 0x0000000000019fd8
RSP: 0xffffff808073b520, RBP: 0xffffff808073b540, RSI: 0x000000002996b2ee, RDI: 0xffffff8003f83ce8
R8: 0x0000000000000000, R9: 0x0000000000000000, R10: 0xffffff800bf31788, R11: 0x0000000000009268
R12: 0xffffff800374c000, R13: 0xffffff800445d598, R14: 0x000000000006f9d8, R15: 0xffffff8003f83ce8
RFL: 0x0000000000010202, RIP: 0xffffff80002936b3, CS: 0x0000000000000008, SS: 0x0000000000000000
CR2: 0x0000000000000020, Error code: 0x0000000000000000, Faulting CPU: 0x0
Backtrace (CPU 0), Frame : Return Address
0xffffff808073b1e0 : 0xffffff8000220702
0xffffff808073b260 : 0xffffff80002c266d
0xffffff808073b400 : 0xffffff80002d7a1d
0xffffff808073b420 : 0xffffff80002936b3
0xffffff808073b540 : 0xffffff800029383b
0xffffff808073b560 : 0xffffff800029485b
0xffffff808073b590 : 0xffffff800027e44b
0xffffff808073b5f0 : 0xffffff7f811a44dd
0xffffff808073b630 : 0xffffff7f811a36c4
0xffffff808073b760 : 0xffffff8000328517
0xffffff808073b7b0 : 0xffffff80002e823b
0xffffff808073b8a0 : 0xffffff80003170ce
0xffffff808073b8d0 : 0xffffff80002ec664
0xffffff808073b9e0 : 0xffffff80002f0229
0xffffff808073ba50 : 0xffffff80002f0265
0xffffff808073ba80 : 0xffffff80004e6833
0xffffff808073bb50 : 0xffffff8000316ca3
0xffffff808073bba0 : 0xffffff80005a6e29
0xffffff808073bc30 : 0xffffff8000265675
0xffffff808073bc80 : 0xffffff80002651f3
0xffffff808073bcc0 : 0xffffff800026a62f
0xffffff808073bdc0 : 0xffffff800026cdb4
0xffffff808073bf40 : 0xffffff80002c1f0b
0xffffff808073bfb0 : 0xffffff80002d7941
Kernel Extensions in backtrace:
com.apple.BootCache(33.0)[7D74A237-77EF-359F-B1E2-CB1E602E8B9F]@0xffffff7f811a2 000->0xffffff7f811aafff
BSD process name corresponding to current thread: corestoraged
Boot args: 0x0
Mac OS version:
11C74
Kernel version:
Darwin Kernel Version 11.2.0: Tue Aug 9 20:54:00 PDT 2011; root:xnu-1699.24.8~1/RELEASE_X86_64
Kernel UUID: 59275DFA-10C0-30B3-9E26-F7B5DFB1A432
System model name: iMac8,1 (Mac-F227BEC8)
System uptime in nanoseconds: 46767492658
last loaded kext at 39979515424: com.apple.driver.AppleTyMCEDriver 1.0.2d2 (addr 0xffffff7f81930000, size 45056)
loaded kexts:
com.apple.driver.AppleTyMCEDriver 1.0.2d2
com.apple.driver.AudioAUUC 1.59
com.apple.driver.AppleHDA 2.1.3f7
com.apple.driver.AppleUpstreamUserClient 3.5.9
com.apple.driver.AppleMCCSControl 1.0.26
com.apple.kext.ATIFramebuffer 7.1.2
com.apple.driver.AppleMuxControl 3.0.16
com.apple.driver.AppleBacklight 170.1.9
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.ATIRadeonX2000 7.1.2
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AudioIPCDriver 1.2.1
com.apple.driver.AppleLPC 1.5.3
com.apple.driver.ACPI_SMC_PlatformPlugin 4.7.5d4
com.apple.driver.CoreStorageFsck 182.10
com.apple.driver.AppleIRController 312
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 33
com.apple.iokit.SCSITaskUserClient 3.0.1
com.apple.iokit.IOAHCIBlockStorage 2.0.1
com.apple.driver.AppleFWOHCI 4.8.9
com.apple.iokit.AppleYukon2 3.2.2b1
com.apple.driver.AppleUSBHub 4.5.0
com.apple.driver.AppleEFINVRAM 1.5.0
com.apple.driver.AppleRTC 1.4
com.apple.driver.AppleAHCIPort 2.2.0
com.apple.driver.AppleIntelPIIXATA 2.5.1
com.apple.driver.AppleUSBEHCI 4.5.0
com.apple.driver.AirPortBrcm43224 500.36.11
com.apple.driver.AppleUSBUHCI 4.4.5
com.apple.driver.AppleHPET 1.6
com.apple.driver.AppleACPIButtons 1.4
com.apple.driver.AppleSMBIOS 1.7
com.apple.driver.AppleACPIEC 1.4
com.apple.driver.AppleAPIC 1.5
com.apple.driver.AppleIntelCPUPowerManagementClient 167.0.0
com.apple.nke.applicationfirewall 3.2.30
com.apple.security.quarantine 1
com.apple.driver.AppleIntelCPUPowerManagement 167.0.0
com.apple.driver.AppleAVBAudio 1.0.0d11
com.apple.driver.AppleHDAHardwareConfigDriver 2.1.3f7
com.apple.driver.DspFuncLib 2.1.3f7
com.apple.driver.AppleBacklightExpert 1.0.3
com.apple.iokit.IOSurface 80.0
com.apple.iokit.IOFireWireIP 2.2.4
com.apple.driver.AppleSMBusPCI 1.0.10d0
com.apple.driver.AppleHDAController 2.1.3f7
com.apple.iokit.IOHDAFamily 2.1.3f7
com.apple.iokit.IOBluetoothSerialManager 4.0.1f4
com.apple.iokit.IOSerialFamily 10.0.5
com.apple.iokit.IOAVBFamily 1.0.0d22
com.apple.iokit.IOEthernetAVBController 1.0.0d5
com.apple.iokit.IOAudioFamily 1.8.3fc11
com.apple.kext.OSvKernDSPLib 1.3
com.apple.driver.ApplePolicyControl 3.0.16
com.apple.driver.AppleGraphicsControl 3.0.16
com.apple.iokit.IONDRVSupport 2.3.2
com.apple.kext.ATI2600Controller 7.1.2
com.apple.kext.ATISupport 7.1.2
com.apple.iokit.IOGraphicsFamily 2.3.2
com.apple.driver.AppleSMC 3.1.1d8
com.apple.driver.IOPlatformPluginFamily 4.7.5d4
com.apple.driver.AppleFileSystemDriver 13
com.apple.driver.BroadcomUSBBluetoothHCIController 4.0.1f4
com.apple.driver.AppleUSBBluetoothHCIController 4.0.1f4
com.apple.iokit.IOBluetoothFamily 4.0.1f4
com.apple.driver.CoreStorage 182.10
com.apple.iokit.IOUSBHIDDriver 4.4.5
com.apple.iokit.IOSCSIBlockCommandsDevice 3.0.1
com.apple.iokit.IOUSBMassStorageClass 3.0.0
com.apple.driver.AppleUSBMergeNub 4.5.3
com.apple.driver.AppleUSBComposite 3.9.0
com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.0.1
com.apple.iokit.IOBDStorageFamily 1.6
com.apple.iokit.IODVDStorageFamily 1.7
com.apple.iokit.IOCDStorageFamily 1.7
com.apple.driver.XsanFilter 403
com.apple.iokit.IOATAPIProtocolTransport 3.0.0
com.apple.iokit.IOSCSIArchitectureModelFamily 3.0.1
com.apple.iokit.IOFireWireFamily 4.4.5
com.apple.iokit.IOUSBUserClient 4.5.3
com.apple.iokit.IOAHCIFamily 2.0.7
com.apple.iokit.IOATAFamily 2.5.1
com.apple.iokit.IO80211Family 411.1
com.apple.iokit.IONetworkingFamily 2.0
com.apple.iokit.IOUSBFamily 4.5.3
com.apple.driver.AppleEFIRuntime 1.5.0
com.apple.iokit.IOHIDFamily 1.7.1
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 165.3
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 7
com.apple.driver.DiskImages 331
com.apple.iokit.IOStorageFamily 1.7
com.apple.driver.AppleKeyStore 28.18
com.apple.driver.AppleACPIPlatform 1.4
com.apple.iokit.IOPCIFamily 2.6.7
com.apple.iokit.IOACPIFamily 1.4
This is all double dutch to me.
Would anyone be able to help please???
Thank you very much !!
DaveHi, for other peoples information - I finally figured out the problem. It was actually a faulty RAM module which I had bought. I had upgraded from 2 to 4 gb of RAM using an approved type of RAM for my particular computer. Finally I removed one module of RAM (after doing nearly everything else under the sun including trying to reinstall the operating system and wipe the computer etc) and the computer worked fine.
Dave -
How much time can an ipad mini stay in sleep mode with the smart cover on
How much time can an ipad mini stay in sleep mode with the smart cover on?
Hello Kavans,
Thank you for the details of the issue you are experiencing with your MacBook Pro. I recommend reviewing the following article for this issue:
Mac OS X: Why your Mac might not sleep or stay in sleep mode
http://support.apple.com/kb/HT1776
Thank you for using Apple Support Communities.
Best,
Sheila M. -
Firefox crashes windows 7 when recovering from sleep mode
Similar to the following:
http://support.mozilla.com/pl/forum/1/627872?s=window+7+crash&as=s
but not sure whether it depends on pages that are currently opened.
Sometimes, when recovering from sleep mode on win7 (with only Firefox and VS2008 running), win7 crashes. What's important - It doesn't happen always, but still, it's annoying (Firefox starts with startpage only).
I've been noticing this issue on different Firefox versions from Firefox 3.5 to 3.6.6.Same exactly problem here, very annoying when the computer goes to sleep mode and then Firefox locks up.
-
How in Ipad 3.2 setup time go to sleep mode[turn off but not shut down]
How in Ipad 3.2 setup time go to sleep mode[turn off but not shut down]?
Go to Settings>General>Auto Lock - tap the arrow and then choose your time setting to put the iPad to sleep.
-
Upgraded iPad 2 w/IOS 7. Battery drains to 0% even with iPad in sleep mode. Called Apple-they had me clear it. Battery charge held that night. Restored from iCloud. Charge not holding again. Any similar events? What to do?
Upgraded iPad 2 w/IOS 7. Battery drains to 0% even with iPad in sleep mode. Called Apple-they had me clear it. Battery charge held that night. Restored from iCloud. Charge not holding again. Any similar events? What to do?
-
Macmini 2011 on lion, goes to a blue screen on monitor when awakening from sleep mode, last 3 or 4 seconds, before desktop appears, can anyone help? Thanks
Depending on the system configuration, this may not
be unusual. The Mini that I use for my home theater,
which is connected to a receiver then to a TV, all via
HDMI usually takes a couple seconds to come up just
the way yours does. Same happens when I switch sources
on the receiver. Actually, it starts with the blue screen and
will sometimes flash before the desktop comes up.
It seems that when HDMI goes dormant, there is handshaking
that needs to be re-established, at least thats my SWAG on it.
On the other hand, the Mac Mini Server that I use as a work
station and is connected to a Thunderbolt Display, wakes to desktop
in a second, maybe two. On this combo, it just comes up to
the desk top.
It also probably depends on what processes were active when
the Mini was put to sleep. So it may take some time for it to get around
to reloading the desktop. -
Urgent: How can I catch the exception when application exit by accident
Can anyone give me advice and idea?
I want to catch the exception when application goes down by accident for example: Power off, turn off the machine without closing the appliction properly.
Because I want to notify the server and remove it from register.
How can I do this????
Please help,
Thanks very mich,
PeterShrubz,
I tested my application as follows:
1. start rmiregistry
2. start rmi server
3. start two clients
I printed out the client's object information as below:
first clinet:
RemoteObserver is com.ss8.qos.qcsm.policy.policyui.PanelMain_Stub[RemoteStub [ref: [endpoint:[192.168.70.237:4706](remote),objID:[-73a6662b:e75af455a5:-8000, 0]]]]
second client:
RemoteObserver is com.ss8.qos.qcsm.policy.policyui.PanelMain_Stub[RemoteStub [ref: [endpoint:[192.168.70.237:4711](remote),objID:[-73a6665a:e75af48703:-8000, 0]]]]
Now I stop the second client by clicking ^C (ctrl c)
I noticed that this client has not been removed from the server register (Vector).
next, I am working on first client for example add one record. After server received this record, it will update all clients who have already registered with server. Because now in the server register there are two clinets (first and second), so it will try to update two clients. The exception will be thrown when server tries to update second client which has already been stoped. I used printStackTrace() to print out the message as follow:
Catch ConnectException
Connection refused to host: 192.168.70.237; nested exception is:
java.net.ConnectException: Connection refused: no further information
java.rmi.ConnectException: Connection refused to host: 192.168.70.237; nested exception is:
java.net.ConnectException: Connection refused: no further information
java.net.ConnectException: Connection refused: no further information
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
at java.net.Socket.<init>(Socket.java:269)
at java.net.Socket.<init>(Socket.java:98)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:29)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:124)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:497)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:194)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:178)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:87)
at com.ss8.qos.qcsm.policy.policyui.PanelMain_Stub.update(PanelMain_Stub.java:53)
at com.ss8.qos.qcsm.policy.policydb.Observable.performNotify(Observable.java, Compiled Code)
at com.ss8.qos.qcsm.policy.policydb.Observable.notifyObservers(Observable.java:71)
at com.ss8.qos.qcsm.policy.policydb.PolicyServer.ServerAddPolicy(PolicyServer.java:102)
at java.lang.reflect.Method.invoke(Native Method)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:237)
at sun.rmi.transport.Transport$1.run(Transport.java:140)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:137)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:422)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:634)
at java.lang.Thread.run(Thread.java:479)
*** end here ***
I don't see any information related to object ID. How can I handle this?
Please give me suggestion.
Many Thanks,
Peter -
How to continue the loop even there is an error in plsql
Hi Folks,
I am using function in my sql query.i want to write this query in a cursor loop.
the thing is function is not updatable and it errors out for few records. now when i use the same function in cursor and loop it,it will stop the loop when it errors out.
can you guys please help me out if there is any way to continue the loop even there is an error in plsql .
My Function is as below:
Decalre
Cursor
select ***********************;
begin
loop
fetch********************
x:=function(**);
end loop;
Guys please help me on this. your help is high ly appreciated.
Thanks!!
Karthik TDecalre
Cursor
select ***********************;
begin
loop
BEGIN
fetch********************
x:=function(**);
EXCEPTIONS
WHEN your_error THEN
log_error;
END;
end loop;
Maybe you are looking for
-
Performance/Counter Based Maintenance Plan
Dear All, Please guide me the detailed process related with "Performance/Counter Based Maintenance Plan" with step wise(with Tcode) . its urgent Please help. Sushant
-
Max number of zone prefix in a Gatekeeper.
Hi. I have a 3640 running as a gatekeeper. I had configured several zone prefix in the local zone. I'm a little concern about the limit of this table, Do you know what if there a maximum of zone prefixes or just depend of the memory of the machine? T
-
Pentax Optio W60: Is this camera supported?
Is this camera supported by iPhoto? I have tried numerous ways to import the photos into iPhoto, although nothing works. Am I missing a driver? The avi. files will not play with quicktime either. Normally you plug in an sd card via usb and away you g
-
MBP shutdown after 10.6.2 update is slower than before!
Hello all, Since after 10.6.2 update, my MBP shutdown time extended from less than 5 secs to over 25 secs. I've gone through some solutions including resetting disk permissions using disk utility, setting the PRAM, using font explorer to clear fonts
-
Converting HTML form to Flash for Paypal!
Hello! Im currently in the process of converting my HTML website to Flash. On my website, i am using Paypal buttons (add to cart) so now i need to convert my 3 buttons/form to Flash. Here is my website: http://www.tubesjujubes.com/En/buyonline.html I