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-07 01:28

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

Originally Posted by DavyP (Post 1161181)
The text does not seem to be well-aligned in your screenshot. This is what I have:

http://davy.preuveneers.be/phoneme/p...roemu-demo.jpg

http://davy.preuveneers.be/phoneme/p...emo/opera2.jpg

About audio support: I cannot seem to produce any sound with the emulator, not even with the built-in 'play-sound' application or the Qt4 qmusicplayer example application. I am guessing QSound in Qt4 is not properly supported for audio playback :-(

/home/developer $ play-sound testmp3.mp3
socket(): Address family not supported by protocol
ca_context_open: Not available

About GPS: Yes, JSR 179 would provide the unifying API to get location information. Any location provider could be plugged into JSR 179, but GPS is quite likely the most important one.

I am aware of OpenLAPI. That is the implementation I used to support JSR 179 on my Android port. The only thing I need to figure out is how to get the GPS data natively on the N900 and how to activate and deactivate GPS programmatically, etc.

Davy

to play a sound you can also use mplayer too
# if you don't have
# sudo apt-get install mplayer

mplayer testmp3.mp3
# it can play mp3, ogg, wav, aac etc etc

for the gps data i don't know seems there's not a command dbus line to switch on/off the gps radio, there's a python script that makes it. If you want to try using jython maybe it can works ;)

jw461 2012-02-07 01:42

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
I know GPS isn't working yet, but has anyone tried the Google Maps applet yet?

DavyP 2012-02-07 09:05

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

Originally Posted by santiago (Post 1161488)
to play a sound you can also use mplayer too
# if you don't have
# sudo apt-get install mplayer

mplayer testmp3.mp3
# it can play mp3, ogg, wav, aac etc etc

for the gps data i don't know seems there's not a command dbus line to switch on/off the gps radio, there's a python script that makes it. If you want to try using jython maybe it can works ;)

I installed a bunch of packages in the Madde N900 emulator,
including mplayer, alsasound, mediaplayer, pulseaudio, etc. I
restarted the emulator. Some of the errors I got before are gone
and mplayer seems to be playing a test wav and mp3 file, but I
still hear no sound. Same problems with aplay and play-sound. I
checked my mixer settings too.

Has anyone tried to play audio in the emulator?

Davy

Arthuro_Adam 2012-02-07 09:18

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
I tried the newest version (0206) on N9, and the fonts are great, it shows every Hungarian character (őűí), but it's slower, than the first one.

The grey bar is there.

DavyP 2012-02-07 09:54

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

Originally Posted by Arthuro_Adam (Post 1161569)
I tried the newest version (0206) on N9, and the fonts are great, it shows every Hungarian character (őűí), but it's slower, than the first one.

The grey bar is there.

Text rendering is indeed slower.

I am still investigating the grey bar issue. Merely replacing
QApplication with MApplication as suggested before, does not
seem to cut it.

Davy

manojkumaru 2012-02-07 12:40

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

Originally Posted by bipinbn (Post 1158849)
I will try to find out if I can get hold of used N900 here in India, Bangalore, should be able to get a cheap deal since not many ppl here know about our awesome N900 ..

Looking for an used N900?? Little late, I had a friend in Banglore who sold it for 7000INR, just before he left for US of A,a month ago. No worries, still there is another friend of mine from Gujarat willing to sell his N900. I am less fortunate to make it mine, but still I don't want it to go to any hands which don't know the awesomeness of this phone. If you're willing, I can connect you to him. PM me.

DavyP 2012-02-07 15:16

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

Originally Posted by DavyP (Post 1161585)
Text rendering is indeed slower.

I am still investigating the grey bar issue. Merely replacing
QApplication with MApplication as suggested before, does not
seem to cut it.

Davy

I found out that this grey bar is actually the system tray that can
be disabled on the N9 device:

http://forum.meego.com/showthread.php?t=1868

Another way is to run the app in fullscreen by default, or to use
PageStackWindow, but for that I would need to change my port to
use the Qt Quick Components .

http://forum.meego.com/showthread.php?t=3636

I put a new build online and added a separate build for N9 that
starts in full screen.

Davy

Arthuro_Adam 2012-02-07 18:58

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

Originally Posted by DavyP (Post 1161713)
I found out that this grey bar is actually the system tray that can
be disabled on the N9 device:

http://forum.meego.com/showthread.php?t=1868

Another way is to run the app in fullscreen by default, or to use
PageStackWindow, but for that I would need to change my port to
use the Qt Quick Components .

http://forum.meego.com/showthread.php?t=3636

I put a new build online and added a separate build for N9 that
starts in full screen.

Davy

Thanks for your work.

[DarkGUNMAN] 2012-02-07 20:43

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
Tested new version:
Default font is slightly smaller, works better for medium fonts but still jerky - I have not tried this overclocked yet.
Fullscreen and rotation now automatically redraw the screen to fit :)
Very nice work.

