¾ÛÅøÁî
46.¢½.168.138
46.¢½.168.129
46.¢½.168.161
46.¢½.168.136
46.¢½.168.145
46.¢½.168.162
46.¢½.168.144
46.¢½.168.140
115.¢½.135.198
46.¢½.168.139
 
°Ô½Ã¹° 17°Ç
   
¾Èµå·ÎÀ̵å À¥ºä (WebView)
±Û¾´ÀÌ : ÀÌ°æ¿ë                   ³¯Â¥ : 2012-01-10 (È­) 20:50 Á¶È¸ : 14775
·¹À̾ƿô Àüü¸¦ À¥ºä·Î Àû¿ëÇÏ´Â ÃÊ°£´Ü À¥ºä ÀÔ´Ï´Ù.
°£´ÜÇÏ°Ô À¥¾Û ¸¸µé¶§ »ç¿ë °¡´ÉÇÕ´Ï´Ù.
Á¦°¡ ¼Ò¼ÓµÈ Á¦Àϳ²±³È¸ ¸ð¹ÙÀÏÀ¥¿ë ¾ÛÀ» ¸¸µå´Âµ¥ Àû¿ëÇÑ ¼Ò½º¸¦ ±âÁØÀ¸·Î ¼³¸íÇÏ°Ú½À´Ï´Ù.
¿ïÆ®¶ó±Þ Ãʺ¸ Áö½ÄÀ̹ǷΠ°í¼ö´Â ¿ö~ÀÌ ¿ö~ÀÌ ¤»¤»
³»¿ëÀº Áö¼ÓÀûÀ¸·Î ±â´É Ãß°¡·Î ¼öÁ¤ÇØ ³ª°¥ °Ì´Ï´Ù.
 
1. ÆÛ¹Ì¼Ç Ãß°¡
AndroidManifest.xml ¿¡
<uses-permission android:name="android.permission.INTERNET"/>
Ãß°¡
 
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="net.apptools.jinch"
    android:versionCode="2"
    android:versionName="1.1" >
    <uses-sdk android:minSdkVersion="7" />
    <uses-permission android:name="android.permission.INTERNET"/>
    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <activity
            android:label="@string/app_name"
            android:name=".JinchActivity"
            android:theme="@android:style/Theme.NoTitleBar"
            android:screenOrientation="portrait">
            <intent-filter >
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
</manifest>
 
2. ·¹À̾ƿô XML
/res/layout/main.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
  <WebView android:id="@+id/webView"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      />
</LinearLayout>
3. ¼Ò½ºÄÚµù
/src/net.apptools.webview/MainActivity.java
package net.apptools.jinch;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.util.Log;
import android.view.KeyEvent;
import android.webkit.WebView;
import android.webkit.WebViewClient;
public class JinchActivity extends Activity {
    private WebView wv;
    @Override
    public void onCreate(Bundle savedInstanceState){     
     super.onCreate(savedInstanceState);
     setContentView(R.layout.main);
     
     //À¥ºä ÀνºÅϽº »ý¼º
     wv = (WebView)findViewById(R.id.webView);
     
     //½ºÅ©·Ñ ¾ø¾Ö±â Ãß°¡
     wv.setVerticalScrollBarEnabled(false);
     wv.setHorizontalScrollBarEnabled(false); 
     
     //ÀÚ¹Ù½ºÅ©¸³Æ® °¡´ÉÇÏ°Ô
     wv.getSettings().setJavascriptEnabled(true);
        
     //Ç÷¯±×ÀÎ °¡´ÉÇÏ°Ô (Ç÷¡½Ã µ¿¿µ»ó µî)
     wv.getSettings().setPluginsEnabled(true);

     //ȨÆäÀÌÁö ºÒ·¯¿À±â
     wv.loadUrl("http://www.jinch.co.kr/plugin/mobile/"); 
     
     wv.setWebViewClient(new WebViewClient() {
      public boolean shouldOverrideUrlLoading(WebView view, String url)
      {
       view.loadUrl(url);
       return true;
      }
     });
    }
     
