본문 바로가기

전체 글683

Genymotion Plugin for Eclipse Genymotion Plugin for EclipseThe Genymotion plugin for Eclipse allows you to test your application developed with Eclipse IDE. It uses ADB to connect to any active virtual device and push your application. To use the plugin, you need to have the Android Developer Tools plugin for Eclipse installed. In this section, you will be able to install, use the plugin and run Android applications.Installi.. 2014. 12. 8.
this 2014. 12. 8.
세계의 건물들 2014. 12. 8.
onInterceptTouchEvent함수를 이용해 자식 뷰로 전달되는 이벤트를 가로채기 MainActivity.java에 코드시작package com.actionshin.touchevent; import android.app.Activity; import android.graphics.Color; import android.os.Bundle; import android.util.Log; import android.view.MotionEvent; import android.widget.FrameLayout; /** * Created by ilsuk on 14. 12. 7.. */ public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCrea.. 2014. 12. 8.
로그 남기기 Log 레벨은 심각한 정도에 따라 Verbose, Debug, Information, Warning, Error 등 총 5가지 함수로 구분된다. 사용 예 -v 다양한 정보를 출력하기 위한 용도 -d 문제 발생 시 원인 분석의 기반이 되는 정보를 출력하기 위한 용도 -i 각종 클래스 변수의 내용을 확인하기 위한 용도 -w 실행 중인 앱이 문제가 발생할 소지가 있음을 알리는 용도 -e 실행 중인 앱에 치명적인 에러가 발생했음을 알리는 용도 2014. 12. 8.
이미지가 결합된 정보는 약 89%가량 기억해 냄 2014. 12. 5.
MotionEvent 객체 함수명 설명 getAction 터치 이벤트의 액션값이 전달된다. ACTION_DOWN = 0 ACTION_UP = 1 ACTION_MOVE = 2 ACTION_CANCEL = 3 MainActivity.java의 코드 public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); } @Override public boolean dispatchTouchEvent(MotionEvent ev) { Log.d("shin","==============================="); Log.d("shin","dispa.. 2014. 12. 4.
액티비티 간 인텐트로 데이터 주고받기 2014. 11. 28.
클릭이벤트를 처리하는 3가지 방법 onClick 이벤트 처리 activity_a.xml ActivityA.java public class ActivityA extends Activity { private String mSendPicUrl = "/data/pics"; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_a); Button loadPicUrlBtn = (Button) findViewById(R.id.load_pic_url_btn); String loadUrlStr = "사진 불러오기 : " + mSendPicUrl; loadPicUrlBtn.s.. 2014. 11. 28.