Ubuntu 14.04 LTS 에 Android Studio 설치 하기

안드로이드/android 2015. 2. 27. 15:04

1. JDK 설치


$ sudo add-apt-repository ppa:webupd8team/java

$ sudo apt-get update
$ sudo apt-get install oracle-java7-installer


# 이상하게 oracle-java8-installer 는 자꾸 에러가 나서 내 컴에서 7로 했다 왜그럴까?!!!!!


update-alternatives --display java
java -version

2. Android Studio 다운로드 및 설치


$ unzip android-studio-ide-135.1641136-linux.zip

$ mv android-studio /opt

$ cd /opt/android-studio/bin

$ ./studio.sh


/*** 

'tools.jar' seems to be not in Android Studio classpath.Please ensure JAVA_HOME points to JDK rather than JRE.

라는 에러메세지가 뜬다면


$ sudo vi /etc/environment


 1) PATH 맨 마지막에 :/usr/lib/jvm/java-7-oracle 추가

 2) 문서 맨 마지막에 JAVA_HOME=/usr/lib/jvm/java-7-oracle 추가

 3) 저장하고 닫기


 $ source /etc/environment


*****/



참조 사이트 및 블로그

1. http://blog.mckwon.com/16157

2. http://stackoverflow.com/questions/17474963/android-studio-tools-jar-file-is-not-present-in-classpath


3. http://askubuntu.com/questions/147400/problems-with-eclipse-and-android-sdk

4. https://www.davidlab.net/ko/tech/how-to-setup-android-dev-env-on-ubuntu-part1/


Display getWidth deprecated

안드로이드/android 2013. 7. 15. 16:33

Display display = getWindowManager().getDefaultDisplay();

Point size = new Point();

display.getSize(size);

width = (float) size.x;

android action bar home icon change

안드로이드/android 2013. 7. 4. 11:51

액션바 홈 아이콘을 테마를 통해 변경 하는 방법


<item name="android:homeAsUpIndicator">@drawable/ic_home_up_indicator</item>

액션 텝 메뉴 옵션메뉴가 하단에 펼치지게 하기

안드로이드/android 2013. 6. 25. 10:58

Actionbar tab menu


option menu   바텀 메뉴로 출력하기


menifest 에 추가 해주면 됩

android:uiOptions="splitActionBarWhenNarrow"

android action bar swipe fragment listview setonitemclicklistener not working

안드로이드/android 2013. 5. 19. 14:53

액션바 swipe 탭 메뉴 view pager fragment 일때

listview setonitemclicklistener 가 동작하지 않아 당황했다

이유인 즉 Ok, so I found my problem. In my "single_item" xml file, I had a ImageButton that was stealing the focus. I swapped it to a ImageView and it works just fine.  이렇다 하여

imagebutton을 imageview로 바꾸니 진짜 활성화 되었다

이런 젠장 이러한 버그들은 도대체 왜 만들어 놓으심? 

버튼이 맞지 이미지뷰가 맞는거임? --;