 @Override
 //¹é¹öÆ° Ŭ¸¯½Ã µÚ·Î°¡±â Ãß°¡ µÚ·Î°¡±â ´õÀÌ»ó ¾øÀ¸¸é Á¾·á
 public boolean onKeyDown(int keyCode, KeyEvent event) {
  if((keyCode==KeyEvent.KEYCODE_BACK)&&wv.canGoBack()) {
   wv.goBack();
   return true;
  }
  return super.onKeyDown(keyCode, event);
 }
 
 @Override
 //Á¾·á󸮽à Á¾·á ÇÒÁö ¹°¾îº¸±â Ãß°¡
 public void onBackPressed()
 {
  new AlertDialog.Builder(this)
  .setTitle("Á¾·á")
  .setMessage("Á¾·á ÇϽðڽÀ´Ï±î?")
  .setNegativeButton("¾Æ´Ï¿ä", null)
  .setPositiveButton("¿¹",new DialogInterface.OnClickListener()
  {
   public void onClick(DialogInterface dialog,int whichButton)
   {
    finish();
   }
  }).show();
  }
}


4. ¾Û ¸íĪ º¯°æ

/res/values/string.xml ¿¡¼­
<string name="app_name">Á¦Àϳ²±³È¸</string>
app_name ºÎºÐ ¼öÁ¤!
 

´ÙÀ½¹ø¼öÁ¤¿£ ¾Û ¾ÆÀÌÄÜÃß°¡ keystore Àû¿ë ¹× ¸¶ÄÏ µî·Ï±îÁöµµ ¿Ã¸±²²¿ä! ^^

* ÇØ´ç °Ô½Ã±ÛÀº Áö¼ÓÀûÀ¸·Î ¼öÁ¤µË´Ï´Ù.





 
¾ÈÇü±Õ 2012-01-11 (¼ö) 16:58
¿À¿Ê...°¨»ç!
 
ÀÌ°æ¿ë 2012-01-11 (¼ö) 18:49
À§ ¼Ò½º¿¡ ŸÀÌƲ¹Ù Á¦°Å Ãß°¡ µÇ¾ú½À´Ï´Ù.
http://www.androidstudy.co.kr/bbs/board.php?bo_table=B31&wr_id=47
ÂüÁ¶!
 
ÀÌ°æ¿ë 2012-01-11 (¼ö) 22:01
¾ÆÁ÷ ó¸®ÇÒ°Ô ¸¹ÀÌ ³²¾Ò¾î¿ä.
ÀÚ¹Ù½ºÅ©¸³Æ®, ÄíÅ° µî¿¡ ´ëÇؼ­µµ µ¿ÀÛ µÇµµ·Ï Ãß°¡ÇؾßÇÔ ^^
 
ÀÌ°æ¿ë 2012-01-12 (¸ñ) 17:54
À¥ºä¿¡¼­ ÀÚ¹Ù½ºÅ©¸³Æ® µ¿ÀÛ µÇµµ·Ï Ãß°¡
wv.getSettings().setJavascriptEnabled(true);

³×À̹ö ¹× À¯Æ©ºê¿Í °°Àº Ç÷¡½Ã µ¿¿µ»ó µ¿ÀÛ µÇ±â À§ÇÑ Ç÷¯±×ÀÎ Ãß°¡
wv.getSettings().setPluginsEnabled(true);

À¥ºä·Î ±¸±Û Å©·Ò? ÀÎÅͳݰú µ¿ÀÏÇÑ ±â´ÉÀ» ¿Ïº®È÷ ±¸ÇöÇÒ·Á¸é À§Ã³·³ ¸·¾Æ µÐ°ÍµéÁß ÇÊ¿äÇѰ͵éÀ» Çϳª¾¿ È°¼ºÈ­ ½ÃÄÑ ÁÖ¼Å¾ß ÇÕ´Ï´Ù.
 
ÀÌ°æ¿ë 2012-01-12 (¸ñ) 18:55
ÀÚµ¿ ȸÀüÀ¸·Î ÀÎÇØ Ã¹ ÆäÀÌÁö·Î À̵¿µÇ´Â °ÍÀ» ¸·±â À§ÇØ ÀÏ´Ü È¸Àü ±â´É Àá±Ýó¸®
AndroidManifest.xml ÀÇ activityd ¿¡
android:screenOrientation="portrait" Ãß°¡
   

