Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.os.Handler;

import android.os.Looper;

public class Main {
    /**
     * Get the Main Thread looper
     * @return {@link Handler}
     */
    public static Handler getMainHandler() {
        Handler handler = new Handler(Looper.getMainLooper());
        return handler;
    }
}