개발183 android insufficient permissions error 9 개발시 record audio 권한을 manifest 에 선언해놓았는데insufficient error 가 발생했다. 해결방법은 2가지인데, 그 중 한가지는 runtime 에서 권한 요청을 한다.요청 코드 예제는 아래와 같다. // Here, thisActivity is the current activity if (ContextCompat.checkSelfPermission(thisActivity, Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED) { // Should we show an explanation? if (ActivityCompat.shouldShowRequestPermissionRationale(thisActi.. 2016. 11. 6. INSERT, UPDATE WITH MULTI SELECT QUERY INSERT INTO account_type_standard (account_type_Standard_id, tax_status_id, recipient_id) VALUES( (SELECT account_type_standard_seq.nextval FROM DUAL), (SELECT tax_status_id FROM tax_status WHERE tax_status_code = ?), (SELECT recipient_id FROM recipient WHERE recipient_code = ?) ) 출처 : http://stackoverflow.com/questions/131164/oracle-insert-via-select-from-multiple-tables-where-one-table-may-not.. 2016. 11. 4. MYBATIS 변수형이 모호할 때 발생하는 에러 처리 insert into (emp_no, emp_name) values ( #{empNo, jdbcType=INTEGER}, #{empName, jdbcType=VARCHAR}) 출처 : http://gubok.tistory.com/399 2016. 11. 4. 오라클 세션 관련 특정 조건으로 한방에 지우기 ... ALTER SYSTEM ENABLE RESTRICTED SESSION; begin for x in ( select Sid, Serial#, machine, program from v$session where machine 'MyDatabaseServerName' ) loop execute immediate 'Alter System Kill Session '''|| x.Sid || ',' || x.Serial# || ''' IMMEDIATE'; end loop; end;I skip killing sessions originating on the database server to avoid killing off Oracle's connections to itself. 출처.. 2016. 11. 2. 이전 1 ··· 37 38 39 40 41 42 43 ··· 46 다음