Android2023. 5. 19. 15:18

 

 API레벨    
 롤리팝  5.0  21
 롤리팝  5.1   22 
 마시멜로  6.0   23 
 마시멜로   6.1   23 
 누가   7.0 ,7.1   24 , 25
 오레오  8.0,8.1   26,27 
파이 9.0 28
Android 10(퀸스타르트) 10 29
Android 11(레드벨벳케이크) 11 30
Android 12(스노우콘) 12 31
Android 13(티라미수) 13 33
Android 14(업사이드다운케이크) 14 34
Posted by 비니미니파
Android2018. 4. 3. 13:52

Execution failed for task ':app:clean'. 오류

메뉴 > Build > Clean Project 실행 시 오류가 난다면

고민하지 말고 Android Stuio 를 종료 했다가 재시작 후 다시 실행 하자.

 

 

Posted by 비니미니파
Android2018. 3. 27. 09:50


 버전

 API레벨

 롤리팝

 5.0

 21

 롤리팝

 5.1 

 22 

 마시멜로

 6.0 

 23 

 마시멜로 

 6.1 

 23 

 누가 

 7.0 

 24 

 누가 

 7.1 

 25 

 오레오

 8.0 

 26 


Posted by 비니미니파
Android2017. 3. 21. 14:26

안드로이드 스튜디오 에서 제공하는 샘플 프로젝트 : bluetoothchat

을 이용하여 HC-06에 연결하면 연결이 안된다.

샘플의 해당 파일

BluetoothChatService.java

UUID 설정을 바꾸어 준다.

//    UUID.fromString("fa87c0d0-afac-11de-8a39-0800200c9a66");
주석으로 막고 수정

UUID.fromString("00001101-0000-1000-8000-00805f9b34fb");

잘된다.

Do it! 안드로이드 앱 프로그래밍 sampleBluetoothChat 도 같다.

 

Posted by 비니미니파
Android2017. 3. 20. 11:51

 

1. Activity 의 onCreate 에 추가 하는 방법


View decorView = getWindow().getDecorView();

// 상태바 숨김 (Fullscreen)

int uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN;
decorView
.setSystemUiVisibility(uiOptions);

// ActionBar 숨김

ActionBar actionBar = getActionBar();
actionBar
.hide();

자세한 설명은 아래에서 참조.

https://developer.android.com/training/system-ui/status.html

 

2. AndroidMainfest.xml 에서 설정 하는 방법 ( 액션바 숨기기 )

android:theme="@style/Theme.AppCompat.NoActionBar">

 

 

Posted by 비니미니파
Android2017. 3. 15. 14:43

View 화면 초기화

invalidate()

Invalidate the whole view.


예) 

Canvas 화면 초기화

mBitmap.eraseColor(Color.WHITE);

invalidate();

 

invalidate() 를 꼭 넣어줘야 한다.



Posted by 비니미니파