일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 |
- 무선랜카드
- ajax
- DS718+
- FileSystemObject
- Injection
- jQuery
- lsusb
- readonly
- RTL88x2BU
- disabled
- include
- println
- ASP
- AC1300
- form
- javascript
- utf-8
- 커널
- euc-kr
- jquery 레이어
- PHP GCM
- SQL Injection
- replace
- XMLHTTP
- submit
- 시놀로지
- Getrows
- synology
- 크로스 컴파일
- 따라다니는 배너
- Today
- Total
목록Android (15)
아는 것이 좋은 것이다.
AndroidManifest.xml 에 추가 @Overridepublic void onBackPressed() { // 백버튼 이벤트 moveTaskToBack(true);finish();ActivityManager am = (ActivityManager) getSystemService(ACTIVITY_SERVICE);am.restartPackage(getPackageName());}
public void ProgressDialog(){ProgressDialog progress = ProgressDialog.show(this, null, "잠시만 기다려 주세요 ...", true); // progress.dismiss(); // 종료}
android:maxLength="10"android:singleLine="true" EditText에 위와 같이 코드를 추가하면 텍스트의 길이를 10으로 제한하고,SingleLine을 true로 설정하면 엔터가 되지않고 1줄로만 입력이 가능해집니다.
레이아웃 자바 코드 String[] arrayData = {"aaa", "BBB", "CCC"};ArrayAdapter arrAdapter = new ArrayAdapter(mContext,android.R.layout.simple_dropdown_item_1line, arrayData); autoEdit = (AutoCompleteTextView) findViewById(R.id.textview1); autoEdit.setAdapter(arrAdapter);
Log.i("분류할 변수", "로그 내용");
CharSequence[] items = { "aaaaaa", "bbbbbb", "cccccc" }; AlertDialog.Builder builder = new AlertDialog.Builder(mContext);// builder.setTitle("다이얼로그 타이틀");builder.setItems(items, new DialogInterface.OnClickListener() {public void onClick(DialogInterface dialog, int item) {Toast.makeText(this, items[item], Toast.LENGTH_LONG).show();}});AlertDialog alert = builder.create();alert.show();
intent = new Intent(this, FirstActivity.class);intent.putExtra("변수", "넘길값");startActivity(intent);
Intent intent;switch (position) {case 1: break;case 2: break;case 3:intent = new Intent(this, FirstActivity.class);startActivity(intent);break;case 4:intent = new Intent(this, SecondActivity.class);startActivity(intent);break;case 5:intent = new Intent(this, ThirdActivity.class);startActivity(intent);break;case 6: break;default:break;}
Log.i("check", Json.toString());
values -> themes.xml