Notices


Reply
Thread Tools
Posts: 309 | Thanked: 451 times | Joined on Jan 2010
#1
Thanks to an unreliable 3G service from Vodafone I've been forced to use 2G most of the day. This prompted me to look at some of the niggles I've eperienced with Java and Opera Mini, and setting them up for the long term without any major inconveneience when I have to reflash.

Before I begin, please note the paths listed are customized by myself and may not refkect what is extracted from any downloads.

First of all, Sun Java needs to be installed. this can be dfound and downloded directly by searching Google for :
'Java SE for Embedded General Availability for Linux (ARM), English'
The direct link seens to change so it is easier to search for it.
to use this long term without fear of losing it through an unplanned reflash, extract the archive to /home/user/apps. Make a note of the foldername, or rename it to suit yourself.
[EDIT] Download 'Java SE for Embedded 6 Update 21 (Build 9) ARMv7 Linux - Headful, EABI, Hard Float (VFP), Little-Endian'

Next we need a copy of MicroEmulator. This can be downloaded from:
http://snapshot.microemu.org/microem...0-SNAPSHOT.zip
Again, extract the archive to /home/user/apps. Make a note of the foldername, or rename it to suit yourself.

Next up is Opera Mini. you can download a copy of Opera Mini 4.2 using this link.
http://my.opera.com/community/forums....dml?id=221224
Save the jar file to /home/user/apps/microemulator-3.0.0/apps

Next we need to create a desktop entry, Below is a Command line to run MicroEmulator with filesystem access and Opera Mini 4.2 - This will allow you to load/save files. Modify the paths based on wherever your java installation is.
Code:
[Desktop Entry]
Encoding=UTF-8
Name=Opera Mini 4.2
GenericName=Opera Mini 4
Exec=/home/user/apps/ejre1.6.0_21/bin/java -cp /home/user/apps/microemulator-3.0.0/microemulator.jar:/home/user/apps/microemulator-3.0.0/lib/microemu-jsr-135.jar:/home/user/apps/microemulator-3.0.0/lib/microemu-jsr-75.jar org.microemu.app.Main --impl org.microemu.cldc.file.FileSystem --resizableDevice 800 378 /home/user/apps/microemulator-3.0.0/apps/opera-mini-4.2.jar
Terminal=true
Type=Application
Icon=opera
[EDIT] Save the desktop file e.g 'operamini.desktop' in '/usr/share/applications/hildon', or if you wish to keep the icon after a re-flash, create it in '/home/user/.local/share/applications/hildon'
Run this desktop entry to let opera and microemulator register their files, then close.

