Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import android.os.Handler;
import android.text.Editable;

import android.widget.EditText;

public class Main {
    public static void locateCursur(final EditText text) {
        if (text == null) {
            return;
        }
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                Editable b = text.getText();
                text.setSelection(b.length());
            }
        }, 100);
    }
}