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)

Vromoth 2012-07-23 18:45

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
How do you install a java app? i Tried to install the latest opera but it did not work.

wook_sf 2012-07-23 19:57

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
DavyP, i believe that you should consider writing something that will "install" midlets.

guilledoc 2012-07-24 01:45

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by wook_sf (Post 1241839)
DavyP, i believe that you should consider writing something that will "install" midlets.

You mean an easy way to have the middlet in the desktop with an icon?
There was excalibur but never realy worked for me don't know way
It would be great!!!

wook_sf 2012-07-24 03:45

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
i can write console script for this, basicly it would do:
read manifest.mf and locate name and icon, then blit icon on nokia's background and write files.
i am unsure how to install .desktop files and icon files without making deb, but i think that making .deb on device should be possible too...idk :D

DavyP 2012-07-24 09:04

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by wook_sf (Post 1241984)
i can write console script for this, basicly it would do:
read manifest.mf and locate name and icon, then blit icon on nokia's background and write files.
i am unsure how to install .desktop files and icon files without making deb, but i think that making .deb on device should be possible too...idk :D

Actually, writing a proper installer requires a bit more work. Basically if you tap on a link referring to a jad file in a browser, the installer should download this file to a certain location, parse it to figure out the location of the corresponding jar file and download that as well.

Then you can figure out how to start the midlet, either by parsing the jad or the manifest file in the jar, but that part is already implemented. You can then do all the nice things to get proper icons, application names, etc. but you need to make sure you have to proper privileges to do that. Also, the installer needs to be smart enough where to store the icons, because the default paths for Maemo and Meego are different.

At least, this is what I did for the Android port. I don't create separate short cuts for each midlet, but implemented a simple midlet manager that keeps track of which midlets have been downloaded, etc. This feature request has been listed on my TODO list so I am quite aware this functionality would be nice to have:

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

The excalibur script was indeed a first shot at this, but I personnaly think it was still to complicated to use, and I have also had cases where the script did not work reliably.

Cheers,
Davy

HtheB 2012-07-25 19:12

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Do you have any progress with the sound support? :)

wook_sf 2012-07-25 19:27

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by DavyP (Post 1242093)
Actually, writing a proper installer requires a bit more work. Basically if you tap on a link referring to a jad file in a browser, the installer should download this file to a certain location, parse it to figure out the location of the corresponding jar file and download that as well.

Then you can figure out how to start the midlet, either by parsing the jad or the manifest file in the jar, but that part is already implemented. You can then do all the nice things to get proper icons, application names, etc. but you need to make sure you have to proper privileges to do that. Also, the installer needs to be smart enough where to store the icons, because the default paths for Maemo and Meego are different.

At least, this is what I did for the Android port. I don't create separate short cuts for each midlet, but implemented a simple midlet manager that keeps track of which midlets have been downloaded, etc. This feature request has been listed on my TODO list so I am quite aware this functionality would be nice to have:

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

The excalibur script was indeed a first shot at this, but I personnaly think it was still to complicated to use, and I have also had cases where the script did not work reliably.

Cheers,
Davy

i am not sure about maemo, but MeeGo can store .desktop files into home/user/local/share/applications/
icon can be saved anywhere.
as for jar part:
we can store midlets in /home/user/MyDocs/.midlets/jars/
we can store icons in /home/user/MyDocs/.midlets/icons/
so, permission problem is solved (afaik)
there's also a way to write into /usr/share/applications/ but we can avoid that if midlets will actually be on mass memory so if some memory is erased other one will remain and all files will be on same.
about jad files, as far as i am aware jad contains url to jar so, we can implement this too.

what do you think? :)

DavyP 2012-08-04 09:53

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by wook_sf (Post 1242919)
i am not sure about maemo, but MeeGo can store .desktop files into home/user/local/share/applications/
icon can be saved anywhere.
as for jar part:
we can store midlets in /home/user/MyDocs/.midlets/jars/
we can store icons in /home/user/MyDocs/.midlets/icons/
so, permission problem is solved (afaik)
there's also a way to write into /usr/share/applications/ but we can avoid that if midlets will actually be on mass memory so if some memory is erased other one will remain and all files will be on same.
about jad files, as far as i am aware jad contains url to jar so, we can implement this too.

