이제는 Android Studio 때문에 지원이 중단되었지만, 아직은 쓸만한 Eclipse와 ADT bundle 팩
linux 64 bit vm: http://dl.google.com/android/adt/adt-bundle-linux-x86_64-20140702.zip
linux 32 bit vm: http://dl.google.com/android/adt/adt-bundle-linux-x86-20140702.zip
mac: http://dl.google.com/android/adt/adt-bundle-mac-x86_64-20140702.zip
win32: http://dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zip
win64: http://dl.google.com/android/adt/adt-bundle-windows-x86_64-20140702.zip
Wednesday, April 1, 2015
Android RenderScript 내장함수 위치
내장함수 있는곳:
/android-sdk/platform-tools/renderscript/include/*.rsh
rs_cl.rsh
rs_graphics.rsh
rs_object.rsh
rs_time.rsh
rs_types.rsh
rs_core.rsh
rs_math.rsh
rs_quaternion.rsh
rs_debug.rsh
rs_matrix.rsh
rs_allocation.rsh
/android-sdk/platform-tools/renderscript/include/*.rsh
rs_cl.rsh
rs_graphics.rsh
rs_object.rsh
rs_time.rsh
rs_types.rsh
rs_core.rsh
rs_math.rsh
rs_quaternion.rsh
rs_debug.rsh
rs_matrix.rsh
rs_allocation.rsh
Android 4.1에서 RenderScript 변경점
Android-16에서 변경점:
구버전:
1. RSSurfaceView는 GLSurfaceView와 유사한 동작을 하며 GLRenderer를 set한다.
2. RenderScriptGL이라는 객체를 사용하며, GLSL shader program을 지원한다.
3. 2번과 연동되어 rsg_graphics.rsh를 지원하며 void main()대신에 int main()을 사용한다.
신버전:
1. RSSurfaceView, RenderScriptGL을 사용하지 않는다.
2. 따라서 GLSL을 사용하지 못하고 독자적으로 .rs에서 내장함수를 사용한다.
3. rsg_graphics.rsh를 사용할수 없다. int main()을 RenderScriptGL을 사용하지 않고는 call할 방법이 없다.
구버전:
1. RSSurfaceView는 GLSurfaceView와 유사한 동작을 하며 GLRenderer를 set한다.
2. RenderScriptGL이라는 객체를 사용하며, GLSL shader program을 지원한다.
3. 2번과 연동되어 rsg_graphics.rsh를 지원하며 void main()대신에 int main()을 사용한다.
신버전:
1. RSSurfaceView, RenderScriptGL을 사용하지 않는다.
2. 따라서 GLSL을 사용하지 못하고 독자적으로 .rs에서 내장함수를 사용한다.
3. rsg_graphics.rsh를 사용할수 없다. int main()을 RenderScriptGL을 사용하지 않고는 call할 방법이 없다.
Friday, March 27, 2015
Android asset에서 텍스트 읽기
AssetManager assetManager = getAssets();
InputStream input;
String text = "";
try {
input = assetManager.open("text.txt");
int size = input.available();
byte[] buffer = new byte[size];
input.read(buffer);
input.close();
// byte buffer into a string
text = new String(buffer);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
InputStream input;
String text = "";
try {
input = assetManager.open("text.txt");
int size = input.available();
byte[] buffer = new byte[size];
input.read(buffer);
input.close();
// byte buffer into a string
text = new String(buffer);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
맥북 숨김파일 보기
1. 터미널을 열고 다음을 입력한다.
defaults write com.apple.Finder AppleShowAllFiles YES
2. 시스템 메뉴(사과 아이콘) > 강제 종료에서 Finder를 클릭한후 "재실행"한다.(Finder는 강제종료가 되지 않고 재실행만 가능하다.)
defaults write com.apple.Finder AppleShowAllFiles YES
2. 시스템 메뉴(사과 아이콘) > 강제 종료에서 Finder를 클릭한후 "재실행"한다.(Finder는 강제종료가 되지 않고 재실행만 가능하다.)
Subscribe to:
Posts (Atom)