Please Log In or Register - it's FREE!

 
Reply to this topicStart new topic
 Developers: How to include AppToDate support (basic)
Paul
post Apr 3 2008, 17:29
Post #1


It's My Party
Group Icon

Group: Admin Team
Posts: 26,775
Favorited Topics: 98
Joined: 6th November 2002
From: Norwich, UK
Member No.: 1

Device(s): Touch HD / G1
Twitter: @paulobrien



Including AppToDate support with your application is REALLY easy!

You simply need to install an XML file (and optionally an icon) with your application, and then host the same XML file online with your CAB file.

First things first, what does the XML look like?

Here's my 'CamerAware' XML:

CODE
<application>
<name>CamerAware</name>
<version>3.08.03.29</version>
<description>CamerAware Safety Camera alerting from MoDaCo</description>
<versionurl>http://www.cameraware.net/apptodate/cameraware.xml</versionurl>
<caburl>http://www.cameraware.net/apptodate/cameraware.cab</caburl>
</application>

Simple eh? I think it's all quite self explanatory!

You see, you install this with your app (details of location below), and then host it online. When your version changes, the online XML shows a newer version number. AppToDate compares the two, and if the online one is newer, downloads and installs the CAB linked in the 'caburl' node. Beautiful simplicity!

So where do you put the file?

You install the file (e.g. cameraware.xml) to '\Application Data\AppToDate'. Optionally, you also install an icon file containing 16x16 and 32x32 icons named the same (e.g. cameraware.ico) to the same place, as that'll be used in future apptodate versions.

What about non free upgrades or other instances where a downloadable CAB isn't appropriate?

I appreciate that sometimes major upgrades for your applications won't be free and you need to provide for that, so you have the option of a 'Notification'. This is a text message that you show instead of making a download available. For ROM developers, you would make use of apptodate this way too. To create a notification, you just omit the element, put something really helpful to the end user in your description and AppToDate knows what to do. E.g.:

CODE
<application>
<name>My ROM</name>
<version>2.0</version>
<description>Version 2 of My ROM is now available, and has lots of new features you are gonna love! Visit http://www.me.com/myrom to download! </description>
<versionurl>http://www.me.com/myrom/myromversion1.xml</versionurl>
</application>

or, if you have a major version upgrade on your application perhaps...

CODE
<application>
<name>My Application</name>
<version>2.0</version>
<description>Version 2 of My Application is now available, however you are running version 1.0, and the upgrade isn't free! We do have special upgrade deals though, so come and check them out at http://www.me.com/myapp!</description>
<versionurl>http://www.me.com/myapp/myappversion1.xml</versionurl>
</application>

Easy! You can see what it looks like in the application in the screenshots in this post.

Feedback welcomed!

P


--------------------
If you'd like to support MoDaCo, please consider signing up for a MoDaCo Ad Free or a MoDaCo Plus account - now accepting Google Checkout!

New to MoDaCo Plus: Free LastPass Premium upgrade!

We're back on IRC! Come join use in #modaco on freenode!

Follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco

Want to donate? MoDaCo is fighting Childhood Leukemia - click here to view our page at Cancer Research
Go to the top of the page
 
+Quote Post
tsutton
post Apr 4 2008, 09:54
Post #2


Mobiholics Staff
Group Icon

Group: Moderator Team
Posts: 2,114
Joined: 31st December 2004
From: Near Norwich, UK
Member No.: 104,092

Device(s): HTC HD2
Twitter: @mobiholics



A few of the 'freebies' software are usually hosted on a freebie website - what happens if the website has maxed out the bandwidth and doesn't serve files anymore - how will AppToDate react to it? Will it throw an error message? Will it time out? Will it blow up? tongue.gif

Great product by the way!


This post has been edited by tsutton: Apr 4 2008, 09:54


--------------------
- Tony Sutton
- My Ford Focus ST170 car
- Got Phone, GPS and WiFi together? Sign up & Make Money with Navizon!

Check out Mobiholics.com - Mobiholics is the place to go for all non Windows Mobile related mobile talk - discussing networks, non WinMo devices etc. As part of the MoDaCo.network, your existing MoDaCo login automagically works over there too!
Go to the top of the page
 
+Quote Post
Paul
post Apr 4 2008, 09:59
Post #3


It's My Party
Group Icon

Group: Admin Team
Posts: 26,775
Favorited Topics: 98
Joined: 6th November 2002
From: Norwich, UK
Member No.: 1

Device(s): Touch HD / G1
Twitter: @paulobrien



AppToDate will inform you that update has failed, and then download the others.

P
Go to the top of the page
 
+Quote Post
Paul
post Apr 5 2008, 06:47
Post #4


It's My Party
Group Icon

Group: Admin Team
Posts: 26,775
Favorited Topics: 98
Joined: 6th November 2002
From: Norwich, UK
Member No.: 1

Device(s): Touch HD / G1
Twitter: @paulobrien



Just a reminder to developers to open your XML in a browser to check that it is correctly formed! Certain characters break the XML, and this has caught a few people out.