what do you think? :)

I tried storing the midlets in the /home/user/MyDocs/.midlets and
the desktop file in /home/user/local/share/applications/, but I
cannot get the entry to appear in the overview.

However, if I manually copy (as root) the desktop file to
/usr/share/applications/ it automatically gets picked up.

What am doing wrong?

Davy

wook_sf 2012-08-04 09:58

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by DavyP (Post 1247257)
I tried storing the midlets in the /home/user/MyDocs/.midlets and
the desktop file in /home/user/local/share/applications/, but I
cannot get the entry to appear in the overview.

However, if I manually copy (as root) the desktop file to
/usr/share/applications/ it automatically gets picked up.

What am doing wrong?

Davy

i am sorry, i've made mistake, it's not /home/user/local/share/applications/ but /home/user/.local/share/applications/

DavyP 2012-08-04 10:00

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Hi,

I have had people report that the latest Opera Mini 7 did not work,
whereas the older version 6.5 worked just fine.

I got this report for both Maemo/MeeGo as for Android, and I spent
some time trying to figure out what was wrong. I was able to
reproduce this problem (the midlet freezes after visiting one or two
pages).

Turns out, if I disable Just-In-Time for this midlet, it seems to work
for me (tested on my N9). The speed is slower, but still reasonable.

If you install the latest cvm-midlets 6.0 package from:
http://davy.preuveneers.be/phoneme/public/maemo/deb/

you will have both versions 6.5 and 7.0. The first runs with JIT
enabled, the second has JIT disabled.

You disable JIT by passing the option "-Xjit:compile=none" to the
/opt/phoneme/bin/cvm command line.

I have not (yet) been able to figure out what is wrong with the JIT,
but if some people want to test, go ahead.

Davy

wook_sf 2012-08-04 10:15

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by DavyP (Post 1247260)
Hi,

I have had people report that the latest Opera Mini 7 did not work,
whereas the older version 6.5 worked just fine.

I got this report for both Maemo/MeeGo as for Android, and I spent
some time trying to figure out what was wrong. I was able to
reproduce this problem (the midlet freezes after visiting one or two
pages).

Turns out, if I disable Just-In-Time for this midlet, it seems to work
for me (tested on my N9). The speed is slower, but still reasonable.

If you install the latest cvm-midlets 6.0 package from:
http://davy.preuveneers.be/phoneme/public/maemo/deb/

you will have both versions 6.5 and 7.0. The first runs with JIT
enabled, the second has JIT disabled.

You disable JIT by passing the option "-Xjit:compile=none" to the
/opt/phoneme/bin/cvm command line.

I have not (yet) been able to figure out what is wrong with the JIT,
but if some people want to test, go ahead.

Davy

so far both running on my phone fine

yonatutorials 2012-08-05 05:57

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
hello
I used this application before without problems, but after flashing this application does not work well
If I install the package "midlets" with opera mini etc ... all work, but other downloaded applications ".jar" now do not work

A message saying it is loading the application, and then closes

Any solution?

Thanks

wook_sf 2012-08-05 11:12

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by yonatutorials (Post 1247635)
hello
I used this application before without problems, but after flashing this application does not work well
If I install the package "midlets" with opera mini etc ... all work, but other downloaded applications ".jar" now do not work

A message saying it is loading the application, and then closes

Any solution?

Thanks

i think you need to install unzip too

yonatutorials 2012-08-05 13:57

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by wook_sf (Post 1247713)
i think you need to install unzip too

Yes, is installed, but happens the same problem
I install this unzip "http://repository.maemo.org/extras-devel/dists/fremantle/install/unzip-fm.install" and the apps ".jar" not is opened
is possible to use another "unzip"?

Thanks

wook_sf 2012-08-05 14:14

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by yonatutorials (Post 1247766)
Yes, is installed, but happens the same problem
I install this unzip "http://repository.maemo.org/extras-devel/dists/fremantle/install/unzip-fm.install" and the apps ".jar" not is opened
is possible to use another "unzip"?

