Android > 런타임 시 dex 파일 읽기


Dalvik VM 런타임 시 다른 dex 파일을 로딩하기

  1. 64,000개 이상의 메서드를 포함한 앱의 경우 빌드에 문제가 발생할 수 있다. 이 경우 여러 개의 dex 파일로 나누어서 dex 를 동적으로 로딩해야 한다.

  2. 런타임 중 동적으로 기능이 확장되는 프레임워크 형태의 앱은 커스텀 클래스 로딩 기능을 활용할 수 있다.

DexClassLoader dcl = new DexClassLoader(path, null, getClassLoader()); Class c = null; try{ c = dcl.loadClass(fullClassName); SomethingInterface lib = (SomethingInterface)c.newInstance(); lib.doSomething(); } catch( Exception e ){ }

Android > Unit Test Functional and UI

These are what i referenced.



Edit: As of 0.1.8 this is now supported in the IDE.

Following the Android Gradle Plugin User Guide I was able to get tests working on the command line by performing the following steps on a newly created project (I used the default ‘com.example.myapplication’ package):

1. Add a src/instrumentTest/java directory for the tests
2. Add a test class (extending ActivityTestCase) in the package com.example.myapplication.test
3. Start a virtual device
4. On the command line (in the MyApplicationProject/MyApplication directory) use the command ‘../gradlew connectedInstrumentTest’

This ran my tests and placed the test results in MyApplicationProject/MyApplication/build/reports/instrumentTests/connected. I’m new to testing Android apps, but it seem to work fine.

Android > How can i keep web view session on android

**July 2 2013 11:37**

I’m trying to get the solution now.

But I can’t find that :(

**July 2 2013 01:12**

It make me crazy which part is different between Desktop and Mobile!!!

I don’t know WHY!!!!! :/ huh?

ok keep going.

**July 2 2013 01:24**

I need to go gym and I could get stress out. Holo~~

** July 2 2013 04:40**

I came home back. So tried to work out.

** July 2 2013 11:23**

I had a lot of food. I’m full.

I couldn’t eat anymore.. and I need to go to bed.

:) anyway today? was not too bad.

It solved. the problem is that server has something wrong.


Android > Could not fetch model of type ‘IdeaProject’ using Gradle installation

I’ve moved to use between Eclipse to Android Studio.

It has still some bugs since beta version.

but It’s pretty good.

Anyway I’ve got some bug that “could not fetch model of type ‘IdeaProject’ using Gradle Installation.

I bring a solution to StackoverFlow that link is followings.

you’ve to delete default files.

Above folder that when you use Android Sutido first time. it can be made automatically.

after delete these files, you can see that it works well.

Android – Android Studio > How can I add a “library Project” in Intellij IDEA

I don’t know when does it release.

That name is Android Studio.

I installed it yesterday. It was organized IntelliJ.

Indeed, I’m just wondering that It would be used by developers.

Anyway. sometime new tool is hard to learn and to make me bothered.

So I always think about that I’ve to find my tool.

it’s also hard. because there is no perfect tool in the world.

That’s why it has been still coming new tool.

I’ve to decide tool which am i gonna using.

Eclipse VS IntelliJ

Which one do you prefer to developer for android?

anyway I am trying to use IntelliJ to developer android application.

so i got new problem that is how can I add a “Library Project” in IntelliJ IDEA.

following description is solution.


ref :

You need to create a new IDEA module form the existing source code.

Ensure that Android facet is enabled for this module, in the facet settings you need to enable “Is Library Project” option. Then add this module as a dependency to your main module.


Thanks buddy.

Android – full source link

1. Project Property
2. 좌측 Java Build Path 선택
3. Libraries 선택
4. Android 4.0.3 (저와 다른 버전일 수 있으니 보이는거 클릭)
5. android.jar 선택
6. Source Attachment 클릭
7. Source Attachment Configration 창이 뜨고 Location Path를 풀소스 경로를 적어주면 됨

Android – Apache Ant를 이용한 자동처리기

Android SDK를 설치하시면 tools에 기본적Ant가 설치됩니다.

Ant를 이용하면 쉽게 배포 파일을 생성할 수 있습니다.

만약 이클립스로 프로젝트를 생성했다면 아래와 같은 명령어를 통해 build.xml,, local.properties가 생성됩니다.

android update project –path .

배포 설치 파일 생성하기

ant release

Debug용 설치 파일 생성하기

ant debug install

서명 과정 자동화하기

서명하기 위해서는 생성 된 프로젝트에 ant.properties를 아래와 같이 입력해주시면 됩니다.

기본적으로 위 두가지만 입력 한다면 ant 빌드 사이에 패스워드를 물어봅니다.
빌드 사이에 물어보는 것을 원치 않으면 아래의 속성을 추가해주시면 됩니다.

Using Ant to Automate Building Android Applications
Creating an Android Project
SDK Tools Revision History
android 사용법
Ant Command Reference