Freewarepocketpc.net "Client"

digitaldon37

Active Member
Licensed User
Longtime User
Freewarepocketpc.net "Client" - Rewritten & Released

2/3/09 update
I've rewritten the freewarepocketpc.net client - see attached source code. This is being released under the GNU General Public License.

XDA forum: [APP] Pocket Freeware (developer release) - xda-developers

Current version: D.19

Requires:Listview, fgControls libraries (filippo)

- - - -
Features
1. View applications by New, or by category (edit categories.txt file to customize what categories you want)
2. View application detail - if app was installed by "Pocket Freeware" it will have checkmark and show both installed date and latest available date.
3. Download & install
4. Pocket PC and PC versions

Future or still in development
1. View list of what has been installed from freewarepocketpc.net with this app (and check for updates!)
2. Landscape mode (not implemented due to my laziness and focus on features)
3. View listings on freewarepocketpc.net's shareware site
4. More robust downloading (working with site owner)
5. Save settings (currently hard coded, some you can change during run-time)
6. Clean-up details page (artistic, I am not)
7. Your feature here?

Instructions & hints
1. Checking an unchecked box in the details page will download and install the app
2. Clicking on the image in the details page will enlarge the image. Click on image again to minimize.
3. Little "X" in right hand corner of details page will close the details & return to listing
4. Double click (or press enter on dpad) to select application to view details. I may add the detail launch on the main page image in a future release
 

Attachments

  • app_main.JPG
    app_main.JPG
    19.4 KB · Views: 343
  • app_details.JPG
    app_details.JPG
    17.6 KB · Views: 307
  • app_img.JPG
    app_img.JPG
    13 KB · Views: 283
  • cache.zip
    203.5 KB · Views: 328
  • gfx.zip
    199 KB · Views: 334
  • freeware19.sbp
    32.8 KB · Views: 289
Last edited:

digitaldon37

Active Member
Licensed User
Longtime User
Last edited:

moster67

Expert
Licensed User
Longtime User
Great app!!

I will continue keeping an eye on this one - it's a quick way to see if there are any "goodies" which I'd like to install and and I can do it directly from my device..

rgds,
moster67
 

digitaldon37

Active Member
Licensed User
Longtime User
Great app!!

I will continue keeping an eye on this one - it's a quick way to see if there are any "goodies" which I'd like to install and and I can do it directly from my device..

rgds,
moster67

I've implemented a "more" button if there are additional pages of software. See main post.

UI isn't pretty - but program is functional now.
 

N1c0_ds

Active Member
Licensed User
Not to break your bubble, but they already have pocketpcfreeware.mobi and it does the same job the full website does.

:sign0013:

EDIT: I'm still curious, you got an executable? In any way, I'd love you to come and help with Gecko as you have B4P skills. The source will be on CollabEdit at some point.
 
Last edited:

digitaldon37

Active Member
Licensed User
Longtime User
Not to break your bubble, but they already have pocketpcfreeware.mobi and it does the same job the full website does.

:sign0013:

EDIT: I'm still curious, you got an executable? In any way, I'd love you to come and help with Gecko as you have B4P skills. The source will be on CollabEdit at some point.


I think that their mobi site only supports a few categories, and they only provide an RSS for new titles. I wanted something that would let me browse all categories from my PDA. I have a working executable - screen shot is posted on my wiki: pocket_freeware [CampusBBS Wiki]

This was more of an exercise of parsing html and building a program around that though. It ended up being a dedicated RSS reader for that site, though without the RSS.
 
Last edited:

N1c0_ds

Active Member
Licensed User
I think that their mobi site only supports a few categories, and they only provide an RSS for new titles. I wanted something that would let me browse all categories from my PDA. I have a working executable - screen shot is posted on my wiki: pocket_freeware [CampusBBS Wiki]

This was more of an exercise of parsing html and building a program around that though. It ended up being a dedicated RSS reader for that site, though without the RSS.

Then well done! How do you parse your HTML by the way?
 

digitaldon37

Active Member
Licensed User
Longtime User
Then well done! How do you parse your HTML by the way?

I use a variety of functions to step through the html.

B4X:
Sub ParseXml(html, str1, str2)
   x=StrIndexOf(html,str1,0)
   y=StrIndexOf(html,str2,x+StrLength(str1))
   Return SubString(html, x+StrLength(str1), y-(x+StrLength(str1)))
End Sub

Sub ParseXml2(html, str1, str2, str3)

   x=StrIndexOf(html,str1,0)
   y=StrIndexOf(html,str2,x+StrLength(str1))
   z=StrIndexOf(html, str3, y+StrLength(str1))
   Return SubString(html, y+StrLength(str2), z-(y+StrLength(str2)))

End Sub

The first one works when there are unique Xml tags or strings, the second one works for strings that follow a specific string (ie "a unique string" and then a set of <p>, </p> tags)

For the program to read the pocketpcfreeware site, I use the first sub to find out where the categories start, then use that return value for the second sub to step through all of the available categories. (and all of these go into a "categories" array)
 

digitaldon37

Active Member
Licensed User
Longtime User
Rewritten & Rereleased

Version D.12 has been posted on the main post - it is a new rewrite with the permission & help of the website owner.

Looking for testers, feedback & suggestions, & developers.

See XDA thread for more details...

*update*

1. Bug already reported: doesn't size up to 480x800. Might need help from Filippo (with his library) or another developer who has a VGA device.

