On Mon, May 30, 2011 at 8:24 AM, Mark Cz <[email protected]> wrote: > From the worker thread I want to do: > 1. Toast.show > 2. Get the user agent - String userAgent = new > WebView(TestAlarmService.this).getSettings().getUserAgentString();
Why do you need a thread for any of this? > B. If I don't use Looper.prepare, but handler.postDelayed() everything > works fine. > I want to know if it is possible to achieve what I want without using > a Handler ? Why do you need a Handler for any of this? > And if it is not possible, how can I get the User Agent in a > synchronize way? Call getUserAgentString() on the WebSettings object. Is there a particular problem that you are encountering that is causing you to try all these other odd things? -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in Oslo: http://bit.ly/fjBo24 -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

