728x90

++++안드로이드 어플 한글화 하기++++

 

1.우선 자신의 PC에 JAVA 환경이 필요 합니다...

   아래 링크에서 받으세요...

   http://www.oracle.com/technetwork/java/javase/downloads/jdk6-jsp-136632.html

 

   JDK 설치방법:

    http://trend21c.tistory.com/666

 

2.JAVA를 설치 하셨다면 다음으로 apktool 을 설치 합니다...

   아래 링크에서 받으실수 있습니다...

   http://code.google.com/p/android-apktool/downloads/detail?name=apktool-1.3.1.tar.bz2

   http://code.google.com/p/android-apktool/downloads/detail?name=apktool-install-windows-2.2_r01-2.tar.bz2

 

3.apktool을 받으셨다면 apktool을설치 하셔야 합니다...

   압축을 풀어서 나온 apktool.jar , aapt.exe , apktool.bat 이 파일을 D:\에 apktool 폴더를

   만들어 넣어줍니다.
   - 시작 => 실행 => cmd 확인

 

   - D드라이브로 변경(D: 입력 엔터)

   - D드라이브로 바꾸었으면 apktool폴더로 이동(cd apktool 인력 엔터)
   - D:\apktool 요렇게 이동 하셨으면 apktool 입력하고 엔터합니다.

 

  - 그럼 apktool이 설치 됩니다...

  - 아래 스샷처럼 apktool 사용법이 나오면 설치가 된것입니다...

 

4.자 이제 apktool이 설치 되었다면 준비는 다 되었네요...

 

  실제로 gameboid.apk 라는 어플을 한글화 해볼까요...

 

1.시작-실행-cmd입력 도스창 활성

 

2.D:\apktook\apktool d gameboid.apk gameboid 라고 입력 하고 엔터 ...

  (위 명령은 gameboid.apk라는 어플을 해당 디렉토리 gameboid라는 폴더에 풀어놓으라는 뜻)

 

 그러면 잠시후 gameboid 라는 폴더가 생기면서 gameboid폴더안에 gameboid.apk어플의

 패키지가 들어 있는걸 볼수 있습니다...

 

3.보통 텍스트 파일은 gameboid 라는 폴더안에 res - values 폴더를 열어보면 strings.xml

  이 있는데 이것이 텍스트 파일입니다...(물론 다른곳에 있을수도 있슴)

 

4.텍스트 파일을 찿으셨으면 notepad++로 strings.xml 를 열어 수정 하시면 됩니다...

   notepad++ 는 아래에서 받으세요

   http://korean.trailsframework.org/lv/group/view/kl36301/Notepad%2B%2B.htm

 

아래 스샷에 보이는 검은색 굵은 글자들을 수정 하시면 됩니다...^^

 

5.이제 풀어놓은 어플을 다시 합쳐야 합니다...

  D:\apktook\apktool b gameboid 라고 입력 하고 엔터...

  (위 명령은 풀어놓은 gameboid 폴더에 있는 내용을 다시 합치라는 명령)


  그럼 gameboid 폴더안에 dist폴더가 생기고 그폴더 안에 apk파일 이 생성 되 있습니다..

 

6.자 이제 마지막으로 생성된 apk파일을 sign(인증) 만 하면 됩니다...

   사인 하는 방법은 여러 가지가 있습니다...

   다만 방법이 복잡하고 몬가 좀 어플 개발자들에게 누가되는거 같아..

   옆동네 모티즌에서 올라와 있는 인증방법으로 설명 드립니다...

  

   생성된 파일을 motizen.apk 로 이름을 바꾼후 사인 프로그램 폴더안에 넣고 Sign.bat 를 실행

   잠시후 motizen_signed.apk 라는 파일이 생성됩니다.

 

 

7. 이제 인증완료된 apk 파일을 적당히 이름을 바꾸시고 설치해 보시면 한글로 바뀐걸 보실 수 있을겁니다...

728x90
 
■ 안드로이드 AVD 스킨을 변경해 봅시다.
 안드로이드 SDK가 설치된 폴더중에 platforms\버전별 안드로이드 폴더\Skins\에 해당 파일을 풀어 놓으면 스킨을 입힐 수 있습니다.

AVD manager -> Virtual Devices -> [New]





















































