title: I have one query in android coding about button linking
body: <p>I am new to the android and I have to link four buttons to different social sites like facebook twitter youtube and instagram also shown below in the image <img src="https://i.stack.imgur.com/MITyl.jpg" alt="enter image description here"></p>
  
  <p>I have already created  buttons and I am linking all buttons to different xml files but I want to ask you friends that for linking xml files I am creating different activity like 
  socialactivityf.java for facebook
  socialactivityt.java for twitter
  socialactivityy.java for youtube etc.</p>
  
  <p>so I am thinking to create one socialactivity.java and link all the four button to different xml files is it possible </p>
  
  <p>If possible I have written the code for facebook and can I edit this code and send it to twitter from this file itself</p>
  
  <p>I have to add for twitter,youtube  in the same file or should I compulsory add another file.</p>