Messages: Please use the inbrite.com forum for our discussions & Q&A.

News: It is reported that iTunes 9 is compatible with jailbroked iPhones... Now I got an iPhone 3GS. I will be posting something about it...

Sponsors links:

Showing posts with label J2ME. Show all posts
Showing posts with label J2ME. Show all posts

Friday, June 29, 2007

YuetPhoto - mobile photo album & slide show

YuetPhoto
mobile photo album & slide show

I wrote this mobile photo viewer in Nov 2005. I still want to add more features to it, but I have not time to finish them. Now I'd like to package this v0.1 version for you to at least have the slide show features on your mobile phone. It is ideal for creating mobile java photo albums, and distribute it on internet. It is tested on both motorola V360 and E398. It should work on any mobile phone which supports MIDP2.0, including cell phones by Nokia, Sony Erission, Samsung, etc.

Features at a glance:
- photo slide show
- view photos in full screen
- auto rotate photos to fit the screen
- English & Chinese interface, switch language instantly. It is possible to add other language, if you would like to help.
- view photos stored in jar file
- support png, gif and jpg format
- options to set slideshow speed and number of loop.

Usage:
8/2=next/previous page
*=back to photo list

Command Menu in photo list screen:
1.Option
2.Slideshow
3.Language
4.About this midlet
5.exit

How to create java photo album?
- prepare photos that fit the screen size of your mobile phone.
- Download and unzip the midlet jar file into a dedicated folder.
- Name each photo as photo1.jpg, photo2.jpg, photo3.jpg and so on. For png or gif file, just replace the extension jpg with png or gif.
- Put all the text files into photos/jpg, photos/png and photos/gif in the dedicated folder, according to the file format.
- Change following parameters in the META-INF\MANIFEST.MF file:
1. MIDlet-Name:
2. Album_name:
3. Album_desc:
4. png_count:
5. gif_count:
6. jpg_count:
- Save the file and zip everything in the folder (not including the folder) and rename the extension from zip to jar.
- Install the jar file in your mobile phone.
- For Windows users, you can use Winzip or any other zip program to zip/unzip the file.
- for Mac users, use "stuffit expander" to unzip the jar file and use the archive function to zip the files.

Why use YuetPhoto v0.1?
- Everything is in one single jar file, makes it very easy to distribute your photo albums.
- It is compliant to MIDP 2.0, so it should work on any mobile phone with MIDP2.0 support.
- No special permission is required to run this midlet.

You can distribute your java photo albums using this midlet for noncommercial purpose. If you want to use this midlet for commercial purpose, contact me please.

Support/Feedback at this thread in inbrite.com.

Download YuetPhoto 0.1.0: [inbrite.com]

A sample photo album powered by YuetPhoto:
Keira Knightley: [inbrite.com]
Jessica Alba (by Shag_o_mac): [inbrite.com]

Sponsors links:

Wednesday, December 20, 2006

Yuet's Baby Book #1

Yuet's Baby Book #1
a mobile ebook for your kids
This is a simple mobile baby ebook, a J2ME midlet written by me. It demostrates what we can do with the J2ME Media package. It is tested on motorola E398 & V360. It should work on any phone with MIDP2.0 support. It has numbers (1-10), letters(A-Z), colors & shapes.

Quick guide: use left/right navigation keys to switch among numbers/letters/colors/shapes. use up/down navigation keys to navigate up/down. use Fire key to enable/disable automatic sounds for numbers & letters. use # key to play sounds for numbers & letters. you can also use keys 0-9. try it.

Download:
YuetBabyBook1.jar [filecloud]

Sponsors links:

Tuesday, August 01, 2006

YuetReader - mobile text reader

YuetReader v1.0
a mobile text reader
I wrote this mobile text reader for myself about a year ago. I am using it to read fictions on my V360 every day. It is the second most often used function of my V360. Now I think it is mature enough to release it for anyone who like it. This is a midlet for reading text files inside the jar file. Ideal for creating mobile ebook. It is tested on both motorola V360 and E398. It should work on any mobile phone which supports MIDP2.0, including cell phones by Nokia, Sony Erission, Samsung, etc.

Features at a glance:
- read any text in UTF-8 or ASCII format
- English & Chinese interface, switch language instantly. It is possible to add other language, if you would like to help.
- read text files stored in jar file
- automatically create chapter or book list
- automatically store last reading position
- full screen
- autoscrolling, bookmark, search, multiple background color, word-wrap or character-wrap

