[android-beginners] Configuring widgets

2009-10-14 Thread android learner
Hello, I have 2 questions related to configuring widgets. I'd really appreciate any help/pointers. 1) I use AppWidget Configuration Activity to get the user preferences and when the user clicks 'Done', I add the widget on to the home screen. Now when the user clicks on the widget, I want to

[android-beginners] Remote View setString

2009-10-01 Thread android learner
Hello, Can some one please help me understand the setString function in RemoteViews? public void setString (int viewId, String methodName, String value) Can I pass any method name to setString ? I have a custom view in my xml layout file. I'm passing the view id of my custom view, name of

[android-beginners] Re: Remote View setString

2009-10-01 Thread android learner
Thanks Mark. Yes it is my own view class (like a button). But it works fine in RemoteView as long as I do not attempt to set anything in my view class. But one of the parameters in this view class is dynamic and I need to set it from the Remote View (like we do a setText for a button). That is

[android-beginners] Re: Remote View setString

2009-10-01 Thread android learner
in the AnalogClock and that needs to be reflected in the remote view. Any help would be really appreciated. Thanks On Oct 1, 1:14 pm, android learner android.lear...@gmail.com wrote: Thanks Mark. Yes it is my own view class (like a button). But it works fine in RemoteView as long as I do

[android-beginners] Re: Remote View setString

2009-10-01 Thread android learner
are equal, but first one uses reflection. On Oct 2, 12:04 am, android learner android.lear...@gmail.com wrote: Let us keep aside the fact that I'm using a custom view. Consider a normal case, where I am using an existing Android view, for example AnalogClock class in my layout. Is there anyway I

[android-beginners] Re: Analog clock

2009-09-18 Thread android learner
· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 17, 8:36 am, android learner android.lear...@gmail.com wrote: Hello everyone,       I'm very

[android-beginners] Analog clock

2009-09-17 Thread android learner
Hello everyone, I'm very new to android development and would really appreciate any help. I am trying to implement a custom analog clock widget. The default android analog clock has only hour and minute hands. I'm trying to add a seconds hand and the day/date into the dial. I do not think