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)

lonk 2012-02-17 14:09

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
Has anyone tried UC Browser? http://www.ucweb.com/English/UCbrowser/download.html
It does the same as opera mini, is just as fast and in addition supports animated gifs
it didn't work when I tried

[DarkGUNMAN] 2012-02-17 16:20

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
No problems with installation of new deb file - working fine :)

santiago 2012-02-17 21:50

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

Originally Posted by DavyP (Post 1166054)
I uploaded another deb with a new minor feature. It detects whether
the app is running on Maemo or on MeeGo by looking at the contents
of /etc/issue. On the latter it will run the midlet in full screen to avoid the
grey bar. If this works reliably on the N900 and the N9/N950, I no
longer need to produce 2 different builds.

Davy

Hey DavyP, on my n900 the comments

# Version of this .desktop file. For software package version see
# debian/changelog and/or rpm .spec files for version information.
in the desktop file, dont make it to execute the launcher.. Deleting them the Qt UI you made, will start..

By the way, fullscreen doesnt work.. the darkgreybar appears

Quote:

Has anyone tried UC Browser? http://www.ucweb.com/English/UCbrowser/download.html
It does the same as opera mini, is just as fast and in addition supports animated gifs
it didn't work when I tried
It doesnt i tryed it now..
Not all the midlet are supported for the moment

guilledoc 2012-02-17 22:08

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
Thanks for your hardwork this is great progress to port javame to n900
some of the jar files I have oppened after a short period of time they shut down. Any clue?

Brian_7 2012-02-18 00:00

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

Originally Posted by guilledoc (Post 1166390)
Thanks for your hardwork this is great progress to port javame to n900
some of the jar files I have oppened after a short period of time they shut down. Any clue?

That happened to me too

geneven 2012-02-18 03:21

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

Originally Posted by guilledoc (Post 1166390)
Thanks for your hardwork this is great progress to port javame to n900
some of the jar files I have oppened after a short period of time they shut down. Any clue?

This happened to me with Opera. I had a feeling it used up a resource such as memory.

DavyP 2012-02-18 12:21

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

Originally Posted by santiago (Post 1166382)
Hey DavyP, on my n900 the comments

# Version of this .desktop file. For software package version see
# debian/changelog and/or rpm .spec files for version information.
in the desktop file, dont make it to execute the launcher.. Deleting them the Qt UI you made, will start..

By the way, fullscreen doesnt work.. the darkgreybar appears

Thanks for testing. I did not experience these problems on the
emulator.

I uploaded a new build to my website with those lines removed. It
also includes the excalibur.sh script for those wishing to use it.

Davy

DavyP 2012-02-18 12:26

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

Originally Posted by lonk (Post 1166230)
Has anyone tried UC Browser? http://www.ucweb.com/English/UCbrowser/download.html
It does the same as opera mini, is just as fast and in addition supports animated gifs
it didn't work when I tried

The reason why this midlet does not work, is because it requires
support for the javax.wireless.messaging.* wireless messaging APIs.
These classes are provided by JSR 120 or JSR 205 and they
require a tight integration with the underlying platform. There is
currently no support for that.

Davy

DavyP 2012-02-18 12:32

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

Originally Posted by santiago (Post 1166382)
By the way, fullscreen doesnt work.. the darkgreybar appears

Could you check again with the latest build? Maybe my runtime
detection of Maemo and MeeGo is not accurate enough.

I check the file /etc/issue, and if it begins with "Maemo 5", I run the
midlet in normal window mode, otherwise in fullscreen.

On the N900 emulator, this file contains: 'Maemo 5 \n \l'
On the N9 emulator, this file contains: 'MeeGo 1.2 Harmattan \n \l'

Maybe your platform has a /etc/issue file with a different contents.
If so, I would like to know the other possibilities.

Davy

DavyP 2012-02-18 12:36

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

Originally Posted by guilledoc (Post 1166390)
Thanks for your hardwork this is great progress to port javame to n900
some of the jar files I have oppened after a short period of time they shut down. Any clue?

Are they actually running for a while and then suddenly crash, or
do they not start at all due to no support for certain APIs and JSRs?

If you start a terminal, do the following:

