How add Email Validation in Edittext in Android Application (Example Login Page)


          When we building login page in android, usually user must input two field : email and password, but sometimes user forgot input one of fields and application will show message to tell user "please  add email or password  "
         The question is how create function to validation email? i will tell you how to do that with simple way, easy and fast to learn.

First Step : 

               You create new project application and give name as ValidationEmail , and then you design login page in content_main.xml or in your xml file 
Code content_main.xml : 




and then change your activity_main.xml .
code for activity_main.xml :


 Second Step :
      
         You must create method for check edittext's length because we can't go to proccess login if edittext is empty and create validation email method, its will check email formulation.Remember, email must have a mandatory character such as @ and .com or co.id.i put all method in MainActivity.java.

Code for MainActivity.java


 
 in previous code line, there is getValidText() and  isValidEmailAddress() , each others have different function and action.
  • getValidText to check email and password field is empty or not
  • isValidEmailAddress to check email's characters.
Third Step :

    Running the project and try to add wrong email characters like i input email field "indah" and password "indah", then click button login. after that will show a toast message "email validation is wrong"



 Step is Finish().. very easy right? i hope the tutorial will make your development proccess  more fast.
Thank you and please give a comment


How To Create Animated Splash Screen to Your Android Application





        Hi welcome to http://codemissyou.blogspot.com , splash screen is one of the most important component in android application, although splash screen very simple thing but that will presenting the face of your application.
        Your splash screen will be more cool and great if you put some magic or animated,the design looks dynamic and no bored. so i will tell How To Create Animated Splash Screen to Your Android Application , very easy and only follow my step.. lets go

First Step :

     Design your splash screen in activity_splash_screen.xml

Add this code into activity_splash_screen.xml


 in previous code line, i am using imageview (@id = splash) and linear layout (@id = lin_lay)

Second Step :

Create folder and give name "anim" under values folder, add alpha.xml  and translate.xml into anim  folder :



Code for alpha.xml :

 Code for translate.xml :



 Third Step :

      Add code hex color into colors.xml like :




Fourth Step :

             Create file java and give name as SplashScreenActivity.java, and add some code for put logic and call the animated ,and then show layout splash screen.

Code SplashScreenActivity.java :


  in previous code line, if animation finish, SplashScreenActivity will be close and open new intent, MainActivity. this articles i am not adding  MainActivity  code  because thats very basic and i think you can create MainActiviy.
               You Also must declired SplashScreenActivity in manifest, like this :

Finish ! :)

          I hope my articles will help and you can write comment and send message to indahrahma0909@gmail.com for any trouble when you implementation  all the code .
         If you want to the source, please contact me or asking by email. i will give you free...so calm down..  

How to Sharing Content To Media Social with Intent in Android

    



           Almost android application have sharing content function for share information application to media social, why this module very popular? because you need many users to join on your application, you don't use all your power and capability for that. your users will automatically invites his friend to join.
           there are many ways for create sharing content.first way,you can use all media social sdk like google+, facebook and others , but thats taking long time and you must create  key hash, registration your app to all media social  and put different code .
        Second way, import other a media social's library to your application, but you will increase the file size of the built. the minimum standard size of media social's library from example github is 3 until 5 mb, so big right .
         Third way , using intent for open all social media installed in your device. if you only need simple sharing, this is The fastest way and takes 1 hours for making your module. so  will give tutorial for create sharing function using intent in android, please follow my step

First Step : Create new project and put "shareintent" as project's name 

  
and then you click button next and follow the procces until your project succesfull to created.

Second Step : Create Design layout in content_main.xm like this image or you can use all your creativity for make it. 



Add this code into content_main.xml  : 



Third Step : Put the code in MainActivity.java for add action to yout button, then the subject and the message will post to your media social.


Fourth Step : Running your project on your device or emulator.
       
        When you was running your project, dont forget to input subject and message that you want share like this :

After that, click red button and  will show the intent chooser


        I tried to pick my email to share content to friends. subject and the message that I have written, will be moved in the email box in your gmail. please look image below :



             
             Easy enough right? you dont need spend many time for create that and make your apps more fast finish. Thank you for read , please share this articles and add your comment