Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    [GUIDE] Opera Mini, SunJava and DroidSans Fonts

    Reply
    Page 1 of 2 | 1   2   | Next
    [DarkGUNMAN] | # 1 | 2011-02-24, 09:43 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks
    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:
    ajack, debernardis, eVrajka, fw190, ivgalvez, joppu, mikec, uvatbc

     
    ivgalvez | # 2 | 2011-02-24, 10:28 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    laasonen | # 3 | 2011-02-24, 10:59 | Report

    Why 4.2? 5.1 is the newest.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    [DarkGUNMAN] | # 4 | 2011-02-24, 11:18 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to [DarkGUNMAN] For This Useful Post:
    ivgalvez

     
    debernardis | # 5 | 2011-02-24, 12:28 | Report

    @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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    [DarkGUNMAN] | # 6 | 2011-02-24, 12:39 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks

     
    carlos2005 | # 7 | 2011-02-24, 12:58 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by carlos2005; 2011-02-24 at 13:33.
    The Following User Says Thank You to carlos2005 For This Useful Post:
    uvatbc

     
    debernardis | # 8 | 2011-02-24, 14:08 | Report

    Here is the file: http://www.megaupload.com/?d=LTIYID4S
    Thanks for your interest!

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by debernardis; 2011-02-24 at 14:15.

     
    [DarkGUNMAN] | # 9 | 2011-02-24, 15:48 | Report

    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

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to [DarkGUNMAN] For This Useful Post:
    debernardis

     
    uvatbc | # 10 | 2011-02-24, 17:33 | Report

    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.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Page 1 of 2 | 1   2   | Next
vBulletin® Version 3.8.8
Normal Logout