File upload and download is supported:
download only seems to work in Opera Mini 4.2.. in v6.5 download fails
upload works fine - access to MyDocs and SDCard

DavyP 2012-02-07 21:21

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

Originally Posted by manojkumaru (Post 1161648)
Looking for an used N900?? Little late, I had a friend in Banglore who sold it for 7000INR, just before he left for US of A,a month ago. No worries, still there is another friend of mine from Gujarat willing to sell his N900. I am less fortunate to make it mine, but still I don't want it to go to any hands which don't know the awesomeness of this phone. If you're willing, I can connect you to him. PM me.

Thanks for the suggestion, but my hope is that I can do as much as possible with the emulators and have others do some testing for the things I cannot check myself. If I would have to buy a device for each platform and OS revision I had to test against or create a custom build for, I would be spending a lot of money too :-). Up to now, I managed to do all my Windows Mobile and Android porting with emulators and a dual boot device. A pitty it cannot triple boot to Maemo or MeeGo. That would be really cool :-)

Cheers,
Davy

Arthuro_Adam 2012-02-07 21:27

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

Originally Posted by [DarkGUNMAN] (Post 1161853)
Tested new version:
Default font is slightly smaller, works better for medium fonts but still jerky - I have not tried this overclocked yet.
Fullscreen and rotation now automatically redraw the screen to fit :)
Very nice work.

File upload and download is supported:
download only seems to work in Opera Mini 4.2.. in v6.5 download fails
upload works fine - access to MyDocs and SDCard

Testing now :)

DavyP 2012-02-07 21:45

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

I know N900 and N950 have a physical keyboard, but the N9 has not. Can both devices use a built-in virtual/soft keyboard for text input? I tried the Notes application on the emulator, and on N9 I get this grey bar that people have been complaining about, with a + sign on it which activates a virtual keyboard. On N900 I don't get this virtual keyboard.

I am just asking because I see these requests for copy-paste functionality and I am wondering whether lack of input support is the reason. On Windows Mobile and Android I was able to integrate the built-in virtual keyboard into the phoneME ports.

Davy

DavyP 2012-02-07 21:52

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

Originally Posted by [DarkGUNMAN] (Post 1161853)
Tested new version:
Default font is slightly smaller, works better for medium fonts but still jerky - I have not tried this overclocked yet.
Fullscreen and rotation now automatically redraw the screen to fit :)
Very nice work.

Yes I reduced the font size. The reason why font drawing could be slow is because there are a lot of bitmap operations going on to render text. PhoneME renders all graphics etc. on a 16-bit RGB array of pixels. I then convert this array to a QImage() and then to a QPixmap() and ask Qt4 to render the text. Unfortunately, by doing so, the QPixmap() becomes a 32-bit RGB pixmap which I then have to convert back to 16-bit before I copy the raw RGB pixel array back to phoneME. Obviously there is a lot of overhead.

Hopefully I can find another faster way to have Qt4 render text on a 16-bit RGB buffer without all this copying and transformation.

Quote:

Originally Posted by [DarkGUNMAN] (Post 1161853)
File upload and download is supported:
download only seems to work in Opera Mini 4.2.. in v6.5 download fails
upload works fine - access to MyDocs and SDCard

Yes, I have not looked what Opera Mini does different v6.5. It is on my todo list.

Davy

Arthuro_Adam 2012-02-07 21:53

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
It's working on N9, status bar and grey bar disappeared. It's great, but laggy. Download, rotate not working. If you click on landscape mode, than it's rotate to the wrong side (NOKIA logo on the down not the top).

Thanks for your work, it's get better day by day.

If I turn off the Opera keyboard, I can't get any virtual keyboard on N9.

DavyP 2012-02-07 22:13

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

