Showing posts with label android. Show all posts
Showing posts with label android. Show all posts

Monday, 7 September 2015

How to downgrade your Xperia T2 Ultra Lolipop to Android Kitkat

I was facing very bad experience in using my Sony Xperia T2 ultra phone after i upgraded it to Lolipop version.

The phone was pathetically working slow. I wanted to go back to factory version of this.

If you wish to do the same, here are the below steps and then a you tube video from external source to show how these steps can be followed.

1. Download Flashtool from
https://drive.google.com/file/d/0B1AAC4lt7nzOQzR3aTZKUFZqem8/view?usp=sharing

2. Download Kitkat 4.4.3 from
https://drive.google.com/file/d/0B1oU02TyhZkAVTBvUU9MamRQZzg/edit

3. Copy above downloaded kitkat 4.4.3 file to C:\users\<username>\.flashtools\firmwares

4. Start Flash Tool.

5. Wait for any pending things to be completed in flash tool.

6. Click on left most button (which looks like zigzag spike). This will start the flash mode.

7. Now select the file which would be the one we just copied to flashtool directory.

8. Start the flashing. Wait for some time. Follow the onscreen instructions. When asked to press the back button, press the volume down key.

9. Wait for flashing to complete.

10. Disconnect and restart the phone.

Below is the youtube video to explain the above process


    Sunday, 5 October 2014

    How to show Alert Dialog in Android applications?


    How to Show Alert Dialog in Android


    1
    Import the AlertDialog class to your Android application.

    import android.app.AlertDialog;


    2
    Set up the AlertDialog class to the body of your application like this. Set some properties for the AlertDialog object.

    AlertDialog alertDialog = new AlertDialog.Builder(this).create();
    alertDialog.setTitle("Reset...");
    alertDialog.setMessage("Are you sure?");
    alertDialog.setButton("OK", new DialogInterface.OnClickListener() {
    public void onClick(DialogInterface dialog, int which) {
    // here you can add functions
    }
    });
    alertDialog.setIcon(R.drawable.icon);
    alertDialog.show();


    3
    Save your application and run. You will get the image as below.