[android-developers] Re: Get the calling thread's id

2012-11-19 Thread Johan Appelgren
You can get the thread id using Thread.getId() http://developer.android.com/reference/java/lang/Thread.html#getId() On Monday, November 19, 2012 10:14:27 AM UTC+1, AndroidCompile wrote: Hi, Is it possible to retrieve the id of a thread that called a certain function? (assuming this

[android-developers] Re: Get the calling thread's id

2012-11-19 Thread AndroidCompile
If two threads can access a service (that sits in the same process they are - the service could have created these threads) and use its methods, I want the service to know who was the caller. I think that Thread.getId returns the current running thread (in this case, if the service calls this

Re: [android-developers] Re: Get the calling thread's id

2012-11-19 Thread Arun Kumar K
hi all, i have doubt.i want to minimize and maximize the layout it is possible in android mobile phones.And how to re-size the layout during the run time.i m beginner for the android On Mon, Nov 19, 2012 at 4:08 PM, Johan Appelgren johan.appelg...@gmail.comwrote: You can get the thread id