Service not able to download network data while in standby

by ChisterNordvik » Mon, 15 Dec 2008 01:54:55 GMT


Sponsored Links
 Hi!

I have a service polling data at regular time intervals and this works
great except when the phone goes into standby. Then the service never
runs the timer thread and it never receives data. How does the SMS/
Email application do this since I get those notifications while in
standby?

When I did a Windows Mobile application this was just the same, and I
had to resort to a third party timer (SDF) to solve this....

-Christer
--~--~---------~--~----~------------~-------~--~----~



Service not able to download network data while in standby

by Xavier Mathews » Mon, 15 Dec 2008 09:24:27 GMT


 Try the alarm/alert manager. When in sms and device on stand by it
does not alert you unless your device is compatiable with gmail sms or
another email service.






-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
xavieruni...@gmail.comxavierunited@hotmail.comtruestar...@yahoo.com
"Fear of a name, only increases fear of the thing itself."

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Service not able to download network data while in standby

by MrChaz » Wed, 17 Dec 2008 02:34:50 GMT


 As the others have said, use the AlarmManager.
A couple of other things which may be of use to you if your process
takes a long time

Use the PowerManager to get and aquire a WakeLock - this will stop the
phone from going to sleep whilst you're doing stuff.
Use the WifiManager to get and aquire a WifiLock - this will keep the
wireless connected whilst you're doing stuff.

Don't forget to release the WakeLock and WifiLock when you're done.




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. How to properly implement ParcelFileDescriptor.openFile() method.



No clue -- sorry.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Online Training: 10-14 May 2010: http://onlc.com

-- 

2. Please help!! I want to port some part of dalvik VM on DSP to make it fast. please help.

Hi ALL,
           I am trying to analyze how JIT works in Dalvik VM. This is
what I understood till now about dalvik :

"After compilation, dalvik builds a shared library libdvm.so. Init
process starts Zygote process and It forks itself to start other
process. Each process loads libdvm.so library and calls various
functions of this library."

I want to modify some portion of dalvik VM so that I can run it on
DSP. Thus Dalvik will run parallely on both ARM and DSP and it will
speed up. I choosed JIT compiler to run on DSP parallely with ARM.

Now I am facing many difficulties like
         1) how processes use Dalvik VM : libdvm.so file ?
         2) Which part can be easily portable on DSP to make it run on
ARM+DSP parallely. I don't want to modify many many codes to
synchronize between arm & dsp. But I want to get a speed up of java
programs by using two cores simultaneously.
         3) there are many C source files inside /dalvik/vm. I don't
understand much about their functions and how they work.

Can anyone explain me to these so that I can improve Dalvik VM as part
of my research project. Any help/source code documentation will be
highly appreciable.

Note: I already enabled  JIT in dalvik & DSP in Android Eclair and
tested both.

Thanks in advance.

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Unable to compile a fully working AOSP android for Hero

4. How to properly implement ParcelFileDescriptor.openFile() method.

5. How to properly implement ParcelFileDescriptor.openFile() method.

6. Unable to compile a fully working AOSP android for Hero

7. You Need An Extra Income? - Make Money Online[FINANCE4U.YOLASITE]