/opt/phoneme/bin/runmidlet /path/to/midlet.jar

If the application crashes or whatever, have a look at the error on
the terminal and post it here. If you see something like,

java.lang.NoClassDefFoundError: xxx

It means the midlet requires support for certain features that the
phoneME build does not have.

Davy

DavyP 2012-02-18 12:49

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
Another question for N9 owners:

If you install the deb file on my website, do you see icons in the menu
for "Opera Mini", "microemu-demo" and "Run MIDlet"?

I think there is a slight difference between N900 and N9 with the former
putting the x.desktop shortcuts in /usr/share/applications/hildon and the
latter putting them in /usr/share/applications. A similar issue appears
with the location of the icons.

If my suspicion is right, it means the deb file will not work that well on
the N9 (due to missing short cuts and icons).

Davy

myname24 2012-02-18 14:27

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

Originally Posted by DavyP (Post 1166547)
Another question for N9 owners:

If you install the deb file on my website, do you see icons in the menu
for "Opera Mini", "microemu-demo" and "Run MIDlet"?

I think there is a slight difference between N900 and N9 with the former
putting the x.desktop shortcuts in /usr/share/applications/hildon and the
latter putting them in /usr/share/applications. A similar issue appears
with the location of the icons.

If my suspicion is right, it means the deb file will not work that well on
the N9 (due to missing short cuts and icons).

Davy

my solution on the N9
just copy the .desktop files from /usr/share/applications/hildon to /home/user/.local/share/application using any file manager or the terminal

Brian_7 2012-02-18 14:38

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

Originally Posted by DavyP (Post 1166536)
Are they actually running for a while and then suddenly crash, or
do they not start at all due to no support for certain APIs and JSRs?

If you start a terminal, do the following:

/opt/phoneme/bin/runmidlet /path/to/midlet.jar

If the application crashes or whatever, have a look at the error on
the terminal and post it here. If you see something like,

java.lang.NoClassDefFoundError: xxx

It means the midlet requires support for certain features that the
phoneME build does not have.

Davy

It is weird. It just tried the new version and it crashed too 2 minutes later.

Now i just ran it from the x-terminal and played it for 10 minutes and it didn't crash

santiago 2012-02-18 23:16

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

Originally Posted by DavyP (Post 1166533)
Could you check again with the latest build? Maybe my runtime
detection of Maemo and MeeGo is not accurate enough.

I check the file /etc/issue, and if it begins with "Maemo 5", I run the
midlet in normal window mode, otherwise in fullscreen.

On the N900 emulator, this file contains: 'Maemo 5 \n \l'
On the N9 emulator, this file contains: 'MeeGo 1.2 Harmattan \n \l'

Maybe your platform has a /etc/issue file with a different contents.
If so, I would like to know the other possibilities.

Davy

Nope, Davy.. No full screen, this is a screenshot about it in Maemo 5 (N900)

DavyP 2012-02-18 23:26

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

Originally Posted by santiago (Post 1166739)
Nope, Davy.. No full screen, this is a screenshot about it in Maemo 5 (N900)

Ah, but this is normal. It is not the grey bar that people with an N9
have been complaining about. See the grey bars at the bottom on
the screenshots over here:

http://beford.org/ole/

On the N9, I start a midlet in full screen to hide both the top bar
and the bottom bar. On the N900, I don't (because there is no
grey bar). However, if there is a general interest to always start a
midlet in full screen to hide the top bar as well, I can do that.

Actually, you can enable full screen with the Ctrl+Arrow Up key combination.

Davy

santiago 2012-02-19 00:39

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

Originally Posted by DavyP (Post 1166741)
Ah, but this is normal. It is not the grey bar that people with an N9
have been complaining about. See the grey bars at the bottom on
the screenshots over here:

http://beford.org/ole/

On the N9, I start a midlet in full screen to hide both the top bar
and the bottom bar. On the N900, I don't (because there is no
grey bar). However, if there is a general interest to always start a
midlet in full screen to hide the top bar as well, I can do that.

Actually, you can enable full screen with the Ctrl+Arrow Up key combination.

Davy

:D my god.. :D sorry ahahahah
ctrl + up it's amazing!
u have a trick for everything on phoneme?!
:D

