Android examples for Activity:Activity Status
is Activity Enabled
//package com.java2s; import android.app.Activity; import android.view.View; public class Main { public static boolean isEnabled(final Activity activity, int id) { return activity.findViewById(id).isEnabled(); }//from ww w .ja v a 2s . c o m public static boolean isEnabled(final View view, int id) { return view.findViewById(id).isEnabled(); } }