The Following 16 Users Say Thank You to rmerren For This Useful Post: | ||
attila77, bunanson, casper27, codeMonkey, das_schlumpfie, Deaconclgi, eme, evil_m0nkey, fpp, kojacker, moepda, NvyUs, ossipena, Patola, Tuukka, v2px |
![]() |
2010-06-03
, 03:19
|
Posts: 267 |
Thanked: 183 times |
Joined on Jan 2010
@ Campinas, SP, Brazil
|
#2
|
The Following User Says Thank You to Patola For This Useful Post: | ||
![]() |
2010-06-03
, 03:35
|
Posts: 2,014 |
Thanked: 1,581 times |
Joined on Sep 2009
|
#3
|
![]() |
2010-06-03
, 03:46
|
Posts: 282 |
Thanked: 337 times |
Joined on Dec 2009
@ Austin, TX, USA
|
#4
|
The Following 15 Users Say Thank You to rmerren For This Useful Post: | ||
![]() |
2010-06-03
, 04:07
|
Posts: 282 |
Thanked: 337 times |
Joined on Dec 2009
@ Austin, TX, USA
|
#6
|
![]() |
2010-06-03
, 04:07
|
|
Posts: 4,365 |
Thanked: 2,467 times |
Joined on Jan 2010
@ Australia Mate
|
#7
|
![]() |
2010-06-03
, 04:38
|
Posts: 337 |
Thanked: 192 times |
Joined on Feb 2010
@ Atlanta
|
#8
|
The Following User Says Thank You to Deaconclgi For This Useful Post: | ||
![]() |
2010-06-03
, 04:53
|
Banned |
Posts: 206 |
Thanked: 118 times |
Joined on Jan 2010
@ Vancouver
|
#9
|
![]() |
2010-06-03
, 19:58
|
|
Posts: 2,853 |
Thanked: 968 times |
Joined on Nov 2005
|
#10
|
Well today is your day. The second most useless app for the N900 has now made its way into the extras-devel repository: Old School (in the Desktop category). This app will make your phone look like one of the crappy old models where you could actually count the number of "bars" of signal or battery without a magnifying glass.
Functionally, the app does very little. The signal and battery bars are active, reading the values from DBus. Just run the app and, if you want to return to the 21st century simply press where it says QUIT.
Technical notes: this was my first Maemo app, and for anyone writing their first app I would recommend starting with something simple as well. I wrote it in Python using PyQt, mainly because I really like the loose coupling provided by the signals and slots. The DBus interaction is in a separate class, and PyQt does not seem to provide the QT interfaces for that so I used the standard dbus-python methods.
Having never created a .deb package, that was also somewhat of an adventure (anyone with experience putting together java war packages is ready for this challenge, though). There is some info to be found out there on creating .deb packages from python, as well as stuff like py2deb. I couldn't make py2deb work, and eventually concluded that the easiest path was a mostly manual process that copied the format of existing python projects in the repository. If I can, I will put the steps I followed together and gather feedback from others for some best practices--it is actually quite simple to package up a python app once you get the directories and files together.
So enjoy, and let me know if you have any feedback. I will now sit back and await my award for the app competition!