일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- 쓰레드
- Looper
- HTML
- 네트워크보안
- 자바
- rainbow
- 인텐트
- 바닐라루시
- Linux
- 레인보우
- 브로드케스트 리시버
- opengl
- Eclipse
- 영어
- 배다해
- 뮤직비디오
- error
- Java
- 네트워크
- xml
- Android
- 걸스데이
- 이클립스
- 토익
- TOEIC
- 엑티비티
- 안드로이드
- 서비스
- Intent
- opencv
- Today
- Total
목록전체 글 (72)
W.A 저장소
Manifest에broadcast receiver등록하기 코드로broadcast receiver등록하기 IntentFilterfilter = new IntentFilter(NEW_LIFEFORM_DETECTED); LifeformDetectedBroadcastReceiverr = new LifeformDetectedBroadcastReceiver(); registerReceiver(r, filter); 위 두가지의 다른점은 꼭 필요한 시점에서 사용할 때를 위해서 그런것이다. 이런것은 밑의 코드에서처럼 사용해야되고 위의 메니페스트에서 등록하는 리시버는 꼭 항상 시작해야되는것등이있다. 제거 unregisterReceiver(r);
비활성 엑티비티보다 높은 우선순위를 가짐 서비스가 종료되어도 리소스가 충분해지면 즉시 재시작 Activity, Broadcast receiver와 같이 어플리케이션 프로세스의 메인 쓰레드 내에서 실행. 백그라운드 작업 수행 IPC(Inter-Process Communication)를 위한 원격접속 가능한 오브젝트를 만들어내는 것 서비스 라이프사이클(두가지 용도) 시작(startService()) -> onCreate -> onStart -> run -> onDestroy 시작(bindService()) -> onCreate -> onBind -> run -> onUnbind -> onDestroy onRebind 서비스 등록 암시적 startService(new Intent(MyService.MY_ACT..
우선 왜 특수문자를 Html Entity로 바꿔서 사용하는지 알아보고 넘어가도록 하자. 모든 일에 대해서는 그 결과가 나오기까지 분명 이유가 있을것이다. 괜히 만들어 놓지는 않았을것 아닌가. 위의 Html Entity도 이유가 있다. 그 이유는. 대표적으로 꺽쇠기호( )와 같은 경우는 Entity로 처리 하지 않는다면은 HTML 태그의 시작이나 끝으로 인식할 수 있다. 따옴표( " " )와 같은 경우는 HTML 속성의 값이 시작되거나 끝난 것으로 인식할 수 있다. &과 같은 경우는 Entity기호의 시작으로 오인될 수 있다. 위와 같은 이유로 인하여 Html entity가 생겨난 것이다. Character Entity Name Description " " quotation mark & & ampe..
아 요즘 완전 대박으로 맨날 듣고 있다. 왜 이렇게 난 이런류의 노래가 좋을까. 너무 좋다. 이선희 목소리도 좋고. 최고다. http://www.soribada.com/#/Music/Album/?TID=KO0003502
// 데이터베이스 인스턴스를 보관하기 위한 변수 private SQLiteDatabase db; //이 데이터베이스를 이용하는 애플리케이션의 컨텍스트 private final Context context; //데이터베이스 개방/업그레이드 도우미 private MyDbHelper dbHelper; public MyDBAdapter(Context _context) { context = _context; dbHelper = new MyDbHelper(context, DATABASE_NAME, null, DATABASE_VERSION);
간단하게 말하면은 Activity간의 배달역활을 해줄수 있는 그 무엇?? startActivity(myIntent) intent(MyActivity.this, myOtherActivity.class) startActivityForResult 명시적 intent = new intent(this, MyOtherActivity.class) startActivityForResult(intent, SHOW_SUBACTIVITY); 암시적 Uri uri = uri.parse("content://contacts/people"); intent = new Intent(Intent.ACTION_PICK, uri); startActivityForResult(intent, PICK_CONTACT_SUBCTIVITY); 비동기..
Inflater AlertDialog.Builder builder; AlertDialog alertDialog; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); LayoutInflater inflater = (LayoutInflater)this .getSystemService(LAYOUT_INFLATER_SERVICE); View layout = inflater.inflate(R.layout.custum_dialog, (ViewGroup)findViewById(R.id.layout_root)); TextView text = (T..
우선 소스이다. package com.karyu.threadadialogtest; import android.app.Activity; import android.app.Dialog; import android.app.ProgressDialog; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class ThreadDialogTestActivity extends Activity { /..