포럼 회원으로 등록하신분만 다운로드가 가능합니다. 최대 업로드 가능한 용량은 20MB 입니다.

hello android :)
안드로이드 서비스 bin/lib 제작의 예

#] su -
passwd: a

안드로이드 TOP 디렉토리로 이동
#] cd /root/origen_dual-ics

1. 프로젝트 디렉토리 생성
#] mkdir -p external/helloandroid

2. 안드로이드 Makefile 작성
#] gedit external/helloandroid/Android.mk

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
helloandroid.c
LOCAL_MODULE := helloandroid
LOCAL_MODULE_TAGS := eng # lunch insingal_origen-eng
LOCAL_C_INCLUDES := frameworks/base/include \
system/core/include
#LOCAL_CFLAGS := -G
include $(BUILD_EXECUTABLE)


3. 프로젝트 소스 작성
#] gedit external/helloandroid/helloandroid.c

#include <stdio.h>

char * krrr_func(){
printf("Krrrrrrrrrrrr ..... :-) \n");
return "chlrbgh0";
}

int main()
{
printf("Hello, Android!!\n");
printf("Hello %s!!\n", krrr_func());
return 0;
}


4. 빌드 환경 설정 compile
-> 안드로이드 TOPDIR로 이동
#] cd /root/origen_dual-ics
#] source origen_envsetup.sh

#] cd external/helloandroid
#] mm

-> out/target/product/origen/system/bin/helloandroid 확인

5. 실행
안드로이드 TOP 디렉토리로 이동
#] cd /root/origen_dual-ics
#] adb remount
#] adb push ./out/target/product/origen/system/bin/helloandroid /system/bin/.
#] adb shell
#  helloandroid


List of Articles
번호 제목 글쓴이 날짜 조회 수sort

[android] mouse right button을 back key 처럼 동작시키는 방법 [1]

[android] hello android application 작성법

DRM(Digital Rights Management) on Android file [1]

[자료] Android build system(안드로이드 빌드 시스템) for ICS file [7]

odroid7에서 KGDB를 이용한 커널 디버깅 방법 [6]

android boot시 shell script 실행시키기(혹은 binary) [1]

안드로이드 1.1r1 자바 소스 file

Solving an Android Threading Problem file

[펌] Android Device driver 정리 - 슬로우부트님 자료 file [3]

busybox에 대한 질문 [3]

[추가 업데이트]안드로이드 플랫폼 공부를 시작할 수 있는 실습형 ... [17]

[펌] Android Device Driver 정리 문서 및 Stagefright 개념 ... file [5]

[안드로이드 분석및포팅 교안] 1장 안드로이드 개요 및 구조 file [2]

Android 2.3 멀티미디어(Multimedia) framework 구조자료 file [12]

mv6410 보드에 안드로이드 올렸습니다. .

  • 2009-06-11
  • 조회 수 9549

HTC G2 안드로이드폰 밧데리 시간 [3]

  • 2009-06-25
  • 조회 수 9720

Android Java쪽에서 시작 하는 main()부분... file [1]

  • 2009-07-16
  • 조회 수 9977

Android 커널 2.6.27~28버젼에서 CONFIG_SUSPEND옵션시 죽는 문... [3]

  • 2009-05-08
  • 조회 수 10026

File System 관련 문제 및 power off 문제 해결 [3]

Android 폰 가지고 놀기^^ [1]

  • 2009-08-07
  • 조회 수 10211

사용자 로그인