Mobile(143)
-
[안드로이드,Android]WebView,웹뷰
package com.example.ggari_webview; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; import android.widget.EditText; public class MainActivity extends Activity { WebView webview; @Override protected void onCreate(Bundle sa..
2013.02.05 -
[안드로이드]프로그레스바,ProgressBar
package com.example.ggari_progressbar; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.ProgressBar; public class MainActivity extends Activity { ProgressBar progressbar; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); prog..
2013.01.30 -
[안드로이드,Android]키보드 보이기, 숨기기
package com.example.ggari_keyboard; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.view.inputmethod.InputMethodManager; import android.widget.Button; import android.widget.EditText; public class MainActivity extends Activity { InputMethodManager Imm; Button btnShow; Button btnHide; EditText et01; public vo..
2013.01.28 -
[안드로이드,Android]로그,LOG
이클립스 안에서 Window -> Show View -> Other -> Log Cat 선택합니다~ 그럼 아래와같이 로그캣 화면을 볼수 있습니다. package com.example.testlog; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class MainActivity extends Activity { private String TAG = "로그테스트"; Button btn1; Button btn2; @Overrid..
2013.01.25 -
[안드로이드,Android]메뉴 옵션
package com.example.ggari_optionmenu; import android.app.Activity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.SubMenu; import android.widget.TextView; import android.widget.Toast; public class MainActivity extends Activity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(t..
2013.01.24 -
[안드로이드,Android]타이머 Timer
MainActivitypackage com.example.ggari_timer; import android.app.Activity; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.widget.TextView; public class MainActivity extends Activity { int val=0; TextView tv01; Handler handler; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.acti..
2013.01.23