Computer/Android&iOS169 android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? 에러 내용 : android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want? 원인 : Activity 가 아닌곳에서 startActivity를 사용하려고 해서. 해결책:startActivity 할때 Intent 객체에 addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);를 추가한다. 2014. 10. 23. onWindowFocusChanged 현재 화면이 보여지는지를 확인시켜주는 메소드. 참고 : http://developer.android.com/reference/android/app/Activity.html#onWindowFocusChanged(boolean) 사용법 : @Overridepublic void onWindowFocusChanged(boolean hasFocus) {if(hasFocus){// 화면 보여지는 상태}else{// 화면 안보이는 상태}super.onWindowFocusChanged(hasFocus);} 2014. 9. 30. Implicitly using the default locale is a common source of bugs: Use toUpperCase(Locale) instead 에러 내용 : Implicitly using the default locale is a common source of bugs: Use toUpperCase(Locale) instead 원인 : ??? 불분명함.toUpperCase 에 Locale 정보를 같이 보내주지 않아서 생기는 린트워닝인듯toUpperCase() 를 사용할땐 Local.getDefaults() 를 인자로 넣어야한다. 해결책 : toUpperCase() ==> toUpperCase(Locale.getDefault()) 2014. 8. 20. 안드로이드 퍼미션 종류 출처 : http://developer.android.com/reference/android/Manifest.permission.htmlSummaryConstantsStringACCESS_CHECKIN_PROPERTIESAllows read/write access to the "properties" table in the checkin database, to change values that get uploaded.StringACCESS_COARSE_LOCATIONAllows an app to access approximate location derived from network location sources such as cell towers and Wi-Fi.StringACCESS_FINE_LOCAT.. 2014. 6. 27. Android API Level(Version) Platform VersionAPI LevelVERSION_CODENotesAndroid 4.419KITKATPlatform HighlightsAndroid 4.318JELLY_BEAN_MR2Platform HighlightsAndroid 4.2, 4.2.217JELLY_BEAN_MR1Platform HighlightsAndroid 4.1, 4.1.116JELLY_BEANPlatform HighlightsAndroid 4.0.3, 4.0.415ICE_CREAM_SANDWICH_MR1Platform HighlightsAndroid 4.0, 4.0.1, 4.0.214ICE_CREAM_SANDWICHAndroid 3.213HONEYCOMB_MR2Android 3.1.x12HONEYCOMB_MR1Platform.. 2014. 5. 13. v4 의 Fragment와 android.app.Fragment 는 다르다. 참고 : http://www.masterqna.com/android/8543/fragment%EC%99%80-%EA%B4%80%EB%A0%A8%ED%95%9C-%EC%A7%88%EB%AC%B8-%EC%9E%85%EB%8B%88%EB%8B%A4 fragment 클래스의 종류가 2가지 입니다. 하나는 v4 에 있는 fragment 이고 하나는 sdk 12 이후 부터 존재하는 fragment 입니다. 전자는 sdk 13 이전에서도 사용할 수 있게 하기 위해서 별도로 만들어진 lib 개념이고 후자는 sdk 13 부터 지원하는 부분 입니다. v4 를 쓰려면 v4 로 사용해야 되는데 현재 혼재되어 있는 것 같습니다. xml 에서 v4 를 사용하기 위해서는 custome layout 과 같이 fragmeent 의 전.. 2014. 5. 8. 이전 1 ··· 21 22 23 24 25 26 27 ··· 29 다음