본문 바로가기
[android] Robolectric tutorial [android] Robolectric tutorial http://robolectric.org/ Introduction -test 를 android emulator 나 device 에서 하는 것은 느리다.이 환경에서는 TDD 를 이루기 어렵다. Robolectric 은 unit test framework 로 android sdk jar 를 복제&확장해서 TDD 를 가능하도록 돕는다.JVM 에서 android 코드를 테스트 할 수 있다. -@RunWith(RobolectricTestRunner.class) public class MyActivityTest { @Test public void clickingButton_shouldChangeResultsViewText() throws Exception { .. 2018. 12. 8.
[android] targetSdk & compileSdk [android] targetSdk & compileSdk http://www.dummies.com/how-to/content/the-compile-sdk-minimum-sdk-and-target-sdk-version.html targetSdk 와 minSdk 와의 관계는 알았고..[android] minSdkVersion vs. targetSdkVersion targetSdk 와 compileSdk 의 관계가 명확하지 않아 한번 더 찾아보았다. 참조 링크에서는 minSdk, targetSdk, compileSdk 에 대해 예제까지 포함하여 잘 묘사했으니 디테일한 정보가 필요하면 참고하시길~ -compileSdk 는 실제 compile 할 때 쓰이는 sdk 의 version 을 명시한다.만약 2.2 를 .. 2017. 8. 27.
[iOS Study] 애니메이션 제어 [iOS Study] 애니메이션 제어 출처 : 아론 힐리가스의 iOS 프로그래밍 -애플 문서는 언제나 iOS 기술을 배우기에 좋은 출발점이다. -기본 애니메이션(basic animation) 은 시작값과 끝값 사이를 애니메이션으로 만든다. -[UIView animateWithDuration:0.5 animtations:^{ label.alpha = 1.0;}]; animateWithDuration:animations: 메소드는 즉시 반환한다.즉, 이 메소드는 애니메이션을 시작하지만 애니메이션이 완료되는 것을 기다리진 않는다. -UIView 에서 가장 간단한 블록 기반 애니메이션 메소드가 animateWithDuration:animations: 이다.이 메소드는 애니메이션이 수행되는 시간과 애니메이션을 적.. 2016. 3. 6.
[iOS Study] 뷰 다시 그리기와 UIScrollView [iOS Study] 뷰 다시 그리기와 UIScrollView 출처 : 아론 힐리가스의 iOS 프로그래밍 -사용자가 뷰를 터치하면 뷰는 touchesBegan:withEvent: 메시지를 받는다. -iOS 앱이 실행되면 런 루프가 시작된다.런 루프의 역할은 터치 등의 이벤트를 대기하는 것이다.런 루프는 이벤트가 발생하면 그 이벤트에 관한 적당한 핸들러 메소드를 찾는다.그 핸들러 메소드는 해당 기능을 수행하는 다른 메소드들을 부른다.메소드가 모두 완료되면 제어는 다시 런 루프로 돌아간다. 런 루프가 다시 제어권을 얻으면 갱신해야 할 뷰(dirty view) 목록을 확인한다.이 뷰들은 가장 최근 이벤트 처리 과정에서 발생한 내용들을 기반으로 다시 그려져야 한다.그래서 런 루프는 뷰 계층의 모든 것들이 다시 .. 2016. 2. 17.
[Android] facebook sdk applicationId cannot be null [Android] facebook sdk applicationId cannot be null If you encounter error message "applicationId cannot be null" then.. add following code to your manifest. where app_id can be found at the facebook app page. android facebook sdk, applicationid, applicationId cannot be null, facebook app, facebook sdk, meta-data, SDK, [Android] facebook sdk applicationId cannot be null 2014. 7. 29.
Admob 의 standalone sdk 가 deprecated 된다? Admob 의 standalone sdk 가 deprecated 된다? Admob 의 standalone sdk 가 deprecated 된다는 이야기를 들었다. 그럼 지금까지 앱 퍼블리쉬하고 유지보수 안 하는 사람들은 어떻게 하는가?Google Play Service 로 통합하지 않으면 모든 standalone sdk 를 사용한 앱들은 광고부분에서 먹통이 되는가 궁금했다. 그래서 공식사이트를 열심히 살펴보았다. standalone sdk 를 deprecated 시키는 이유는 google play 의 정책에 위배된다고 하는데.사실 한곳에서 지속적 유지보수를 하기 위해 + Google 의 여러가지 서비스를 사용하게 하기 위해서 Google Play Service 를 사용하게 하려는 수작(?) 이다. 2011.. 2014. 4. 28.
[JNI] fatal error: queue: No such file or directory JNI, fatal error: queue: No such file or directory C, C++ 의 기본 library 를 사용하는 데 있어 아래와 같은 에러가 난다면, fatal error: queue: No such file or directory Application.mk 에 아래와 같은 코드를 추가해주면 된다. ( Android.mk 가 아니다. ) APP_STL := stlport_static Android.mk, application.mk, APP_STL, C, C++, fatal error, JNI, Library, NDK, No such file or directory, SDK, stlport_static, [JNI] fatal error: queue: No such file or .. 2014. 4. 18.
[android] view 를 최적화시켜보자 ( Hierarchy Viwer & Pixel Perfect ) 안드로이드, View 를 최적화시켜보자 ( Hierarchy Viewer & Pixel Perfect ) 출처 : http://developer.android.com/tools/debugging/debugging-ui.html Optimizing Your UI ( UI 최적화하기 ) layout 때문에 앱이 느려질 수 있다.layout 에 관련된 debug 는 Hierarchy Viewer 와 lint tools 를 통해 할 수 있다. Hierarchy Viewer 는 layout 의 계층도를 보여주며, 각 node 가 얼마나 성능을 내는가를 볼 수 있다.그리고 Pixel Perfect window 를 통해 확대해 볼 수도 있다. lint 는 static code scanning tool 로 일반적으로 .. 2013. 9. 2.
[android] OS Version 프로그램으로 query(조회) 하는 방법. 아주 간단합니다. SDK 에 constant 로 박혀 있습죠. Log.i( TAG, "OS Version : " + android.os.Build.VERSION.SDK_INT ); 도움이 되셨다면 손가락 꾸욱~ ( 로그인 필요 x ) 2013. 1. 3.
반응형