guilledoc 2012-02-19 02:49

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

Originally Posted by DavyP (Post 1166536)
Are they actually running for a while and then suddenly crash, or
do they not start at all due to no support for certain APIs and JSRs?

If you start a terminal, do the following:

/opt/phoneme/bin/runmidlet /path/to/midlet.jar

If the application crashes or whatever, have a look at the error on
the terminal and post it here. If you see something like,

java.lang.NoClassDefFoundError: xxx

It means the midlet requires support for certain features that the
phoneME build does not have.

Davy

No problem with the command on xterm so I'll try not to be so lasy :D

Off topic wich kind of java game anyone suggest to try?
thanks

DavyP 2012-02-19 09:33

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

Originally Posted by santiago (Post 1166759)
:D my god.. :D sorry ahahahah
ctrl + up it's amazing!
u have a trick for everything on phoneme?!
:D

FYI,

Ctrl+Left is mapped onto the left soft button and Ctrl+Right is
mapped onto the right (the soft buttons don't exist on the N900).

Since I have to intercept key strokes in Qt4 and map them onto
events that phoneME understands, I can trigger whatever I want
on special key combinations (like I did with Ctrl+Up and the others).

Davy

DavyP 2012-02-19 09:37

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

Originally Posted by guilledoc (Post 1166776)
No problem with the command on xterm so I'll try not to be so lasy :D

If this is about the crash when starting a midlet from the N900 menu,
and the no crash when starting from a terminal, then I am quite
surprised as the code is being executed.

I will see if I can dump the logging information to a file, so that we
can also figure out what happens in the first case.

Davy

Brian_7 2012-02-19 15:03

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
Hello Davy, can you please tell me how to create a desktop icon like you did with opera-mini?

DavyP 2012-02-19 21:56

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

Originally Posted by Brian_7 (Post 1166946)
Hello Davy, can you please tell me how to create a desktop icon like you did with opera-mini?

You need to create file.desktop textfile and have an appropriate
png icon. This is an example of the operamini.desktop file:

[Desktop Entry]
Encoding=UTF-8
Version=6.5
Type=Application
Name=Opera Mini
Exec=/opt/phoneme/bin/runmidlet /opt/phoneme/opera-mini-6.5.26955-advanced-en-us.jad
Icon=operamini
X-HildonDesk-ShowInToolbar=true
X-Window-Icon=operamini
X-Window-Icon-Dimmed=operamini
X-Osso-Type=application/x-executable

On a N900, this operamini.desktop file should be put in
/usr/share/applications/hildon

On a N9, you put the operamini.desktop file in
/usr/share/applications

The above file also requires a png icon file. I create a 64x64 icon called
operamini.png and on the N900, I put it in
/usr/share/icons/hicolor/64x64/apps

On the N9, I put it in
/usr/share/themes/blanco/meegotouch/icons

I slight updated my last deb build
http://davy.preuveneers.be/phoneme/public/n900/deb/

It now puts the icons and desktop shortcuts on both locations, so
hopefully you get to see the shortcuts on both the N900 and the N9.

Davy

Arthuro_Adam 2012-02-19 23:31

Quote:

Originally Posted by DavyP (Post 1167081)
Quote:

Originally Posted by Brian_7
Hello Davy, can you please tell me how to create a desktop icon like you did with opera-mini?

You need to create file.desktop textfile and have an appropriate
png icon. This is an example of the operamini.desktop file:

[Desktop Entry]
Encoding=UTF-8
Version=6.5
Type=Application
Name=Opera Mini
Exec=/opt/phoneme/bin/runmidlet /opt/phoneme/opera-mini-6.5.26955-advanced-en-us.jad
Icon=operamini
X-HildonDesk-ShowInToolbar=true
X-Window-Icon=operamini
X-Window-Icon-Dimmed=operamini
X-Osso-Type=application/x-executable

On a N900, this operamini.desktop file should be put in
/usr/share/applications/hildon

On a N9, you put the operamini.desktop file in
/usr/share/applications

The above file also requires a png icon file. I create a 64x64 icon called
operamini.png and on the N900, I put it in
/usr/share/icons/hicolor/64x64/apps

On the N9, I put it in
/usr/share/themes/blanco/meegotouch/icons

I slight updated my last deb build
http://davy.preuveneers.be/phoneme/public/n900/deb/

It now puts the icons and desktop shortcuts on both locations, so
hopefully you get to see the shortcuts on both the N900 and the N9.

Davy

Works great on N9, all 3 icons on the desktop, Opera Mini works.

Thanks for your great work.

Brian_7 2012-02-19 23:53

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
Thanks Davy. It worked and it didn't crash after a while neither. But i am too lazy to look for an icon, so i used the opera mini icon :p

Btw how can i run it in fullscreen by default on my n900 ?

and is there any way to have a savegame in the java games?

DavyP 2012-02-20 08:39

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

Originally Posted by Brian_7 (Post 1167118)
Thanks Davy. It worked and it didn't crash after a while neither. But i am too lazy to look for an icon, so i used the opera mini icon :p

Btw how can i run it in fullscreen by default on my n900 ?

and is there any way to have a savegame in the java games?

Look at one of my posts above. Use the Ctrl+Up to go full screen
on the N900 (type Ctrl+Up again to go normal screen mode).

Savegames in Java games is something that the games should
implement themselves.

Davy

DavyP 2012-02-20 13:00

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

Originally Posted by vi_ (Post 1164417)
Just got it, geeze what a beater. Filled with photos of the previous owners kids (I hope) and porn. Digitiser is totally scratched to F. It is like looking through a frosted glass toilet window, however it is still useable.

Full re-flash, CSSU stable, KP49, SSH, rootsh. I am soldering down the USB port now, also it is a HW. Rev 2101.


Dear all,

The N900 arrived this morning. I hooked up a USB cable to charge the battery and had a first shot at installing my port on a real device:


Like vi_ said, the screen has indeed suffered from a lot of scratches (making small text a bit hard to read and I am struggling a bit with scrolling), but the device is more than good enough to test my ports and do some development of new features.

I would like to thank vi_, Darkgunman, Nicolai, MaddogG, Jaylist, munozferna, and Mrsellout for their contributions, and once more vi for putting in the extra effort of getting me the device!

Much appreciated.
Davy

vi_ 2012-02-20 13:05

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

Originally Posted by DavyP (Post 1167333)
Dear all,

The N900 arrived this morning. I hooked up a USB cable to charge the battery and had a first shot at installing my port on a real device:


Like vi_ said, the screen has indeed suffered from a lot of scratches (making small text a bit hard to read and I am struggling a bit with scrolling), but the device is more than good enough to test my ports and do some development of new features.

I would like to thank vi_, Darkgunman, Nicolai, MaddogG, Jaylist, munozferna, and Mrsellout for their contributions, and once more vi for putting in the extra effort of getting me the device!

Much appreciated.
Davy

Happy to help bro.

[DarkGUNMAN] 2012-02-20 13:28

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

Brian_7 2012-02-20 14:07

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

Originally Posted by DavyP (Post 1167230)
Look at one of my posts above. Use the Ctrl+Up to go full screen
on the N900 (type Ctrl+Up again to go normal screen mode).

Savegames in Java games is something that the games should
implement themselves.

Davy

That's what i do. But i wanted to know if i can set up it by default like you did on the N9.

freemangordon 2012-02-20 14:09

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
@vi_ - I hope you put the goodies on the device before sending it to DavyP (CSSU-T, KP, etc...) :)