Thanks

i use this: http://my-meego.com/software/applica...dAuto=17&faq=8 not quite sure though

yonatutorials 2012-08-05 14:25

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by wook_sf (Post 1247773)

I use Maemo 5, this is my unzip
http://img513.imageshack.us/img513/2...2080516213.pngbefore flashing it all works well
I tried several times to flash but happens the same

wook_sf 2012-08-05 14:29

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by yonatutorials (Post 1247776)
I use Maemo 5, this is my unzip
http://img513.imageshack.us/img513/2...2080516213.pngbefore flashing it all works well
I tried several times to flash but happens the same

ohh, sorry, i thought you're talking about n9 :D
i will test it on my n900 right now

yonatutorials 2012-08-05 18:21

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by wook_sf (Post 1247778)
ohh, sorry, i thought you're talking about n9 :D
i will test it on my n900 right now

hehe, no problem
I resolve this, i tried with other versión of app ".jar" and now yes working

Thanks you =)

DavyP 2012-08-07 10:06

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Dear all,

After having received my N9, I spent quite some time creating a
customized build for this platform as many features were missing.
It took my quite a while to get something working (and had to
learn a bit of QML along the way), but I uploaded a new build for
MeeGo:

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

Build 20120807 is very experimental and has the following main
features:

Auto-rotate and resize of midlet
Make sure in the "MIDlet Settings" application, you disable the
"Rotate midlet to 90 degrees" option.

No more grey bar at the bottom if you are not running fullscreen.
The orientation of the midlet should be OK by default, and be
redrawn if you rotate from portrait to landscape (or vice versa).

Native virtual keyboard support
To trigger the virtual keyboard, just press and hold somewhere on
the display and the virtual keyboard should pop up. Do it again and
it will disappear.

I noticed that the rendering is a bit slower now (you sometimes
can see some flickering) in Opera. I think that this is due to the
QDeclarativeItem to wrap the framebuffer in a QML widget (to
support autorate, etc.)

Also, the current build has dirty hacks to filter for valid geometry
changes for portrait and landscape mode (with and without vkb).
I did this because during a rotate I get many geometryChanged()
signals and processing them all crashes the underlying phoneME
vm. Also, some of the new geometries are invalid (e.g. a width
or height equal to 0, or with both values > 800). So I try to filter for
proper geometry changes and it seems to work for the default
virtual keyboard, not sure what would happen for other ones.

I have mainly tested with the microemu-demo and the opera
midlets, which are in the cvm-midlets package (available at the
same url).

Your feedback is much appreciated. I will leave the older builds
online as well if you find the latest one a bit too unstable.

Cheers,
Davy

PIDk 2012-08-07 11:58

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by DavyP (Post 1248611)
Auto-rotate and resize of midlet

Thnx for the great update! Haven't downloaded it yet, but can i somehow lock display orientation now?

wook_sf 2012-08-07 12:14

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
will test it tonight :)

DavyP 2012-08-07 12:20

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by PIDk (Post 1248654)
Thnx for the great update! Haven't downloaded it yet, but can i somehow lock display orientation now?

There is no feature like that currently available. So unless
MeeGo offers a standard way to do so per application, I am afraid
not.

Davy

DavyP 2012-08-07 15:59

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Note: I just uploaded a slightly revised version to my website
(same filename).

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

I removed the "MIDlet Service" application and modified the
"Run MIDlet" application to a QML one based on this code:

http://doc.qt.nokia.com/qtmobility/v...owser-qml.html

