Notices


Reply
Thread Tools
Posts: 306 | Thanked: 603 times | Joined on Jan 2012 @ Belgium
#521
Originally Posted by Arthuro_Adam View Post
I tested, but the problem is there. OM starts in landscape mode.
This does not make sense, because the only changes that I applied between both builds that could affect the N9 was the renaming of.the portrait/rotate option.

* If you run the microemu demo midlet, does it also start in landscape?
* Do you use your own launch scripts or the shortcuts in the application menu? If you have your own launch script, can you show it?
* If you run the MIDlet settings application, is the "rotate midlet 90 degrees" option enabled?
* Have you enabled the "Landscape" option in the Opera midlet itself?

I think you still have some old preferences that only worked with the old build. To get those out of the way, I uploaded a new build at:

http://davy.preuveneers.be/phoneme/p...aemo/deb/test/

The only change it has compared to the previous test build is that the "MIDlet Settings" application now has an extra "Clear" button, which will clear all stored preferences. I suggest you tap Clear, and then enable

"Start in full screen"
"Rotate midlet 90 degrees"
"Use anti-aliased fonts"

and then tap Save, and Close.

Based on what I have read on forums and in online documentation is that auto-rotation does not work and that you need to use the QML components for that. I also read that Qt4 applications on MeeGo without QML wrappers always start in landscape. That is why I added the rotate functionality.

For example, the "MIDlet Settings" application is also a simple Qt4 application. On MeeGo, it presume it will always start and remain in landscape mode.

If others with a N9 also have these issues, or can point out which of my assumptions are wrong, I would love to hear from you as I cannot reproduce it myself with the emulator.

Davy
 
Posts: 306 | Thanked: 603 times | Joined on Jan 2012 @ Belgium
#522
Originally Posted by hoa2ngminh View Post
I want to play the game "Di tim trieu phu" (Milionaire), but could not. I can not help. Thank's
The game produces a null pointer exception in the millionaire
constructor.

After some significant testing, I found out that the game tries to
play a midi file. I correctly executes the Manager.createPlayer()
passing along a reference to the midi file.

Since on N900, I have not implemented midi support, I throw a
media exception like the JSR 135 spec specifies. However, the
game catches and ignores this exception and assumes the midi
player has been initialized whereas in fact it is null.

So this is a bug in the application.

Davy
 

The Following User Says Thank You to DavyP For This Useful Post:
Posts: 306 | Thanked: 603 times | Joined on Jan 2012 @ Belgium
#523
Originally Posted by santiago View Post
Happy easter, sorry for the ******!
Anyway, Davy Nimbuzz doesnt work. It's not fully supported by your JVM becouse it needs to be maybe remapped?! Anyway... I have a problem with the Facebook app. The new facebook app has to store some data, but this version doesnt, becouse of the vm maybe, it doesnt save username and password. In the error log, there's not nothing about this kind of problem,this is the Facebook official APP, can you make something to fix this error? i add the Jar file down here... Thx 1000

Cristian
I just ran Nimbuzz (but only briefly as I did not create an account
etc). What is not working for you?

Also, regarding the facebook app. I ran it, logged in on facebook,
browsed through the application. Closed it. When I started the
application again, it remembered my credentials.

Davy
 
santiago's Avatar
Posts: 518 | Thanked: 334 times | Joined on Mar 2010 @ italy
#524
Originally Posted by DavyP View Post
I just ran Nimbuzz (but only briefly as I did not create an account
etc). What is not working for you?

Also, regarding the facebook app. I ran it, logged in on facebook,
browsed through the application. Closed it. When I started the
application again, it remembered my credentials.

Davy
thx Davy for this try. what does phoneme use like a storage path? Maybe i have to chown that. In nimbuz? From maemo, doesnt work, it's hard to go up/down and select the right button. If you want to register from the app, you cant, it's impossible.

thx 4 the help
Cristian
 
Posts: 39 | Thanked: 16 times | Joined on Mar 2011 @ Germany
#525
DavyP, thank you for your fantastic work!

Are there any chances that midi support will be added in the future releases of PhoneME?

I'm mostly interested in java mobile utilities for guitar training and music ear training: I've attached a demo of a program called guitar trainer. The program starts and works as intended but there are no sounds. I suppose all the sounds are in midi format.

I really hope that one day I'll be able to use these midlets with sounds on my N900 so I will be able to improve my music skills on the go.

Thank you gain,
Luca
Attached Files
File Type: zip GTDemo.zip (112.2 KB, 68 views)
 

The Following User Says Thank You to wokawoka For This Useful Post:
Posts: 136 | Thanked: 19 times | Joined on Nov 2011 @ Hungary
#526
Originally Posted by DavyP View Post
This does not make sense, because the only changes that I applied between both builds that could affect the N9 was the renaming of.the portrait/rotate option.