°Ô½Ã¹° 17°Ç
¹øÈ£ Á¦¸ñ ±Û¾´ÀÌ ³¯Â¥ Á¶È¸
17  ¾Èµå·ÎÀ̵å ÆùÀÇ ±âº» Ä«¸Þ¶ó ¾ÛÀ» ÀÌ¿ëÇÑ »çÁø ÃÔ¿µ (Intent) ÀÌ°æ¿ë 06-09 4350
16  °³¹ßÀÚ ÄܼÖÀÇ ÄÜÅÙÃ÷ µî±Þ¿¡¼­ ÀüüÀÌ¿ë°¡ ¼±Åà ¾ÈµÇ´Â °æ¿ì ÀÌ°æ¿ë 07-23 3508
15  ¾Èµå·ÎÀ̵å 4 4 ŶĹ ¹öÀüÀÌ °³¹ßÀÚ¿¡°Ô ÁÖ´Â ¸Þ½ÃÁö ÁÖÈ£¼º 12-25 4653
14  ¸ð¹ÙÀÏ »çÆĸ®¿¡¼­ ½ºÅ©·Ñ ±¸Çö°ú °ü·ÃµÈ ¹®Á¦ ÇѼ­°æ 12-25 3790
13  ¾Èµå·ÎÀ̵å À¥ºä¸¦ ÅëÇØ ¿ÜºÎ¾îÇ÷Π°øÀ¯Çϱâ Ä«Ä«¿ÀÅå °øÀ¯ ÃÖµ¿ÈÆ 12-25 4902
12  Activity µ¥ÀÌÅÍ °ª ³Ñ±â±â ÀÌ°æ¿ë 09-27 3185
11  ¾Û°³¹ß±âȹ¼­ +13 ÀÌ°æ¿ë 07-02 5142
10  ÀÌŬ¸³½º ÆùÆ® ¼öÁ¤Çϱâ ÀÌ°æ¿ë 06-06 4633
9  ¹é¹öÆ° Ŭ¸¯À¸·Î Á¾·á½Ã ¹°¾îº¸±â Ãß±â +2 ÀÌ°æ¿ë 01-11 5257
8  ¾Èµå·ÎÀ̵å activity ŸÀÌƲ¹Ù Á¦°ÅÇϱâ ÀÌ°æ¿ë 01-11 4914
7  ¾Èµå·ÎÀ̵å À¥ºä (WebView) +5 ÀÌ°æ¿ë 01-10 14776
6  AVD¿¡ apk ÆÄÀÏ ¼³Ä¡Çϱâ +2 ÀÌ°æ¿ë 05-30 5331
5  ¸ÆºÏ¿¡¼­ ¾Èµå·ÎÀÌµå ¼³Á¤ (ÃÊ°£´Ü ¸®½ºÆ®) +2 ÀÌ°æ¿ë 04-13 4423
4  02.¾Èµå·ÎÀ̵å À̺¥Æ® ó¸® ÀÌÇØÇϱâ +6 ÀÌ°æ¿ë 10-28 4748
3  01.¾Èµå·ÎÀ̵å ȯ°æ ¼³Ä¡ (³ª¸¸ ¾Ë¾Æº¸´Â ¸Þ´º¾ó ^^) +12 ÀÌ°æ¿ë 10-26 5050
2  ¾Èµå·ÎÀÌµå °³¹ßÀÇ ½ÃÀÛ ÀÌŬ¸³½º ¼³Ä¡ ¹× ¾Èµå·ÎÀ̵å SDK ¿¬µ¿ °úÁ¤ ¼³¸í +10 ÀÌ°æ¿ë 10-04 5055
1  ¾Èµå·ÎÀÌµå °³¹ßÀÇ ½ÃÀÛ Android SDK ¼³Ä¡ °úÁ¤ ¼³¸í +8 ÀÌ°æ¿ë 10-04 8056
 
 
 
Copyright ¨Ï wwwold.androidstudy.co.kr. All rights reserved.