android - how to display widget on home screen? -


i working on launcher.i list of widgets of installed app.when click on widget want on home screen.i searched solution.but didn't idea.what have do?please me.

it not possible app place widget in home screen. home screen can add app widgets home screen.

similar links link1, link2, link3

but can offer user pick widget widgetpicker.

intent pickintent = new intent(appwidgetmanager.action_appwidget_pick); pickintent.putextra(appwidgetmanager.extra_appwidget_id, appwidgetid); startactivityforresult(pickintent, key_code); 

Comments

Popular posts from this blog

html - height not adding height to a empty div -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

python - Robot Framework location and name of keyword -