목록전체 글 (1326)
오늘도 공부
출처 : http://micropilot.tistory.com/1588 Android 에서 Gallery 위젯을 사용하는 예제 Gallery 상에서 중앙에 위치하는 이미지의 위치를 확인하여 Gallery 하단에 표시하는 기능을 추가해 보았다. 사용된 이미지들 images.zip res/values/attrs.xml res/layout/main.xml GalleryTestActivity.java package com.dearpeople.android.test.gallery; import android.app.Activity; import android.content.Context; import android.os.Bundle; import android.util.Log; import android.view..
FROM : http://cafe.naver.com/sunschool.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=4394& 일반적으로 터치 이벤트는 down-move-up 단계를 거치면서 사용자의 동작을 감지할 수 잇다. 이런 사용자의 조합된 모션(제스쳐)를 쉽게 판별할 수 있도록 안드로이드는 GestureDetector 인터페이스를 제공하고 있다. GestureDetector는 두가지의 Listener를 가지고 있다. interface GestureDetector.OnDoubleTapListener // 두번 터치 했을때 interface GestureDetector.OnGestureListener // 일반적인 제스쳐 위의 두가지를 다가지고 있는 클래스가 Gest..
출처 : http://louise.tistory.com/71 참조 : 갤럭시S 중복 저장 문제 http://www.androidpub.com/733994 갤러리에 저장해서 불러오기: http://moss.tistory.com/7 *. 사진 찍기 0. request code 정의 private final static int ACT_TAKE_PIC = 1; 1. 원하는 지점에서 intent 호출 Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(cameraIntent,ACT_TAKE_PIC); 2. 결과 받기. protected void onActivityResult(int requestCode, ..
오늘은 푸시서버를 구현해보도록 할께요 카카오톡이나 많은 SNS서비스를 제공하는 앱들이 해당 기능을 활용하여 통신을 하고 있죠? 간단할 것 같지만, 막상 해보면 어디서 시작해서 어떤 방식으로 구현을 해야하는지 막막할 수 있어요 저 또한 그랬고 그래서 많은 서핑들을 하게 되는데, 항상 뭔가 아쉽더라구요. 너무 쉬워서 생략해놓은 곳도 있고 기본이라고 생각하고 그냥 언급하지 않은 내용들 때문에 하나 성공하고 나면 결국 다른걸로 막혀서 또 검색하고,,, 그걸 반복하면. 반나절이 지나가더라구요 저 처럼 헤매실 분들을 위하여 정리해보아요~ "렘군와 함께하는 푸시서버 만들기" 자~ 한 시간만 따라하면 아이폰으로 "Hello World" 메세지가 뜰 수 있어요~ 대신 엄청 집중하셔야 되요~ 깔끔하게 Action위주로 정..
출처 : http://artyst.egloos.com/2652130 (2) 서버 소스코드 개발환경 : 자바(JAVA) @ PHP 나 Objective C 는 다루는 곳이 많으므로 자바(JAVA) 로만 작성하도록 하겠다. APNS 와 통신하려면 먼저 java에서 편리하게 이용할 수 있는 라이브러리를 다운로드 받자. http://code.google.com/p/javapns/ 에서 jar 파일을 다운로드 받을 수 있다. 그런데 이 API를 사용하기 위해서 필요한 라이브러리가 있다. commons-lang-x.x.jar 가 없다면 org.apache.commons.lang.StringUtils 를 찾을 수 없다며 에러가 발생한다. bcprov-ext-jdk16-xxx.jar 가 없다면 암호화관련 에러가 발생한..
기본적인 tab(상단) http://blog.naver.com/lomi525?Redirect=Log&logNo=140113900088 tab 하단에 붙이기 http://mainia.tistory.com/554 tabWidget 높이 조절 http://neodreamer.tistory.com/420 tab - activitygroup, intent activity, 하단 http://rosaria1113.blog.me/110885107
[펌] Custom Android Button Style and Theme 안드로이드 / Programing... 2011/04/26 14:11 http://blog.naver.com/khch2489/30107398483 In this tutorial, we’ll see how it’s possible to create a custom button style for an Android application by using the Android styling API. First of all we need to define the new look for our custom button style. We would use three different NinePatch drawables. A custom bla..
setContentView앞에서 적용해야하는 것!! View titleView = getWindow().findViewById(android.R.id.title); if (titleView != null) { ViewParent parent = titleView.getParent(); if (parent != null && (parent instanceof View)) { View parentView = (View)parent; parentView.setBackgroundColor(Color.rgb(0x88, 0x33, 0x33)); } }
출처 : http://catnest.tistory.com/54 http://mudchobo.tistory.com/479 - HttpClient() 를 이용해서 tworld 로그인하기 http://senior.ceng.metu.edu.tr/2009/praeda/2009/01/11/a-simple-restful-client-at-android/ - How-to: Android as a RESTful Client http://www.wiseant.net/95 - org.apache.http.client.ClientProtocolException on Android http://www.mail-archive.com/android-beginners@googlegroups.com/msg12690.html - [an..
출처 : http://blog.naver.com/leespop/140121910438 editText01 = (EditText) findViewById(R.id.EditText01); editText01.setOnEditorActionListener(new OnEditorActionListener() { @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if(actionId == EditorInfo.IME_ACTION_DONE){ // IME_ACTION_SEARCH , IME_ACTION_GO // Toast.makeText(MainActivity.this, "123", Toast.LENGTH_SHORT..