[android-developers] Service or no service

2010-12-16 Thread Hans-Erik
after reading the article
http://www.androidguys.com/2009/09/09/diamonds-are-forever-services-are-not/

I want to ask about creating an Android app that need to run always!
The app is an ftp server listening for my PC client to send pictures.
The sending can occur anytime so the Android server MUST run

Here's the question:

From the article above a read
Service can be killed by the user and the android system.
The can fall asleep when the device falls asleep.

What about Activity´s,  can i do this simply trough an Activity?
If my activity create a thread for the server to run in.
When a client connect, the thread will receive the picture(s)
and notify Activity and then thread continue Listen.

What are the considerations here?


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Service or no service

2010-12-16 Thread TreKing
On Thu, Dec 16, 2010 at 6:21 AM, Hans-Erik erikswed...@gmail.com wrote:

 I want to ask about creating an Android app that need to run always!
 The app is an ftp server listening for my PC client to send pictures.
 The sending can occur anytime so the Android server MUST run


http://code.google.com/android/c2dm/

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en