Originally Posted by Arthuro_Adam (Post 1161880)
It's working on N9, status bar and grey bar disappeared. It's great, but laggy. Download, rotate not working. If you click on landscape mode, than it's rotate to the wrong side (NOKIA logo on the down not the top).

Thanks for your work, it's get better day by day.

If I turn off the Opera keyboard, I can't get any virtual keyboard on N9.

The grey bar is gone because I started the application in full screen. I think the grey bar is intended as a status bar from which you could activate a virtual keyboard (if I compare with the Notes app). Since with fullscreen it is now hidden, we cannot pop up a virtual keyboard anymore (if I would now how to enable it). I had to do something similar for Android devices without a physical keyboard. The problem was that phoneME text input fields are different from Android input fields (that would automatically pop up the virtual keyboard), but on Android I managed to enforce popping up the virtual keyboard even if there was no Android textfield widget being displayed. I have not found a way how to do this on N9.

About the rotation: This is Opera rotating in the wrong way, not phoneME. There is not much I can do about this :-(. Actually, on both the N9 and N900 emulators phoneME always runs in landscape mode it seems.

Davy

Arthuro_Adam 2012-02-07 22:22

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

Originally Posted by DavyP (Post 1161889)
The grey bar is gone because I started the application in full screen. I think the grey bar is intended as a status bar from which you could activate a virtual keyboard (if I compare with the Notes app). Since with fullscreen it is now hidden, we cannot pop up a virtual keyboard anymore (if I would now how to enable it). I had to do something similar for Android devices without a physical keyboard. The problem was that phoneME text input fields are different from Android input fields (that would automatically pop up the virtual keyboard), but on Android I managed to enforce popping up the virtual keyboard even if there was no Android textfield widget being displayed. I have not found a way how to do this on N9.

About the rotation: This is Opera rotating in the wrong way, not phoneME. There is not much I can do about this :-(. Actually, on both the N9 and N900 emulators phoneME always runs in landscape mode it seems.

Davy

Yes, the portrait mode is wrong, but it's nothing. I don't need any virtual keyboards, the opera's keyboard is perfect for me.

I think, for the N9 there is two problem left, but you know both of them (speed and download).

DavyP 2012-02-07 23:41

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
I tweaked the text rendering a bit and uploaded new builds (dated 2012-02-08):

http://davy.preuveneers.be/phoneme/?q=node/10#maemo

Can you check if you see some improvement in the text rendering speed?

I avoided all of the pixel buffer copying and rgb depth transformation. If it is still too slow, it is Qt4 itself that is slow at text rendering ....

Davy

munozferna 2012-02-08 05:24

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

Originally Posted by DavyP (Post 1161914)
I tweaked the text rendering a bit and uploaded new builds (dated 2012-02-08):

http://davy.preuveneers.be/phoneme/?q=node/10#maemo

Can you check if you see some improvement in the text rendering speed?

I avoided all of the pixel buffer copying and rgb depth transformation. If it is still too slow, it is Qt4 itself that is slow at text rendering ....

Davy

I did not test the previous version but the last one seems to be fast enough using Opera. Also the fullscreen trick works nice! Thanks a lot. Regarding the input, I was unable to get the VKB appearing on the microemu-demo. Maybe the people from #maliit can help you figure it out

[DarkGUNMAN] 2012-02-08 08:01

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
Tested v08-02:
MUCH faster! No delayed response. Scrolling in OM4.2 and 6.5 is much improved, menus are quick with no delay - it it is very usable now at Medium font settings :)

DavyP 2012-02-08 08:12

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

Originally Posted by [DarkGUNMAN] (Post 1161992)
Tested v08-02:
MUCH faster! No delayed response. Scrolling in OM4.2 and 6.5 is much improved, menus are quick with no delay - it it is very usable now at Medium font settings :)

Great to hear my efforts paid off :-). When time permits, I will look into the JSR 75 (file download) issue, as it seems Opera Mini is one of the more popular midlet applications on the N900.

Davy

vi_ 2012-02-08 08:28

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
Right chaps, lets talk turkey.

I will pledge $25 dollars to buy this guy an N900. I can accumulate all pledges till we have enough to get this Mofo an n900. Who is in?

[DarkGUNMAN] 2012-02-08 09:12

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
I'm in. £10 from my next pay packet

[DarkGUNMAN] 2012-02-08 09:32

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
Quick update, scrolling in portrait mode is jerky for Medium fonts.
Landscape is fine.
Small fonts no problem

