Minggu, 04 Juli 2010

Custom ROM For Galaxy Mini Chocobread v2.2

Hello every body .. now i want share tutorial custom rom for galaxy mini, it is my first custom rom in share about tutorial for android. And this time i share Chocobread mini v2.2 for galaxy that have actually been released long enough, yesterday I've managed to test by myself. made by the team chocodev one of them is my friend named Nizar and one college with me. Hopefully when when he wants to share his knowledge on how to create your own custom rom. you can just see how it looks below
galaxy mini custom rom

custom rom for galaxy mini

custom rom for galaxy mini

tutorial custom rom for galaxy mini

mini custom rom

android custom rom

tutorial custom rom


Chocobread is a custom rom for galaxy mini from the stock rom 2.3.x (Gingerbread), with many changes of customization, additional features and performance. Everyone can use, modify, and create your own rom using the kernel and the base of this rom

Advantages of chocobread custom rom:

  • There is abl Indonesian language in the search for a lot of people (in my country) haha: p
  • include a2sdGUI
    kernel-806mhz
  • Smooth and efficient batrenya
  • Based gingerbread 2.3.6
  • -New kernel 2.6.35.14 (21 Governor + 7 i/o scheduler, SFB, cgroups, support EXT,SWAP,FAT filesystem, Fix battery drain, Default SmartassV2 & SIO, TUN & CIFS compiled, Overclock up to 844mhz, UV (on progress)).
  • Toucwiz30Launcher with 5 dock, 5x3 app drawer, list mode, and enable landscape mode.
  • Scrolling cache and volume step.
  • 14 Statusbar toogle and battery bar.
  • Chocobread Parts.
  • Elegance Style Theme.
  • Old market.
  • Gapps updated (without maps and market).
  • Fix RTL and Multyread Fonts.
  • 9 Lockscreen (Settings->Display->Unlock screen).
  • 100% deodexed files.
  • Reboot, Recovery and Screenshot shortcut on Power Menu.
  • Adhoc wifi.
  • Data Monitor (Settings -> Wireless and networks -> Data monitor).
  • Pre-Rooted.
  • App2sd darktremor.
  • New apps : Droidvpn, Cifs Manager, RealCalc, File Manager, No-frills CPU, Superuser, Walkman, 2SDGUI, and Terminal.


how to install chocobread custom rom:
-base: 2.3.4
-must have installed clockworkmod recovery, see tutorial install clockworkmod recovery

-install a custom rom file through recovery mode, do not forget to wipe and cache the data well after finished install chocobread then wipe data and cache again
-if already completed select reboot system now

note:
-if there are problems please wipe the data n the new cache cr reinstall it.
-to activate the partition a2sdGUI please dlu micro sd mini galaxy, I recommend using ext2, create swap with size 50mb linux just do not need much

ok that for tutorial change custom rom galaxy mini to chocobread.. see you in next tutorial for android.

Sabtu, 26 Juni 2010

Sample Handler Implementation

Handler is a verry useful and powerful component in Android. Some special features of Handler are,

     If handler is created without any parameter, then it will be created in the same thread itself.
     We can pass data to handler using message

I have created the below sample application, which is using handler efficiently. Increment the count for one second.

So if we need to create a seperate thread for handler, first we need to create a thread and create the handler inside it.

MainActivity
public class MainActivity extends Activity {
    TextView tv;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        tv = (TextView) findViewById(R.id.TextView01);
        new Thread() {
            public void run() {
                int i = 0;
                while (i <= 100) {
                    try {
                        sleep(1000);
                    } catch (InterruptedException e) {
                        // TODO Auto-generated catch block
                        e.printStackTrace();
                    }
                    messageHandler.sendMessage(Message
                            .obtain(messageHandler, i));
                    i++;
                }
            }
        }.start();
    }
    private Handler messageHandler = new Handler() {
        public void handleMessage(Message msg) {
            tv.setText(msg.what + "");
        }
    };
}


Main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical" android:layout_width="fill_parent"
    android:layout_height="fill_parent">
<TextView android:text="@+id/TextView01" android:id="@+id/TextView01"
    android:layout_width="wrap_content" android:layout_height="wrap_content"
    android:textSize="25dip" android:layout_gravity="center"
    android:layout_marginTop="150dip"></TextView>
</LinearLayout>



Selasa, 08 Juni 2010

Sample Rating Bar Implementation

A RatingBar is an extension of SeekBar and ProgressBar that shows a rating in stars.

The user can touch/drag or use arrow keys to set the rating when using the default size RatingBar.

The smaller RatingBar style and
the larger indicator-only style do not support user interaction and should only be used as indicators.


larger indicator-only    -    style="?android:attr/ratingBarStyleIndicator"
smaller RatingBar     -    style="?android:attr/ratingBarStyleSmall"
Default            -    style="?android:attr/ratingBarStyle"