vi_ 2012-02-20 14:32

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

Originally Posted by freemangordon (Post 1167356)
@vi_ - I hope you put the goodies on the device before sending it to DavyP (CSSU-T, KP, etc...) :)

I went with kp+rootsh+CSSU-stable.

DavyP 2012-02-20 15:26

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

Originally Posted by Brian_7 (Post 1167352)
That's what i do. But i wanted to know if i can set up it by default like you did on the N9.

Aha, got it. ATM, phoneME does not allow you to set any configuration options etc. The quickest fix could be to add an additional command line parameter with which you start the app in full screen. I added it to my todo list

http://davy.preuveneers.be/phoneme/?q=node/34#todo

Cheers,
Davy

Brian_7 2012-02-21 02:17

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
Please, can you add gps support to the todo list?

santiago 2012-02-21 05:40

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

Originally Posted by Brian_7 (Post 1167609)
Please, can you add gps support to the todo list?

Location Api is it..

santiago 2012-02-21 06:05

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

Why dont'u use excalibur jarfile to create the shortcut? ? It will'ask u at the end if you want to keep or not the installation.. I was intentioned to add jad gestures to this script too becouse for now we have just

ui to open file jar
script to install it... (as i know)



By the way, if i see more interest in this script, just for the people like me that doesnt love the UI'S, i can add

