praveenb
praveenb

Reputation: 10669

can i implement two app widgets for an application?

I am developing a Player application for a radio, I need to implement two app widget players for two radio stations individually.

Can i implement two app widgets for an application.

Thank you

Upvotes: 0

Views: 129

Answers (2)

Konstantin Burov
Konstantin Burov

Reputation: 69238

You definitely can. Just define two app-widget providers.

Upvotes: 2

Ryan Hayes
Ryan Hayes

Reputation: 5310

Absolutely, the Twitter application has two widgets, depending on size. You aren't limited to only one, though it may be harder to dynamically create a new widget every time the user adds a new radio station. In that type of scenario, it would be better to have a single widget that could be configured to point to a different station, since the code would really be the same and you can have multiple widget instances running at once.

Upvotes: 0

Related Questions