View Full Version : ROM chefs - accept donations directly in your ROMs
modaco
18-04-2008, 01:38 PM
Introducing DONATE, a cool little application that lets you take donations via PayPal directly on device!
Donate is so easy to use and build, there's not a whole lot to say!
Want to see it in action?
Download from here: http://donald.modaco.com/apptodate/donate.cab
TEST OEM package (feedback please!): http://donald.modaco.com/apptodate/donate.oem.zip - remember to add your registry entries, see below!
Customising
Of course, if you are bundling this in your ROM, you want to customise the donate paypal email and the note. Well, you can! Simply create 2 string registry entries...
- HKCU\Software\MoDaCo\Donate\Alias (with your paypal email) and
- HKCU\Software\MoDaCo\Donate\Note (with your donate note)
...and it'll be picked up by the application!
Including in your ROM
To include the application in your ROM, you need to include the following files:
Donate.exe - install to a location of your choice
Programs menu shortcut - of course
donate.xml - this must be installed to \Application Data\AppToDate - see below!
AppToDate
If you are including Donate in your ROM, it is HIGHLY RECOMMENDED that you include AppToDate too (details (http://apptodate.modaco.com)). Why? Simply because, if the PayPal mobile site changes to break Donate, I will be able to immediately roll out a fixed version via AppToDate that your users will then pick up!
Add to that, AppToDate is damn cool anyway :D
Hope this app is useful, feedback welcomed and a couple of screenshots are below!
P
PS If you're asking yourself 'Why have I created this?', I just wanted to know if it'd work :D
http://content.modaco.net/donate1.png http://content.modaco.net/donate2.png
ather90
18-04-2008, 01:51 PM
Great Tool :D
l3v5y
18-04-2008, 01:55 PM
Now to add this in! And then roll out the update to my ROM using A2D!
modaco
18-04-2008, 02:12 PM
Added a test OEM package, please let me know if it works!
P
ather90
18-04-2008, 02:27 PM
I didnt understand the XML in the OEM Package ??
btw i have included a2d and Donaate in my ROM :D
modaco
18-04-2008, 02:42 PM
The XML is to allow Donate to update via AppToDate!
(i.e. the initflashfiles should copy it to \Application Data\AppToDate if it works, and it should appear in the apptodate menu).
Don't forget your registry entries so the app is populated with your donation email!
P
rorydaredkign
18-04-2008, 02:49 PM
Paul, do your useful apps ever stop coming?
Again wow, im not a cook, but these small things are so useful...
What about rom2date? or is that your next venture?
Rory
modaco
18-04-2008, 02:52 PM
ROM updating directly on the device would be just awesome, but it'd require the assistance of someone with more intricate knowledge of the workings of the SPL process to make it happen.
I guess the answer would be something like...
- Download ROM (OK, so it's big, but over WiFi or 3G/HSDPA it's feasible)
- Initiate Soft SPL pseudo bootloader
- Initiate flash via the device itself (emulating a RUU type thing)
- Sit and wait
I think someone like Olipro perhaps would need to share his wisdom as to whether it's possible. Would be awesome tho! :D
P
chavonbravo
18-04-2008, 03:47 PM
http://wiki.xda-developers.com/index.php?pagename=Hermes_SDCardFlashing
This works. Other devices can do this as well I believe.
modaco
18-04-2008, 03:51 PM
Hmmm. Assuming you WERE happy to download a 75MB file or whatever on your device, it should be possible then :D
You could even implement it now by packaging the NBH into a big ass CAB file? :P
P
medkid
18-04-2008, 03:53 PM
Can you create another donation customization ? I can't get a paypal account in Vietnam. I suggest moneybookers.com as we don't need any card for that account :)
Piranha1
18-04-2008, 10:38 PM
Thanks from the Merlot Comp.Germany :)
xplode
19-04-2008, 12:27 AM
Great app, but i reshacked the exe and replaced the icon with this one, so if you like it you may include it in future release of this software
I definately will include it in my next rom
no2chem
19-04-2008, 11:13 AM
ROM updating directly on the device would be just awesome, but it'd require the assistance of someone with more intricate knowledge of the workings of the SPL process to make it happen.
I guess the answer would be something like...
- Download ROM (OK, so it's big, but over WiFi or 3G/HSDPA it's feasible)
- Initiate Soft SPL pseudo bootloader
- Initiate flash via the device itself (emulating a RUU type thing)
- Sit and wait
I think someone like Olipro perhaps would need to share his wisdom as to whether it's possible. Would be awesome tho! :D
P
http://www.weienterprises.com/nue/nueupdate.html
gullum
19-04-2008, 12:12 PM
I've tried to cook into my next rom but :D can't realy test it (donating to myself) but it conects and it's looking sweet and the paypal icon would also be better I think as people then would not dought what it's for.
and thanks for this app
l3v5y
19-04-2008, 01:11 PM
I'll be cooking this in to my next ROM, although that may be a while coming as I have exams for a few weeks soon :(
@Gullum: Change the link and donate to me!!! :D
modaco
19-04-2008, 08:45 PM
Nice work, will update to this icon :D
P
Mr_Gee
23-04-2008, 11:42 AM
Good job Paul!
If I ever make a ROM I'll include it :-)
Now I had another idea, why not add some functionality...?
I like writing programs and while everything (up to now) is freeware but a donation is appreciated.
I'd like to include your program to do this or a link to it..
The MyApp would fill the following registry entries:
- HKCU\Software\MoDaCo\Donate\<APPNAME>\Alias (with your paypal email) and
- HKCU\Software\MoDaCo\Donate\<APPNAME>\Note (with your donate note)
- HKCU\Software\MoDaCo\Donate\<APPNAME>\Currency (could also be helpfull, or pick the default currency of the device)
- HKCU\Software\MoDaCo\Donate\<APPNAME>\Donated (1 or 0 for yes or no)
Donate would then show a list of installed apps for which the user can donate, similar to ApptoDate
The app writers could have their app check if Donate is installed and if it isn't show a link where it can be downloaded (cab)
What do you think?
I saw a comment about adding other payment options (moneybookers.com) not sure how this works,
but mabe it can be incorperated in the "alias" entry : "paypal:mail@address.com" if you decide to go that way.
(if in the above case the paypal is ommited paypal is assumed, just to make sure that the older entries will keep working)
modaco
24-04-2008, 09:54 AM
Could work Mr_Gee, will have to check if you can specify a currency in the paypal payment form string... I think it currently picks the default currency for your account?
Moneybookers support etc., only feasible if they have a mobile payment interface?
P
Mr_Gee
24-04-2008, 10:19 AM
Could work Mr_Gee, will have to check if you can specify a currency in the paypal payment form string... I think it currently picks the default currency for your account?
Moneybookers support etc., only feasible if they have a mobile payment interface?
P
:-)
I personally don't care for any other payment option, I only use PayPal, but
I assume there will be people who use other companies.
maybe in one of the next releases
As for the currency if it picks up this information from the paypal account
it seems Ok to me, it was just for the recipient (and sender) so they wouldn't have to calculate the amount that needs to be send..
e.g i'd like 5 euro, but someone in the UK then needs to calculate how much that would be in GBP (I assumed that GBP would be there by default)
anyway looking forward to the new version :-)
epimazzo
25-04-2008, 03:55 AM
Interesting tool....:)
But I'm a feel little lost...:o I understand that user can automatically flash my new rom directly through your apps, is that right?
If so, just give some light on how correctly add data to the RGU file.
Thanks a lot!;)
http://www.weienterprises.com/nue/nueupdate.html
epimazzo
25-04-2008, 04:10 AM
Hey Modaco,
really nice one! Liked a lot!:D
just need some light over alias description...don't know how to create the value data to include my email address and note. Can you please help me out?
I appreciate it!
Thanks in advance:p
Customising
Of course, if you are bundling this in your ROM, you want to customise the donate paypal email and the note. Well, you can! Simply create 2 string registry entries...
- HKCU\Software\MoDaCo\Donate\Alias (with your paypal email) and
- HKCU\Software\MoDaCo\Donate\Note (with your donate note)
...and it'll be picked up by the application!
Mr_Gee
16-05-2008, 10:57 PM
Hey Paul,
Any news on using Donate for applications?
:-)
btw how's Seattle ?
l3v5y
16-05-2008, 11:04 PM
Hey Modaco,
really nice one! Liked a lot!:D
just need some light over alias description...don't know how to create the value data to include my email address and note. Can you please help me out?
I appreciate it!
Thanks in advance:p
The OEM pack xml file is wrong... I don't know the URL to correct it...
<?xml version="1.0"?>
<doc>
<assembly>
<name>
Donate
</name>
</assembly>
<members>
<member name="P:MoDaCo.My.Resources.Resources.ResourceManager">
<summary>
Returns the cached ResourceManager instance used by this class.
</summary>
</member><member name="P:MoDaCo.My.Resources.Resources.Culture">
<summary>
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
</summary>
</member><member name="T:MoDaCo.My.Resources.Resources">
<summary>
A strongly-typed resource class, for looking up localized strings, etc.
</summary>
</member>
</members>
</doc>Also, the initflashfiles has "Application Data" misspelled...
Directory("\applicaiton data\apptodate"):-File("donate.xml","\windows\donate.xml")
Should be
Directory("\Application Data\AppToDate"):-File("donate.xml","\windows\donate.xml")
For cooking it in, add an entry to your user.rgu file with the following
[HKEY_Current_User\MoDaCo]
[HKEY_Current_User\MoDaCo\Donate]
"Alias"="youremail@somewhere.com"
"Note"="yournotehere"
EDIT: the donate.xml file should be this:
<application>
<name>Donate</name>
<version>3.08.04.18</version>
<description>Donation client - show your appreciation direct from your device.</description>
<versionurl>http://donald.modaco.com/apptodate/donate.xml</versionurl>
<caburl>http://donald.modaco.com/apptodate/donate.cab</caburl>
</application>
epimazzo
18-05-2008, 04:44 AM
Hey l3v5y!
Thanks a lot for this correction and tips!:D
Unfortunately, I have to find someone else to testify if it's working or not cause I've just sold my device.:p
I'll made a CAB from the pack and ask one of my friends to install it.
Cheers!:cool:
The OEM pack xml file is wrong... I don't know the
l3v5y
18-05-2008, 11:04 AM
Hey l3v5y!
Thanks a lot for this correction and tips!:D
Unfortunately, I have to find someone else to testify if it's working or not cause I've just sold my device.:p
I'll made a CAB from the pack and ask one of my friends to install it.
Cheers!:cool:
It worked for me!
Are you getting a new device then?
axl79
19-05-2008, 09:48 PM
It Doesn´t work on an Spanish ROM. Why?
I installed Cab, and It gives me and inesperated Error, i´m running WM6.1 build 19701 and CF.NET 3.5.
I want to include this app into my next new ROM NiAx 6.1.40, to help people to donate...
Thanks in advance.
Nikitto and Axl79. NiAx Team.
l3v5y
19-05-2008, 09:55 PM
Have you got the registry set up?
axl79
19-05-2008, 10:13 PM
Have you got the registry set up?
That´s it, thanks, i make a mistake on registry... i forgot Software folder before Modaco :D
Can the app be customizable to set the currency and the language..., i can make it with changing some parameters in URL, but here i can´t control what is writen in URL... it could be interesting for all of us, to include this parameters to this great program to make it usable for all countries developers.
Thanks... another GREAT MoDaCo App.
Nikitto and Axl79. NiAx Team.
l3v5y
20-05-2008, 09:53 PM
I have a couple of ideas/requests...
1) Customizable url (localizable?)
2) Resizing of the from when the SIP is shown
3) Error handling! (maybe make it donate to you if nothing is found :P)
I could do these my self, but I'll need to look into the url construction for PayPal...
shogunmark
22-05-2008, 08:11 AM
I have tried the reg entries from the first post and from l3v5y but it still does not autopopulate in the app, i have tried it by cooking it in, and also by cab file
l3v5y
22-05-2008, 09:45 AM
Does it load successfully? I think it crashes if it doesn't find the entries...
The app only gets populated after you have signed in to your paypal account.
shogunmark
22-05-2008, 04:39 PM
Does it load successfully? I think it crashes if it doesn't find the entries...
The app only gets populated after you have signed in to your paypal account.
yep it load just fine, and i used 2 different email address's to make sure it was different than what was being logged into paypal with.
l3v5y
22-05-2008, 05:57 PM
Maybe it just dislikes your phone?
One thought, have you got the latest version? Maybe paypal is broken...
shogunmark
23-05-2008, 01:19 AM
L3v5y if you have this working as it supposed to can you post it as a cab? i have tried everyhing, even making my own cab... the app runs but doesnt pull my email address
l3v5y
23-05-2008, 01:38 AM
I can try, although not sure if it will help...
I've just retried it, and it appears the paypal url construction is broken... It used to work but now doesn't...
Anyway, my cab is attached...
shogunmark
23-05-2008, 05:07 AM
I can try, although not sure if it will help...
I've just retried it, and it appears the paypal url construction is broken... It used to work but now doesn't...
Anyway, my cab is attached...
OK, i thought i was going crazy, the original rom i cooked worked with no problem, even using the original registry modaco set up, and now that it wasnt i swore i f'd something up, i tried everything to no avail!
l3v5y
23-05-2008, 11:22 AM
OK, i thought i was going crazy, the original rom i cooked worked with no problem, even using the original registry modaco set up, and now that it wasnt i swore i f'd something up, i tried everything to no avail!
Sorry I didn't test it earlier...
epimazzo
24-05-2008, 03:02 AM
Hi l3v5y!
I've just got my new techtoy!:D A new brand Polaris device! NICE!:)
No,I'm gonna back to my backyard!:p
I'll install a cab made by myself and see if it works...
See you around!:cool:
It worked for me!
Are you getting a new device then?
epimazzo
14-06-2008, 03:34 PM
Apparently, it's working..but I got this new surprising error:
Paypal Mobile is not available in your country at this time.:(
Dunno what is relation cause I have a paypal account actived!:o
Any successfull progress so far?
Thanks:cool:
l3v5y
16-06-2008, 08:58 PM
Apparently, it's working..but I got this new surprising error:
Paypal Mobile is not available in your country at this time.:(
Dunno what is relation cause I have a paypal account actived!:o
Any successfull progress so far?
Thanks:cool:
Paypal and Paypal Mobile are separate services...
epimazzo
17-06-2008, 04:13 AM
Can't believe it!:mad:
It means that there's no way to have Mobile version be operational in this part of the globe? Sounds bad....:( I wish to have that feature enable...
Anyway, thanks for alert!:cool:
Paypal and Paypal Mobile are separate services...
l3v5y
17-06-2008, 08:12 PM
Can't believe it!:mad:
It means that there's no way to have Mobile version be operational in this part of the globe? Sounds bad....:( I wish to have that feature enable...
Anyway, thanks for alert!:cool:There may be a version... I'd need to do some research to find out...
epimazzo
17-06-2008, 08:16 PM
I really thank you and appreciate that!;)
There may be a version... I'd need to do some research to find out...
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.