Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2009

    Question Moving from standard widget to homescreen widget

    I have been creating normal widgets for a while and find them easy to create with just a .plist and .html file needed. But i was hoping to create a widget that had a homescreen element to it aswell and can't find any easy to understand tutorials on how to do it, could someone explain to me? Is it just a matter of adding more lines to the .plist file and creating a separate html file?

  2. #2
    Registered User
    Join Date
    Sep 2008
    Manaus, Brazil

    Re: Moving from standard widget to homescreen widget


    homescreen is a great feature, you can put this "view" in the home screen device. Homescreen works in WRT with two points:
    • First: you need enable this feature in info.plist. Just include this line:
    • Second: You can't create another html, because in WRT just one html file can be use. And how you use the homescreen? Easy, you just create a <div> with the specific attributes. You can see these attributes in WRT documentation online, you must hide all div's and show just the homescreen div. Below you have an example how this work: (you must put this method in resize event.
      	selectModeView: function(){
      		lastHeight = window.innerHeight;
      		lastWidth = window.innerWidth;
      		if (window.innerHeight < 150) {
      			return 'minivew';
      		else {
      			hide('div homescreen'));
      			 if (window.innerWidth > 250 && window.innerWidth <= 340){
      				return 'landscape';
      			} else if (window.innerWidth > 340 && window.innerWidth <= 500){
      				return 'touch portrait';
    Javier Zambrano Ferreira

Similar Threads

  1. Widget transparancy on Homescreen and in general?
    By phanthomas in forum Symbian Web Runtime
    Replies: 5
    Last Post: 2012-07-14, 18:00
  2. what is a homescreen widget ?
    By yosr eman in forum General Development Questions
    Replies: 4
    Last Post: 2009-03-04, 14:54
  3. My widget stopped working. Feed read timeout
    By miklos.szanyi@gmail.com in forum Widsets Development
    Replies: 0
    Last Post: 2009-01-23, 10:00
  4. Editing RSS standard widget from Aptana
    By HenkJan in forum Widsets Development
    Replies: 0
    Last Post: 2008-12-30, 01:21
  5. Tai Wan widget hands-on training
    By happywolf in forum Web Technologies and Multimedia Content- Web 技术和多媒体内容
    Replies: 1
    Last Post: 2008-03-31, 09:45

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts