Re: [android-developers] Re: AppWidget multiple sizes

2010-08-10 Thread Kostya Vasilyev
Not quite clear on how this code fits in with the rest, and what the error is, but If you're trying to configure a widget when it's added to the home screen, use a configuration activity: http://developer.android.com/guide/topics/appwidgets/index.html#Configuring A configuration activity

[android-developers] Re: AppWidget multiple sizes

2010-08-10 Thread kaundinya
First of all thanks for the quick reply, Yes i have a 3 different xml file called options1, options2, options3 in the layout folder. In 1 .java file called "callalert" im using alert.builder concept to display the alert message( which shows all 3 options)using the following code. final Ch

Re: [android-developers] Re: AppWidget multiple sizes

2010-08-10 Thread Kostya Vasilyev
Yes, that is correct. A config utility can be used to pick the type of content, although it's optional. Different widget sizes require separate widget declarations, each with its own size. For the OP's project, it seems like different sizes are tired to different content types. So I meant

Re: [android-developers] Re: AppWidget multiple sizes

2010-08-10 Thread YuviDroid
Actually, if I'm not wrong, you need to create separate providers just for the different sizes (4x1, 3x1, 4x2, etc.), but the content displayed is up to the developer. After selecting the widget (size) a Configuration Activity can be shown where the user can then select what content he wants. Yuv

Re: [android-developers] Re: AppWidget multiple sizes

2010-08-10 Thread Kostya Vasilyev
Like Mark already said, you need to create a separate widget_info.xml file for each size/content type, with appropriate attributes for minWidth and minHeight. Essentially, this means declaring separate widgets for all size / content options. The user would see them all when choosing a widget t

[android-developers] Re: AppWidget multiple sizes

2010-08-09 Thread kaundinya
Hi, How can i give an option for the user to select 3 options(news only, weather only, News and weather) in the dialog on load of the widget? On Aug 10, 3:23 am, mboehmer wrote: > How is this done for the News and Weather widget? After selecting it a > dialog opens and asks for which content (i.

[android-developers] Re: AppWidget multiple sizes

2010-08-09 Thread String
On Aug 9, 11:23 pm, mboehmer wrote: > How is this done for the News and Weather widget? After selecting it a > dialog opens and asks for which content (i.e. size) the user wants to > have. Is that on HTC's Sense UI? If so, their widgets are "baked in" to the home screen and don't have to follow

Re: [android-developers] Re: AppWidget multiple sizes

2010-08-09 Thread Mark Murphy
On Mon, Aug 9, 2010 at 6:23 PM, mboehmer wrote: > How is this done for the News and Weather widget? After selecting it a > dialog opens and asks for which content (i.e. size) the user wants to > have. It doesn't do that on my Nexus One. It asks what content I want, but the size is the same. --

[android-developers] Re: AppWidget multiple sizes

2010-08-09 Thread mboehmer
How is this done for the News and Weather widget? After selecting it a dialog opens and asks for which content (i.e. size) the user wants to have. On 10 Aug., 00:04, Mark Murphy wrote: > Have two elements with two separate metadata files with the > two sizes, presumably. > > On Mon, Aug 9, 2010