출처:http://manpage.textcube.com/56
728x90
■ 안드로이드 에뮬레이터에 개발한 프로그램이나 다운받은 어플을 직접 설치해 봅시다.
 이클립스 기준으로 bin폴더에 파일명.apk파일이 존재합니다. 이 apk파일을 avd에 설치하려면 다음과 같이 진행하면 되겠습니다.
물론 설치하기 전에 프로그램이 구동할 타겟(AVD 또는 실제장비)이 활성화되어 있어야 합니다.

C:\>adb install 설치할파일.apk
Success -> 설치가 정상적으로 끝나면 썰렁하게 Success라고 한마디 한다. ^^
C:\>
설치 : adb install apkfilename
삭제 : adb uninstall pakeagename
재설치 : adb install -r apkfilename


uninstall이 안되시면 uninstaller를 설치한후에 uninstall를 통해서 삭제해보세요..^^

C:\>adb -h
Android Debug Bridge version 1.0.25

 -d                            - directs command to the only connected USB device
                                 returns an error if more than one USB device is present.
 -e                            - directs command to the only running emulator.
                                 returns an error if more than one emulator is running.
 -s <serial number>            - directs command to the USB device or emulator with
                                 the given serial number. Overrides ANDROID_SERI
AL
                                 envivornment variable.
 -p <product name or path>     - simple product name like 'sooner', or
                                 a relative/absolute path to a product
                                 out directory like 'out/target/product/sooner'.

                                 If -p is not specified, the ANDROID_PRODUCT_OUT

                                 environment variable is used, which must be an absolute path.
 devices                       - list all connected devices
 connect <host>:<port>         - connect to a device via TCP/IP disconnect <host>:<port>      - disconnect from a TCP/IP device
device commands:
  adb push <local> <remote>    - copy file/dir to device
  adb pull <remote> <local>    - copy file/dir from device
  adb sync [ <directory> ]     - copy host->device only if changed
                                 (see 'adb help all')
  adb shell                    - run remote shell interactively
  adb shell <command>          - run remote shell command
  adb emu <command>            - run emulator console command
  adb logcat [ <filter-spec> ] - View device log
  adb forward <local> <remote> - forward socket connections
                                 forward specs are one of:
                                   tcp:<port>
                                   localabstract:<unix domain socket name>
                                   localreserved:<unix domain socket name>
                                   localfilesystem:<unix domain socket name>
                                   dev:<character device name>
                                   jdwp:<process pid> (remote only)
  adb jdwp                     - list PIDs of processes hosting a JDWP transport

  adb install [-l] [-r] <file> - push this package file to the device and install it
                                 ('-l' means forward-lock the app)
                                 ('-r' means reinstall the app, keeping its data)
  adb uninstall [-k] <package> - remove this app package from the device
                                 ('-k' means keep the data and cache directories)
  adb bugreport                - return all information from the device
                                 that should be included in a bug report.

  adb help                     - show this help message
  adb version                  - show version num

DATAOPTS:
 (no option)                   - don't touch the data partition
  -w                           - wipe the data partition
  -d                           - flash the data partition

scripting:
  adb wait-for-device          - block until device is online
  adb start-server             - ensure that there is a server running
  adb kill-server              - kill the server if it is running
  adb get-state                - prints: offline | bootloader | device
  adb get-serialno             - prints: <serial-number>
  adb status-window            - continuously print device status for a specified device
  adb remount                  - remounts the /system partition on the device read-write
  adb reboot [bootloader|recovery] - reboots the device, optionally into the boo
tloader or recovery program
  adb root                     - restarts the adbd daemon with root permissions
  adb usb                      - restarts the adbd daemon listening on USB  adb
tcpip <port>             - restarts the adbd daemon listening on TCP on the specified port
networking:
  adb ppp <tty> [parameters]   - Run PPP over USB.
 Note: you should not automatically start a PPP connection.
 <tty> refers to the tty for PPP stream. Eg. dev:/dev/omap_csmi_tty1
 [parameters] - Eg. defaultroute debug dump local notty usepeerdns

adb sync notes: adb sync [ <directory> ]
  <localdir> can be interpreted in several ways:

  - If <directory> is not specified, both /system and /data partitions will be updated.

  - If it is "system" or "data", only the corresponding partition
    is updated.

+ Recent posts