paste url to download java
select path for the installation
coloured xterm outputs
install/remove options
test option
full screen shortcut

One more thing..
In your italian's blogpage, smartab or something like that, one of your users wrote that i'm the builder of phoneme too..

WRONG, DavyP is the builder, i just made a simple script to install jar files. Correct the thing becouse DavyP is the developer, and the builder too ;)

thx

Cristian

HolgerN 2012-02-21 09:21

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
PhomeME is realy great! I can run a lot of my old java games from my old S60V5, which is realy great!

It is save to delete the content in phoneme-cache and what is the path in which the java application saves its settings?

How can i force portrait mode? I tried "ctrl+shift+bluearrow+L" but the java application switches back to landscape and there is an error message "Please restart the application in portrait mode".

Brian_7 2012-02-21 12:29

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
Well, inside of the jar file i found an icon, but i didn't like it, so i will look for another one.

Btw i don't know if there is a problem with the UI because when i try it, the game crash after a while and when i run it from the x-terminal, everything is perfect.

I made a simple script that shows me all the jar files that i have and i can enter which one i want to run. The game don't crash like it does with the UI. At least it saves me a little of time.

If i find another game that worths making an icon, i will try excalibur :)

Btw is excalibur with the cvm deb file?

DavyP 2012-02-21 13:24

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

Originally Posted by Brian_7 (Post 1167752)
Well, inside of the jar file i found an icon, but i didn't like it, so i will look for another one.

Btw i don't know if there is a problem with the UI because when i try it, the game crash after a while and when i run it from the x-terminal, everything is perfect.

I made a simple script that shows me all the jar files that i have and i can enter which one i want to run. The game don't crash like it does with the UI. At least it saves me a little of time.

If i find another game that worths making an icon, i will try excalibur :)

Btw is excalibur with the cvm deb file?

The exalibur.sh script is included in the latest deb on my website.

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

The script is located at /opt/phoneme/excalibur.sh

I have not been able to implement proper logging support, but can
you give more details about this app/game? If it is freely available,
I could have a look at reproducing the crash as I am rather
curious why it is failing.

Davy

Brian_7 2012-02-21 13:48

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
I uploaded the jar file: http://www.mediafire.com/?gvv36bp286l0epw

It is a spanish card game called truco, i don't know if you know it.

Anyway here you have the game rules: http://www.pagat.com/put/truco.html

DavyP 2012-02-23 16:40

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
I uploaded a new build with the following minor changes:

* Disabled anti-aliasing. Text still looks good though I don't see any
faster rendering (Tested with JBenchmark and JBenchmark2).

[DarkGUNMAN]: can you check/confirm?

This setting is now hardcoded. I intend to make this option configurable.

* All output is now logged to two files called err.txt and out.txt. They are
located in /home/user/MyDocs/

Brian_7: Can you post the contents of these two files when your game crashes?

My knowledge of Spanish is limited to ordering a beer, but I think I saw
a similar crash when I ran Opera Mini 4 through the "Run MIDlet ..."
application. Unfortunately, the logs did not provide any useful info :-(.
My gut feeling tells me something goes wrong with the runmidlet
application which spawns the cvm process. If the former goes down, it
takes the latter down with it. This could explain why through the terminal
this problem does not occur.

Davy

DavyP 2012-02-23 17:26

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

The runmidlet application requires 'unzip' to be installed. When you
select a jar file, unzip is used to extract the manifest file to figure out
the name of the main class. I noticed that on my device this utility was
not installed by default.

Davy


All times are GMT. The time now is 16:02.

vBulletin® Version 3.8.8