开发者

can i implement two app widgets for an application?

开发者 https://www.devze.com 2023-01-16 09:41 出处:网络
I am developing a Player application for a radio, I need to implement two app widget players for two radio stations individually.

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 a开发者_运维问答n application.

Thank you


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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消