android Programming Glossary: especially
Understanding Fragment's setRetainInstance(boolean) http://stackoverflow.com/questions/11182180/understanding-fragments-setretaininstanceboolean can be quite useful for propagating state information especially thread management across activity instances. For example a fragment..
Google maps api v2 custom infowindow like in original android google maps http://stackoverflow.com/questions/14123243/google-maps-api-v2-custom-infowindow-like-in-original-android-google-maps onTouch events but IMHO you can't make it look good enough especially on some slow devices. If you do it the simple way it jumps around..
Android: customize application's menu (e.g background color) http://stackoverflow.com/questions/1593529/android-customize-applications-menu-e-g-background-color the one triggered by the MENU button of the phone . I'm especially interested in two things changing the background color from..
Overriding referenced style attributes http://stackoverflow.com/questions/17103894/overriding-referenced-style-attributes defeats the whole purpose of overriding this attribute especially since I would like to override this attribute in multiple themes...
MathML and Java http://stackoverflow.com/questions/1784786/mathml-and-java point 4 of your list . Maybe that JEuclid is to slow especially at startup for rendering MathML on a mobile phone Other alternatives..
Quitting an application - is that frowned upon? http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon this automatically. That's what the activity lifecycle especially onPause onStop onDestroy is for. No matter what you do do not..
What's a good library for parsing mathematical expressions in java? [closed] http://stackoverflow.com/questions/2226863/whats-a-good-library-for-parsing-mathematical-expressions-in-java to be popular but I would like to hear more suggestions especially from people who have used these libraries before. java android..
How to register some URL namespace (myapp://app.start/) for accessing your program by calling a URL in browser in Android OS? http://stackoverflow.com/questions/2430045/how-to-register-some-url-namespace-myapp-app-start-for-accessing-your-progr you are going to handle with a particular component especially defining an action name in your own namespace com.mycompany.myapp.action.DO_SOMETHING..
View the Task's activity stack http://stackoverflow.com/questions/2442713/view-the-tasks-activity-stack element. However it would be nice to have a sort of tool especially in debug mode or so that would allow developers to see the Activity..
Android: Using linear gradient as background looks banded http://stackoverflow.com/questions/2928101/android-using-linear-gradient-as-background-looks-banded .setDither true solves my problem If this is not enough especially for AMOLED and or hdpi devices try this @Override public void..
How to programatically create and read WEP/EAP WiFi configurations in Android? http://stackoverflow.com/questions/4374862/how-to-programatically-create-and-read-wep-eap-wifi-configurations-in-android the community. I know this is not that straight forward especially EAP to figure out because When I wanted to acheive the same..
How can I get root permissions through the Android SDK? http://stackoverflow.com/questions/5293615/how-can-i-get-root-permissions-through-the-android-sdk Android Manifest. I saw this link in the documentation and especially noted the FACTORY_TEST permission public static final String..
Android: Clear the back stack http://stackoverflow.com/questions/5794506/android-clear-the-back-stack foreground and then clear it to its root state. This is especially useful for example when launching an activity from the notification..
Android - disable landscape mode? http://stackoverflow.com/questions/582185/android-disable-landscape-mode portrait can make your app a giant usability hassle especially on the Shield . If your app doesn't have an extremely specific..
iOS / Android cross platform development [duplicate] http://stackoverflow.com/questions/6171128/ios-android-cross-platform-development in Unity. If you don't know it I recommend checking it out especially if there are any kids in your household . Max is available for..
Could not find Library.apk! http://stackoverflow.com/questions/6337673/could-not-find-library-apk error message persists. What does this error message mean especially in light that everything seems to be running OK How do I get..
Separate Back Stack for each tab in Android using Fragments http://stackoverflow.com/questions/6987334/separate-back-stack-for-each-tab-in-android-using-fragments is going to do different things depending on the tab I am especially if the back key also has its normal behavior of closing the..
Indoor Positioning System based on Gyroscope and Accelerometer http://stackoverflow.com/questions/7499959/indoor-positioning-system-based-on-gyroscope-and-accelerometer out that that filter is very very complex too much for me especially to code it in java for Android cpu killer Does someone has some..
R cannot be resolved - Android error http://stackoverflow.com/questions/885009/r-cannot-be-resolved-android-error statement at the top of your files that use resources especially when you ask Eclipse to sort or otherwise manage imports. This..
Publishing an App on Google Play [closed] http://stackoverflow.com/questions/9809682/publishing-an-app-on-google-play share improve this question It takes a little time especially to show up in search. The direct URL should work sooner though..
How to unit test a class that uses HttpClient in Android using the built-in framework? http://stackoverflow.com/questions/10136682/how-to-unit-test-a-class-that-uses-httpclient-in-android-using-the-built-in-fram I cannot find a way to test it using a standard framework. Especially I need to simulate total internet lost from inside the test...
Why to use sqlite Database in Android? http://stackoverflow.com/questions/10329842/why-to-use-sqlite-database-in-android to restore the state from the database if you have one Especially for the case of complex calculations it is good to store the..
Changing the background drawable of the searchview widget http://stackoverflow.com/questions/11085308/changing-the-background-drawable-of-the-searchview-widget right view within SearchView but it's not bullet proof. Especially if some manufacturer decides to reimplement internals of SearchView..
Pause an Android App with Phonegap http://stackoverflow.com/questions/11434845/pause-an-android-app-with-phonegap to remember its state and keep running in the background. Especially if there's still an asynchronous job being done in the background...
state_activated on pre Honeycomb Devices http://stackoverflow.com/questions/13531272/state-activated-on-pre-honeycomb-devices the activated item s . How can this behaviour be emulated Especially when using fragements list on the left in one fragment and depending..
google drive api error 403 Access Not configured http://stackoverflow.com/questions/16731196/google-drive-api-error-403-access-not-configured have the right settings for Android here is and example Especially check the package name Client ID 6756856856 lv3w3qw268df7235w3twtw3tqwq3fg4l3gdi.apps.googleusercontent.com..
How to implement an audio player for Android using MediaPlayer And MediaController? http://stackoverflow.com/questions/2220575/how-to-implement-an-audio-player-for-android-using-mediaplayer-and-mediacontroll and is there any good example of AUDIO player for Android Especially I'm very interested how to use MediaPlayer and MediaController..
How to create PDFs in Android SDK? http://stackoverflow.com/questions/2499960/how-to-create-pdfs-in-android-sdk of your application just so my answer can be relevant . Especially in situations when there is a simple answer to what person is..
Change the side the text appears on a radio button http://stackoverflow.com/questions/2631839/change-the-side-the-text-appears-on-a-radio-button Guidelines in response to this particular question. Especially considering that adjusting the RadioButton layout to place the..
Android: trying to understand android:layout_weight http://stackoverflow.com/questions/3629331/android-trying-to-understand-androidlayout-weight I have a hard time understanding it and getting it right. Especially how the actual size gets calculated. Is there a way to get a..
Fake call in android http://stackoverflow.com/questions/3716241/fake-call-in-android which are used to display the incoming call screen. Especially the java file is quite long and complex but the layout combined..
How to display image with WebView loaddata? http://stackoverflow.com/questions/5267124/how-to-display-image-with-webview-loaddata takes a mime type if it can only handle text html . Especially since the javadoc lists image jpeg as an example mime type that..
SoftReference gets garbage collected too early http://stackoverflow.com/questions/5757969/softreference-gets-garbage-collected-too-early caching behavior you need a real cache. Like a LRU cache . Especially if you're caching is performance critical you should use a proper..
Get list of available WiFi spots http://stackoverflow.com/questions/5936191/get-list-of-available-wifi-spots Have a look on the methods of the WifiManager class. Especially the getScanResults method will return the results of the last..
MediaPlayer.setDataSource causes IOException for valid file http://stackoverflow.com/questions/9657280/mediaplayer-setdatasource-causes-ioexception-for-valid-file in the media player . It stopped working on some devices Especially my Nexus S 2.3.6 . The file test.m4a 17 775 201 bytes was downloaded..
Understanding Fragment's setRetainInstance(boolean) http://stackoverflow.com/questions/11182180/understanding-fragments-setretaininstanceboolean cases where it makes sense to use this method Retained fragments can be quite useful for propagating state information especially thread management across activity instances. For example a fragment can serve as a host for an instance of Thread or AsyncTask..
Google maps api v2 custom infowindow like in original android google maps http://stackoverflow.com/questions/14123243/google-maps-api-v2-custom-infowindow-like-in-original-android-google-maps somehow yourself which is possible by listening to some onTouch events but IMHO you can't make it look good enough especially on some slow devices. If you do it the simple way it jumps around from one spot to another. You could also use some animations..
Android: customize application's menu (e.g background color) http://stackoverflow.com/questions/1593529/android-customize-applications-menu-e-g-background-color color What is the way if there is a way to customize the menu the one triggered by the MENU button of the phone . I'm especially interested in two things changing the background color from the standard light gray into a darker gray how the menu items..
Overriding referenced style attributes http://stackoverflow.com/questions/17103894/overriding-referenced-style-attributes checkMark @drawable btn_check_holo_light item style But that defeats the whole purpose of overriding this attribute especially since I would like to override this attribute in multiple themes. I am setting the theme in the onCreate method of my Activity..
MathML and Java http://stackoverflow.com/questions/1784786/mathml-and-java rendering MathML in my Symja project Java symbolic math system point 4 of your list . Maybe that JEuclid is to slow especially at startup for rendering MathML on a mobile phone Other alternatives for rendering math expressions with TeX JMathTex SnuggleTeX..
Quitting an application - is that frowned upon? http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon Answer Romain Guy The user doesn't the system handles this automatically. That's what the activity lifecycle especially onPause onStop onDestroy is for. No matter what you do do not put a quit or exit application button. It is useless with..
What's a good library for parsing mathematical expressions in java? [closed] http://stackoverflow.com/questions/2226863/whats-a-good-library-for-parsing-mathematical-expressions-in-java exponential functions etc. I've looked around and Jep seems to be popular but I would like to hear more suggestions especially from people who have used these libraries before. java android math parsing share improve this question I wrote this..
How to register some URL namespace (myapp://app.start/) for accessing your program by calling a URL in browser in Android OS? http://stackoverflow.com/questions/2430045/how-to-register-some-url-namespace-myapp-app-start-for-accessing-your-progr to describe an in your manifest for the kinds of intents you are going to handle with a particular component especially defining an action name in your own namespace com.mycompany.myapp.action.DO_SOMETHING or whatever . You can then make an..
View the Task's activity stack http://stackoverflow.com/questions/2442713/view-the-tasks-activity-stack the Intent object and through some attributes of the activity element. However it would be nice to have a sort of tool especially in debug mode or so that would allow developers to see the Activity stack straight forward. android share improve this..
Android: Using linear gradient as background looks banded http://stackoverflow.com/questions/2928101/android-using-linear-gradient-as-background-looks-banded this question As Romain Guy suggests listView.getBackground .setDither true solves my problem If this is not enough especially for AMOLED and or hdpi devices try this @Override public void onAttachedToWindow super.onAttachedToWindow Window window..
How to programatically create and read WEP/EAP WiFi configurations in Android? http://stackoverflow.com/questions/4374862/how-to-programatically-create-and-read-wep-eap-wifi-configurations-in-android on this very question on various forums and all across the community. I know this is not that straight forward especially EAP to figure out because When I wanted to acheive the same I too struggled quite a lot.Well all the hard work of code analysis..
How can I get root permissions through the Android SDK? http://stackoverflow.com/questions/5293615/how-can-i-get-root-permissions-through-the-android-sdk The logical thing would be to add a root permission in the Android Manifest. I saw this link in the documentation and especially noted the FACTORY_TEST permission public static final String FACTORY_TEST Since API Level 1 Run as a manufacturer test application..
Android: Clear the back stack http://stackoverflow.com/questions/5794506/android-clear-the-back-stack will bring any currently running instance of that task to the foreground and then clear it to its root state. This is especially useful for example when launching an activity from the notification manager. So your code to launch A would be Intent intent..
Android - disable landscape mode? http://stackoverflow.com/questions/582185/android-disable-landscape-mode pads a la the Droid 1 4 Xperia Play or the Nvidia Shield forcing portrait can make your app a giant usability hassle especially on the Shield . If your app doesn't have an extremely specific use case that would lead to an outright negative experience..
iOS / Android cross platform development [duplicate] http://stackoverflow.com/questions/6171128/ios-android-cross-platform-development the Magic Marker a 2D physics based side scroller written in Unity. If you don't know it I recommend checking it out especially if there are any kids in your household . Max is available for PC Wii iOS and Windows Phone 7 although the latter version..
Could not find Library.apk! http://stackoverflow.com/questions/6337673/could-not-find-library-apk restarted Eclipse re built the projects but this weird error message persists. What does this error message mean especially in light that everything seems to be running OK How do I get rid of it UPDATE I tried removing the project then re importing..
Separate Back Stack for each tab in Android using Fragments http://stackoverflow.com/questions/6987334/separate-back-stack-for-each-tab-in-android-using-fragments I can't imagine it resulting in a decent UI if the back key is going to do different things depending on the tab I am especially if the back key also has its normal behavior of closing the entire activity when at the top of the stack... sounds nasty...
Indoor Positioning System based on Gyroscope and Accelerometer http://stackoverflow.com/questions/7499959/indoor-positioning-system-based-on-gyroscope-and-accelerometer about kalman filter and after some more research i found out that that filter is very very complex too much for me especially to code it in java for Android cpu killer Does someone has some experience that he can share with me about indoor positioning..
R cannot be resolved - Android error http://stackoverflow.com/questions/885009/r-cannot-be-resolved-android-error Note Eclipse sometimes likes to add an import android.R statement at the top of your files that use resources especially when you ask Eclipse to sort or otherwise manage imports. This will cause your make to break. Look out for these erroneous..
Publishing an App on Google Play [closed] http://stackoverflow.com/questions/9809682/publishing-an-app-on-google-play have an answer or similar experience android google play share improve this question It takes a little time especially to show up in search. The direct URL should work sooner though put in your own package name and try https play.google.com..
How to unit test a class that uses HttpClient in Android using the built-in framework? http://stackoverflow.com/questions/10136682/how-to-unit-test-a-class-that-uses-httpclient-in-android-using-the-built-in-fram ... private String convertStreamToString InputStream is ... I cannot find a way to test it using a standard framework. Especially I need to simulate total internet lost from inside the test. There are suggestions to manually turn the Internet in the..
Why to use sqlite Database in Android? http://stackoverflow.com/questions/10329842/why-to-use-sqlite-database-in-android the in memory data will be lost but after that you will be able to restore the state from the database if you have one Especially for the case of complex calculations it is good to store the result once in the database and not recalculate it multiple..
Changing the background drawable of the searchview widget http://stackoverflow.com/questions/11085308/changing-the-background-drawable-of-the-searchview-widget traversal e.g. using searchView.getChildAt 0 to get to the right view within SearchView but it's not bullet proof. Especially if some manufacturer decides to reimplement internals of SearchView and element with above mentioned id is not present the..
Pause an Android App with Phonegap http://stackoverflow.com/questions/11434845/pause-an-android-app-with-phonegap is quite easy to do with device.exitApp but I would like it to remember its state and keep running in the background. Especially if there's still an asynchronous job being done in the background. Is there a feature in Phonegap to achieve this Possible..
state_activated on pre Honeycomb Devices http://stackoverflow.com/questions/13531272/state-activated-on-pre-honeycomb-devices there and the android version does not keep track of the activated item s . How can this behaviour be emulated Especially when using fragements list on the left in one fragment and depending on what is selected a detail view on the right this..
google drive api error 403 Access Not configured http://stackoverflow.com/questions/16731196/google-drive-api-error-403-access-not-configured this question Under your Google API Console API Acess do you have the right settings for Android here is and example Especially check the package name Client ID 6756856856 lv3w3qw268df7235w3twtw3tqwq3fg4l3gdi.apps.googleusercontent.com Redirect URIs..
How to implement an audio player for Android using MediaPlayer And MediaController? http://stackoverflow.com/questions/2220575/how-to-implement-an-audio-player-for-android-using-mediaplayer-and-mediacontroll I need MediaPlayer and MediaController classes. Am I right and is there any good example of AUDIO player for Android Especially I'm very interested how to use MediaPlayer and MediaController classes together. UPD Finally I've got the code that does..
How to create PDFs in Android SDK? http://stackoverflow.com/questions/2499960/how-to-create-pdfs-in-android-sdk an idiot for asking. Instead you should change architecture of your application just so my answer can be relevant . Especially in situations when there is a simple answer to what person is asking if anyone wants to generate PDFs on Android device..
Change the side the text appears on a radio button http://stackoverflow.com/questions/2631839/change-the-side-the-text-appears-on-a-radio-button mentioning that it's incredibly ironic to bring up Human Interface Guidelines in response to this particular question. Especially considering that adjusting the RadioButton layout to place the button on the far right would achieve consistency with the..
Android: trying to understand android:layout_weight http://stackoverflow.com/questions/3629331/android-trying-to-understand-androidlayout-weight Android. Instead I have to use android layout_weight . But I have a hard time understanding it and getting it right. Especially how the actual size gets calculated. Is there a way to get a percentage value 0..100 out of android layout_weight I went..
Fake call in android http://stackoverflow.com/questions/3716241/fake-call-in-android on the git repository you can find call_card.xml and CallCard.java which are used to display the incoming call screen. Especially the java file is quite long and complex but the layout combined of course with the resources it references should give you..
How to display image with WebView loaddata? http://stackoverflow.com/questions/5267124/how-to-display-image-with-webview-loaddata as img src http example.com my.jpg It seems silly that loadData takes a mime type if it can only handle text html . Especially since the javadoc lists image jpeg as an example mime type that you might pass in. android share improve this question..
SoftReference gets garbage collected too early http://stackoverflow.com/questions/5757969/softreference-gets-garbage-collected-too-early
Get list of available WiFi spots http://stackoverflow.com/questions/5936191/get-list-of-available-wifi-spots in advance android list wifi share improve this question Have a look on the methods of the WifiManager class. Especially the getScanResults method will return the results of the last scan for Wifi networks. Be aware that the getConfiguredNetworks..
MediaPlayer.setDataSource causes IOException for valid file http://stackoverflow.com/questions/9657280/mediaplayer-setdatasource-causes-ioexception-for-valid-file or if I know Android right an update introduced a bug in the media player . It stopped working on some devices Especially my Nexus S 2.3.6 . The file test.m4a 17 775 201 bytes was downloaded by the app. To verify its integrity I copied it to..
|