Tag Archives: TIPS

Android Profile Activity Layout Sample Example Tutorial

  In this tutorial we will simply create a layout file for showing profile information of a user or contact in your android application. This layout can be used in any activity or fragment. We will created a profile imageview in a circular shape or image cropped in rounded shape using a library which we… Read More »

34,709 total views, 41 views today

Encrypt String in PHP and Decrypt in JAVA Sample Example Tutorial

In this tutorial, We will learn about how to encrypt a string data using RSA algorithm through PHP and decrypt the same using Java project. We need phpseclib library for encrypting the data. This can be downloaded from : https://github.com/phpseclib/phpseclib/tree/master/phpseclib Now lets create php scripts to encrypt a simple string “Hello World!”. We need two… Read More »

13,983 total views, 32 views today

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 »

15,776 total views, 19 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 »

56,128 total views, 11 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 : 6,320 total views, 3 views today

6,320 total views, 3 views today