*update#2* - I modified how control sizes are calculated and modified the "ChangeToVGA" routine to handle variations in the form height and width. Version D.13 uploaded to the main post.
 
Last edited:

Mr_Gee

Active Member
Licensed User
Longtime User
1. Bug already reported: doesn't size up to 480x800. Might need help from Filippo (with his library) or another developer who has a VGA device.

I have a VGA device, let me know if you need anything tested
(but 480x800 is WVGA)

I dl'ed the PC version from XDA but I'm getting an error message
on first start (attached, (fixed so removed image))
I need to dive into the sbp file to see why...

-=edit=-
I thought it might have to do with the proxy server, but i just added it and I'm getting the same error..
then I saw you have 2 functions one for the text, and one for the info..
so added the proxy and it worked.. well sort of

Now I get an error that the index is out of range..
the "list_software.xml" has been created but there is no data in there:
B4X:
<br />
<b>Warning</b>:  mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Lost connection to MySQL server during query in <b>/var/www/vhosts/freewarepocketpc.net/httpdocs/users/libs/Core/DB/DBClass_Mysql.php</b> on line <b>53</b><br />
<br />
<b>Fatal error</b>:  Could not connect to DB:  in <b>/var/www/vhosts/freewarepocketpc.net/httpdocs/users/libs/Core/DB/DBClass_Mysql.php</b> on line <b>24</b><br />

-=edit 2=-
everything seems to be working for some reason... you please ignore the above

I did notice a type-o in the categories "themes" is spelled wrong and if used results in an empty table
 
Last edited:

digitaldon37

Active Member
Licensed User
Longtime User
I have a VGA device, let me know if you need anything tested
(but 480x800 is WVGA)

I dl'ed the PC version from XDA but I'm getting an error message
on first start (attached, (fixed so removed image))
I need to dive into the sbp file to see why...

-=edit=-
I thought it might have to do with the proxy server, but i just added it and I'm getting the same error..
then I saw you have 2 functions one for the text, and one for the info..
so added the proxy and it worked.. well sort of

Now I get an error that the index is out of range..
the "list_software.xml" has been created but there is no data in there:
B4X:
<br />
<b>Warning</b>:  mysql_connect() [<a href='function.mysql-connect'>function.mysql-connect</a>]: Lost connection to MySQL server during query in <b>/var/www/vhosts/freewarepocketpc.net/httpdocs/users/libs/Core/DB/DBClass_Mysql.php</b> on line <b>53</b><br />
<br />
<b>Fatal error</b>:  Could not connect to DB:  in <b>/var/www/vhosts/freewarepocketpc.net/httpdocs/users/libs/Core/DB/DBClass_Mysql.php</b> on line <b>24</b><br />

-=edit 2=-
everything seems to be working for some reason... you please ignore the above

I did notice a type-o in the categories "themes" is spelled wrong and if used results in an empty table

I fixed the "themes" spelling and made a couple of more fixes, uploaded as version .14 to the main post..

The freewarepocketpc.net site owner asked me not to post the executable over at XDA, so I pulled that. I'm not sure if this is going anywhere now unless there is another software site that wants a front-end application for users to browse and install apps.

Here is another similar project: [UPDATED 23/12/2008 v. 1.5.3] Pocket Program manager - xda-developers
 

digitaldon37

Active Member
Licensed User
Longtime User
Why??
because he might be missing out on banner clicks?

...pff....

I'm note sure if that is the reason for delaying this release but we have discussed how to add in some type of advertising in a future release. My suggestion was to do it as part of the download process. I understand the need to pay for bandwidth and storage, so I don't have a problem with that.

This could be easily adapted to another site (since it works with xml) which is why I'm releasing the source code on B4PPC
 
D

Deleted member 103

Guest
Hi digitaldon37,

very good application, I have unfortunately very peered noticed. I have a couple of changes as: Sort, images in the Listview...

Listview.dll version v1.072 and fgControls.dll version v1.0792 are required.

Ciao,
Filippo
 

digitaldon37

Active Member
Licensed User
Longtime User
Hi digitaldon37,

very good application, I have unfortunately very peered noticed. I have a couple of changes as: Sort, images in the Listview...

Listview.dll version v1.072 and fgControls.dll version v1.0792 are required.

Ciao,
Filippo

I like the changes. The lines aren't alternating colors now though. Is there a way to fix this?
 

Mr_Gee

Active Member
Licensed User
Longtime User
I'm note sure if that is the reason for delaying this release but we have discussed how to add in some type of advertising in a future release. My suggestion was to do it as part of the download process. I understand the need to pay for bandwidth and storage, so I don't have a problem with that.
Me nether, I understand that bandwidth costs money, but I also think that
the customer should be put first. if there is an application that is beneficial for the user the owner should be supportive and find a way to make it work
e.g. showing adds during download (great idea btw)
I'd even go with a minimum time that the ad(s) will be shown...
 
D

Deleted member 103

Guest
Hallo digitaldon37,

I like the changes. The lines aren't alternating colors now though. Is there a way to fix this?
no!

But I can offer you this.
 

Attachments

  • freeware14.sbp
    27.6 KB · Views: 246
  • capture001.jpg
    capture001.jpg
    22.2 KB · Views: 257
  • capture002.jpg
    capture002.jpg
    22.4 KB · Views: 264
  • capture003.jpg
    capture003.jpg
    22 KB · Views: 241
  • capture004.jpg
    capture004.jpg
    20 KB · Views: 240
  • capture005.jpg
    capture005.jpg
    18.5 KB · Views: 238
Top