android Programming Glossary: does
How do I get the current GPS location programmatically in Android? http://stackoverflow.com/questions/1513485/how-do-i-get-the-current-gps-location-programmatically-in-android heart of location services in Android. Unfortunately it does not appear that Android ships with any examples of the location..
Slow Android emulator http://stackoverflow.com/questions/1554099/slow-android-emulator start fairly quickly on such a machine but for me it does not. I have followed all the instructions in setting up the..
Quitting an application - is that frowned upon? http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon a menu option in to kill it If no such option exists how does the user terminate the application Answer Romain Guy The user.. user terminate the application Answer Romain Guy The user doesn't the system handles this automatically. That's what the activity.. for me... I hope I don't have to abandon Android but it doesn't look very good right now Is there a way for me to really..
How to discover memory usage of my application in Android http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android kernel mechanism to collect its data than meminfo does and they give slightly different results. Why is that Honestly..
“Conversion to Dalvik format failed with error 1” on external JAR http://stackoverflow.com/questions/2680827/conversion-to-dalvik-format-failed-with-error-1-on-external-jar my src folder and THEN added it as a Java Path Library. It does not show up under the Package Explorer so you don't notice it.. under the Package Explorer so you don't notice it but it does get counted twice causing the dreaded Dalvik error 1. Another..
How to call SOAP web service in Android http://stackoverflow.com/questions/297586/how-to-call-soap-web-service-in-android services soap wsdl share improve this question Android does not provide any sort of SOAP library. You can either write your..
What is the simplest and most robust way to get the user's current location in Android? http://stackoverflow.com/questions/3145089/what-is-the-simplest-and-most-robust-way-to-get-the-users-current-location-in-a I'm working on isn't really a location app per se but it does need to get the user's location in order to display a list of.. in order to display a list of nearby businesses. It doesn't need to worry about if the user is moving around or anything..
Auto Scale TextView Text to Fit within Bounds http://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds I'm sure somebody out there has found a good solution that doesn't involve what I'm doing writing several heavy routines that.. until a suitably small size has been found. What routines does TextView use to wrap the text Couldn't those be somehow used.. I have a size that fits. At the end if the text still does not fit I append an ellipsis. I had requirements to animate..
Android: How to declare global variables? http://stackoverflow.com/questions/708012/android-how-to-declare-global-variables how that would interact with my solution. If someone does have an answer to this I am willing to credit them and put the..
How to make an Android Spinner with initial text “Select One” http://stackoverflow.com/questions/867518/how-to-make-an-android-spinner-with-initial-text-select-one thought I would post my solution. A modified Spinner that doesn't automatically select the first entry in the list. Shows the.. list. Shows the prompt if nothing is selected. Limitations does not display prompt if the entry list is empty. public class..
AsyncTask Android example http://stackoverflow.com/questions/9671546/asynctask-android-example about AsyncTask and I tried a simple program. But it does not seem to work. I am new to android programming if possible.. in doInBackground inside of another thread which does not have access to the GUI where your views are. preExecute.. completes. EDIT I noticed that your onClick listener does not check to see which View has been selected. I find the easiest..
How to get screen dimensions http://stackoverflow.com/questions/1016896/how-to-get-screen-dimensions set position int px screenWidth m int py screenWidth n Does anyone know how to get screenWidth and screenHeight in the main..
SimpleCursorTreeAdapter and CursorLoader for ExpandableListView http://stackoverflow.com/questions/10611927/simplecursortreeadapter-and-cursorloader-for-expandablelistview CursorLoader should contain all contacts within a group. Does anyone have any ideas what could be the issue UPDATE Thanks.. structure. But i'm not sure if this is the best approach. Does anyone have any suggestions android simplecursoradapter expandablelistadapter..
GCM with PHP (Google Cloud Messaging) http://stackoverflow.com/questions/11242743/gcm-with-php-google-cloud-messaging with PHP Google Cloud Messaging Does anyone knows how I can integrate the new Google Cloud Messaging..
Self Signed SSL acceptance Android http://stackoverflow.com/questions/1217141/self-signed-ssl-acceptance-android does not work or there is no sample code to back it up. Does anyone know how to accept a self signed cert in Java on the..
Does Android support near real time push notification http://stackoverflow.com/questions/1243066/does-android-support-near-real-time-push-notification Android support near real time push notification I recently..
Android FTP Library http://stackoverflow.com/questions/1567601/android-ftp-library that can download and resume files from an FTP server. Does anyone know of such a library. I've found lots of client apps..
Quitting an application - is that frowned upon? http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon to learn Android I just read the following Question Does the user have a choice to kill the application unless we put..
Using ZXing to create an android barcode scanning app http://stackoverflow.com/questions/2050263/using-zxing-to-create-an-android-barcode-scanning-app been searching on how to add a barcode scanner to my app. Does anybody know of any examples or know how to do this easily Any..
NoClassDefFoundError - Eclipse and Android http://stackoverflow.com/questions/2247998/noclassdeffounderror-eclipse-and-android or restarting eclipse I have already tried all three . Does anyone know how I can amend this java android eclipse ant build..
Display PDF within app on Android? http://stackoverflow.com/questions/2456344/display-pdf-within-app-on-android OS JARs or classes to display a PDF document within an app Does anybody have experience with using some of the standard Java..
Android Quick Actions UI Pattern http://stackoverflow.com/questions/3059155/android-quick-actions-ui-pattern video http www.youtube.com watch v M1ZBjlCRfz0#t 15m20s . Does anyone have an implementation of this or know what google's..
How to draw a path on a map using kml file? http://stackoverflow.com/questions/3109158/how-to-draw-a-path-on-a-map-using-kml-file e navigationDataSet null return navigationDataSet Drawing Does the actual drawing of the route based on the geo points provided..
Display Animated GIF http://stackoverflow.com/questions/3660209/display-animated-gif and add each frame as drawable to AnimationDrawable. Does anyone know how to extract frames from animated GIF and convert..
Android Launch an application from another application http://stackoverflow.com/questions/3872063/android-launch-an-application-from-another-application using intents but I didn't find a way of doing it. Does anyone have a link where to find the information android android..
Enable GPS programatically like Tasker http://stackoverflow.com/questions/4721449/enable-gps-programatically-like-tasker my decision checkbox and if he answers yes enable it. Does anybody have any idea or clue on how Tasker achieves this android..
MapView in a Fragment (Honeycomb) http://stackoverflow.com/questions/5109336/mapview-in-a-fragment-honeycomb via getActivity as Context to the MapView constructor. Does not work E AndroidRuntime 834 Caused by java.lang.IllegalArgumentException..
How turn on camera flash light programmatically in Android? http://stackoverflow.com/questions/6068803/how-turn-on-camera-flash-light-programmatically-in-android for it but the help i found referred me to this page Does anyone have any links or sample code android android camera..
How to set HttpResponse timeout for Android in Java http://stackoverflow.com/questions/693997/how-to-set-httpresponse-timeout-for-android-in-java at line HttpResponse response httpClient.execute method Does anyone know how to set the timeout in order to avoid waiting..
Android: How to declare global variables? http://stackoverflow.com/questions/708012/android-how-to-declare-global-variables and I guess the problem is the variable strSessionString. Does anyone know how to set the variable global in order to avoid..
Android: open activity without save into the stack http://stackoverflow.com/questions/12358485/android-open-activity-without-save-into-the-stack you can open main. I'd like that every opening of list DOES NOT be saved into 'history'. So back from main CANNOT return..
Disable center button in MyLocation at Google Map API V2 http://stackoverflow.com/questions/14376361/disable-center-button-in-mylocation-at-google-map-api-v2 return Enables disables the my location button this DOES NOT enable disable the my location dot chevron on the map ...
Can not display list with ListView in another activity http://stackoverflow.com/questions/19995004/can-not-display-list-with-listview-in-another-activity the MainActivity everything works fine as well. WHY IT DOES NOT WORK with another Activity android listview android intent..
EditText not capturing ViewFlipper flings? http://stackoverflow.com/questions/3542065/edittext-not-capturing-viewflipper-flings fling around it that is the background of the EditText it DOES work. I've tried following around with the fill_parent wrap_content..
Am I creating my custom ArrayAdapter correctly? http://stackoverflow.com/questions/3614934/am-i-creating-my-custom-arrayadapter-correctly q.getChange return v Remove an item from the list THIS DOESNT WORK DOES NOTHING @Override public boolean onContextItemSelected.. return v Remove an item from the list THIS DOESNT WORK DOES NOTHING @Override public boolean onContextItemSelected MenuItem..
Android WebView - 1st LoadData() works fine, subsequent calls do not update display http://stackoverflow.com/questions/4096783/android-webview-1st-loaddata-works-fine-subsequent-calls-do-not-update-disp second time the page does not update and onLoadResource DOES NOT FIRE. Then second call to LoadData onlyfires onPageFinished..
Android AsyncTask won't stop when cancelled, why? http://stackoverflow.com/questions/4959628/android-asynctask-wont-stop-when-cancelled-why tracing to show me the isCancelled state as well and that DOES change. So the call to cancel true is changing the cancelled..
My Android camera Uri is returning a null value, but the Samsung fix is in place, help? http://stackoverflow.com/questions/8248327/my-android-camera-uri-is-returning-a-null-value-but-the-samsung-fix-is-in-place But somewhere during the picture taking process that value DOES become null. The 2nd check during onResult returns false. Again..
Android Stop Background Music http://stackoverflow.com/questions/9148615/android-stop-background-music another EDIT it seems the main question really is WHY DOES PRESSING THE HOME BUTTON NOT CALL onPause or onStop so i can.. way still no SOLUTION ooooo ooooo EDIT ANOTHER OPTION BUT DOES NOT WORK public void onUserLeaveHint player.stop super.onUserLeaveHint.. do this actually the BIGGEST QUESTION FOR THIS POST IS WHY DOES PRESSING THE HOME BUTTON NOT CALL onPause or onStop To put it..
How do I get the current GPS location programmatically in Android? http://stackoverflow.com/questions/1513485/how-do-i-get-the-current-gps-location-programmatically-in-android services in Android. Here is the LocationManager class at the heart of location services in Android. Unfortunately it does not appear that Android ships with any examples of the location API which is somewhat surprising. You can download the source..
Slow Android emulator http://stackoverflow.com/questions/1554099/slow-android-emulator machine. My understanding is that the Android emulator should start fairly quickly on such a machine but for me it does not. I have followed all the instructions in setting up the IDE SDKs JDKs and such and have had some success in starting..
Quitting an application - is that frowned upon? http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon the user have a choice to kill the application unless we put a menu option in to kill it If no such option exists how does the user terminate the application Answer Romain Guy The user doesn't the system handles this automatically. That's what.. option in to kill it If no such option exists how does the user terminate the application Answer Romain Guy The user doesn't the system handles this automatically. That's what the activity lifecycle especially onPause onStop onDestroy is for... and .NET. However the last week has been somewhat of a turnoff for me... I hope I don't have to abandon Android but it doesn't look very good right now Is there a way for me to really quit the application android share improve this question..
How to discover memory usage of my application in Android http://stackoverflow.com/questions/2298208/how-to-discover-memory-usage-of-my-application-in-android what we saw in meminfo. Why is that Well procrank uses a different kernel mechanism to collect its data than meminfo does and they give slightly different results. Why is that Honestly I haven't a clue. I believe procrank may be the more accurate..
“Conversion to Dalvik format failed with error 1” on external JAR http://stackoverflow.com/questions/2680827/conversion-to-dalvik-format-failed-with-error-1-on-external-jar your project folders I had copied the Admob JAR file into my src folder and THEN added it as a Java Path Library. It does not show up under the Package Explorer so you don't notice it but it does get counted twice causing the dreaded Dalvik error.. and THEN added it as a Java Path Library. It does not show up under the Package Explorer so you don't notice it but it does get counted twice causing the dreaded Dalvik error 1. Another possible reason could be package name conflicts. Suppose you..
How to call SOAP web service in Android http://stackoverflow.com/questions/297586/how-to-call-soap-web-service-in-android web service from an Android based phone. java android web services soap wsdl share improve this question Android does not provide any sort of SOAP library. You can either write your own or use something like kSOAP 2 . As you note others have..
What is the simplest and most robust way to get the user's current location in Android? http://stackoverflow.com/questions/3145089/what-is-the-simplest-and-most-robust-way-to-get-the-users-current-location-in-a and rough approximation of the user's location. The app I'm working on isn't really a location app per se but it does need to get the user's location in order to display a list of nearby businesses. It doesn't need to worry about if the user.. a location app per se but it does need to get the user's location in order to display a list of nearby businesses. It doesn't need to worry about if the user is moving around or anything like that. Here's what I'd like to do Show the user a list..
Auto Scale TextView Text to Fit within Bounds http://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds the text shrink step by step with every recursion . But I'm sure somebody out there has found a good solution that doesn't involve what I'm doing writing several heavy routines that parse and measure the text resize the text and repeat until.. that parse and measure the text resize the text and repeat until a suitably small size has been found. What routines does TextView use to wrap the text Couldn't those be somehow used to predict whether text will be small enough tl dr is there.. From there I step down by 2 font pixels and remeasure until I have a size that fits. At the end if the text still does not fit I append an ellipsis. I had requirements to animate the text and reuse views and this seems to work well on the..
Android: How to declare global variables? http://stackoverflow.com/questions/708012/android-how-to-declare-global-variables with Android in the slightest and I am not qualified to answer how that would interact with my solution. If someone does have an answer to this I am willing to credit them and put the information in this post for maximum visibility. ADDENDUM..
How to make an Android Spinner with initial text “Select One” http://stackoverflow.com/questions/867518/how-to-make-an-android-spinner-with-initial-text-select-one times and it seems like a reasonable enough request that I thought I would post my solution. A modified Spinner that doesn't automatically select the first entry in the list. Shows the prompt if nothing is selected. Limitations does not display.. that doesn't automatically select the first entry in the list. Shows the prompt if nothing is selected. Limitations does not display prompt if the entry list is empty. public class NoDefaultSpinner extends Spinner public NoDefaultSpinner Context..
AsyncTask Android example http://stackoverflow.com/questions/9671546/asynctask-android-example Android example I was reading about AsyncTask and I tried a simple program. But it does not seem to work. I am new to android programming if possible can you please help me out. package com.test import android.app.Activity.. in the main is not good practice. The AsyncTask executes everything in doInBackground inside of another thread which does not have access to the GUI where your views are. preExecute and postExecute offer you access to GUI before and after the.. will then see you TextView text update after the doInBackground completes. EDIT I noticed that your onClick listener does not check to see which View has been selected. I find the easiest way to do this is via switch statements. I have a complete..
How to get screen dimensions http://stackoverflow.com/questions/1016896/how-to-get-screen-dimensions I need to get the screen width and screen height and then set position int px screenWidth m int py screenWidth n Does anyone know how to get screenWidth and screenHeight in the main Activity android android layout layout screen android screen..
SimpleCursorTreeAdapter and CursorLoader for ExpandableListView http://stackoverflow.com/questions/10611927/simplecursortreeadapter-and-cursorloader-for-expandablelistview CursorLoader i just want all groups in my phone. The child CursorLoader should contain all contacts within a group. Does anyone have any ideas what could be the issue UPDATE Thanks to @Yam's advice I have now modified the getChildrenCursor method... i have to map loader ids to group positions in some data structure. But i'm not sure if this is the best approach. Does anyone have any suggestions android simplecursoradapter expandablelistadapter android cursorloader share improve this..
GCM with PHP (Google Cloud Messaging) http://stackoverflow.com/questions/11242743/gcm-with-php-google-cloud-messaging with PHP Google Cloud Messaging Does anyone knows how I can integrate the new Google Cloud Messaging in a PHP backend php android android gcm share improve..
Self Signed SSL acceptance Android http://stackoverflow.com/questions/1217141/self-signed-ssl-acceptance-android while some people claim to have found the solution it either does not work or there is no sample code to back it up. Does anyone know how to accept a self signed cert in Java on the Android A code sample would be perfect. android ssl ssl certificate..
Does Android support near real time push notification http://stackoverflow.com/questions/1243066/does-android-support-near-real-time-push-notification Android support near real time push notification I recently learned about the ability of iPhone apps to receive nearly..
Android FTP Library http://stackoverflow.com/questions/1567601/android-ftp-library I'm looking for a java library that works on the android that can download and resume files from an FTP server. Does anyone know of such a library. I've found lots of client apps but no stand alone libraries. java android ftp share improve..
Quitting an application - is that frowned upon? http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon an application is that frowned upon Moving on in my attempt to learn Android I just read the following Question Does the user have a choice to kill the application unless we put a menu option in to kill it If no such option exists how does..
Using ZXing to create an android barcode scanning app http://stackoverflow.com/questions/2050263/using-zxing-to-create-an-android-barcode-scanning-app ZXing to create an android barcode scanning app I've been searching on how to add a barcode scanner to my app. Does anybody know of any examples or know how to do this easily Any help is greatly appreciated. android barcode barcode scanner..
NoClassDefFoundError - Eclipse and Android http://stackoverflow.com/questions/2247998/noclassdeffounderror-eclipse-and-android not sure what else I can do other than cleaning and rebuilding or restarting eclipse I have already tried all three . Does anyone know how I can amend this java android eclipse ant build share improve this question I had this problem after..
Display PDF within app on Android? http://stackoverflow.com/questions/2456344/display-pdf-within-app-on-android or whatever out of the box. So my question is are there any OS JARs or classes to display a PDF document within an app Does anybody have experience with using some of the standard Java PDF viewer libraries on Android The libraries don't need to..
Android Quick Actions UI Pattern http://stackoverflow.com/questions/3059155/android-quick-actions-ui-pattern code. Note this UI pattern is discussed in the YouTube video http www.youtube.com watch v M1ZBjlCRfz0#t 15m20s . Does anyone have an implementation of this or know what google's standard for adding this to an application android android..
How to draw a path on a map using kml file? http://stackoverflow.com/questions/3109158/how-to-draw-a-path-on-a-map-using-kml-file catch Exception e Log.e myapp.APP error with kml xml e navigationDataSet null return navigationDataSet Drawing Does the actual drawing of the route based on the geo points provided in the nav set @param navSet Navigation set bean that holds..
Display Animated GIF http://stackoverflow.com/questions/3660209/display-animated-gif animated gif directly. My plan is to break animated GIF to frames and add each frame as drawable to AnimationDrawable. Does anyone know how to extract frames from animated GIF and convert each of them into Drawable android animated gif share..
Android Launch an application from another application http://stackoverflow.com/questions/3872063/android-launch-an-application-from-another-application package from my Android application. I assume that it is possible using intents but I didn't find a way of doing it. Does anyone have a link where to find the information android android intent share improve this question If you do not know..
Enable GPS programatically like Tasker http://stackoverflow.com/questions/4721449/enable-gps-programatically-like-tasker he wants to turn it on automatically with the typical remember my decision checkbox and if he answers yes enable it. Does anybody have any idea or clue on how Tasker achieves this android gps share improve this question the GPS can be toggled..
MapView in a Fragment (Honeycomb) http://stackoverflow.com/questions/5109336/mapview-in-a-fragment-honeycomb the MapView programmatically and pass the associated activity via getActivity as Context to the MapView constructor. Does not work E AndroidRuntime 834 Caused by java.lang.IllegalArgumentException MapViews can only be created inside instances..
How turn on camera flash light programmatically in Android? http://stackoverflow.com/questions/6068803/how-turn-on-camera-flash-light-programmatically-in-android not with camera preview programmatically in Android. I googled for it but the help i found referred me to this page Does anyone have any links or sample code android android camera share improve this question For this you should do like..
How to set HttpResponse timeout for Android in Java http://stackoverflow.com/questions/693997/how-to-set-httpresponse-timeout-for-android-in-java down the server for testing the execution waits a long time at line HttpResponse response httpClient.execute method Does anyone know how to set the timeout in order to avoid waiting too long Thanks java android timeout httpresponse share..
Android: How to declare global variables? http://stackoverflow.com/questions/708012/android-how-to-declare-global-variables when the phone keyboard slides the login form appears again and I guess the problem is the variable strSessionString. Does anyone know how to set the variable global in order to avoid login form appearing after the user already successfully authenticates..
Android: open activity without save into the stack http://stackoverflow.com/questions/12358485/android-open-activity-without-save-into-the-stack 2 activity main e list. From main you can open list. From list you can open main. I'd like that every opening of list DOES NOT be saved into 'history'. So back from main CANNOT return to list. Is it possible android stack history share improve..
Disable center button in MyLocation at Google Map API V2 http://stackoverflow.com/questions/14376361/disable-center-button-in-mylocation-at-google-map-api-v2 it public void setMyLocationButtonEnabled View v if checkReady return Enables disables the my location button this DOES NOT enable disable the my location dot chevron on the map . The my location button will never appear if the my location..
Can not display list with ListView in another activity http://stackoverflow.com/questions/19995004/can-not-display-list-with-listview-in-another-activity Have checked DB everything works fine. When put ListView into the MainActivity everything works fine as well. WHY IT DOES NOT WORK with another Activity android listview android intent manifest share improve this question you forget use..
EditText not capturing ViewFlipper flings? http://stackoverflow.com/questions/3542065/edittext-not-capturing-viewflipper-flings EditText area the gesture does not register. However if I fling around it that is the background of the EditText it DOES work. I've tried following around with the fill_parent wrap_content heights and widths but it doesn't seem to change a thing...
Am I creating my custom ArrayAdapter correctly? http://stackoverflow.com/questions/3614934/am-i-creating-my-custom-arrayadapter-correctly if changeText null changeText.setText q.getChange return v Remove an item from the list THIS DOESNT WORK DOES NOTHING @Override public boolean onContextItemSelected MenuItem item if item.getTitle Remove deserializeQuotes.. if changeText null changeText.setText q.getChange return v Remove an item from the list THIS DOESNT WORK DOES NOTHING @Override public boolean onContextItemSelected MenuItem item if item.getTitle Remove deserializeQuotes AdapterContextMenuInfo..
Android WebView - 1st LoadData() works fine, subsequent calls do not update display http://stackoverflow.com/questions/4096783/android-webview-1st-loaddata-works-fine-subsequent-calls-do-not-update-disp to refresh the screen with a new page when I use LoadData the second time the page does not update and onLoadResource DOES NOT FIRE. Then second call to LoadData onlyfires onPageFinished ... onPageStarted never fires A work around was to call..
Android AsyncTask won't stop when cancelled, why? http://stackoverflow.com/questions/4959628/android-asynctask-wont-stop-when-cancelled-why see above its status is returned as running. Update I added tracing to show me the isCancelled state as well and that DOES change. So the call to cancel true is changing the cancelled state from false to true but apparently having no effect on..
My Android camera Uri is returning a null value, but the Samsung fix is in place, help? http://stackoverflow.com/questions/8248327/my-android-camera-uri-is-returning-a-null-value-but-the-samsung-fix-is-in-place mImageUri object returns true. So this object is not null. But somewhere during the picture taking process that value DOES become null. The 2nd check during onResult returns false. Again this is almost identical to my setup in the other activity..
Android Stop Background Music http://stackoverflow.com/questions/9148615/android-stop-background-music while looking thru the pics and text why is that so difficult another EDIT it seems the main question really is WHY DOES PRESSING THE HOME BUTTON NOT CALL onPause or onStop so i can know when to stop the media player and how do the games i download.. super.onStop but it affecting something i cant see either way still no SOLUTION ooooo ooooo EDIT ANOTHER OPTION BUT DOES NOT WORK public void onUserLeaveHint player.stop super.onUserLeaveHint this stops the music when i press HOME but it also.. that is pretty simple but why do I have to programattically do this actually the BIGGEST QUESTION FOR THIS POST IS WHY DOES PRESSING THE HOME BUTTON NOT CALL onPause or onStop To put it in onDestroy is not an option because onDestroy is only called..
|