开发者

Android Launcher / Home application: add automatically a Widget when a specific application is installed

I develop a specific Android Launcher / Home app for Android 2.3.It is based on the stock Android Launcher. I would like to add automatically (so programmatically) a Widget on the Workspace when I have installed a specific application on the device.

I see with my LG Optimus pad (Android 3.1), when I install an app, there is a shorcut added automatically onto the Home Workspace

I have modified the Launcher, I successfully added a Widget automatically on the Home Workspace on application insta开发者_如何学运维llation (broadcast receiver + find vacant cell + add Widget in database through AppWidgetManager).

I can see the Widget on the screen, but unfortunately, there is a message error : Problem loading widget.

By browsing with sqlite3 in launcher.db the table favorites, I saw the inserted row for the new widget.

I don't understand why I have this error Problem loading widget.

Anyone had a similar problem? Is this feature feasible?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