Because MicroEmulator creates a filesystem folder which is not easily navigable from file manager, We're going to create symlinks in the folder linking to MyDocs and the SDCard if it is inserted, allowing easier access to your files.
Code:
rm /home/user/.microemulator/filesystem/*
ln -s /home/user/MyDocs /home/user/.microemulator/filesystem/MyDocs
ln -s /media/mmc1 /home/user/.microemulator/filesystem/SDCard
Finally, for a bit of polish we're going to change the default font for Java to DroidSans to make it more legible in Opera Mini.
Assuming you have the font installed from the repositories, copy the font files to the java font folder
Code:
cp /usr/share/fonts/truetype/ttf-droid/Droid*.ttf /home/user/apps/ejre1.6.0_21/lib/fonts
Now we have to edit the default fonts file. Create a bavkup first
Code:
cp /home/user/apps/ejre1.6.0_21/lib/fonts/fonts.dir /home/user/apps/ejre1.6.0_21/lib/fonts/fonts.dir.bak
leafpad /home/user/apps/ejre1.6.0_21/lib/fonts/fonts.dir
Replace the contents of the file with the following to use Droid fonts instead:
Code:
48
DroidSerif-Regular.ttf -b&h-lucidabright-medium-r-normal--0-0-0-0-p-0-iso8859-1
DroidSerif-Italic.ttf -b&h-lucidabright-medium-i-normal--0-0-0-0-p-0-iso8859-1
DroidSerif-Bold.ttf -b&h-lucidabright-demibold-r-normal--0-0-0-0-p-0-iso8859-1
DroidSerif-BoldItalic.ttf -b&h-lucidabright-demibold-i-normal--0-0-0-0-p-0-iso8859-1
DroidSans.ttf -b&h-lucidasans-medium-r-normal-sans-0-0-0-0-p-0-iso8859-1
DroidSans-Bold.ttf -b&h-lucidasans-bold-r-normal-sans-0-0-0-0-p-0-iso8859-1
DroidSansMono.ttf -b&h-lucidatypewriter-medium-r-normal-sans-0-0-0-0-m-0-iso8859-1
DroidSansMono.ttf -b&h-lucidatypewriter-bold-r-normal-sans-0-0-0-0-m-0-iso8859-1
DroidSerif-Regular.ttf -b&h-lucidabright-medium-r-normal--0-0-0-0-p-0-iso8859-2
DroidSerif-Italic.ttf -b&h-lucidabright-medium-i-normal--0-0-0-0-p-0-iso8859-2
DroidSerif-Bold.ttf -b&h-lucidabright-demibold-r-normal--0-0-0-0-p-0-iso8859-2
DroidSerif-BoldItalic.ttf -b&h-lucidabright-demibold-i-normal--0-0-0-0-p-0-iso8859-2
DroidSans.ttf -b&h-lucidasans-medium-r-normal-sans-0-0-0-0-p-0-iso8859-2
DroidSans-Bold.ttf -b&h-lucidasans-bold-r-normal-sans-0-0-0-0-p-0-iso8859-2
DroidSansMono.ttf -b&h-lucidatypewriter-medium-r-normal-sans-0-0-0-0-m-0-iso8859-2
DroidSansMono.ttf -b&h-lucidatypewriter-bold-r-normal-sans-0-0-0-0-m-0-iso8859-2
DroidSerif-Regular.ttf -b&h-lucidabright-medium-r-normal--0-0-0-0-p-0-iso8859-4
DroidSerif-Italic.ttf -b&h-lucidabright-medium-i-normal--0-0-0-0-p-0-iso8859-4
DroidSerif-Bold.ttf -b&h-lucidabright-demibold-r-normal--0-0-0-0-p-0-iso8859-4
DroidSerif-BoldItalic.ttf -b&h-lucidabright-demibold-i-normal--0-0-0-0-p-0-iso8859-4
DroidSans.ttf -b&h-lucidasans-medium-r-normal-sans-0-0-0-0-p-0-iso8859-4
DroidSans-Bold.ttf -b&h-lucidasans-bold-r-normal-sans-0-0-0-0-p-0-iso8859-4
DroidSansMono.ttf -b&h-lucidatypewriter-medium-r-normal-sans-0-0-0-0-m-0-iso8859-4
DroidSansMono.ttf -b&h-lucidatypewriter-bold-r-normal-sans-0-0-0-0-m-0-iso8859-4
DroidSerif-Regular.ttf -b&h-lucidabright-medium-r-normal--0-0-0-0-p-0-iso8859-5
DroidSerif-Italic.ttf -b&h-lucidabright-medium-i-normal--0-0-0-0-p-0-iso8859-5
DroidSerif-Bold.ttf -b&h-lucidabright-demibold-r-normal--0-0-0-0-p-0-iso8859-5
DroidSerif-BoldItalic.ttf -b&h-lucidabright-demibold-i-normal--0-0-0-0-p-0-iso8859-5
DroidSans.ttf -b&h-lucidasans-medium-r-normal-sans-0-0-0-0-p-0-iso8859-5
DroidSans-Bold.ttf -b&h-lucidasans-bold-r-normal-sans-0-0-0-0-p-0-iso8859-5
DroidSansMono.ttf -b&h-lucidatypewriter-medium-r-normal-sans-0-0-0-0-m-0-iso8859-5
DroidSansMono.ttf -b&h-lucidatypewriter-bold-r-normal-sans-0-0-0-0-m-0-iso8859-5
DroidSerif-Regular.ttf -b&h-lucidabright-medium-r-normal--0-0-0-0-p-0-iso8859-7
DroidSerif-Italic.ttf -b&h-lucidabright-medium-i-normal--0-0-0-0-p-0-iso8859-7
DroidSerif-Bold.ttf -b&h-lucidabright-demibold-r-normal--0-0-0-0-p-0-iso8859-7
DroidSerif-BoldItalic.ttf -b&h-lucidabright-demibold-i-normal--0-0-0-0-p-0-iso8859-7
DroidSans.ttf -b&h-lucidasans-medium-r-normal-sans-0-0-0-0-p-0-iso8859-7
DroidSans-Bold.ttf -b&h-lucidasans-bold-r-normal-sans-0-0-0-0-p-0-iso8859-7
DroidSansMono.ttf -b&h-lucidatypewriter-medium-r-normal-sans-0-0-0-0-m-0-iso8859-7
DroidSansMono.ttf -b&h-lucidatypewriter-bold-r-normal-sans-0-0-0-0-m-0-iso8859-7
DroidSerif-Regular.ttf -b&h-lucidabright-medium-r-normal--0-0-0-0-p-0-iso8859-9
DroidSerif-Italic.ttf -b&h-lucidabright-medium-i-normal--0-0-0-0-p-0-iso8859-9
DroidSerif-Bold.ttf -b&h-lucidabright-demibold-r-normal--0-0-0-0-p-0-iso8859-9
DroidSerif-BoldItalic.ttf -b&h-lucidabright-demibold-i-normal--0-0-0-0-p-0-iso8859-9
DroidSans.ttf -b&h-lucidasans-medium-r-normal-sans-0-0-0-0-p-0-iso8859-9
DroidSans-Bold.ttf -b&h-lucidasans-bold-r-normal-sans-0-0-0-0-p-0-iso8859-9
DroidSansMono.ttf -b&h-lucidatypewriter-medium-r-normal-sans-0-0-0-0-m-0-iso8859-9
DroidSansMono.ttf -b&h-lucidatypewriter-bold-r-normal-sans-0-0-0-0-m-0-iso8859-9
And there we have it. All that remains is to start Opera Mini and change the font size to Extra Large
Attached Images
   

Last edited by [DarkGUNMAN]; 2011-03-03 at 08:23.
 

The Following 8 Users Say Thank You to [DarkGUNMAN] For This Useful Post:
Posts: 1,384 | Thanked: 2,083 times | Joined on Nov 2009 @ Dublin, Ireland
#2
Great guide. I have only used Java for jDownloader, but this Opera Mini is another good option to consider.

Perhaps a deb package for installing Sun (sorry Oracle) 's Java using wget would be a good starting point for a lot of user's.
 
laasonen's Avatar
Posts: 565 | Thanked: 615 times | Joined on Jun 2010 @ Finland
#3
Why 4.2? 5.1 is the newest.
 
Posts: 309 | Thanked: 451 times | Joined on Jan 2010
#4
Originally Posted by laasonen View Post
Why 4.2? 5.1 is the newest.
It's more to personal taste, 4.2 seems to be a bit smoother and allows extra large fonts.

Indeed it would be helpful to package all of this as a deb but I don't have the knowledge to do that.
 

The Following User Says Thank You to [DarkGUNMAN] For This Useful Post:
debernardis's Avatar
Posts: 2,123 | Thanked: 1,990 times | Joined on Dec 2006 @ Sicily
#5
@DarkGUNMAN: since you seem to have some experience regarding java and microemulator, would you please try to run yyld.jar, which is an old but still functioning version of Shazam? (The application which identifies tunes).

I tried but it says that the device can't do recording. But maybe there's some tweak of microemulator that could make it work...
Thanks
__________________
Ernesto de Bernardis

 
Posts: 309 | Thanked: 451 times | Joined on Jan 2010
#6
Originally Posted by debernardis View Post
@DarkGUNMAN: since you seem to have some experience regarding java and microemulator, would you please try to run yyld.jar, which is an old but still functioning version of Shazam? (The application which identifies tunes).

I tried but it says that the device can't do recording. But maybe there's some tweak of microemulator that could make it work...
Thanks
Any way you could attach this file to a post in this thread or upload to a filesharing service? It seems I need to be logged in to the site to download the jar file
 
Posts: 16 | Thanked: 6 times | Joined on Jan 2011
#7
Hi, I have few comments, which I had to look for.
Java version:
Java SE for Embedded 6 Update 21 (Build 9) ARMv7 Linux - Headful, EABI, Hard Float (VFP), Little-Endian

Saving desktop file to:
/usr/share/applications/hildon/

And I created symlinks to java.
ln -s /home/user/apps/ejre1.6.0_21/bin/* /usr/bin/
(don't know if this is really necessary).

Haven't tried fonts yet.
And thanks for the guide.


Edit1: Fonts work fine, it's better to read.

Last edited by carlos2005; 2011-02-24 at 13:33.
 

The Following User Says Thank You to carlos2005 For This Useful Post:
debernardis's Avatar
Posts: 2,123 | Thanked: 1,990 times | Joined on Dec 2006 @ Sicily
#8
Here is the file: http://www.megaupload.com/?d=LTIYID4S
Thanks for your interest!
__________________
Ernesto de Bernardis


Last edited by debernardis; 2011-02-24 at 14:15.
 
Posts: 309 | Thanked: 451 times | Joined on Jan 2010
#9
Had a look - definitely outside of my ability.
Try mailing Barteo, he is one of the developers of MicroEmu and helped me with the command line to get filesystem access. Might be able to do the same for you with multimedia.

barteo@gmail.com
 

The Following User Says Thank You to [DarkGUNMAN] For This Useful Post:
Posts: 997 | Thanked: 731 times | Joined on Mar 2008 @ SF Bay Area
#10
Originally Posted by carlos2005 View Post
Hi, I have few comments, which I had to look for.
Java version:
Java SE for Embedded 6 Update 21 (Build 9) ARMv7 Linux - Headful, EABI, Hard Float (VFP), Little-Endian

Saving desktop file to:
/usr/share/applications/hildon/

And I created symlinks to java.
ln -s /home/user/apps/ejre1.6.0_21/bin/* /usr/bin/
(don't know if this is really necessary).

Haven't tried fonts yet.
And thanks for the guide.


Edit1: Fonts work fine, it's better to read.
Thanks for the info of which one of the three to use, but just for informations sake, I'd like to know why this one and not the other two.
__________________
qgvdial: Google Voice client. Vote.
qgvtp: Phone integration for the n900 that dials out and sends texts using qgvdial. Vote.
mosquitto: message broker that implements the MQ Telemetry Transport protocol version 3.
qgvnotify: Google voice and contacts notifier for diablo and maemo.

If you want to thank me, click the Thanks button.
If you'd like to thank my applications, vote to move them to extras.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 14:35.