String finalUrl = "javascript:" + 

"var to = '"+Global.UrlAddress+"/friend_invite.php';" +

"var p = {userNo:'"+Global.user_data.userNo+"',macAddr:'"+Global.user_data.d_macAddr+"'};"+        

"var myForm = document.createElement('form');" +

"myForm.method='post' ;" +

"myForm.action = to;" +

"for (var k in p) {" +

"var myInput = document.createElement('input') ;" +

"myInput.setAttribute('type', 'text');" +

"myInput.setAttribute('name', k) ;" +

"myInput.setAttribute('value', p[k]);" +

"myForm.appendChild(myInput) ;" +

"}" +

"document.body.appendChild(myForm) ;" +

"myForm.submit() ;" +

"document.body.removeChild(myForm) ;";

Intent browserIntent = new Intent(android.content.Intent.ACTION_VIEW,

Uri.parse(finalUrl));

startActivity(browserIntent);

블로그 이미지

은호아빠

여행, 맛집, 일상, 프로그래밍, 개발자, 윈도우, 웹, jsp, spring, db, mysql, oracle, c#

,