Active Topics

 



Notices


Reply
Thread Tools
Posts: 32 | Thanked: 11 times | Joined on Oct 2011
#301
First, thanks a lot for this!

The java midlet from the German railways runs quite well with phoneme (but of course without GPS).

However, I have trouble with the german Handyticket app, which would be quite useful to have:
http://www.handyticket.de/curr_ver/G...hPhone-dht.jar

It starts the main menu fine, but any selection results in a network server error in the layout of the app.
Log files (err and out.txt) are empty, so there is little more I can say.

For the app to be useful one would need to register, but to reproduce the error it is not necessary.
Any help would be appreciated as the midlet is much more convenient then the web version.
 
Posts: 306 | Thanked: 603 times | Joined on Jan 2012 @ Belgium
#302
My latest build now includes a "MIDlet Settings" application (i.e. /opt/phoneme/bin/settings) which allows you to set some default properties for running a midlet. More details are available at:
http://davy.preuveneers.be/phoneme/?q=node/34

You can find the latest debian archive on the download page or at:
http://davy.preuveneers.be/phoneme/public/maemo/deb/

If you use the 'Run MIDlet' application (i.e. /opt/phoneme/bin/runmidlet) to start a midlet, it will use your current midlet settings (by default fullscreen enabled and the other options disabled)

If you create a desktop shortcut file that executes /opt/phoneme/bin/cvm (rather than /opt/phoneme/bin/runmidlet), you can override the above settings with the following command line parameters to /opt/phoneme/bin/cvm:

-fullscreen
-nofullscreen
-bitmapfont
-nobitmapfont

This is e.g. useful if you do only want to run certain midlets in full screen.

Regards,
Davy
 

The Following 4 Users Say Thank You to DavyP For This Useful Post:
Posts: 268 | Thanked: 75 times | Joined on Jan 2011
#303
I just tried a gps app called Mario advisor to see if at least it starts. But i got this error:

/MyDocs/java/Mario_Advisor_v0.61 $ /opt/phoneme/bin/runmidlet ./Mario_Advisor.jar
[./Mario_Advisor.jar]
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
note: ./Mario_Advisor.jar may be a plain executable, not an archive
---------------------------

Nevermind, it works now.

Last edited by Brian_7; 2012-02-26 at 19:02. Reason: it works
 
Posts: 1,397 | Thanked: 2,126 times | Joined on Nov 2009 @ Dublin, Ireland
#304
Is there any Wiki with a list of compatible applications?
 
santiago's Avatar
Posts: 518 | Thanked: 334 times | Joined on Mar 2010 @ italy
#305
at the end of this page, you'll find an example to use liblocation api

Link: http://wiki.maemo.org/Documentation/...g_Location_API

Also down here attached you have a Qt example about the Maemo Location that uses liblocation, reference is here: http://maemo.org/api_refs/5.0/5.0-final/liblocation/

add this to your .pro file

Code:
CONFIG          += link_pkgconfig
PKGCONFIG   += gtk+-2.0 hildon-1 liblocation
to build

gcc main.c `pkg-config --cflags --libs gtk+-2.0 hildon-1 liblocation`

one question: do you have a way to print a bug report? i mean. can you implement a way to log all the classe error on a file? to help you in this way will be nice a bugreport button on phoneme. something like send a bug. just becouse i tryed many games/apps free and copyrighted..
Attached Files
File Type: zip Qt_for_Maemo_Location_Example.zip (2.6 KB, 91 views)
 
Posts: 306 | Thanked: 603 times | Joined on Jan 2012 @ Belgium
#306
Originally Posted by santiago View Post
at the end of this page, you'll find an example to use liblocation api

Link: http://wiki.maemo.org/Documentation/...g_Location_API

Also down here attached you have a Qt example about the Maemo Location that uses liblocation, reference is here: http://maemo.org/api_refs/5.0/5.0-final/liblocation/

add this to your .pro file

Code:
CONFIG          += link_pkgconfig
PKGCONFIG   += gtk+-2.0 hildon-1 liblocation
to build

gcc main.c `pkg-config --cflags --libs gtk+-2.0 hildon-1 liblocation`

one question: do you have a way to print a bug report? i mean. can you implement a way to log all the classe error on a file? to help you in this way will be nice a bugreport button on phoneme. something like send a bug. just becouse i tryed many games/apps free and copyrighted..
Yep, I already found that one for accessing the GPS. I was able to compile and run it without problems (not taking into account the
long time for finding a GPS fix). Thanks, anyway :-)

About the bug reporting: have a look at the "MIDlet Settings" and enable the redirecting of all console output. After running your app
you will hopefully find some useful info in the err.txt and out.txt log files in the /home/user/MyDocs/ directory.

Davy
 

The Following User Says Thank You to DavyP For This Useful Post:
Posts: 306 | Thanked: 603 times | Joined on Jan 2012 @ Belgium
#307
There is yet another new build (20120227) online at:

http://davy.preuveneers.be/phoneme/public/maemo/deb/

With this build, you should be able to select a jar or jad in the File
manager, and phoneME should automatically open it (rather than going
through the 'Run MIDlet' application). It took me a while to figure out
how filenames were passed along through dbus and how to set up a
service to handle the JAR/JAD file types. I also added two icons to
better distinguish the JAR and JAD files.

However, I am not sure if this works on the N9. It is quite likely that the
service, mimetype and icon files should be put in a different folder
(compared to Maemo).

Could N9 owners please check whether they can find other xml mime
package descriptions in /usr/share/mime/packages/ and service
descriptions in /usr/share/dbus-1/services/

Thanks
Davy
 

The Following 3 Users Say Thank You to DavyP For This Useful Post:
Posts: 545 | Thanked: 560 times | Joined on Dec 2011 @ lebanon
#308
Originally Posted by DavyP View Post

However, I am not sure if this works on the N9. It is quite likely that the
service, mimetype and icon files should be put in a different folder
(compared to Maemo).

Could N9 owners please check whether they can find other xml mime
package descriptions in /usr/share/mime/packages/ and service
descriptions in /usr/share/dbus-1/services/

Thanks
Davy
(just deleted the old .desktop )

EDIT: I can confirm it works but another problem appeared that the run-midlet doesn't run properly and just a blank screen . In other words .jar filetype is directly accessible but run-midlet don't work thererfor nothing appear (using N9 )

Last edited by myname24; 2012-02-27 at 01:17.
 
Posts: 250 | Thanked: 126 times | Joined on Dec 2010
#309
Originally Posted by DavyP View Post
There is yet another new build (20120227) online at:

http://davy.preuveneers.be/phoneme/public/maemo/deb/

With this build, you should be able to select a jar or jad in the File
manager, and phoneME should automatically open it (rather than going
through the 'Run MIDlet' application). It took me a while to figure out
how filenames were passed along through dbus and how to set up a
service to handle the JAR/JAD file types. I also added two icons to
better distinguish the JAR and JAD files
Didn't work for me on the n900 not from file manager (the icons are there but don't open) neither the run middlet app
although running as usual from x-term with the comand
anyone else with this problem?
Thanks
 
Posts: 306 | Thanked: 603 times | Joined on Jan 2012 @ Belgium
#310
Yep, my bad. The 'Run MIDlet' application accidentally triggered the
DBus service that is associated with jar/jad files. I will look into it.

Davy
 
Reply


 
Forum Jump


All times are GMT. The time now is 15:44.