본문 바로가기

안드로이드

(10)
스트리밍 서버 구현 및 안드로이드에서 보기 글 출처 : http://www.androidpub.com/800570#5 글 작성자 : 분홍쓰레빠 감시시스템을 안드로이드에서 확인하는 것을 구현하려고 무진장 찾아보았어요. 서버에서 돌아가는 감시카메라가 찍는 화면을 보려구요. 윈도우 미디어 인코더, 다윈 스트리밍 서버, VLC 등등 최근에는 웹캠을 소켓으로 연결해서 구현하는 것도 해보고 정말 오랫동안 찾아봤는데 최종적으로는 1. Wowza Media Server 를 간단히 구축해서 (개발자용은 무료지만 동시 접속 10명 등등 제한이) 2. Flash Media Live Encoder로 실시간 인코딩 하면 3. 안드로이드에서 볼수가 있더라고요!! 실무자 분들은 알고 계실지 모르지만 학생이라 많이 몰라서 찾고 해보는 것에 어려움이 많았어요. 글 올려도 답변..
Android Builder Class http://d.android.com/reference/android/os/Build.html 참고.. Build.VERSION.SDK 이런식으로 사용하면 되겠다. Nested Classes class Build.VERSION Various version strings. class Build.VERSION_CODES Enumeration of the currently known SDK version codes. Constants String BOARD The name of the underlying board, like "goldfish". String BRAND The brand (e.g., carrier) the software is customized for, if any. String CPU_AB..
시간표시 관련 튜토리얼 http://java.sun.com/docs/books/tutorial/i18n/format/simpleDateFormat.html Date today; String output; SimpleDateFormat formatter; formatter = new SimpleDateFormat(pattern, currentLocale); today = new Date(); output = formatter.format(today); System.out.println(pattern + " " + output); The following table shows the output generated by the previous code example when the U.S. Locale is specified: Cu..
Android Service 에서 Activity 실행 Context context = getApplicationContext(); Intent intent = new Intent(context, Action.class); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(intent); 여기서 FLAG_ACTIVITY_NEW_TASK 이 플래그.. 이 플래그로 호출되면 동일한 Activity가 검색될 시 그 Activity창이 뜬다.
Android URI List 원문은 http://www.openintents.org/en/uris 여기 참조. List of URIs Show: Applications Intents URIs Extras This is a list of URIs that can be used in intents. View all fields. Add a new URI. Title URIs or MIME types Description A collection content://net.lp.collectionista.products/collections For internal use only: content://net.lp.collectionista.products.collections For example: content://net.lp.collect..
Android Intent (인텐트) 표준 인텐트에 대해 알아보기.. 표준 액션들 ACTION_MAIN ACTION_VIEW ACTION_ATTACH_DATA ACTION_EDIT ACTION_PICK ACTION_CHOOSER ACTION_GET_CONTENT ACTION_DIAL ACTION_CALL ACTION_SEND ACTION_SENDTO ACTION_ANSWER ACTION_INSERT ACTION_DELETE ACTION_RUN ACTION_SYNC ACTION_PICK_ACTIVITY ACTION_SEARCH ACTION_WEB_SEARCH ACTION_FACTORY_TEST 표준 브로드캐스트 액션들(어떤 사건이 발생했는지) ACTION_TIME_TICK ACTION_TIME_CHANGED ACTION_TIMEZONE_CHA..
Android Layout 참고할 때 좋은 Layout Tricks http://www.androidpub.com/256251#5 정말 유익한 글이네요. 원문은 http://developer.android.com/resources/articles/layout-tricks-reuse.html 이곳입니다.
Android 크기(길이) 단위 ㆍpx : 사용중인 화면 픽셀 e.g. "10px" ㆍin : 인치 e.g. "0.5in" ㆍ mm : 미리미터 e.g. "10mm" ㆍpt : 포인트 수(사용화면에서 1/72인치) e.g. "10pt" ㆍdp : 해상도 비 e.g. "10dp" ㆍdip : Density-Independent Pixels. 밀도에 독립적인 화소.. 이것을 써서 레이아웃을 만들어야 한다. e.g. "10dip" ㆍsp : scaled pixels based on preferred font size e.g. "20sp" android:textSize Since: API Level Size of the text. Recommended dimension type for text is "sp" for scaled-pixels (..