본문 바로가기
[android] Google Map V2 manifest 설정 안드로이드, Google Map V2 manifest 설정 1. Permission 정의 2. Permission 설정 3. uses-feature 설정 4, Application Tag 에 Map API KEY 설정 2.0, 20000, access_coarse_location, access_fine_location, Android, android:protectionlevel, API KEY, application tag, com.google.android.maps.v2.api_key, com.google.android.providers.gsf.permission.read_gservices, glesversion, google map v2, internet, manifest, meta-data, per.. 2013. 10. 24.
[android] addToBackStack( String name ) 뭐하는 녀석이냐? 안드로이드, addToBackStack( String name ) FragmentTransaction.addToBackStack( String name ) name 은 optional 로 들어간다.이 함수가 불리면 이 transaction 은 back stack 에 쌓인다.이것은 다시 말해 이 transaction 은 기억되고, 후에 stack 에서 pop 이 될 수 있다. addtobackstack, Android, back stack, fragment pop, fragment stack, fragmenttransaction, Name, POP, Stack, stack pop, transaction, 안드로이드 2013. 10. 23.
[java] full 한글 판별 코드 Java, Full 한글 판별 코드 Full 한글이라 하면, ㅈ ㅇ ㅏ ㅗ 와 같은 완성되지 않은 한글이 아닌,감. 자. 가. 갈 등과 같이 조합이 완성한 한글을 이야기한다.이는 character 당 ascii code 로 판별이 가능하다. return ch >= 0xAC00 && ch 2013. 10. 21.
[android] apply different colors on the texts in the textview using xml 안드로이드, apply different colors on the texts in the textview using xml Here is a text. This is red color]]> and This is green color]]>. Like it? Various text color is not applied directly.You need to convert the string as a Spanned form with Html.fromHtml function. 다양한 색상이 바로 적용되지 않습니다.해당 string 을 Html.fromHtml 함수를 이용하여 Spanned 형태로 전환해야 합니다. textView.setText( Html.fromHtml( getString( R.string.var.. 2013. 10. 21.
[android] how can I detect if notification clear button is clicked? android, how can I detect if notification clear button is clicked? [En] Very easy.When you make Notification instance, just add delete intent with setDeleteIntent() method. private Notification getNotification( Context context, Intent intent, String pushMessage ){int notiCount = Application.getNotiMessageCount();NotificationCompat.Builder builder = new NotificationCompat.Builder(context).setSmal.. 2013. 10. 16.
[android] at GingerBread device GCM register returns SERVICE_NOT_AVAILABLE android, @ GingerBread device, GCM register returns SERVICE_NOT_AVAILABLE [En] java.io.IOException: SERVICE_NOT_AVAILABLEat com.google.android.gms.gcm.GoogleCloudMessaging.register(Unknown Source) Even though GCM register function returns SERVICE_NOT_AVAILABLE, registration process is actually done well. You can check the registration id, a.k.a. device token, via Broadcast Receiver with followin.. 2013. 10. 15.
[android] HttpClient vs. HttpURLConnection 안드로이드, HttpClient vs. HttpURLConnection HttpClient HttpClient 는 아파치 라이브러리를 사용. DefaultHttpClient 와 AndroidHttpClient 가 제공된다. 방대한 API 가 지원하고, 버그가 별로 없이 안정적으로 동작한다. 하지만, 너무 방대한 API 를 제공하여 안드로이드 개발팀은 이 클래스들을 더 이상 지원하지 않는다. HttpURLConnection HttpURLConnection 은 가벼운 version 의 HttpClient 라 볼 수 있겠다. 핵심적인 API 들만을 가지고 있다. 그러나 프로요 이전 버전의 경우 HttpURLConnection 클래스에 이상한 버그들이 있었다. InputStream 을 열어둔 상태에서 close.. 2013. 10. 11.
[Java] JDBC, Database 연결하여 사용하기 자바, JDBC, Database 연결하여 사용하기 JDBC 를 이용하여 Database 를 연결하여 사용하는 방법을 알아본다. Statement Database Query 는 Statement 객체를 이용하는데, 이 객체는 DBConnection 을 통해서 얻을 수 있다. Statement stmt = con.createStatement(); Statement 에는 다음의 2개의 대표함수가 있다. int executeUpdate( String sql ); // db 조작에 관한 어떤 명령을 수행한다. ResultSet executeQuery( String sql ) // db query 에 사용된다. ResultSet ResultSet 은 안드로이드의 Cursor 와 같은 녀석이라고 보면 된다.Resu.. 2013. 10. 11.
[android] how can I know if there is any application which can handle an intent. android, how can I know if there is any application which can handle an intent? public static boolean hasAvailableIntentHandlingApp( Context context, Intent intent ){List list = context.getPackageManager().queryIntentActivities( intent, PackageManager.MATCH_DEFAULT_ONLY );return list.size() != 0;} Android, hasAvailableIntentHandlingApp, match_default_only, PackageManager, queryintentactivity, re.. 2013. 10. 10.
반응형