Skip to content

Settings and activity

1 result found

  1. 38 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    11 comments  ·  General  ·  Admin →
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    Esben commented  · 

    as I read the source in com.example.android.apis.appwidget you can save the and update configs for each created widget separately

    http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/appwidget/index.html

    In ExampleAppWidgetProvider.java it loops over all created widgets loading (and potentially updating) configs for each created widget...

    in this case of course it is just a user defined string, but I can't see why it wouldn't work with other preferences as well...
    I just compiled the ApiDemos from the sdk and ran in the emulator - when creating multiple widgets, they each keep the text given on creation...

    An error occurred while saving the comment
    Esben commented  · 

    I haven't seen it done on size, apart from some of the HTC widgets, but I know several examples of multiple instances of a widget having different settings, so my guess is the config is somehow linked to the specific instance of the widget rather than the "main" program...
    Examples include eg. Astrid (todo-app where you select the to-do list to show) and mini info (where you can setup various styles and colors as well as what info to show)...

    OT: Nice and quick reply and a general good response to users - I don't regret paying although I was quite hesitant due to the short trial-time (I was also considering touch calender, which I've been trying out in the free edition for a couple of weeks)

    Esben supported this idea  · 
    An error occurred while saving the comment
    Esben commented  · 

    According to this it looks like the size is configurable...
    http://developer.android.com/guide/topics/appwidgets/index.html#Configuring

    "If you would like the user to configure settings when he or she adds a new App Widget, you can create an App Widget configuration Activity. This Activity will be automatically launched by the App Widget host and allows the user to configure available settings for the App Widget at create-time, such as the App Widget color, size, update period or other functionality settings."