Android Forums

Go Back   These FORUMS ARE DISABLED!! OUR NEW FORUMS ARE AT http://androidforum.com/ > Android Coders > Android Development, Answers, Tutorials, and Code Snippets
Connect with Facebook

Click Here To Register!
 
 
LinkBack Thread Tools Display Modes
Old 02-22-2009, 06:18 PM   #1
Junior Member
 
Join Date: Feb 2009
Posts: 1
Friends: 0
View ivolodarsky's Profile   View ivolodarsky's Photo Album   View ivolodarsky's Blog   View Social Groups
Hey guys,

I have a quick question about communicating with a service. I wrote a service which takes network requests from activities, puts them into a queue, and returns an integer ticket. Another thread on the service processes the queue (HTTP GET and POST) and then puts the responses into a dictionary with the ticket as the key.

So, after I start this service in a certain activity, I want to keep a reference to the service object in other activities. I also would like the service to stop when all the activity instances are stopped by Android.

However, as far as I understand, I need to write an interface and an .AIPL file to communicate with the service after i move to an activity which did not start the service. Is therer any way I can get around that and just get the service instance without going through converting all non-standard types to Parceable and so forth?

Thank you.
ivolodarsky is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
 

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
T-Mobile G1 Product Service Guide Andor T-Mobile, Vodafone, Sprint, Verizon, Rogers, AT&T etc. 8 10-25-2008 01:45 PM
Switching to G1 = no Sidekick data service? RedKrieg T-Mobile, Vodafone, Sprint, Verizon, Rogers, AT&T etc. 7 10-11-2008 02:19 PM
Full details on overall price of service plan azol T-Mobile, Vodafone, Sprint, Verizon, Rogers, AT&T etc. 1 10-07-2008 03:01 PM


Unlocked G1 Phones | Buy T-Mobile G1 | Google Phone

All times are GMT -6. The time now is 05:51 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright (c) 2012 TalkAndroid.com. All rights reserved.