maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [BETA RELEASE] PhoneME Advanced (Java Mobile) (https://talk.maemo.org/showthread.php?t=81969)

santiago 2012-02-10 22:31

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
Quote:

Originally Posted by DavyP (Post 1163320)
Hehe, I actually already had a similar script like yours as well as
another one to create the shell script. I will put them both in my
next build.

I see what you mean with the font issue. I will check again if I did
not make any mistake with the font anchor points.

Davy

thx Davy! u r the best!!

Guinoak 2012-02-10 23:02

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
Quote:

Originally Posted by Brian_7 (Post 1163219)
If you have the CSSU update, press ctrl+shift+S to zoom in.

Thanks for the tip! Unfortunately this is not working in my n9. I tried to send the keys on the shell process, but no effect on the game. Is there another way to scale it up?

Brian_7 2012-02-10 23:06

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
Quote:

Originally Posted by Guinoak (Post 1163337)
Thanks for the tip! Unfortunately this is not working in my n9. I tried to send the keys on the shell process, but no effect on the game. Is there another way to scale it up?

That's for the n900. I think that there is no CSSU update for the N9.

Brian_7 2012-02-10 23:09

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
Quote:

Originally Posted by marmistrz (Post 1163286)
Thanks, seems it's a hildon-desktop problem that on desktop I cannot move it (or it's very hard). I'll report it as a bug.

You can not move it on the desktop. But you can do it on a windows like contatcs.

If the game is touchscreen only, i think that this tip won't be useful.

soleil 2012-02-10 23:35

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
I tried to add these lines in the manifest file of Sid meier game but no luck :
Quote:

Nokia-MIDlet-Original-Display-Size: 640,360
Nokia-MIDlet-Target-Display-Size: 854,480
Nokia-MIDlet-App-Orientation: landscape

DavyP 2012-02-11 09:04

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
Quote:

Originally Posted by soleil (Post 1163350)
I tried to add these lines in the manifest file of Sid meier game but no luck :

This is Nokia specific stuff, and only works if you have a Java ME
runtime (and some other custom APIs) from Nokia .

phoneME is an open source implementation of Java ME, initially
developed by Sun, and now Oracle, with ports to different hardware
platforms by me. It does not have these Nokia extensions.

Cheers,
Davy

PanzerSajt 2012-02-11 10:57

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
I was trying to create a shell script for making some other shell scripts with which you can start the java applications. I'm not very good at linux but I'm wiling to learn. ;)

I have figured out how to make this for one file. It runs perfectly but still missing that part to recognise the main calss from META-INF. I have commented out that lines because they are not working.

So there are two problems:
  1. To apply this script for a bunch of files in a folder.
  2. Get the main class out of the jar file and write it in the starter script.

Code:

FILE="coffinboff7uk1jctt.jar"
#FILEZIP="coffinboff7uk1jctt.zip"
echo -n "/home/phoneme/bin/cvm -Xmx12m -Dmicroedition.profiles=MIDP-2.1 -Dsun.midp.library.name=midp -Dsun.midp.home.path=/home/phoneme/midp/midp_linux_fb_gcc -Dcom.sun.midp.mainClass.name=com.sun.midp.main.CdcMIDletSuiteLoader sun.misc.MIDPLauncher -suitepath /home/phoneme/apps/"${FILE%%.*}.${FILE#*.} -1 "" > /home/phoneme/starters/"${FILE%%.*}.sh"
chmod +x /home/phoneme/starters/*.sh
#mv $FILE ${FILE%%.*}.zip
#cp /home/phoneme/apps/waiting/$FILEZIP /home/phoneme/apps/waiting/tmp
#unzip /home/phoneme/apps/waiting/tmp/$FILEZIP


Joseph9560 2012-02-12 02:00

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
It would be great if something like webos games manager is developed for phone me as well.

Associate .jar and .jad with this app.
Install shortcuts menu by clicking in the jar file
Launch the file directly from hildon-menu just like any other app.

So that noobs don't have to play with scripts and command line to run apps.

thanks!

DavyP 2012-02-12 10:21

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
Quote:

Originally Posted by Joseph9560 (Post 1163732)
It would be great if something like webos games manager is developed for phone me as well.

Associate .jar and .jad with this app.
Install shortcuts menu by clicking in the jar file
Launch the file directly from hildon-menu just like any other app.

So that noobs don't have to play with scripts and command line to run apps.

thanks!

Actually, I have done something similar for my Android port. I
wrote a simple midlet manager:

http://davy.preuveneers.be/phoneme/p...droid_midp.png

If you click on a jad file in a file manager or on a jad link in a
browser, it will download and cache the corresponding jar file, add
a short cut in the midlet manager, and you would be able to run it
from there, or delete it, or ... without having to rely on shell scripts.

It doesn't create separate icons for each midlet in the main menu,
because in theory you can have multiple midlet applications in the
same midlet jad/jar file. I did this because I got these reports that
some people tried to delete one app, but noticed that a few others
stopped working as well. That is why everything goes through the
midlet manager, for which on Android there is an icon in the main
menu.

Another nice thing with the midlet manager is you can add a list of
urls to working midlets (like a midlet store), and leave it up to the
users whether they want to download and run it or not.

Unfortunately, this app is written in Java running on the Android
dalvik VM. For N900, this would have to rewritten completely from
scratch, for example in Qt4, but it would not be impossible.

There are two aspects you have to keep in mind though:
1) not all jar files are midlets, so I would argue to only associate
jad files to this app
2) error handling and reporting is a little bit less straightforward.
You have to make sure you can collect all the information you
need so that noobs can do bug reporting too. Otherwise, you get
eports like "my app does not work, can you fix it?". And this is not
really helpful.

Davy

santiago 2012-02-12 10:31

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
to associate jar/jad file is last step i think, it's easy with dbus, can be created a bash executable file that find the midlet class automatically and creates a .desktop file.. i'lll try this week maybe if i've time, but Davy is doing a good work, let's him free to include basically features like jsr and his todo/hopefully features, isn't hard for the moment to create a sh script witch runs the applet u want


All times are GMT. The time now is 23:05.

vBulletin® Version 3.8.8