URL 썸네일형 리스트형 Intent 를 이용하여 POST 방식의 주소에 파라메터를 함께 전달하는 방법 ACTION_VIEW 를 이용해서 프로그램에서 외부 웹브라우저를 이용하여 웹을 연동할 때 바로 POST 방식으로 파라메터를 던지는 경우 사용할 수 있는 방법이다. 땡규~ Ziteng Chen The Android Browser support 'viewing' javascript, for example the following code can launch the Browser app to show an alert dialog: String finalUrl = "javascript:alert('hello')"; Intent browserIntent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(finalUrl)); startActivity(brows.. 더보기 socket 통신에서 접속한 서버의 Address 알아보기 일반적으로 URL을 이용하여 접속을 시도하는데 이럴때 아이피번호를 알고 싶거나, 접속하고 있는 서버의 도메인을 알고 싶은 경우가 있다. 이럴 경우 정보를 얻는 방법은 다음과 같다. 대중적인(?) 다음넷을 연결해 보자. package org.dante2k.test.socket; import java.io.IOException; import java.net.Socket; public class SocketTest { public static void main(String[] args) { Socket socket = null; try { socket = new Socket("www.daum.net", 80); System.out.println("InetAddress:" + socket.getInetAddre.. 더보기 이전 1 다음