Pages

Monday, September 3, 2012

Modify Java Application for Pre Embedded background Image


                               
Here I will give a tutorial on how to add a transparent background image to j2me applications like opera mini, uc browser and similar applications. There is already application for transparent background embedding, but for this we have to choose image from memory card. so each time the modded application starts, we have to choose allow reading data etc.
By this tutorial, you will be able to mod applications with built in background image, so the application will not ask for permission for reading the background image file. The best part is that you don't need any computer to do it, all the work is done in a simple j2me mobile phone only.

The tutorial is dividing into two parts- Modding the desired image to fit exactly your screen size and modding the actual application.

TOOLS REQUIRED:

1) Mini Commander (Download)
2) Paintcad (Download)
3) Transparent background Embedder (Download)

PART I: CREATING DESIRED SIZE IMAGE

1) Download any of your desired image that you want to use as your background. Take care that the image is not too big in size. 20kB-30Kb images are good for this. I have selected this image for background.


2) Now you have to open paintcad and choose the canvas size greater than or equal to the size of original    downloaded image. Set the size of canvas to 500x500 from following procedure. if your phone is having trouble in forming 500x500 size, you can decrease it. But take care the size is larger than the size of selected image file. Follow this procedure to select canvas size:
 Open paintcad -> select 8bpp picture-> Custom size->height=500; width=500 and press OK
If your phone can handle this size image, it will be opened.


3) Now we will change the size of this image according to our phone’s screen size. To do this, follow this sequence:
Once image is loaded, press right joystick key, a menu will open-> click on raster size-> press “screen” button to automatically fit the image according to screen; or manually give the size of you screen. After this, press OK.


4) The image’s size will now according to phones screen size. Its size will be given at bottom. Now press 0, a menu will open, press save. Save this newly resized image file as per your choice. But remember this name. I save this file as back.png. After saving, again press 0 and exit paintcad. The first part finishes here!

PART II: MODDING APPLICATION:
1  1)      (I am using opera mini 7 here)Rename your application’s jar file to zip if needed. Open transparent background embedder. Press left soft button-> a menu will open-> click on the second option. (It’s for settings).

1    2)      Setting window will now open. In the first box, there is setting for the path of image file to be loaded. It will be like file:///E:/image.jpg. Delete this whole string, enter new path as /back.png


      

        Means, only a forward slash and the name of image file which you have created . Recall, I have set the name of image file as back.png, that’s why I had given this name. You must use the name which you have given. But the forward slash is a must. You can also select the transparency level. After doing this, press “Simpan”, it is to save the settings.
    3)    After adjusting the file path, browse to the location where you have the application to be mod. Click on the applications zip or jar file and the modding will start. Wait till the process finishes. 
    4)   When process ends, exit the embedder, go to your storage location. A new folder with name “by Elang”  will be created, open it. You will see your modified application there. Now just one more thing is to be done.
    5)   If the modded application is in jar format, again rename it to zip. Open minicommander now. Insert the image back.png into the modded application using it. If you don’t know how to insert it, do this:
   In one panel, open the location where you have saved you background image file (back.png in my case). In other panel, open the zip file in which the image file needs to be inserted.Place the cursor/ highlighter/ selector over the file that needs to be inserted. Once this adjustment is done, simply press key 5. It will ask to set the compression. Most phones support 5 or 6. Set it and press Ok. Now your file will be inserted in the archive.  I have shown this in screenshot.


Now your application is completely modded and ready to use.

Rename the application back to jar. Install it, it will have the background image as selected, but it will not ask for any permission to read the image file. Here is the screenshot of how this splash looks in opera mini 7.



      





3 comments:

  1. Nice Tutorial and good idea as well. I had never thought of it. Thanks for sharing bro.

    ReplyDelete
    Replies
    1. Thanx bro !
      it accidently struck my mind when I was changing the splash only, to mod a completely pre- embedded Image. You can also choose the image having just colored title bar and menu bar, and then it will act as the skin for opera.

      Delete
  2. thanks, very good tutorial and especially well explained!

    ReplyDelete