음성 인식 실행하기try{ Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM); intent.putExtra(RecognizerIntent.EXTRA_PROMPT, "Free Form Language Model Demo"); startActivityForResult(intent, REQUEST_SMS); } catch (ActivityNotFoundException ex) { Toast.makeText(NXTRemoteControl.this, "Activity..
이클립스에서 .java파일의 한글깨질 경우 처리 1. 기본 이클립스Preferences -> General -> Workspace: Text File encoding 을 Other => UTF-8 로 지정!! 2.Preferences -> General -> Content Types -> Text -> Java Source File: Default encoding => euc-kr 로 지정 후 Update!! 3. import 받은 파일 Properties는 => UTF-8 임
private String MOVIE_URL = "동영상 주소"; @Overridepublic void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.video); android.widget.VideoView vv = (android.widget.VideoView) findViewById(R.id.VideoView);MediaController mediaController = new MediaController(this);mediaController.setAnchorView(vv);// Set video link (mp4 format )Uri video = Uri.parse(MOV..
public void getPhoneBookList(){ Uri ContactsUri = ContactsContract.CommonDataKinds.Phone.CONTENT_URI; String disId = ContactsContract.CommonDataKinds.Phone.CONTACT_ID; String disName = ContactsContract.CommonDataKinds.Phone.DISPLAY_NAME; String number = ContactsContract.CommonDataKinds.Phone.NUMBER; Cursor cursor = getContentResolver().query(ContactsUri, new String[]{disId, disName, number}, nul..