It is basically a file explorer. I think on the N9, it gives much better
usability compared to the old QT FileDialog with its small icons etc.
However, any other file explorer (like http://n9-apps.com/file-manager)
is supposed to work (click on the jar or jad file to start the midlet).

I still have to redo the "MIDlet Settings" application, though several
of the preferences are now deprecated.

Cheers,
Davy

wook_sf 2012-08-07 19:41

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by DavyP (Post 1248743)
Note: I just uploaded a slightly revised version to my website
(same filename).

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

I removed the "MIDlet Service" application and modified the
"Run MIDlet" application to a QML one based on this code:

http://doc.qt.nokia.com/qtmobility/v...owser-qml.html

It is basically a file explorer. I think on the N9, it gives much better
usability compared to the old QT FileDialog with its small icons etc.
However, any other file explorer (like http://n9-apps.com/file-manager)
is supposed to work (click on the jar or jad file to start the midlet).

I still have to redo the "MIDlet Settings" application, though several
of the preferences are now deprecated.

Cheers,
Davy

you could increase height of toolbar so that "Up" button can be more finger friendly (it's not easy to touch it)
but virtual qwerty (native one) seems like is not making actual input in textbox (tried with mozat) will try more apps
btw, there's some flicker when app is updating screen (not sure what's exact function name, but all screen gets cleared before redraw)
also, if could be made, textbox covers all screen while text field covers just part, so, if textbox could be rescallable (to get increased in height when new line occurs) it would be very user friendly (not like textbox)

unexpected 2012-08-07 20:30

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
thanx for the update :)
waited so long for update.
have you added something form "Todo list" ?
is it possible to change the writng area (blue area when clicked on text field) in the midlet,as it hides everything in the backside(advice :) )
Thanx again,

good luck.

DavyP 2012-08-07 21:06

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by wook_sf (Post 1248827)
you could increase height of toolbar so that "Up" button can be more finger friendly (it's not easy to touch it)
but virtual qwerty (native one) seems like is not making actual input in textbox (tried with mozat) will try more apps
btw, there's some flicker when app is updating screen (not sure what's exact function name, but all screen gets cleared before redraw)
also, if could be made, textbox covers all screen while text field covers just part, so, if textbox could be rescallable (to get increased in height when new line occurs) it would be very user friendly (not like textbox)

I am not quite sure I completely understand what you are referring
to. Could you perhaps test the following demo application for me:

http://www.microemu.org/microemu-exa...roemu-demo.jad
http://www.microemu.org/microemu-exa...roemu-demo.jar

Run it, select "TextBox" and then "Any character". Then touch and
hold for a second, and the native virtual keyboard should appear.
While you enter characters, you should see them appear in the
TextBox. Can you confirm this is working for you?

I noticed the flickering too in Opera Mini :-(

Davy

DavyP 2012-08-07 21:13

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by unexpected (Post 1248849)
thanx for the update :)
waited so long for update.
have you added something form "Todo list" ?
is it possible to change the writng area (blue area when clicked on text field) in the midlet,as it hides everything in the backside(advice :) )
Thanx again,

good luck.

Like I said, I added support for the native virtual keyboard.

I don't quite understand what you would like to achieve with the
text field. I am aware that these widgets are not as flexible as
other widget toolkits, but that is how they were originally defined
and implemented by Sun.

Davy

DavyP 2012-08-07 21:15

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by wook_sf (Post 1248827)
also, if could be made, textbox covers all screen while text field covers just part, so, if textbox could be rescallable (to get increased in height when new line occurs) it would be very user friendly (not like textbox)

No, that is the fundamental difference between a TextField and a
TextBox. If you need a more flexible widget toolkit, you could have
a look at J2ME Polish or LWUIT.

Davy

wook_sf 2012-08-07 21:40

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by DavyP (Post 1248861)
I am not quite sure I completely understand what you are referring
to. Could you perhaps test the following demo application for me:

http://www.microemu.org/microemu-exa...roemu-demo.jad
http://www.microemu.org/microemu-exa...roemu-demo.jar

Run it, select "TextBox" and then "Any character". Then touch and
hold for a second, and the native virtual keyboard should appear.
While you enter characters, you should see them appear in the
TextBox. Can you confirm this is working for you?

I noticed the flickering too in Opera Mini :-(

Davy

aaaah, works like that :)
thanks a lot :)

unexpected 2012-08-08 03:05

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by DavyP (Post 1248863)
Like I said, I added support for the native virtual keyboard.

