Order your Mylo 2 from Sony       Order your Mylo 2 from Amazon
MyloForums - Sony MyLife Online

Go Back   MyloForums - Sony MyLife Online > Mylo v2 > Widgets
Sudoku Widget from iPhone for Mylo2
Register Blog Gallery Videos FAQ Members List Calendar Search Today's Posts Mark Forums Read

Widgets Mylo™ widegts, development, showcase & download on your Mylo™ v2. #HTML ALLOWED##

Reply
 
Thread Tools Display Modes
Old
  (#1)
sfitz is Offline
Junior Mylo User
sfitz is on a distinguished road
 
Posts: 41
Join Date: Jan 2008
Location: Dallas,TX area
   
Sudoku Widget from iPhone for Mylo2 - 02-09-08, 05:19

Hey folks,
While we wait for sony to publish some games, I figured I would try some more hacking to see what we can get onto the mylo 2 ourselves.

So I downloaded the iPhone sample sudoku widget, and wrapped it into the mylo widget format. Here is a link you can go to and pull it to install on your mylo2 device.

http://onshoresystems.com/mylo/updat...u/sudoku.mylow

How I put it together was simple. Extract the zipfile from the apple site into a folder and then add a stock myloConfig.xml, and then a tweaked widgetPackage.xml (mainly just a different name update url path and description. Package it into a zipfile in the format .mylow and you are done. In my case I used the java jar utility with the command line:
jar -cMvf ../sudoku.mylow *

Have fun.
-Shawn
  
Reply With Quote
Old
  (#2)
crater is Offline
Moderator
crater is on a distinguished road
 
crater's Avatar
 
Posts: 304
Join Date: Sep 2006
   
02-09-08, 06:12

I moved this thread to the widgets section.

Very good find sfitz. I'm sure this will lead to much more.


Check out my Blog:
http://www.michaeljgorman.com/
  
Reply With Quote
Old
  (#3)
crater is Offline
Moderator
crater is on a distinguished road
 
crater's Avatar
 
Posts: 304
Join Date: Sep 2006
   
02-13-08, 01:57

I get a file is corrupted error when i tried to duplicate what you've done with another Widget. hmmm


Check out my Blog:
http://www.michaeljgorman.com/
  
Reply With Quote
Old
  (#4)
sfitz is Offline
Junior Mylo User
sfitz is on a distinguished road
 
Posts: 41
Join Date: Jan 2008
Location: Dallas,TX area
   
02-13-08, 04:11

Crater, How did you install it?
I originally copied it from my desktop system, over to the dropbox, and installed it.
But I just checked going to my original link downloading to dropbox and installing.
Both worked without presenting a corruption message. I think I've seen the message you are speaking of. I think it was caused with I didn't have valid options in the myloConfig.xml file, and once when I had the installer in an unknown state. I've seen the installer get out
of sorts when going from the filemanager into the installer, then not exiting the installer before going into the mylopage and configuring the new widget. I reset the unit and that seemed to fix it up, well that and exiting the installer before going into the configuration.

Let me know if you still have issues. I am interested in finding where the issues are in packaging and what causes corruption error.

-Shawn
  
Reply With Quote
Old
  (#5)
crater is Offline
Moderator
crater is on a distinguished road
 
crater's Avatar
 
Posts: 304
Join Date: Sep 2006
   
02-13-08, 05:46

Yeah I downloaded yours to my PC, then copies it to the Dropbox, installed, and it worked great. Then i took out the XML's and edited them, and dropped them in with new files from another widget, made for dashboard on mac specifically. Dropped it into the dropbox as before, and i get the error.


Check out my Blog:
http://www.michaeljgorman.com/
  
Reply With Quote
Old
  (#6)
sfitz is Offline
Junior Mylo User
sfitz is on a distinguished road
 
Posts: 41
Join Date: Jan 2008
Location: Dallas,TX area
   
02-13-08, 04:01

Sounds like the archiving process isn't formatting like the mylo is expecting,
or your xml is not correct.
If you want to email me your zipfile I'll take a look and see if I can tell what the issue might be.
  
Reply With Quote
Old
  (#7)
crater is Offline
Moderator
crater is on a distinguished road
 
crater's Avatar
 
Posts: 304
Join Date: Sep 2006
   
02-13-08, 08:42

Yeah archiving it i used jar on my slackware box. It reads the xml because it tells me the title and gives me the sony warning first. i got the original zip from http://www.dashboardwidgets.com/show...ls.php?wid=829 Just something simple i wanted to get working to discover the project rather than really for the widget. I'm at work so i don't have the mylow file i came up with, maybe you can try and let me know if you get it going, then we can go step by step to come up with a much more solid way of doing this.


Check out my Blog:
http://www.michaeljgorman.com/
  
Reply With Quote
Old
  (#8)
sfitz is Offline
Junior Mylo User
sfitz is on a distinguished road
 
Posts: 41
Join Date: Jan 2008
Location: Dallas,TX area
   
02-13-08, 09:36

Crater,
Ya, that one has some interesting twists.

The first thing I saw that had me worried was the @import of the CSS files.
I changed the <style> tags to <link> tags. This is how the example widgets on the mylo are configured. So I wasn't sure if they had that support in there, you might try it back to the original way and let us know if that works or fails.

The real problem was the index.html file. It was "Index.html" and not "index.html"
You may ask, "what's the difference" , the capital 'I' instead of lower case 'i'. Lower case is correct. That's how Apple had it in their dashboard zip file, I guess it works for them.

That was all it was. arrgghh!! I really hope they get some docs together soon with all the rules, structures and more importantly the APIs.

Enjoy, and thanks for the link.... it's my new favorite widget.

-Shawn

Last edited by sfitz : 02-13-08 at 09:39.
  
Reply With Quote
Old
  (#9)
crater is Offline
Moderator
crater is on a distinguished road
 
crater's Avatar
 
Posts: 304
Join Date: Sep 2006
   
02-13-08, 11:07

Wow, i can't believe i didn't notice that.... I use linux as my primary OS, i know the huge difference between I and i lol. Awesome, i'll experiment when i get home with some other stuff.

Thanks alot.


Check out my Blog:
http://www.michaeljgorman.com/
  
Reply With Quote
Old
  (#10)
curia007 is Offline
Baby Mylo User
curia007 is on a distinguished road
 
Posts: 14
Join Date: Sep 2006
   
Looking to View System Libraries - 02-22-08, 10:39

Looking at one of the supplied widgets, I noticed the following:

"/js/lib/WidgetLibrary.js"
"/js/lib/ExtensionLibrary.js"
"/js/lib/PreferencesLibrary.js"

I could not find them in my mylo2 file structure. Any idea of where they reside and how I could view them?
  
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Forum Jump



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.



Mylo™ and Memory Stick™ are trademarks of Sony.
Myloforums.net is not associated with, or owned by the Sony Corporation. The views and opinions presented on this website are those of the Myloforums.net team & the general public.