목록전체 글 (1477)
오늘도 공부
출처 : http://sdw8001.tistory.com/5 리소스에서 bitmap을 읽어오고 화면에 출력한 후 touch를 이용해서 drag하는 예제 package com.jjihun.bitmaptest; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Rect; import android.util.AttributeSet; import android.util.Log; import android.view.MotionEvent; import android.view.View;..
C2DM과 Notification 사용시 막히는 부분이 있어서 이렇게 질문 드립니다. 01.public class C2dm_BroadcastReceiver extends BroadcastReceiver { // -------- 1번 02. 03.NotificationManager mNotiManager; 04.public static String registration_id = null; 05.static String c2dm_name = ""; 06.static String c2dm_msg = ""; 07. 08. 09.public void onReceive(Context context, Intent intent) { 10. 11.mNotiManager = (NotificationManager)getS..
출처 : http://www.ibm.com/developerworks/opensource/library/x-android/index.html Working with XML on Android Build Java applications for mobile devices Michael Galpin, Software architect, eBay Michael Galpin is an architect at eBay. He is a frequent contributor to developerWorks and has also written for TheServerSide.com and the Java Developer's Journal, as well as his own blog. He has been progra..
출처 : http://www.cyworld.com/prizm0911/3284619 아래 xml파일을 res/values 에 생성. 1.-------------------------------------------------------------------------------------------- color.xml #959ca4 #646d79 #959ca4 #646d79 #686e77 #40474f #00000000 2.-------------------------------------------------------------------------------------------- 아래 xml파일을 res 에 해당 drawable 에 생성. 여기서는 위 1 번에서 설정된 색을 가져와서 셋팅하게됩니다...
SimpleCursorAdapter와 spinner 연결시 getSelectedItem() android by 왕새우 2010/11/26 18:00 daeha.egloos.com/1139323 덧글수 : 0 출처 : http://daeha.egloos.com/1139323 ★ 현상 SimpleCursorAdapter와 spinner 연결해서 사용할 경우 Spinner.getSelectedItem()을 하면 Cursor가 넘어온다. 정확하게 말하면 SQLiteCursor... Cursor에 들어있는 값을 가져오고 싶은데 어떻게 해야하나요? ★ 해결 ((SQLiteCursor)spinner.getSelectedItem()).getString(1) 존나 촌스럽고 더티하다 -_-;; 하지만 일단되니 뭐... 좀..
안드로이드 차트Chart (Graph)관련(/www.androidpub.com) 안드로이드 2010/05/01 14:51 http://blog.naver.com/chullin/130085283285 상용 aiCharts http://www.artfulbits.com/Android/aiCharts.aspx 상용 차트입니다. 갤러리 - http://www.artfulbits.com/Android/gallery/galleryCharts.aspx 우크라이나 회사 같습니다. 미국에서도 영업합니다. 온라인 결재 299달러 시작 오픈소스 achartengine http://code.google.com/p/achartengine/ 현재도 계속 개발중입니다. 종류 line chart area chart scatter c..
@Override public void update(Observable observable, Object data) { // database changed runOnUiThread(new Runnable() { @Override public void run() { stopManagingCursor(cursor); dbAdapter.close(); dbAdapter.open(); cursor = getAccounts(); startManagingCursor(cursor); adapter.changeCursor(cursor); } }); }
Android Custom CursorAdapter 사용법 데이터베이스에 있는 내용을 쿼리해서 리스트에 바인딩 할 때 SimpleCursorAdapter 를 사용하시는 건 다들 아시죠? 하지만 요 어댑터의 맹점은 모든 필드를 하나의 아이템 위젯에 밖에 연결할 수 없다는 것입니다. cs = new SimpleCursorAdapter(this, android.R.layout.simple_list_item_2, cursor, new String[] { "capital", "country" }, new int[] { android.R.id.text1, android.R.id.text2 }); 이 코드는 쿼리해 받아온 cursor 에서 capital, country 필드 두개를 리스트 아이템2 기본 템플릿에 바인..
출처 : http://www.yougli.net/android/a-photoshop-like-color-picker-for-your-android-application/ A Photoshop like color picker for your Android application Introduction Depending on your application, you might one day need a good color picker. With Shake Them All! I needed a color picker to select the color of the default skin and default background. I first had a look at the Android API to see if..
출처 : http://www.androidside.com/bbs/board.php?bo_table=B46&wr_id=1672 안드로이드에서는 트리거를 직접 작성해야 합니다. 트리거 궁금하신 분은 아래 내용 읽어보세요~ 참고 http://blog.daum.net/_blog/BlogView.do?blogid=0Idq4&articleno=8429305#ajax_history_home /* 테스트 테이블 생성 */ CREATE TABLE address (uid INTEGER PRIMARY KEY, name TEXT, gender INTEGER); CREATE TABLE metadata (uid INTEGER PRIMARY KEY, man_count INTEGER, woman_count INTEGER); /* a..