I don't quite understand what you would like to achieve with the
text field. I am aware that these widgets are not as flexible as
other widget toolkits, but that is how they were originally defined
and implemented by Sun.

Davy

let me explain me what i m saying about text field/box. :)

while chatting with someone in Nimbuzz etc,if i click on the text field/box to write something,it displays whole blue window/screen which hides the Nimbuzz.I cant see the IMs now as soon as i cancel this blue text screen.

2nd example,
in UCbrowser,when we click on the search or address box to write something,it also displays the blue screen in which we write.That blue screen hides the UCbowser window.thats very irritating
can you understand now?

DavyP 2012-08-08 07:06

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by unexpected (Post 1248942)
let me explain me what i m saying about text field/box. :)

while chatting with someone in Nimbuzz etc,if i click on the text field/box to write something,it displays whole blue window/screen which hides the Nimbuzz.I cant see the IMs now as soon as i cancel this blue text screen.

2nd example,
in UCbrowser,when we click on the search or address box to write something,it also displays the blue screen in which we write.That blue screen hides the UCbowser window.thats very irritating
can you understand now?

I understand much better now :-) I agree this is annoying.
However, there is nothing I can do about that. If the application
relies on the standard input method widgets from J2ME, that is
what you get.

I think both applications rely on a different widget toolkit to render
their interface on a standard J2ME GameCanvas. Nothing would
step them to also make up their own widgets for text input. Opera
Mini does something similar.

Davy

jimthefly 2012-08-08 08:08

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
How high should bee the resolution of the java program. I try java program its called easy.go for the Nokia N8 at my N9, but the program dosent start.

Jim

DavyP 2012-08-08 12:13

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by jimthefly (Post 1249014)
How high should bee the resolution of the java program. I try java program its called easy.go for the Nokia N8 at my N9, but the program dosent start.

Jim

I don't know this easy.go application, but the resolution should not
matter. Maybe it requires support for certain JSRs which my port of
the phoneME JavaME virtual machine does not provide.

Davy

PIDk 2012-08-08 21:03

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
DavyP, there is a bug with a virtual keyboard - only english layout works, you can't input any non-english characters.

DavyP 2012-08-10 14:00

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by PIDk (Post 1249269)
DavyP, there is a bug with a virtual keyboard - only english layout works, you can't input any non-english characters.

Which keyboard layout have you tried?
Did you install some additional software/configuration files in
/home/user/.config/meego-keyboard/layouts/?

I found at least one character on the Qwerty layout that did not
seem to work. And I am also aware that Swype is not working yet.

Davy

PIDk 2012-08-11 11:41

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by DavyP (Post 1250112)
Which keyboard layout have you tried?
Did you install some additional software/configuration files in
/home/user/.config/meego-keyboard/layouts/?

I found at least one character on the Qwerty layout that did not
seem to work. And I am also aware that Swype is not working yet.

Davy

Nothing special or extra - russian layout :)

DavyP 2012-08-17 11:10

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Quote:

Originally Posted by PIDk (Post 1250427)
Nothing special or extra - russian layout :)

I can confirm various characters indeed do not work. I will have a look. The problem is I have to map the N9 keyboard onto the keyboard interfaces of the phoneME virtual machine, and perhaps that is where things go wrong.

Davy

DavyP 2012-08-18 21:46

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
Hi all,

There is a new build revision 20120818 available at
http://davy.preuveneers.be/phoneme/public/maemo/deb/

The latest build should better support swype input and input of
foreign characters. Let me know if it works for you.

Cheers,
Davy

HoMeP 2012-08-19 11:11

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
3 Attachment(s)
Good day! And thanks for the Russian language! After the release of two new versions of some applications are blinking and missing part of the menu . How to fix it?

Arthuro_Adam 2012-08-20 21:16

Re: [BETA RELEASE] PhoneME Advanced (Java Mobile)
 
I update the app, and everything work is fine.

It's possible to turn off the native keyboard, because in the Opera Mini the feature is very annying.

Thanks for your work.


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

vBulletin® Version 3.8.8