How to create facebook share button using pop up window



Learn to create android browser app in android studio.It uses webview widget. You can use this widget in any app to make it connected with internet.


Top 10 windows key shortcuts - become pro with that shortcuts




MyPage.html

 <!Doctype html>  
 <html>  
 <head>  
 <title>Share on facebook</title>  
 <style>  
 img{  
 cursor: pointer;   
 }  
 </style>  
 <script>  
 function openWindow()  
 {  
 window.open("https://www.facebook.com/dialog/share?app_id=87741124305&href=https%3A//www.youtube.com/attribution_link%3Fa%  
 3DhCh342iJVIY%26u%3D%252Fwatch%253Fv%253DlK7kH2by7AU%2526feature%  
 253Dshare&display=popup&redirect_uri=https://www.youtube.com/facebook_redirect",  
 "Share on facebook",'width=700,height=620');  
 }  
 </script>  
 </head>  
 <body>  
 <h1>How to create browser app in android studio</h1>  
 <iframe width="560" height="315" src="https://www.youtube.com/embed/lK7kH2by7AU"   
 frameborder="0" allowfullscreen></iframe>  
 <br/>  
 <img src="fb.png" height="50px" width="50px" onclick="openWindow()" style="cursor:pointer;"/>  
 <p>Click to share on facebook</p>  
 </body>  
 </html>  

Comments

Popular posts from this blog

File handling

Getting started with android app development

How to create android Text To Speech app