Select chapter



basics (6.papers)
activities (5.papers)
services (2.papers)
threads (2.papers)
receivers (1.papers)
advanced android (2.papers)
SQLite database (1.papers)
adapters (1.papers)
adb and ddms (1.papers)
widgets (1.papers)
fragments (1.papers)
UI (1.papers)
Hide

Sponsored Links


  

android widgets interview questions and answers

1
What is meta-data tag in a widget provider?
<meta-data android:name="android.appwidget.provider"
                android:resource="@xml/providerinfo"/>
  1. it says that app widget provider info is in "providerinfo.xml" file which is in xml folder.
  2. it says that app widget layout is in "providerinfo.xml" file which is in xml folder.
  3. option 1 is true, and it also says that this is not a broadcast receiver, it is a app widget provider.
  4. option 2 is true, and it also says that this is not a broadcast receiver, it is a app widget provider.
Show Answer
Share Facebook gmail Twitter
2
What is action APPWIDGET_UPDATE in a widget? 
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
  1. This has to be used with widgets. Even if we don't use it there is no problem.
  2. This has to be used with widgets, if we don't use it then onUpdate function of appWidgetProvider class will not be called and widget will not be updated.
  3. This has to be used with widgets, if we don't use it then our widget application will crash.
  4. This has to be used with widgets, if we don't use it then our phone home screen application will crash.
Show Answer
Share Facebook gmail Twitter
3
What is the tag used in manifest file to create widgets?
  1. Service tag
  2. Activity tag
  3. Receiver tag
  4. Widget tag.
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
5
what is the root tag used for app widget provider info xml file?
  1. <appwidget>
  2. <widget>
  3. <appwidget-provider>
  4. <appwidget-provider-info>
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
7
Widget and widget host : which of the below options are true about widgets?
  1. The app which holds other applications widgets is called as widget host.
  2. The app which holds other applications widgets is called as widget app.
  3. Once we create a widget it will be automatically added to our home screen.
  4. Widgets are like shortcuts, on clicking it will respond, but we can't change the contents of a widget.
Show Answer
Share Facebook gmail Twitter
Show Answer
Share Facebook gmail Twitter
Read more papers :