How to create own Widgets on Google

Widget/Gadget Tutorial:-
You can create your own Widget and share with web world.
Before creating your own Widget you need to understand in which platform it works. Widget work on xml and to know about xml click here.

Widgets are work on a different style of xml and it uses its own google libraries.For example i want to share BSE Stock India xml code.

Download the code from here

Just copy and paste this code in Google Editor and see the preview.

Now let me explain the terms used here and these are.

<Module> is the root for starting any google gadget/widget or starting any orkut application.

<ModulePrefs> is useful in terms of developer's point of view.
it contains title,directory_title, title_url,author, author_location, author_affiliation, author_email, screenshot, thumbnail, description.

And for submit you widget you have to fill all the terms display above under ModulePrefs.

<UserPref> are useful for viewer point of view
If you want to make your widget customizable then you have to know about UserPref.
Suppose you want to make a live tv widget and you want that your user can choose tv channel then you have to specify UserPref with datatype enum.

_IG_Prefs(__MODULE_ID__) is very useful function provided by Google. It is use for getter setter the UserPref values.

Same like _IG_Prefs(__MODULE_ID__) Google provide several funtion which can be used while making of Widgets.

And to know more about How to create Google Widgets see Getting started with Google Widgets.

2 comments:

Wolf said...

Use CCViD share-this blog widget at your blog. Using this blog widget you can easily allow your users to share your article.

http://www.ccvid.com/apps/share-this/get-code.php

If you are a new blogger, then its must for you. Just add it to your blog, and see how your blog gets more traffic.

rajeshh said...

thanks for ur valuable comments .....

http://www.amazingspark.com