java - Display Widget in app Android -


i want display widget in app, preferably through layout xml, can't find how show widget :s

you can use app widgets miniature application views can embedded in other applications (such home screen) , receive periodic updates. these views referred widgets in user interface, , can publish 1 app widget provider. application component able hold other app widgets called app widget host.

to create app widget, need following:

i)appwidgetproviderinfo object, describes metadata app widget, such app widget's layout, update frequency, , appwidgetprovider class. should defined in xml.
ii)appwidgetprovider class implementation, defines basic methods allow programmatically interface app widget, based on broadcast events. through it, receive broadcasts when app widget updated, enabled, disabled , deleted.
iii)view layout, defines initial layout app widget, defined in xml.
iv)additionally, can implement app widget configuration activity. optional activity launches when user adds app widget , allows him or modify app widget settings @ create-time.

please visit following 2 links:

i) http://developer.android.com/guide/topics/appwidgets/index.html
ii) http://www.techhive.com/article/259845/the-15-best-android-widgets.html


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -