Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9140966
  • 博文数量: 1725
  • 博客积分: 12961
  • 博客等级: 上将
  • 技术积分: 19840
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-09 11:25
个人简介

偷得浮生半桶水(半日闲), 好记性不如抄下来(烂笔头). 信息爆炸的时代, 学习是一项持续的工作.

文章分类

全部博文(1725)

文章存档

2024年(1)

2023年(26)

2022年(112)

2021年(217)

2020年(157)

2019年(192)

2018年(81)

2017年(78)

2016年(70)

2015年(52)

2014年(40)

2013年(51)

2012年(85)

2011年(45)

2010年(231)

2009年(287)

分类: LINUX

2009-07-03 18:56:03

Env: ubuntu 9.04 + eclipse 3.4.2

1. get eclipse 3.4.2
2. config eclispe to include the cupcake code tree
   
    a) cd $CUPCAKE && make
    b) cp development/ide/eclipse/.classpath . && chmod u+w .classpath  # Make the copy writable
        modify .classpath to delete all nonexisting path and files
    c) modify $ECLIPSE_INSTALL_PATH/eclipse.ini [-Xms128m -Xmx512m]
    d) start eclipse: [File > New > Java Project] --> [Create project from existing source], select $CUPCAKE
    
3. setup android sdk
    a) cd $CUPCAKE && make sdk;  then get zip file: android-sdk_eng.iibull_linux-x86.zip
    b) cd $CUPCAKE/prebuild/toolchain/; unzip android-sdk_eng.iibull_linux-x86.zip
    c) vi ~/.bashrc; export PATH= $CUPCAKE/prebuild/toolchain/android-sdk_eng.iibull_linux-x86/tools:$PATH

4. install plugin adt []
    a) eclipse &; [Help --> Software Updates --> Available Software], add URL: http[s]://dl-ssl.google.com/android/eclipse/ --> [install ...] --> finish
    b) restart eclipse, update your Eclipse preferences , and make a reference to your sdk folder:
           [Window > Preferences] --> select Android --> locate SDK tab and [Browse] -> Apply
          
5. make hello world apk for android []
    a) File > New > Project  --> android project
    b) fill package name and activity name
    c) finish
    d) modify main.xml and string.xml and your java code
    e) run it in emulator
阅读(1734) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~