Back to project page SNISI-droid.
The source code is released under:
Apache License
If you think the Android project SNISI-droid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/* * To change this template, choose Tools | Templates * and open the template in the editor./*from ww w. jav a2 s. c o m*/ */ package com.yeleman.snisidroid; import java.util.Vector; import java.util.GregorianCalendar; import java.util.Calendar; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.DatePicker; public class SharedChecks { public static boolean is_empty(EditText editText) { String text = editText.getText().toString().trim(); editText.setError(null); // length 0 means there is no text if (text.isEmpty()) { editText.setError("Champs requis"); return false; } return true; } }