반응형 Android2 안드로이드 app 실행시에 notification과 실행중 리스트에 보여주기 안드로이드 app을 실행할때 notification에서 실행 icon을 보여주고 실행중 리스트에 해당app의 상태와 text를 보여주는 코드Service에 아래처럼 코드를 추가하고, onStartCommand()에서 showNotification()를 호출해주면 된다. /** * Shows the notification message and icon in the notification bar. */private void showNotification() {int myID = 1234; //The intent to launch when the user clicks the expanded notificationIntent intent = new Intent(this, TravelLogger_MainActiv.. 2014. 6. 24. 안드로이드 ZIP으로 압축,해제 코드 아래 코드 사용하면된다. package com.redbada.travellogger; import java.io.BufferedInputStream;import java.io.BufferedOutputStream;import java.io.File;import java.io.FileInputStream;import java.io.FileOutputStream;import java.util.StringTokenizer;import java.util.zip.ZipEntry;import java.util.zip.ZipInputStream;import java.util.zip.ZipOutputStream; import android.util.Log; public class ZipUtils { private st.. 2014. 6. 20. 이전 1 다음 반응형