ok, I have done that but the result now is that I always get the same Thread ID, I guess that's the main UI Thread.. I do have different threads, for example for http connections (or actually Runnable's), and now I'd like to get their Thread ID as well, any idea how ? So I'd like to get the Thread ID's of non-activity objects, so those shouldn't run on the main-ui thread...
On 22 mrt, 16:09, Streets Of Boston <flyingdutc...@gmail.com> wrote: > All callbacks into an Activity happen on the same thread, the main UI > thread. > Just call, in onCreate, the method 'Thread.currentThread().getId()' > > On Mar 22, 10:04 am, MobDev <developm...@mobilaria.com> wrote: > > > Hi, > > I'd like to retrieve the Thread Priority of one or more Activity's... > > To do so I have found the Process.getThreadPriority() method, but as > > an argument you have to supply the Thread's ID... That's not that bad > > because in the end I also needed to have that, only I can't seem to > > find a method for that... > > I have seen a Thread.getID method or something like that, but how can > > this be applied to an Activity, for example the main Activity of an > > Android app ? > > Thanks in advance -- 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