nicolai 2012-02-08 09:34

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
Hi DavyP,
I tried again to compile midp, but I can not get this to work.
I tried different howtos I found (phoneme for webos for example)

Starting with building the PCSL part I get this error:

gcc: error trying to exec 'cc1'

looks like a PATH entry is missing.
If I manually change the PATH it can find the cc1 from my arm-toolchain
but I get errors "can not find stdio.h" and if I manually change the
CFLAGS to include that path for stdio.h I get more errors
about other includes missing.
So, somehow my cross-compiler toolchain isn't correct, but
I don't understand what I could have done wrong.

It is working for developing apps for maemo, but for maemo
scratchbox environment is used within its one login shell.
For midp I can not directly use this envirionment because
midp depends on java tools that aren't useable from
within scratchbox.
But it should work to just use scratchbox toolchain I even
tried different toolchains (scratchbox, the one from WebOs,
codesourcery) always the same errors.

Any ideas.

Nicolai


Quote:

Originally Posted by vi_ (Post 1162004)
Right chaps, lets talk turkey.

I will pledge $25 dollars to buy this guy an N900. I can accumulate all pledges till we have enough to get this Mofo an n900. Who is in?

Count me in (10€), not only for his work he already done, but also
because every developer should own a N900 :-)

vi_ 2012-02-08 10:26

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
vi - £15.72
Darkgunman - £10
Nicolai - £8.34

Total = £34.06

vi_ 2012-02-08 10:44

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
Ok, I have found a guy who will sell me his old n900 for £69. It is a bit of a beater with a scratched screen in poor cosmetic condition but apparently it all works fine. This means we are %49 of the way to buying it.

If you feel you will benefit from using this piece of software AT ALL now or in the future I ask you to donate some $$$ for the cause. It does not matter how little just donate something, or I will toe your balls the next time you come with a rétarded feature request.

DavyP 2012-02-08 11:01

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
File download issue should be fixed now. It turned there was a seek() operation issue. OperaMini 6.5 did an openOutputStream(0) whereas the older version did an openOutputStream(). This '0' parameter triggered a seek(0) operation, which failed. Unfortunately, the underlying stream implementation does not support seeking, but luckily for OperaMini 6.5 the fix was simple as a seek(0) is the same as not seeking at all. For now, I just check the byte offset for the seek operation and if it is 0 I skip it.

There are new builds on my website (with the same date of 2012-02-08).

One note: I added another virtual folder /FileSystem so you can access any folder you like. However, when you try to save a file, make sure you have write permissions to that folder. The /Private virtual folder should work as it is mapped onto the /home/user/MyDocs folder. The /Storage one is mapped onto /media/mmc1.

Cheers
Davy

DavyP 2012-02-08 11:06

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

Originally Posted by [DarkGUNMAN] (Post 1162033)
Quick update, scrolling in portrait mode is jerky for Medium fonts.
Landscape is fine.
Small fonts no problem

Strange, as I am doing the same thing whether I am in portrait or
landscape mode.

Perhaps in portrait mode, the slowdown is caused because
phoneME needs to print many more smaller (single line) strings,
whereas in landscape mode Opera Mini prints fewer but longer
strings. I am just guessing here.

Davy

Arthuro_Adam 2012-02-08 11:25

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
Thanks for the update, I will try it at afternoon.

DavyP 2012-02-08 11:26

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

Originally Posted by nicolai (Post 1162034)
Hi DavyP,
I tried again to compile midp, but I can not get this to work.
I tried different howtos I found (phoneme for webos for example)

Starting with building the PCSL part I get this error:

gcc: error trying to exec 'cc1'

looks like a PATH entry is missing.
If I manually change the PATH it can find the cc1 from my arm-toolchain
but I get errors "can not find stdio.h" and if I manually change the
CFLAGS to include that path for stdio.h I get more errors
about other includes missing.
So, somehow my cross-compiler toolchain isn't correct, but
I don't understand what I could have done wrong.

It is working for developing apps for maemo, but for maemo
scratchbox environment is used within its one login shell.
For midp I can not directly use this envirionment because
midp depends on java tools that aren't useable from
within scratchbox.
But it should work to just use scratchbox toolchain I even
tried different toolchains (scratchbox, the one from WebOs,
codesourcery) always the same errors.

Any ideas.

Nicolai




Count me in (10€), not only for his work he already done, but also
because every developer should own a N900 :-)

