android removed

Posted by Hoit.
2016. 1. 15. 16:48 Study/Android removed

android removed 모음 

 

 

1.void setLatestEventInfo()

   -> void setLatestEventInfo()

 

참고사이트 :

https://developer.android.com/intl/ko/sdk/api_diff/23/changes/android.app.Notification.html

 

speak(String text, int queueMode, HashMap<String, String>params)

Posted by Hoit.
2016. 1. 14. 14:05 Study/Android deprecated

TTS Function(This method was deprecated in API level 21.)

 

 

   speak(String text, int queueMode, HashMap<String, String>params)

 

   ->speak(String text, int queueMode, HashMap<String, String>params)

 

   ->speak(CharSequence, int, Bundle, String)

-

 

TTS에서 음성으로 읽어주는 기능이다.

 

 

여기서 알아둘것이 있다.

 

deprecated된 메서드를 안쓰고 바뀐 메서드를 사용했을때, 

-

 

 

에러가 뜨고 알아보니 Annotation을 추가하라고 한다.

-

 

추가시켰더니 위에 TargetApi 어쩌구 하면서 알 수 없는 것이 생겼다.

 

뭐가 생긴진 모르고 실행시켜봤더니, 앱이 실행되자마자 중단된다.

(실행시킨 Device는 API 18 이었다)

 

중단되서 알아보니 해당 메서드는 롤리팝이상(API 21)에서 사용해야된다.

 

 

 

- 해결방법

 

   = 버전을 확인해서 롤리팝(API21) 이상이면 바뀐 메서드

 

      버전을 확인해서 롤리팝 이전이면 바뀌기전 메서드를 사용하면 된다.

-

 

 

 

 

참고사이트 : http://stackoverflow.com/questions/27968146/texttospeech-with-api-21

'Study > Android deprecated' 카테고리의 다른 글

android.hardware.Camera  (0) 2016.01.07
deprecated  (0) 2016.01.07

reference 영단어 - 1

Posted by Hoit.
2016. 1. 13. 00:45 기타/Reference 영단어

수시업데이트 자료

 

1. NetworkInfo

   ① fine-grained : 여러개의 호출 -> 하나의 작업결과

      -> NetworkInfo.DetailedState : The fine-grained stated of a network connection.

 

   ② coarse-grained : 하나의 호출 -> 여러개의 작업결과

      -> NetworkInfo.State : Coarse-grained network state.

 

   참고사이트 : http://developer.android.com/reference/android/net/NetworkInfo.html

 

 

2. MalformedURLException

   ① malforemd : 기형의, 일그러진

      -> MalformedURLException : 잘못된 URL Exception

 

   참고사이트 : http://developer.android.com/reference/java/net/MalformedURLException.html

 

 

3. JSONObject

   ① coerce : 강요하다

      -> This class can coerce values to another type when requested.

 

   ② sentinel value : 감시값, 보초값 (반복을 중단하기 위해 사용된 값)

      -> Although null cannot be coerced, the sentinel value Null is coerced to the string "null"

 

   참고사이트 : http://developer.android.com/reference/org/json/JSONObject.html

 

 

 

 

4. TextToSpeech

   ① Synthesize : (장치를 이용하여 소리를) 합성하다

   ② playback : 재생

      ->Synthesizes speech from for immediate playback or to create a sound file.

 

   참고사이트 : http://developer.android.com/reference/android/speech/tts/TextToSpeech.html 

 

 

 

5. ViewPager

   ① in conjunction with : ~와 함께

      ->ViewPager is most often used in conjunction with Fragment,

 

   참고사이트 : http://developer.android.com/intl/ko/reference/android/support/v4/view/ViewPager.html 

 

 

 

 

 

 

전체참고사이트 : http://developer.android.com/reference/packages.html