lab.naminsik
  • Javascript, jQuery
  • Reactjs
  • React Native
  • iOS
  • Android
  • AWS
  • Server
  • Html, CSS
  • Php
  • asp .net
  • SQL
  • Word Press
search
keywords
  • Android 2017‧11‧08

    SurfaceView를 이용한 비디오 플레이어 만들기 코드

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:paddingBottom="@dimen/activity_vertical_margin" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" tools:context=".MainActivity" > <SurfaceView android:id="@+id/surfaceView1" android:layout_width="wrap_content" android:layout_height="wrap_content" /> </LinearLayout> In the MainAcitivity class, in the onCreate method, you write code to create a reference to SurfaceView, get the surface holder, add Callback interface to the holder, and create MediaPlayer instance. In the onSurfaceCreate method (you need […]

  • Android 2017‧11‧08

    음악 플레이 리스트 만들기 (MediaPlayer)

    배열에 음악 파일을 add를 통해서 넣고 리스트를 만든다. 아래 코드는 stackoverflow에 있는 해당 코드를 그대로 가져왔다.  코드를 참고해서 만들면 될 듯 하다. import android.media.MediaPlayer; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.view.Menu; import android.view.MenuItem; import java.util.ArrayList; import java.util.Timer; import java.util.TimerTask; public class MainActivity extends AppCompatActivity { Timer timer; MediaPlayer mp; ArrayList<Integer> playlist; int i=0; @Override protected void […]

popular

  • 모바일웹에서 기상청 날씨(실황) api 가져와서 파싱해서 노출까지 자바스크립트로 만들기
  • 정규식 개인 통관 고유 번호 체크
  • Github, AWS EC2, Next.js CI/CD 자동화 + Slack 연동
  • 안드로이드 - 네트워크 끊겼을 때 webview에 '웹페이지를 찾을 수 없음' 안뜨게 하기
  • JS - datepicker(jQueryUI,달력) 이용시 두개 날짜 범위 설정
  • 아파치 프로세스 설정 및 아파치 로그 설정
  • 가변 인수와 가변 인수의 최대값 구하기
  • 관리자 페이지 중 위젯에서 드래그 & 드롭이 안되는 현상
  • 리눅스 명령어(Linux Command)
  • 입력칸 스타일과 자바스크립트 샘플

comment

  • 드래그가 안 된다는 증상에서 콘솔 오류와 불러오는 파일...
  • 감사합니다!
  • 감사합니다~
  • 잘 해결 되셨다니 다행입니다!...
  • 정말 감사합니다. 덕분에 해결했습니다!...