android Programming Glossary: build.version_codes.honeycomb
Android datepicker min max date before api level 11 http://stackoverflow.com/questions/10836679/android-datepicker-min-max-date-before-api-level-11 findViewById R.id.xxxxx if Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB picker is a DatePicker this.datePicker.setMinDate this.calendar.getTimeInMillis..
ActionBarSherlock - Tabs appearing ABOVE actionbar with custom view http://stackoverflow.com/questions/12973143/actionbarsherlock-tabs-appearing-above-actionbar-with-custom-view it helped View homeIcon findViewById Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB android.R.id.home R.id.abs__home View homeIcon.getParent .setVisibility..
What is better: @SuppressLint or @TargetApi? http://stackoverflow.com/questions/14341042/what-is-better-suppresslint-or-targetapi AsyncTask T task T... params if Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB task.executeOnExecutor AsyncTask.THREAD_POOL_EXECUTOR params..
Using the Android RecognizerIntent with a bluetooth headset http://stackoverflow.com/questions/14991158/using-the-android-recognizerintent-with-a-bluetooth-headset if mIsStarted mIsStarted true if Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB mIsStarted startBluetooth else mIsStarted startBluetooth11.. if mIsStarted mIsStarted false if Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB stopBluetooth else stopBluetooth11 @return true if audio.. for off call or error in getting profile proxy. @TargetApi Build.VERSION_CODES.HONEYCOMB private boolean startBluetooth11 Log.d TAG startBluetooth11..
How to drag the TextView to the correct target other TextView http://stackoverflow.com/questions/17344259/how-to-drag-the-textview-to-the-correct-target-other-textview choice2 choice3 public CharSequence dragData @TargetApi Build.VERSION_CODES.HONEYCOMB @SuppressLint NewApi @Override protected void onCreate Bundle..
new Selectable TextView in android 3 (API <=11) component http://stackoverflow.com/questions/18042308/new-selectable-textview-in-android-3-api-11-component boolean selectable if Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB super.setTextIsSelectable true else super.setLongClickable..
How to detect 412 precondition failed errors in android webview url http://stackoverflow.com/questions/19009312/how-to-detect-412-precondition-failed-errors-in-android-webview-url .getLoadsImagesAutomatically if Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB mWebview.getSettings .setDisplayZoomControls false if StringUtils.isEmpty..
How do I resolve the authentication message that keeps popping up in a webview? http://stackoverflow.com/questions/19256509/how-do-i-resolve-the-authentication-message-that-keeps-popping-up-in-a-webview mSearchTerm if Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB mWebview.getSettings .setDisplayZoomControls false SharedPreferencesManager..
Download a file with Android, and showing the progress in a ProgressDialog http://stackoverflow.com/questions/3028306/download-a-file-with-android-and-showing-the-progress-in-a-progressdialog android 3.2 to compile your app if Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB request.allowScanningByMediaScanner request.setNotificationVisibility..
Android Alert Dialog Background Issue API 11+ http://stackoverflow.com/questions/8685351/android-alert-dialog-background-issue-api-11 final AlertDialog.Builder builder if Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB builder new AlertDialog.Builder this else builder new AlertDialog.Builder..
Android SDK AsyncTask doInBackground not running (subclass) http://stackoverflow.com/questions/9119627/android-sdk-asynctask-doinbackground-not-running-subclass new ASyncTask Void Void Void ... if Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB my_task.executeOnExecutor AsyncTask.THREAD_POOL_EXECUTOR Void..
How to code backward compatible new feature in Android SDK? http://stackoverflow.com/questions/9558638/how-to-code-backward-compatible-new-feature-in-android-sdk public static boolean isHoneycomb return getSdkVersion Build.VERSION_CODES.HONEYCOMB Determine if the device is running API level 14 or higher...
Android datepicker min max date before api level 11 http://stackoverflow.com/questions/10836679/android-datepicker-min-max-date-before-api-level-11 this.calendar new GregorianCalendar this.datePicker DatePicker findViewById R.id.xxxxx if Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB picker is a DatePicker this.datePicker.setMinDate this.calendar.getTimeInMillis else final int minYear this.calendar.get..
ActionBarSherlock - Tabs appearing ABOVE actionbar with custom view http://stackoverflow.com/questions/12973143/actionbarsherlock-tabs-appearing-above-actionbar-with-custom-view to use this actionBar.setLogo null forgot why this one but it helped View homeIcon findViewById Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB android.R.id.home R.id.abs__home View homeIcon.getParent .setVisibility View.GONE View homeIcon .setVisibility View.GONE..
What is better: @SuppressLint or @TargetApi? http://stackoverflow.com/questions/14341042/what-is-better-suppresslint-or-targetapi devices @TargetApi 11 static public T void executeAsyncTask AsyncTask T task T... params if Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB task.executeOnExecutor AsyncTask.THREAD_POOL_EXECUTOR params else task.execute params Having @TargetApi 11 means that if..
Using the Android RecognizerIntent with a bluetooth headset http://stackoverflow.com/questions/14991158/using-the-android-recognizerintent-with-a-bluetooth-headset of startBluetooth or startBluetooth11 public boolean start if mIsStarted mIsStarted true if Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB mIsStarted startBluetooth else mIsStarted startBluetooth11 return mIsStarted Should call this on onResume or onDestroy... Sco audio connection and cancel count down. public void stop if mIsStarted mIsStarted false if Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB stopBluetooth else stopBluetooth11 @return true if audio is connected through headset. public boolean isOnHeadsetSco.. bluetooth or current platform does not supports use of SCO for off call or error in getting profile proxy. @TargetApi Build.VERSION_CODES.HONEYCOMB private boolean startBluetooth11 Log.d TAG startBluetooth11 NON NLS 1 Device support bluetooth if mBluetoothAdapter null..
How to drag the TextView to the correct target other TextView http://stackoverflow.com/questions/17344259/how-to-drag-the-textview-to-the-correct-target-other-textview Activity private TextView option1 option2 option3 choice1 choice2 choice3 public CharSequence dragData @TargetApi Build.VERSION_CODES.HONEYCOMB @SuppressLint NewApi @Override protected void onCreate Bundle savedInstanceState super.onCreate savedInstanceState setContentView..
new Selectable TextView in android 3 (API <=11) component http://stackoverflow.com/questions/18042308/new-selectable-textview-in-android-3-api-11-component following to the code @SuppressLint NewApi public void setTextIsSelectable boolean selectable if Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB super.setTextIsSelectable true else super.setLongClickable true super.setOnLongClickListener getSelectableLongClick super.setOnTouchListener..
How to detect 412 precondition failed errors in android webview url http://stackoverflow.com/questions/19009312/how-to-detect-412-precondition-failed-errors-in-android-webview-url mWebview.setScrollbarFadingEnabled false mWebview.getSettings .getLoadsImagesAutomatically if Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB mWebview.getSettings .setDisplayZoomControls false if StringUtils.isEmpty URL else if StringUtils.isEmpty URL if URLUtil.isValidUrl..
How do I resolve the authentication message that keeps popping up in a webview? http://stackoverflow.com/questions/19256509/how-do-i-resolve-the-authentication-message-that-keeps-popping-up-in-a-webview view.stopLoading SearchResultsFragment.newInstance getFragmentManager mSearchTerm if Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB mWebview.getSettings .setDisplayZoomControls false SharedPreferencesManager mgr SharedPreferencesManager.getInstance ..
Download a file with Android, and showing the progress in a ProgressDialog http://stackoverflow.com/questions/3028306/download-a-file-with-android-and-showing-the-progress-in-a-progressdialog Some title in order for this if to run you must use the android 3.2 to compile your app if Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB request.allowScanningByMediaScanner request.setNotificationVisibility DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED..
Android Alert Dialog Background Issue API 11+ http://stackoverflow.com/questions/8685351/android-alert-dialog-background-issue-api-11 in API 11. My fix was simply to change the line to final AlertDialog.Builder builder if Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB builder new AlertDialog.Builder this else builder new AlertDialog.Builder this R.style.JumpDialog share improve this answer..
Android SDK AsyncTask doInBackground not running (subclass) http://stackoverflow.com/questions/9119627/android-sdk-asynctask-doinbackground-not-running-subclass this and problem is gone ASyncTask Void Void Void my_task new ASyncTask Void Void Void ... if Build.VERSION.SDK_INT Build.VERSION_CODES.HONEYCOMB my_task.executeOnExecutor AsyncTask.THREAD_POOL_EXECUTOR Void null else my_task.execute Void null share improve this answer..
How to code backward compatible new feature in Android SDK? http://stackoverflow.com/questions/9558638/how-to-code-backward-compatible-new-feature-in-android-sdk Determine if the device is running API level 11 or higher. public static boolean isHoneycomb return getSdkVersion Build.VERSION_CODES.HONEYCOMB Determine if the device is running API level 14 or higher. public static boolean isIceCreamSandwich return getSdkVersion..
|