I am using the ARM 2011.03 GNU EABI cross-compiler from CodeSourcery (which apparently changed its name to Mentor Graphics). The Lite versions of the compilers are a bit harder to find, but you can download the latest ones over here:

http://www.mentor.com/embedded-softw.../lite-edition/

You have to register first, but you can get the compilers directly from:

https://sourcery.mentor.com/sgpp/lit...al/release2029

I use these compilers directly on my linux OS so not in a scratchbox environment. See if this somehow already helps with the missing headers files.

Davy

DavyP 2012-02-08 11:28

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

Originally Posted by vi_ (Post 1162052)
vi - £15.72
Darkgunman - £10
Nicolai - £8.34

Total = £34.06

Thank you all for your efforts on trying to get me a N900 :)

Davy

nicolai 2012-02-08 11:32

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

Originally Posted by DavyP (Post 1162066)
I am using the ARM 2011.03 GNU EABI cross-compiler from CodeSourcery (which apparently changed its name to Mentor Graphics). The Lite versions of the compilers are a bit harder to find, but you can download the latest ones over here:

http://www.mentor.com/embedded-softw.../lite-edition/

You have to register first, but you can get the compilers directly from:

https://sourcery.mentor.com/sgpp/lit...al/release2029

I use these compilers directly on my linux OS so not in a scratchbox environment. See if this somehow already helps with the missing headers files.

Davy

No, I already use that one.

vi_ 2012-02-08 11:32

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
All I ask is that when you feel it is time to move on to greener pastures of code that you leave your program in a useable state, open enough for someone to carry on where you leave off.

[DarkGUNMAN] 2012-02-08 11:41

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

Originally Posted by DavyP (Post 1162062)
Strange, as I am doing the same thing whether I am in portrait or
landscape mode.

Perhaps in portrait mode, the slowdown is caused because
phoneME needs to print many more smaller (single line) strings,
whereas in landscape mode Opera Mini prints fewer but longer
strings. I am just guessing here.

Davy

Hi Davy,

I think the portrait issue may be more to do with the SGX drivers in Maemo, there is a known screen tearing issue and the default web browser also seems slower in portrait.

Didnmt realise until now

DavyP 2012-02-08 11:57

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

Originally Posted by vi_ (Post 1162070)
All I ask is that when you feel it is time to move on to greener pastures of code that you leave your program in a useable state, open enough for someone to carry on where you leave off.

My intention is to:
1) first get the build in a decent shape
2) clean up my patches
3) try to find a way to automate the build process as much as possible with a shell script
4) put all that info, including Maemo specific sources and patches on my website.
5) let the community have a go at compiling it themselves

And rest assured, it is quite likely that phoneME will be on my website for quite a while :)

Cheers,
Davy

DavyP 2012-02-08 12:00

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

Originally Posted by nicolai (Post 1162069)
No, I already use that one.

Mmmm, odd. If I have time I will have a go at building everything on a clean machine and write down all the steps I took.

Davy

MaddogG 2012-02-08 13:40

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

Originally Posted by vi_ (Post 1162052)
vi - £15.72
Darkgunman - £10
Nicolai - £8.34

Total = £34.06

Add 10€ from me.

[DarkGUNMAN] 2012-02-08 14:29

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
Just out of curiosity, in the next release is it possible to change the name of the CVM window to that of the name of the Midlet once launched, as listed in the manifest or jad file?

vi_ 2012-02-08 14:39

Re: [TESTING] PhoneME Advanced (Java Mobile) prototype release
 
vi - £15.72
Darkgunman - £10
Nicolai - £8.34
MaddogG - £8.34

Total = £42.40

Achievement, developer phone for DavyP:
achievement 61% unlocked

bipinbn 2012-02-08 14:43

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

Originally Posted by vi_ (Post 1162057)
Ok, I have found a guy who will sell me his old n900 for £69. It is a bit of a beater with a scratched screen in poor cosmetic condition but apparently it all works fine. This means we are %49 of the way to buying it.

If you feel you will benefit from using this piece of software AT ALL now or in the future I ask you to donate some $$$ for the cause. It does not matter how little just donate something, or I will toe your balls the next time you come with a rétarded feature request.

£69 looks very cheap.we need to get one for Davy ASAP. how can we donate..any paypal ID ??


All times are GMT. The time now is 08:13.

vBulletin® Version 3.8.8