Usage:
5=next page
8/2=next/previous page
6/4=next/previous line
1/7=search up/down
3=toggle autoscroll on/off
9=add bookmark
*=back to book list
0=change background color
#=toggle word-wrap/char-wrap

Command Menu:
1.last page
2.first page
3.help
4.exit
5.autoscrolling setting
6.bookmark
7.go to
8.search
9.info

How to create ebook?
- Download and unzip the midlet jar file into a dedicated folder.
- Save each chapter of the book in UTF-8 or ASCII format.
- Name each chapter as textfile0.txt, textfile1.txt, textfile2.txt and so on.
- Put all the text files into the dedicated folder.
- You can change the Midlet name to your book name if you want. You do it by changing the value of "MIDlet-Name:" in the META-INF\MANIFEST.MF file.
- Zip everything in the folder (not including the folder) and rename the extension from zip to jar.
- Install the jar file in your mobile phone.
- For Windows users, you can use Winzip or any other zip program to zip/unzip the file.
- for Mac users, use "stuffit expander" to unzip the jar file and use the archive function to zip the files. Read [Mac tips] for detail.

Why use YuetReader v1.0?
- Text files are compressed in the jar file, so it saves space.
- Everything is in one single jar file, makes it very easy to distribute your ebooks.
- It is compliant to MIDP 2.0, so it should work on any mobile phone with MIDP2.0 support.
- No special permission is required to run this midlet.

V2.0 is in my plan, the major enhancement will be reading text in card or phone memory.

By downloading this file or re-posting any part of this article, you agree to the followings:
1. I am not responsible for any damage to your phone, so use it at your own risk.
2. You do not use this file to get profit.
3. You do not provide direct download of the file. Instead, you must link to this webpage for downloading file.


You can distribute your ebooks using this midlet for noncommercial purpose. If you want to use this midlet for commercial purpose, contact me please.

Download:
YuetReader 1.0: [inbrite.com]
Daniel's Readme.txt for YuetReader 1.0: [inbrite.com]

Sponsors links:

Tuesday, July 11, 2006

Obfuscate midlet jar files on Mac

How do I obfuscate my midlet jar files on Mac?
download proguard @ http://proguard.sourceforge.net/

install proguard and change the midlet.pro configuration file as follows:
# define library jars
-libraryjars /System/Library/Frameworks/JavaVM.framework/Versions/ CurrentJDK/Classes/classes.jar
-libraryjars /Developer/Java/mpp-sdk/midp.jar
-libraryjars /Developer/Java/mpp-sdk/cldc.jar
# do not use mixed case classnames
# -dontusemixedcaseclassnames

use the following shell script to obsuscate the jar file:

=============
#!/bin/sh
#Author: Yuet
mppdev="/Developer/Java/mpp-sdk"
proguard=${mppdev}/proguard/lib/proguard.jar
preverify=${mppdev}/osx/preverify/preverify
jarpath= "/System/Library/Frameworks/JavaVM.framework/Classes/classes.jar"
classpath="${jarpath}:${mppdev}/cldc.jar:${mppdev}/midp.jar"
infile=$1
outfile="out-$1"
arg3="@${mppdev}/proguard/mymidlets.pro"
java -jar $proguard -dontusemixedcaseclassnames -injars $infile -outjars $outfile $arg3

unzip $outfile -d "temp-$infile"
$preverify -classpath $classpath -d "temp-$infile" "temp-$infile"
cd "temp-$infile"
zip -r ../jarsObfuscated/$infile *
cd ..
rm $outfile
rm -rf "temp-$infile"
===================

Sponsors links:

Midlet development with Xcode

A short note for setting up J2ME Midlet development environment in Xcode
download the project template @ http://haikusoftware.com/midletdev/xcodetemplate.zip

uncompress it & put the "Ant-based MIDlet Jar" folder into
/Library/Application Support/Apple/Developer Tools/Project Templates/Java/

download mpowerplayer sdk @ http://mpowerplayer.com/

put the mpp-sdk folder into /Developer/Java/

set /Developer/Java/mpp-sdk/osx/peverify executable.

Sponsors links:

yuetblog.blogspot.com Web