Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
jzero88
Old
#1  
jzero88's Avatar
Senior Member - OP
Thanks Meter 118
Posts: 977
Join Date: Feb 2010
Location: Orange County
Question Looking for Developer to...

Hi.

I was wondering how hard it would be to create a simple application that would connect to a server or website checking for updates. I plan on loading font .apk's on the server or website, and would like a application to periodically check for updates or manually check for updates, be able to preview the font, and then download the .apk if wanted. How hard would it be to create such an application?

Thanks.


Jzero88
 
Tydiz
Old
(Last edited by Tydiz; 10th August 2010 at 07:08 AM.)
#2  
Tydiz's Avatar
Member
Thanks Meter 2
Posts: 70
Join Date: Jul 2009
Quote:
Originally Posted by jzero88 View Post
Hi.

I was wondering how hard it would be to create a simple application that would connect to a server or website checking for updates. I plan on loading font .apk's on the server or website, and would like a application to periodically check for updates or manually check for updates, be able to preview the font, and then download the .apk if wanted. How hard would it be to create such an application?

Thanks.


Jzero88
Well, this depends on how you approach it, but I think the easiest way to do this would be to create a feed using XML. So if you were doing your font updater, you would load a file like this:

<FontDetails>
<Font name = "Font1" example = "http://www.myfontsite.com/FontExamples/Font1.png" location = ""http://www.myfontsite.com/Fonts/Font1.apk"\>
<Font name = "Font2" example = "http://www.myfontsite.com/FontExamples/Font2.png" location = "http://www.myfontsite.com/Fonts/Font2.apk"\>
</FontDetails>
The problem with this is that you will have to maintain this XML file, making sure its always up-to-date(Easily manageable with some simple scripts).

If you aren't willing to do this, you could go down the road that is wrongly mislabeled as "The Easy Way" and hard-code the locations of all your APK's and all of your example images, but I would only do this if you were planning on dumping all the APK's and images in the same place(For example, if all your APK's were here: http://www.myfontsite.com/Fonts/). You would request the directory information from the server and parse that into your list of font APK's and correspond them with their example images(probably by naming them the same; i.e. Font1.apk and Font1.png).

If you decide to use the first option, you could do a bunch of cool things with the organization, like break things into categories and apply taggings and it would only require one request to the server per update. If you go with the second method, organization is guaranteed to be a mess if you try anything large scale, and adds a layer of complexity if you try to break things into folders and categories. This would require a ping per folder you have to check, which can have a high complexity factor if you have a lot of folders.

I just want to point out that even though this is directly related to development, this is a type of question that belongs in the General section(Questions ALWAYS belong in General). I'm sure a Mod will come around, scold you, then move the thread.

Anyway, I do hope this helps,
Good luck,
Tyler

Edit: Having a bit of problems getting the XML looking correct. Sorry if it looks ugly :S
Phone: Sammy Vibrant
ROM: Vibrant 5
Kernal: VooDoo beta4 1.2OC
Recovery Img: Clockwork
SD: Class 4 8GB SDHC
 
s73v3r
Old
#3  
Junior Member
Thanks Meter 2
Posts: 25
Join Date: Dec 2009
Even easier would be to manage the updater as an RSS feed. Then it becomes quite trivial, as there are several examples of RSS readers online already.
 
jzero88
Old
#4  
jzero88's Avatar
Senior Member - OP
Thanks Meter 118
Posts: 977
Join Date: Feb 2010
Location: Orange County
Great! Thanks for the reply!

Yeah, the XML approach I think would be the better option as well, just because we could use this thread to hold everything I currently do no have any hosting at this time. Would you be up to making such a application? It seems you have the know abouts to so.... I would be the one to maintain everything and update it. I would monitor this thread and when new ones pop up, I wouldn't mind adding it to in the XML.

Also, how would the RSS feed work?

Thanks
 
Tydiz
Old
#5  
Tydiz's Avatar
Member
Thanks Meter 2
Posts: 70
Join Date: Jul 2009
Quote:
Originally Posted by jzero88 View Post
Great! Thanks for the reply!

Yeah, the XML approach I think would be the better option as well, just because we could use this thread to hold everything I currently do no have any hosting at this time. Would you be up to making such a application? It seems you have the know abouts to so.... I would be the one to maintain everything and update it. I would monitor this thread and when new ones pop up, I wouldn't mind adding it to in the XML.

Also, how would the RSS feed work?

Thanks
Wish I could...I've got about 50 projects already on the back-burner and no time to finish them Tell ya what though...I've finished a mini project a couple weeks ago with some buddies at school for my friends website. Its an Open-Source RSS reader that was made to read in the latest articles of his site. With some slight tweaking, I'm sure you(or some other dev) could mod it to work in your favor...Here's the github address:

http://github.com/pencilo/Absolute-Android-RSS.git

I don't think this is the latest code, but all the working elements you need are in here.
Phone: Sammy Vibrant
ROM: Vibrant 5
Kernal: VooDoo beta4 1.2OC
Recovery Img: Clockwork
SD: Class 4 8GB SDHC
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...