View Single Post
Posts: 309 | Thanked: 456 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: