Is it possible to call methods of a Activity from service.

by Reghu » Mon, 27 Apr 2009 22:08:36 GMT


Sponsored Links
 Hello,

Is it possible to call methods of a Activity from service.

I am running a thread from a service and i listening to some external
event from that thread.
I am not able to call methods  from that thread. Is there any way to
call methods from a thread.

Thank you

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



Is it possible to call methods of a Activity from service.

by Justin (Google Employee) » Tue, 28 Apr 2009 00:46:59 GMT


 Look into android.os.Handler.

Cheers,
Justin
Android Team @ Google



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


Sponsored Links


Is it possible to call methods of a Activity from service.

by Reghu » Thu, 30 Apr 2009 12:16:16 GMT


 Thank you

i made it ....



On Apr 27, 9:46pm, "Justin (Google Employee)" <j...@google.com>



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



Other Threads

1. ImageView drawing cache problem

Hi there,

My application uses an imageview's drawing cache to create another
imageview.
It works very well on all devices except Motorola.

Drawing cache comes always null in Motorola devices( like DROID2,
DROIDX).

My code portion is below.
Does anyone has any idea about the solution?
Thx in advance for your help.


ImageView  newView = new ImageView(getApplicationContext());

//anotherImageView.getDrawingCache() returns null on Motorola devices
newView.setImageBitmap(Bitmap.createBitmap(anotherImageView.getDrawingCache()));

-- 

2. Authorization via Google Account.

I am trying to provide User authorization for my Android application
via google accounts. I use HTTP POST message, basically with the
Action URL = "https://www.google.com/accounts/ClientLogin" and I pass
the "Username" and "Password" parameters. However when I execute the
HTTP call, I find that I receive a NULL response. Is there anything I
am missing, and is there a better way to do this. Note that I have
turned on the Internet permission in the Android application.

-- 

3. webview No cache file for url

4. how listview load a part of data store when button click is clicked

5. Need assistance with a post

6. OpenGL ES 2.0 Shader Access Client Memory

7. Widget development to show count