package kr.priv.android_gcm; import android.app.Activity; import android.os.Bundle; import android.util.Log; import com.google.android.gcm.GCMRegistrar; public class AT_main extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); registGCM(); } private void registGCM() { GCMRegistrar.checkDevice(this); GCMR..
Notification notification = new Notification(R.drawable.ic_launcher, getText(R.string.app_name), System.currentTimeMillis()); Intent notificationIntent = new Intent(this, AT_main.class); PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0); notification.setLatestEventInfo(this, "test", "test2", pendingIntent); startForeground(12345, notification);
package kr.priv.logManagement; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; public class AT_main extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.layout_main); } @Override public boolean onCreateOptionsMenu(Menu..
private void getPreferences() { SharedPreferences pref = getSharedPreferences("pref", MODE_PRIVATE); String a = pref.getString("key1", ""); Toast.makeText(this, a, 0).show(); } // 값 저장하기 private void savePreferences() { SharedPreferences pref = getSharedPreferences("pref", MODE_PRIVATE); SharedPreferences.Editor editor = pref.edit(); editor.putString("key1", "data"); editor.commit(); } // 값(Key ..
- Total
- Today
- Yesterday
- setDoInput
- 젠킨스
- 링크드리스트
- 443
- array
- 개발 설정
- Independentsoft
- 스머핑
- Windows 서비스 등록
- 빌드 세팅
- springboot
- java
- Queue
- LinkedList
- elasticsearch
- 그라파나
- call back
- docker
- PoolingHttpClientConnectionManager
- 정렬
- Stack
- insertion
- 선 없이
- sort
- 과거 버전 사용
- 암호
- Gradle
- react-native
- 안드로이드
- code push
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |