Android/App개발2009. 4. 22. 16:44
http://www.mobileplace.co.kr/android_dev_info/2389

구글폰 안드로이드 개발을 시작하시는 분들에게 기본 문서에서 제공하는 노트패드 튜터리얼도 있지만 시작하기 먼가 좀 애매해서 설치부터 완전 기초 부분 까지를 정리 해보았습니다. 처음 개발하시는 분은 아래 강좌보시고, Hello View로 넘어가세요. 그리고 노트패드 튜터리얼로 넘어가는게 좀더 쉽게 시작할 수 있을듯 합니다. 

안드로이드 강좌 1 - 어플리케이션 개발 시작하기. SDK 설치 및 실행
안드로이드 강좌 2 - 이클립스 개발환경 사용법 및 프로젝트 생성
안드로이드 강좌 3 - 프로젝트 실행과 디버깅 그리고 단말 세팅
안드로이드 강좌 4 - 액티비티(Activity), 뷰(View), 레이아웃(Layout)
안드로이드 강좌 5 - XML에서의 TextView, ImageView, LinearLayout
안드로이드 강좌 6 - Java 코드(Code)에서 뷰(View)  다루기

이제서요(2009년 2월) 구글이 튜터리얼도 업데이트해서 이제 좀 웹으로도 공부할만해졌네요. :)

안드로이드 공식 홈페이지 링크

공식    : 
http://www.android.com
마켓    : 
http://market.android.com
개발자 : 
http://developer.android.com

Posted by 삼스
Android/App개발2009. 4. 22. 11:57
Posted by 삼스
Android/App개발2009. 4. 22. 10:18

http://link.allblog.net/18042236/http://androidhuman.tistory.com/entry/안드로이드-에뮬레이터에-가상의-SD카드-마운트시키기


안드로이드 에뮬레이터에서 사용자가 임의로 파일을 저장하려면 안드로이드 에뮬레이터에 가상의 SD카드가 마운트 되어 있어야 합니다. 오늘은 mksdcard를 이용한 가상의 SD카드 생성부터 시작해서 이클립스 내의 설정 변경, DDMS를 이용하여 가상의 SD카드에 파일 넣기까지 알아보겠습니다.

일단, 에뮬레이터에 마운트시킬 가상의 SD카드를 생성해야합니다. 가상 SD카드를 생성하려면 안드로이드 SDK폴더\tools 폴더의 mksdcard.exe 을 이용하면 됩니다.


실행-cmd를 입력하여 명령 프롬프트 창을 열고, 안드로이드 sdk가 설치된 폴더\tools폴더에 간 후, mksdcard [용량] [파일명] 을 입력하여 가상의 SD카드를 만듭니다. 저는 128MB의 크기로 만들었습니다.

생성된 가상 SD카드 파일


가상 SD카드 파일도 만들었으니, 이제 에뮬레이터에 마운트를 시켜야겠지요?
에뮬레이터를 실행시킬 때 sd카드를 마운트시키는 옵션을 활성화시켜주어야 하는데요, 그 설정은 Run-Run Configurations-Target 탭의 Additional Enulator Command Line Options에 넣어주면 됩니다.


저같은 경우는 생성한 가상SD카드를 c:\ 드라이브에 넣어주어서 경로를 저렇게 설정하였습니다. 각자 경로에 맞게끔 넣어주시면 됩니다.

이렇게 설정을 끝낸 후, 에뮬레이터를 실행시키면 가상SD카드가 마운트 된 채로 에뮬레이터가 실행됩니다.
그럼, 이 SD카드에 파일을 넣어볼까요?

이클립스에서 DDMS를 실행시킨 후, File Explorer탭을 클릭해보면 아래와 같은 아이콘이 보이실겁니다. 에뮬레이터에 파일을 넣어야하니 Push a file onto the device를 눌러줍니다.



요로코롬 파일을 선택할 수 있습니다. 개발하는데 깝깝한데~~ 음악이나 듣게 음악을 넣어봅시다. 이 때, 파일명은 영어로 되어 있어야 합니다. 안그러면 에러납니다. -_-


자, 저렇게 해주면 이렇게! 뿅! 들어가있는 것을 볼 수 있습니다.
자, 그럼 이제 이 파일을 안드로이드 에뮬레이터에서 들어볼까요?
파일을 추가했으니, 바로 음악을 듣기 전에 Dev Tools의 Media Scanner를 실행해서 파일을 인식시켜주어야 합니다.

Media Scanner가 새로 추가된 파일을 검색중인 화면.


검색이 끝났다면, 음악을 들어볼까요?
Music을 눌러보시면, 다음과 같이 음악이 추가되어있는 것을 보실 수 있을 겁니다!


음악 파일 뿐만 아니라 다른 파일을 넣을 떄에도 지금과 동일한 과정으로 수행하시면 됩니다. :)

Posted by 삼스
Android/App개발2009. 4. 21. 17:21
Professional Android Application Development
지은이  Reto Meier  출판사 WROX PRESS  |   발행일 2008년 11월 10일
 
클릭하시면 큰 도서이미지를 보실 수 있습니다.
판매가 64,500원 → 55,700원 14%
마일리지 3% 1,670원
발행일 2008-11-10
ISBN 0470344717 | 9780470344712
기타정보 원서 | 400쪽 | $ 44.99 | Paperback
예상출고일 예상입고기간: 7~9일 소요예정
배송비 무료 배송
    정가, 판매가는 항공 운임료 포함 
Java
종합지수 2p 350 위
월간지수 8p 26 위
주간지수 12p 15 위
   
주의사항  ㆍ 현지사정에 의해 지연, 품절 될 수 있습니다.
 ㆍ 해외주문원서는 취소 및 반품이 불가능합니다.
     (단, 파본이나 오발송은 제외 입니다.)
 ㆍ 수입절차/입고소요기간 자세히
 
 Java 분야 베스트
1. Game Programming Gems 6
2. 열혈강의 VISUAL C++ 2008 MFC 윈도우프로그래밍
3. 제프리 리처의 Windows via C/C++
 
 
 Java 분야 베스트
1. 헬로, 안드로이드
2. 차세대 MVC 스트럿츠 2 프로그래밍
3. 알기 쉽게 풀어 쓴 웹로직과 EJB
 
 
 Java 분야 신간
1. Javafx: Developing Rich Internet Applications
2. Android Application Development: Create Modify Reuse
3. Spring in Practice
 
 
A hands-on guide to building mobile applications, Professional Android Application Development features concise and compelling examples that show you how to quickly construct real-world mobile applications for Android phones. Fully up-to-date for version 1.0 of the Android software development kit, it covers all the essential features, and explores the advanced capabilities of Android (including GPS, accelerometers, and background Services) to help you construct increasingly complex, useful, and innovative mobile applications for Android phones. 
What this book includes 

  • An introduction to mobile development, Android, and how to get started. 
  • An in-depth look at Android applications and their life cycle, the application manifest, Intents, and using external resources. 
  • Details for creating complex and compelling user interfaces by using, extending, and creating your own layouts and Views and using Menus. 
  • A detailed look at data storage, retrieval, and sharing using preferences, files, databases, and Content Providers. 
  • Instructions for making the most of mobile portability by creating rich map-based applications as well as using location-based services and the geocoder. 
  • A look at the power of background Services, using threads, and a detailed look at Notifications. 
  • Coverage of Android's communication abilities including SMS, the telephony APIs, network management, and a guide to using Internet resources 
  • Details for using Android hardware, including media recording and playback, using the camera, accelerometers, and compass sensors. 
  • Advanced development topics including security, IPC, advanced 2D / 3D graphics techniques, and user–hardware interaction. 

    Who this book is for
    This book is for anyone interested in creating applications for the Android mobile phone platform. It includes information that will be valuable whether you're an experienced mobile developer or making your first foray, via Android, into writing mobile applications. It will give the grounding and knowledge you need to write applications using the current SDK, along with the flexibility to quickly adapt to future enhancements.
  • Posted by 삼스
    Android/App개발2009. 4. 21. 15:31

    G:\_PROJECT\Android\SDK\android-sdk-windows-1.1_r1\docs\sdk\1.1_r1\installing.html

    Installing the Android SDK

    This page describes how to install the Android 1.1 SDK, Release 1, and set up your development environment. If you haven't downloaded the SDK yet, you can so so from the Download page.

    Before you begin, be sure that your development environment meets the SDK System Requirements.

    Upgrading?

    If you have already developed applications using an earlier version of the SDK, please skip this page and read the Upgrading the SDK document instead.

    Installing the SDK

    After downloading the SDK, unpack the .zip archive to a suitable location on your machine. By default, the SDK files are unpacked into a directory named android_sdk_<platform>_<release>_<build>. The directory contains the subdirectories tools/, samples/, and others.

    Make a note of the name and location of the unpacked SDK directory on your system — you will need to refer to the SDK directory later, when setting up the Android plugin or using SDK tools.

    Optionally, you can add the path to the SDK tools directory to your path. As mentioned above, the tools/ directory is located in the SDK directory.

    • On Linux, edit your ~/.bash_profile or ~/.bashrc file. Look for a line that sets the PATH environment variable and add the full path to the tools/ directory to it. If you don't see a line setting the path, you can add one:
        export PATH=${PATH}:<your_sdk_dir>/tools
    • On a Mac, look in your home directory for .bash_profile and proceed as for Linux. You can create the .bash_profile, if you haven't already set one up on your machine.
    • On Windows, right click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path under System Variables. Add the full path to the tools/ directory to the path.

    Adding tools to your path lets you run Android Debug Bridge (adb) and the other command line tools without needing to supply the full path to the tools directory. Note that, if you update your SDK, you should remember to update your PATH settings to point to the new location, if different.

    Setting up Eclipse

    If you'll be developing with the Eclipse IDE, follow the following procedure to setup the IDE to use the Android SDK.

    Basically, you just need to update your Eclipse preferences to point to the Android SDK directory:

    1. Select Window > Preferences... to open the Preferences panel. (Mac OS X: Eclipse > Preferences)
    2. Select Android from the left panel.
    3. For the SDK Location in the main panel, click Browse... and locate the SDK directory.
    4. Click Apply, then OK.

    Done! We now recommend that you install the ADT Eclipse plugin, which will provide some much-appreciated assistance in developing Android apps with Eclipse...

    Installing the Eclipse Plugin (ADT)

    If you will be using the Eclipse IDE as your environment for developing Android applications, you can install a custom plugin called Android Development Tools (ADT), which adds integrated support for Android projects and tools. The ADT plugin includes a variety of powerful extensions that make creating, running, and debugging Android applications faster and easier. Developing in ADT/Eclipse is highly recommended for Eclipse users and those new to Android.

    If you will not be using the Eclipse IDE, you do not need to download or install the ADT plugin. You can still develop Android applications using other tools.

    To download and install the ADT plugin, follow the steps below for your respective Eclipse version.

    Eclipse 3.3 (Europa) Eclipse 3.4 (Ganymede)
    1. Start Eclipse, then select Help > Software Updates > Find and Install....
    2. In the dialog that appears, select Search for new features to install and click Next.
    3. Click New Remote Site.
    4. In the resulting dialog box, enter a name for the remote site (e.g. Android Plugin) and enter this as its URL:
      https://dl-ssl.google.com/android/eclipse/

      Alternatively, you can use http in the Location URL, if you are having trouble with https (https is preferred for security reasons).

      http://dl-ssl.google.com/android/eclipse/

      Click OK.

    5. You should now see the new site added to the search list (and checked). Click Finish.
    6. In the subsequent Search Results dialog box, select the checkbox for Android Plugin > Developer Tools. This will check both features: "Android Developer Tools", and "Android Editors". The Android Editors feature is optional, but recommended. If you choose to install it, you need the WST plugin mentioned earlier in this page. Click Next.
    7. Read the license agreement and then select Accept terms of the license agreement. Click Next.
    8. Click Finish.
    9. The ADT plugin is not signed; you can accept the installation anyway by clicking Install All.
    10. Restart Eclipse.
    1. Start Eclipse, then select Help > Software Updates....
    2. In the dialog that appears, click the Available Software tab.
    3. Click Add Site...
    4. Enter this as the Location:
      https://dl-ssl.google.com/android/eclipse/

      Alternatively, you can use http in the Location URL, if you are having trouble with https (https is preferred for security reasons).

      http://dl-ssl.google.com/android/eclipse/

      Click OK.

    5. Back in the Available Software view, you should see the plugin. Select the checkbox next to Developer Tools and click Install...
    6. On the subsequent Install window, "Android Developer Tools", and "Android Editors" should both be checked. The Android Editors feature is optional, but recommended. If you choose to install it, you need the WST plugin mentioned earlier in this page. Click Next.
    7. Accept the license agreement and click Finish.
    8. Restart Eclipse.

    Troubleshooting ADT Installation

    If you are having trouble downloading the ADT plugin after following the steps above, here are some suggestions:

    • If Eclipse can not find the remote update site containing the ADT plugin, try changing the remote site URL to use http, rather than https. That is, set the Location for the remote site to:
      http://dl-ssl.google.com/android/eclipse/
    • If you are behind a firewall (such as a corporate firewall), make sure that you have properly configured your proxy settings in Eclipse. In Eclipse 3.3/3.4, you can configure proxy information from the main Eclipse menu in Window (on Mac, Eclipse) > Preferences > General > Network Connections.

    If you are still unable to use Eclipse to download the ADT plugin as a remote update site, you can download the ADT files to your local machine using a browser and the install the files in Eclipse from there:

    1. Download the ADT zip file (do not unpack it).
    2. Follow steps 1 and 2 in the default install instructions (above).
    3. In Eclipse 3.3, click New Archive Site....
      In Eclipse 3.4, click Add Site..., then Archive...
    4. Browse and select the downloaded the zip file.
    5. Follow the remaining procedures, above, starting from steps 5.

    Note that to update your plugin, you will have to follow these steps again instead of the default update instructions.

    Note that the "Android Editors" feature of ADT requires several optional Eclipse components (for example, WST). If you encounter an error when installing ADT, your Eclipse installion might not include those components. For information about how to quickly add the necessary components to your Eclipse installation, see the troubleshooting topic ADT Installation Error: "requires plug-in org.eclipse.wst.sse.ui".

    For Linux users

    If you encounter this error when installing the ADT Plugin for Eclipse:

    An error occurred during provisioning.
    Cannot connect to keystore.
    JKS

    ...then your development machine lacks a suitable Java VM. Installing Sun Java 6 will resolve this issue and you can then reinstall the ADT Plugin.

    Installation Notes

    Ubuntu Linux Notes

    • If you need help installing and configuring Java on your development machine, you might find these resources helpful:
    • Here are the steps to install Java and Eclipse, prior to installing the Android SDK and ADT Plugin.
      1. If you are running a 64-bit distribution on your development machine, you need to install the ia32-libs package using apt-get::
        apt-get install ia32-libs
      2. Next, install Java:
        apt-get install sun-java6-bin
      3. The Ubuntu package manager does not currently offer an Eclipse 3.3 version for download, so we recommend that you download Eclipse from eclipse.org (http://www.eclipse.org/ downloads/). A Java or RCP version of Eclipse is recommended.
      4. Follow the steps given in previous sections to install the SDK and the ADT plugin.

    Other Linux Notes

    • If JDK is already installed on your development computer, please take a moment to make sure that it meets the version requirements listed at the top of this page. In particular, note that some Linux distributions may include JDK 1.4 or Gnu Compiler for Java, both of which are not supported for Android development.
    Posted by 삼스
    Android/App개발2009. 4. 3. 11:24
    Posted by 삼스