Skip to main content

안드로이드 ADB로 Broadcast Receiver 테스트 방법

특정 앱에만 보낼 경우

출처: http://stackoverflow.com/questions/8497885/start-android-application-without-activity?answertab=votes#tab-top

Read More

안드로이드 APK 파일 정보 확인하는 방법

안드로이드 APK 파일의 패키지명, 버전 정보, 퍼미션 정보 등을 <SDK_PATH>/build_tools 폴더에 있는 aapt를 통하여 확인 할 수 있습니다. 먼저, <SDK_PATH>/build_tools/<VERSION>/ 폴더를 환경변수 path에 등록하여 줍니다. 그리고 명령 프롬프트(실행->cmd)를 실행하여 아래 명령어를 통하여 필요한 정보를 확인 합니다.

 

Read More

[Android] 앱 배포를 위한 압축정렬(zipalign)

Play Store에 앱을 등록하기 위해서 Sign 작업 후 zipalign 작업이 필요하다.   먼저 Sign 후 생성된 apk를 준비한다. (http://tetjjang.tistory.com/342, http://tetjjang.tistory.com/344)   그리고 명령프롬프트(시작-실행-cmd)에서 아래 명령어 통해 해당 작업을 한다. zipalign -f -v 4 input.apk output.apk -f : output.apk 파일이 존재한다면 덮어쓰기 -v : zipalign 과정 정보 출력 4 : 바이트 정렬 계수를 정의 (단위 byte)

Read More

[Android] 브로드캐스트 리시버 테스트 방법

명령 프롬프트(시작메뉴-실행-cmd 입력)를 열어서 아래 명령어를 입력한다. adb shell am broadcast –a android.intent.action.BOOT_COMPLETED   개발 중인 앱에만 보낼 경우 adb shell am broadcast –a android.intent.action.BOOT_COMPLETED –n your.app.packagename/.YourReceiverClassName     출처: http://stackoverflow.com/questions/8497885/start-android-application-without-activity?answertab=votes#tab-top

Read More