android Programming Glossary: recommend
Android ViewPager - can't update dynamically http://stackoverflow.com/questions/10849552/android-viewpager-cant-update-dynamically fragment after it's been displayed the first time. I don't recommend the setTag and findViewWithTag workaround provided in the post..
How to make a nice looking ListView filter on Android [closed] http://stackoverflow.com/questions/1737009/how-to-make-a-nice-looking-listview-filter-on-android if a user enters 'wyw' the predictive text will likely recommend 'eye'. Until the user chooses either 'wyw' or 'eye' your OnKeyListener..
Difference between px, dp, dip and sp in Android? http://stackoverflow.com/questions/2025282/difference-between-px-dp-dip-and-sp-in-android is also scaled by the user's font size preference. It is recommend you use this unit when specifying font sizes so they will be..
Writing XML on Android http://stackoverflow.com/questions/2290945/writing-xml-on-android from Android SDK prior to Android 2.2 API 8 . Can you recommend then a third party library for saving Document contents to a..
Launching Google Maps Directions via an intent on Android http://stackoverflow.com/questions/2662531/launching-google-maps-directions-via-an-intent-on-android use an unofficial way Since it isn't official I don't recommend using it . This will fire up Google Maps in navigation mode...
Change language programatically in Android http://stackoverflow.com/questions/2900023/change-language-programatically-in-android It's possible. You can set the locale. However i would not recommend that. We've tried it at early stages it's basically fighting.. here is a code if you still need this again i don't recommend that Resources res context.getResources Change locale settings..
How to send a JSON object over Request with Android? http://stackoverflow.com/questions/3027066/how-to-send-a-json-object-over-request-with-android and receiving HTTP you can use standard Java code. I'd recommend using the Apache HTTP client which comes with Android. Here's..
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 to have full control over the download process I highly recommend using DownloadManager which already handles most of the items..
Make an HTTP request with android http://stackoverflow.com/questions/3505930/make-an-http-request-with-android If you want it to run on separate thread I'd recommend extending AsyncTask class RequestTask extends AsyncTask String..
How to encode a WAV to a mp3 on a Android device http://stackoverflow.com/questions/3641920/how-to-encode-a-wav-to-a-mp3-on-a-android-device pure Java or NDK based solutions are there And can you recommend any of them Failing this I'll just have to save my generated..
Android: Is application running in background? http://stackoverflow.com/questions/3667022/android-is-application-running-in-background may work and it indeed works most of the time I strongly recommend to refrain from using it. And here's why. As Dianne Hackborn..
how do you pass images (bitmaps) between android activities using bundles? http://stackoverflow.com/questions/4352172/how-do-you-pass-images-bitmaps-between-android-activities-using-bundles bundle share improve this question I would highly recommend a different approach. It's possible if you REALLY want to do..
Auto Scale TextView Text to Fit within Bounds http://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds bounds Thanks to everyone who shared what they had I recommend Chase's solution for most cases and I've listed some alternatives..
Install apps silently, with granted INSTALL_PACKAGES permission http://stackoverflow.com/questions/5803999/install-apps-silently-with-granted-install-packages-permission to look into Android's native PackageInstaller . I would recommend modifying that app the way you like or just extract required..
Android: How to declare global variables? http://stackoverflow.com/questions/708012/android-how-to-declare-global-variables in maintaining the Android platform I cannot in good faith recommend ignoring their advice. What they say goes to a certain extent...
When to call activity context OR application context? http://stackoverflow.com/questions/7298731/when-to-call-activity-context-or-application-context an instance of its class which means that some programmers recommend you to use this.getApplicationContext as often as possible in..
Android accelerometer accuracy (Inertial navigation) http://stackoverflow.com/questions/7829097/android-accelerometer-accuracy-inertial-navigation is an explanation why Google Tech Talk at 23 20 . I highly recommend this video. It is not the accelerometer noise that causes the..
What is the most appropriate way to store user settings in Android application http://stackoverflow.com/questions/785973/what-is-the-most-appropriate-way-to-store-user-settings-in-android-application your best bet for storing preferences so in general I'd recommend that approach for saving application and user settings. The..
Android MediaPlayer works fine in Custom audio Streaming application up to Android 2.1 but not in higher versions http://stackoverflow.com/questions/8671479/android-mediaplayer-works-fine-in-custom-audio-streaming-application-up-to-andro a MediaPlayer that supports streaming media 1 . I would recommend doing that rather than using this double buffering technique..
Android ViewPager - can't update dynamically http://stackoverflow.com/questions/10849552/android-viewpager-cant-update-dynamically won't work because FragmentPagerAdapter never destroys a fragment after it's been displayed the first time. I don't recommend the setTag and findViewWithTag workaround provided in the post you linked. As you've discovered using setTag and findViewWithTag..
How to make a nice looking ListView filter on Android [closed] http://stackoverflow.com/questions/1737009/how-to-make-a-nice-looking-listview-filter-on-android this listener only receives some key events . For example if a user enters 'wyw' the predictive text will likely recommend 'eye'. Until the user chooses either 'wyw' or 'eye' your OnKeyListener will not receive a key event. Some may prefer this..
Difference between px, dp, dip and sp in Android? http://stackoverflow.com/questions/2025282/difference-between-px-dp-dip-and-sp-in-android . sp Scale independent Pixels this is like the dp unit but it is also scaled by the user's font size preference. It is recommend you use this unit when specifying font sizes so they will be adjusted for both the screen density and user's preference...
Writing XML on Android http://stackoverflow.com/questions/2290945/writing-xml-on-android pointed out there's no such possibility using classes from Android SDK prior to Android 2.2 API 8 . Can you recommend then a third party library for saving Document contents to a file stream xml android serialization share improve this..
Launching Google Maps Directions via an intent on Android http://stackoverflow.com/questions/2662531/launching-google-maps-directions-via-an-intent-on-android it via browser or Google Maps. If you are in the US you could use an unofficial way Since it isn't official I don't recommend using it . This will fire up Google Maps in navigation mode. Haven't played with it since where I live it isn't available...
Change language programatically in Android http://stackoverflow.com/questions/2900023/change-language-programatically-in-android localization resources share improve this question It's possible. You can set the locale. However i would not recommend that. We've tried it at early stages it's basically fighting the system. We have same requirement for changing language.. it every time you enter activity each activity from my experience. here is a code if you still need this again i don't recommend that Resources res context.getResources Change locale settings in the app. DisplayMetrics dm res.getDisplayMetrics android.content.res.Configuration..
How to send a JSON object over Request with Android? http://stackoverflow.com/questions/3027066/how-to-send-a-json-object-over-request-with-android this question Android doesn't have special code for sending and receiving HTTP you can use standard Java code. I'd recommend using the Apache HTTP client which comes with Android. Here's a snippet of code I used to send an HTTP POST. I don't understand..
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
Make an HTTP request with android http://stackoverflow.com/questions/3505930/make-an-http-request-with-android .getContent .close throw new IOException statusLine.getReasonPhrase If you want it to run on separate thread I'd recommend extending AsyncTask class RequestTask extends AsyncTask String String String @Override protected String doInBackground String.....
How to encode a WAV to a mp3 on a Android device http://stackoverflow.com/questions/3641920/how-to-encode-a-wav-to-a-mp3-on-a-android-device is there a standard Android API for encoding audio If not what pure Java or NDK based solutions are there And can you recommend any of them Failing this I'll just have to save my generated audio as a WAV file which I can easily do. java android encoding..
Android: Is application running in background? http://stackoverflow.com/questions/3667022/android-is-application-running-in-background and it will return correct results. While this solution may work and it indeed works most of the time I strongly recommend to refrain from using it. And here's why. As Dianne Hackborn wrote These APIs are not there for applications to base their..
how do you pass images (bitmaps) between android activities using bundles? http://stackoverflow.com/questions/4352172/how-do-you-pass-images-bitmaps-between-android-activities-using-bundles bundle or is there another approach I should take android image bundle share improve this question I would highly recommend a different approach. It's possible if you REALLY want to do it but it costs a lot of memory and is also slow. It might..
Auto Scale TextView Text to Fit within Bounds http://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds resize a textview to fit wrapped in its getHeight and getWidth bounds Thanks to everyone who shared what they had I recommend Chase's solution for most cases and I've listed some alternatives in my answer. android automation drawing textview textwrapping..
Install apps silently, with granted INSTALL_PACKAGES permission http://stackoverflow.com/questions/5803999/install-apps-silently-with-granted-install-packages-permission silent share improve this question Your first bet is to look into Android's native PackageInstaller . I would recommend modifying that app the way you like or just extract required functionality. Specifically if you look into PackageInstallerActivity..
Android: How to declare global variables? http://stackoverflow.com/questions/708012/android-how-to-declare-global-variables see it at the time. Because of Reto and Diane's roles in maintaining the Android platform I cannot in good faith recommend ignoring their advice. What they say goes to a certain extent. I do wish to disagree extremely strongly with the opinions..
When to call activity context OR application context? http://stackoverflow.com/questions/7298731/when-to-call-activity-context-or-application-context getting it quite right As I understand it so far Each is an instance of its class which means that some programmers recommend you to use this.getApplicationContext as often as possible in order to not leak out any memory. This is because the other..
Android accelerometer accuracy (Inertial navigation) http://stackoverflow.com/questions/7829097/android-accelerometer-accuracy-inertial-navigation but the error is horrible. It is useless in practice. Here is an explanation why Google Tech Talk at 23 20 . I highly recommend this video. It is not the accelerometer noise that causes the problem but the gyro white noise see subsection 6.2.3 Propagation..
What is the most appropriate way to store user settings in Android application http://stackoverflow.com/questions/785973/what-is-the-most-appropriate-way-to-store-user-settings-in-android-application share improve this question In general SharedPreferences are your best bet for storing preferences so in general I'd recommend that approach for saving application and user settings. The only area of concern here is what you're saving. Passwords are..
Android MediaPlayer works fine in Custom audio Streaming application up to Android 2.1 but not in higher versions http://stackoverflow.com/questions/8671479/android-mediaplayer-works-fine-in-custom-audio-streaming-application-up-to-andro Android. All production releases of Android OS have included a MediaPlayer that supports streaming media 1 . I would recommend doing that rather than using this double buffering technique to get around the problem. Android OS 2.2 replaced the old..
|