Tag Archives: TIPS

Tips: Remove all comments from the java files in Eclipse IDE

1) Open the java file in which comments are to be removed. 2) Press Ctrl+F if you are using windows, Cmd+F in Mac OS. 3) Select Regular Expressions in the Find Menu. 4) Replace the below two expressions with empty string: i) (//[^\n]*) ii) (?s)/\*.*?\*/ 5) This action will remove all the comments -> Single… Read More »

296 total views, 4 views today

Android Validating Email EditText sample example methods tutorial

In this article we will see different methods to validate email address entered through EditText using android layout xml file. Email validation is useful in android because we need to send the email to server for registering a new account or for any other purpose. If we validate the email in the android app itself… Read More »

6,756 total views, 30 views today

Add/Remove items at RunTime in Spinner Android?[Solved]

Step 1: Add the following Code to activity_main.xml Step 2: Add the following code to mainActivity.java Step 3 : Now you can save and execute the Application. Your output will be like this : 1,641 total views, 5 views today

1,641 total views, 5 views today