android Programming Glossary: newapi
How to justify text on a TextView made easy- Android http://stackoverflow.com/questions/11922861/how-to-justify-text-on-a-textview-made-easy-android void setText String s this.text s reloadData @SuppressLint NewApi private void reloadData loadData ... has a bug showing utf 8..
how to convert or record .wav file in 16khz 16bit mono little-endian? http://stackoverflow.com/questions/12260476/how-to-convert-or-record-wav-file-in-16khz-16bit-mono-little-endian null private boolean isRecording false @SuppressLint NewApi @Override public void onCreate Bundle savedInstanceState super.onCreate.. AUDIO_RECORDER_TEMP_FILE @SuppressLint NewApi NewApi private void startRecording recorder new AudioRecord.. AUDIO_RECORDER_TEMP_FILE @SuppressLint NewApi NewApi private void startRecording recorder new AudioRecord MediaRecorder.AudioSource.MIC..
How to show multiple markers on MapFragment in Google Map API v2? http://stackoverflow.com/questions/13855049/how-to-show-multiple-markers-on-mapfragment-in-google-map-api-v2 new OnGlobalLayoutListener @SuppressLint NewApi We check which build version we are using. @Override public..
How to get onClickListener() event on custom actionbar http://stackoverflow.com/questions/16079028/how-to-get-onclicklistener-event-on-custom-actionbar String a a aa private View header @SuppressLint NewApi @Override protected void onCreate Bundle savedInstanceState..
how to get current week days in calender http://stackoverflow.com/questions/17766665/how-to-get-current-week-days-in-calender adapter private Calendar _calendar @SuppressLint NewApi private int month year @SuppressWarnings unused @SuppressLint.. int month year @SuppressWarnings unused @SuppressLint NewApi NewApi NewApi NewApi private final DateFormat dateFormatter.. month year @SuppressWarnings unused @SuppressLint NewApi NewApi NewApi NewApi private final DateFormat dateFormatter new DateFormat..
new Selectable TextView in android 3 (API <=11) component http://stackoverflow.com/questions/18042308/new-selectable-textview-in-android-3-api-11-component I have also added the following to the code @SuppressLint NewApi public void setTextIsSelectable boolean selectable if Build.VERSION.SDK_INT..
GCM Not Sending the Notifications http://stackoverflow.com/questions/18571844/gcm-not-sending-the-notifications AtomicInteger Context context String regid @SuppressLint NewApi @Override public void onCreate Bundle savedInstanceState super.onCreate.. if there is no existing registration ID. @SuppressLint NewApi private String getRegistrationId Context context final SharedPreferences..
Android Gallery on KitKat returns different Uri for Intent.ACTION_GET_CONTENT http://stackoverflow.com/questions/19834842/android-gallery-on-kitkat-returns-different-uri-for-intent-action-get-content originalUri Probably need @SuppressLint NewApi for takePersistableUriPermission share improve this answer..
How to justify text on a TextView made easy- Android http://stackoverflow.com/questions/11922861/how-to-justify-text-on-a-textview-made-easy-android attrs this.setWebChromeClient new WebChromeClient public void setText String s this.text s reloadData @SuppressLint NewApi private void reloadData loadData ... has a bug showing utf 8 correctly. That's why we need to set it first. this.getSettings..
how to convert or record .wav file in 16khz 16bit mono little-endian? http://stackoverflow.com/questions/12260476/how-to-convert-or-record-wav-file-in-16khz-16bit-mono-little-endian null private int bufferSize 0 private Thread recordingThread null private boolean isRecording false @SuppressLint NewApi @Override public void onCreate Bundle savedInstanceState super.onCreate savedInstanceState setContentView R.layout.main.. if tempFile.exists tempFile.delete return file.getAbsolutePath AUDIO_RECORDER_TEMP_FILE @SuppressLint NewApi NewApi private void startRecording recorder new AudioRecord MediaRecorder.AudioSource.MIC RECORDER_SAMPLERATE RECORDER_CHANNELS.. if tempFile.exists tempFile.delete return file.getAbsolutePath AUDIO_RECORDER_TEMP_FILE @SuppressLint NewApi NewApi private void startRecording recorder new AudioRecord MediaRecorder.AudioSource.MIC RECORDER_SAMPLERATE RECORDER_CHANNELS..
How to show multiple markers on MapFragment in Google Map API v2? http://stackoverflow.com/questions/13855049/how-to-show-multiple-markers-on-mapfragment-in-google-map-api-v2 .isAlive mapView.getViewTreeObserver .addOnGlobalLayoutListener new OnGlobalLayoutListener @SuppressLint NewApi We check which build version we are using. @Override public void onGlobalLayout LatLngBounds.Builder bld new LatLngBounds.Builder..
How to get onClickListener() event on custom actionbar http://stackoverflow.com/questions/16079028/how-to-get-onclicklistener-event-on-custom-actionbar extends Activity private View viewList private Dialog dialogMarketList String a a aa private View header @SuppressLint NewApi @Override protected void onCreate Bundle savedInstanceState super.onCreate savedInstanceState setContentView R.layout.activity_main..
how to get current week days in calender http://stackoverflow.com/questions/17766665/how-to-get-current-week-days-in-calender nextMonth private GridView calendarView private GridCellAdapter adapter private Calendar _calendar @SuppressLint NewApi private int month year @SuppressWarnings unused @SuppressLint NewApi NewApi NewApi NewApi private final DateFormat dateFormatter.. adapter private Calendar _calendar @SuppressLint NewApi private int month year @SuppressWarnings unused @SuppressLint NewApi NewApi NewApi NewApi private final DateFormat dateFormatter new DateFormat private static final String dateTemplate MMMM.. private Calendar _calendar @SuppressLint NewApi private int month year @SuppressWarnings unused @SuppressLint NewApi NewApi NewApi NewApi private final DateFormat dateFormatter new DateFormat private static final String dateTemplate MMMM yyyy Called..
new Selectable TextView in android 3 (API <=11) component http://stackoverflow.com/questions/18042308/new-selectable-textview-in-android-3-api-11-component AttributeSet attrs int defStyle super context attrs defStyle I have also added the following to the code @SuppressLint NewApi public void setTextIsSelectable boolean selectable if Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB super.setTextIsSelectable..
GCM Not Sending the Notifications http://stackoverflow.com/questions/18571844/gcm-not-sending-the-notifications mDisplay GoogleCloudMessaging gcm AtomicInteger msgId new AtomicInteger Context context String regid @SuppressLint NewApi @Override public void onCreate Bundle savedInstanceState super.onCreate savedInstanceState setContentView R.layout.activity_main.. needs to register. @return registration ID or empty string if there is no existing registration ID. @SuppressLint NewApi private String getRegistrationId Context context final SharedPreferences prefs getGcmPreferences context String registrationId..
Android Gallery on KitKat returns different Uri for Intent.ACTION_GET_CONTENT http://stackoverflow.com/questions/19834842/android-gallery-on-kitkat-returns-different-uri-for-intent-action-get-content
|