* If you run the microemu demo midlet, does it also start in landscape?
* Do you use your own launch scripts or the shortcuts in the application menu? If you have your own launch script, can you show it?
* If you run the MIDlet settings application, is the "rotate midlet 90 degrees" option enabled?
* Have you enabled the "Landscape" option in the Opera midlet itself?

I think you still have some old preferences that only worked with the old build. To get those out of the way, I uploaded a new build at:

http://davy.preuveneers.be/phoneme/p...aemo/deb/test/

The only change it has compared to the previous test build is that the "MIDlet Settings" application now has an extra "Clear" button, which will clear all stored preferences. I suggest you tap Clear, and then enable

"Start in full screen"
"Rotate midlet 90 degrees"
"Use anti-aliased fonts"

and then tap Save, and Close.

Based on what I have read on forums and in online documentation is that auto-rotation does not work and that you need to use the QML components for that. I also read that Qt4 applications on MeeGo without QML wrappers always start in landscape. That is why I added the rotate functionality.

For example, the "MIDlet Settings" application is also a simple Qt4 application. On MeeGo, it presume it will always start and remain in landscape mode.

If others with a N9 also have these issues, or can point out which of my assumptions are wrong, I would love to hear from you as I cannot reproduce it myself with the emulator.

Davy
In the midletsettings, there wasn't enable the 90° degree rotation. It worked before without the changes in the settings.

So it's works fine. Thanks.
 
Posts: 306 | Thanked: 603 times | Joined on Jan 2012 @ Belgium
#527
Originally Posted by Arthuro_Adam View Post
In the midletsettings, there wasn't enable the 90° degree rotation. It worked before without the changes in the settings.

So it's works fine. Thanks.
Indeed, I changed the naming from "portrait" to "rotate 90
degrees". On the N9, the original naming was OK because the
application by default started in landscape, and after turning it 90
degrees it would be in portrait mode.

However, on the N900 which does support rotation, people got
confused assuming that the "portrait" option would keep the midlet
in that position. With the portrait option enabled and while holding
the device in portrait mode, the midlet got displayed in landscape mode.

That is why I relabelled the option to "rotate 90 degrees", because
that was what I do technically.

Anyway, I am glad the issue got resolved.

Cheers,
Davy
 

The Following User Says Thank You to DavyP For This Useful Post:
Posts: 306 | Thanked: 603 times | Joined on Jan 2012 @ Belgium
#528
Originally Posted by santiago View Post
thx Davy for this try. what does phoneme use like a storage path? Maybe i have to chown that. In nimbuz? From maemo, doesnt work, it's hard to go up/down and select the right button. If you want to register from the app, you cant, it's impossible.

thx 4 the help
Cristian
If the app uses record stores, they are located in the folder:
/opt/phoneme/midp/midp_linux_fb_gcc/appdb

Normally the write privileges should be ok, at least if you install the
deb.

I don't know which version you used for Nimbuz. I again tested
version 1.9.5 (I downloaded the version for the LG KP500 - I just
needed a JavaME phone with touch screen), and I went through
the registration process just fine on my N900. I was able to log in
and navigate around without problems.

Davy
 
Posts: 306 | Thanked: 603 times | Joined on Jan 2012 @ Belgium
#529
Originally Posted by wokawoka View Post
DavyP, thank you for your fantastic work!

Are there any chances that midi support will be added in the future releases of PhoneME?

I'm mostly interested in java mobile utilities for guitar training and music ear training: I've attached a demo of a program called guitar trainer. The program starts and works as intended but there are no sounds. I suppose all the sounds are in midi format.

I really hope that one day I'll be able to use these midlets with sounds on my N900 so I will be able to improve my music skills on the go.

Thank you gain,
Luca
Since the N900 does not come with built-in midi support, this is not
an easy task. You could rely on a software synthesizer like timidity
and install a bunch of midi sound patches to play different
instruments. However, the JSR 135 spec requires you to be able
to play, pause, stop, rewind the audio stream, and this is difficult
when you use an external media player. On all devices on which I
had midi support working (Windows Mobile and Android) the
sound format was built-in.

However, your guitar app might also be simply doing some tone
generations with a certain frequency, length and volume, but
without source code it is hard to tell.

Cheers,
Davy
 

The Following 2 Users Say Thank You to DavyP For This Useful Post:
Posts: 39 | Thanked: 16 times | Joined on Mar 2011 @ Germany
#530
Thank you for your reply Davy.
The guitar app I've uploaded is just one of the many music apps I was trying to run on the N900. I believe that all of them relies on midi though.

As you were speaking about external players, I remember playing midi files on the N900 default mediaplayer after having installed the midi decoding package a couple of years ago.
They are talking about it in this thread:
http://talk.maemo.org/showthread.php?t=50301
Would that be useful for the aim of adding midi support in phoneme?

Even if maybe it could sound childish or simplistic to you, my programming knowledge is very limited and I can't help you as mach as I would.

Thank you so much again,
Luca
 
Reply

Thread Tools

 
Forum Jump


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