You can also get round this by using CDATA sections, e.g. the XML node below (that breaks due to the ampersand)...

CODE
<description>Cool & New App</description>

becomes...

CODE
<description><![CDATA[Cool & New App]]></description>

P
Go to the top of the page
 
+Quote Post
johncody
post Apr 5 2008, 13:35
Post #5


Regular
Group Icon

Group: Posters
Posts: 105
Joined: 12th May 2003
From: New York, NY USA
Member No.: 6,041

Device(s): HTC Dash



Paul,

I think something happened with the forum database - It looks like 15+ posts from yesterday seem to be missing huh.gif

UPDATE: I just discovered you created a new suggestion section and there they are tongue.gif


This post has been edited by johncody: Apr 5 2008, 19:06


--------------------
-John Cody
Go to the top of the page
 
+Quote Post
Chainfire
post Apr 5 2008, 17:02
Post #6


Enthusiast
Group Icon

Group: Posters
Posts: 190
Joined: 1st October 2007
Member No.: 306,145



QUOTE(Paul (MVP) @ Apr 5 2008, 08:47) *
CODE
<description>Cool & New App</description>

becomes...

CODE
<description><![CDATA[Cool & New App]]></description>


& and such should work as well, btw (I for one always forget exactly what the CDATA syntax was, but I never forget & ;))


--------------------
Author of many things ;)

My development blog: http://www.chainfire.eu/
Go to the top of the page
 
+Quote Post
Paul
post Apr 14 2008, 14:20
Post #7


It's My Party
Group Icon

Group: Admin Team
Posts: 26,775
Favorited Topics: 98
Joined: 6th November 2002
From: Norwich, UK
Member No.: 1

Device(s): Touch HD / G1
Twitter: @paulobrien



Updated first post with how to do 'notifications'!

P
Go to the top of the page
 
+Quote Post
Mr_Gee
post Apr 23 2008, 12:42
Post #8


Regular
Group Icon

Group: Posters
Posts: 73
Favorited Topics: 3
Joined: 5th June 2006
Member No.: 193,294

Device(s): MDA Vario 3



Hi Paul,

I'm pretty new with creating cab files and I'm tying to get the cabwiz to install the xml to the "\Application Data\AppToDate" directory,
but for some reason it is not working at all...
Could you post a working inf file maybe the cameraware or apptodate.inf file so I can see how you did it?

Thanks!

-=edit=-
I've used your "advanced" ApptoDate support, adding a reg setting provided a workaround :-)
thanks anyway


This post has been edited by Mr_Gee: Apr 23 2008, 13:15
Go to the top of the page
 
+Quote Post
Paul
post Apr 23 2008, 13:04
Post #9


It's My Party
Group Icon

Group: Admin Team
Posts: 26,775
Favorited Topics: 98
Joined: 6th November 2002
From: Norwich, UK
Member No.: 1

Device(s): Touch HD / G1
Twitter: @paulobrien



The relevant part in my CamerAware XML is probably this:

CODE
[DestinationDirs]
Files.Common86=0,"Application Data\AppToDate"

Where Common86 is my cameraware.xml...

In the 'Advanced' guide in this forum I talk about how to actually have the XML in your own app directory and point ATD at it via a registry key, but the subtleties of install to main memory vs storage card could make that difficult.

P
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

Similar Topics

  Topic Replies Topic Starter Views Last Action
No new Topic has attachmentsHow I Flashed my Omnia VZW i920
tips from others
52 kdkinc 4,098 Yesterday, 20:31
Last post by: LordSith
No new Topic has attachmentsHow to flash your Omnia 2 under Win7 32 & 64bit
VIDEO GUIDE
26 Rapid81 4,395 Yesterday, 19:53
Last post by: ring ring
No New Posts GT-I8000 gone to silent mode.
6 Chintu1585 156 Today, 04:13
Last post by: r_o_._
No New Posts English Custom ROM to Another Language is Possible
Discuss it here
4 daskalos 170 Today, 09:20
Last post by: jappoman
No New Posts How does spb shell work?
As a today screen plugin or does it go deeper?
6 Echo30 160 Today, 09:48
Last post by: Vostradamus
No New Posts Upgrading to DC23
4 wicked.ludicrous 43 Today, 09:56
Last post by: kdkinc

2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 


RSS hit counter Lo-Fi Version Time is now: 1st August 2010 - 10:42

Please visit our 'Plus Partners' - these companies support MoDaCo through 'MoDaCo Plus' - Click Here for more details!

ActiveKitten | Binaryfish | Conduits | DeveloperOne | eSoft Interactive | FTouchSL | Inesoft | LastPass

Lingvosoft | monocube | OmegaOne | Omnisoft | Opera Software | Resco | SBSH | Splashdata

Sprite Software | Syncdata | Teksoft | Titanium Backup | VITO | WalkingHotSpot | WebIS | z4soft

Would your company like to become a 'Plus Partner'? Click Here to contact us!