android Programming Glossary: still
How to handle screen orientation change when progress dialog and background thread active? http://stackoverflow.com/questions/1111980/how-to-handle-screen-orientation-change-when-progress-dialog-and-background-thre just prevents an immediate crash. The background thread is still going and the UI is in partially drawn state. Need to kill the..
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 the use of the default ID This lets us use a ListActivity still ListView android id @android id list android layout_width fill_parent..
How can I check the current status of the GPS receiver? http://stackoverflow.com/questions/2021176/how-can-i-check-the-current-status-of-the-gps-receiver very helpful also. The system apparently loses the fix but still continue to report that there are several sats that are used..
Declaring a custom android UI element using XML http://stackoverflow.com/questions/2695646/declaring-a-custom-android-ui-element-using-xml as per this thread it may change in the future. It is still in the documentation as being to view all these constants in..
How to get a list of installed android applications and pick one to run http://stackoverflow.com/questions/2695746/how-to-get-a-list-of-installed-android-applications-and-pick-one-to-run asked a similar question to this earlier this week but I'm still not understanding how to get a list of all installed applications..
Custom Drawable for ProgressBar/ProgressDialog http://stackoverflow.com/questions/2819778/custom-drawable-for-progressbar-progressdialog style @style customProgressBar LinearLayout But it still shows the same drawable as before. What am I doing wrong android..
Change language programatically in Android http://stackoverflow.com/questions/2900023/change-language-programatically-in-android to change the language of an app programmatically while still using Android resources If not is it possible to request a resource.. each activity from my experience. here is a code if you still need this again i don't recommend that Resources res context.getResources..
Android: Is application running in background? http://stackoverflow.com/questions/3667022/android-is-application-running-in-background is already extended from MapActivity ListActivity etc. you still need to write the following by hand @Override protected void..
notifyDataSetChanged example http://stackoverflow.com/questions/3669325/notifydatasetchanged-example and change that Activity member later the ArrayAdapter is still holding a reference to the original List . The Adapter does..
WebView and HTML5 <video> http://stackoverflow.com/questions/3815090/webview-and-html5-video R.id.webview a.initWebView But now I should say there are still an important issue. I can play it only once. The second time..
Background task, progress dialog, orientation change - is there any 100% working solution? http://stackoverflow.com/questions/3821423/background-task-progress-dialog-orientation-change-is-there-any-100-working have the activity respond to the work being done if it is still in the foreground or raise a Notification to let the user know..
Auto Scale TextView Text to Fit within Bounds http://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds 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.. view. If the text size equals the minimum text size and still does not fit append with an ellipsis. @author Chase Colburn.. If we had reached our minimum text size and still don't fit append an ellipsis if mAddEllipsis targetTextSize..
When to call activity context OR application context? http://stackoverflow.com/questions/7298731/when-to-call-activity-context-or-application-context lot of posting about what these two contexts are.. But I'm still not getting it quite right As I understand it so far Each is..
Android Activity Life Cycle - What are all these methods for? http://stackoverflow.com/questions/8515936/android-activity-life-cycle-what-are-all-these-methods-for Paused When the device goes to sleep or an activity is still visible but partially hidden by a new non full sized or transparent.. the activity is considered paused. Paused activities are still alive that is they maintain all state and member information.. stopped or in the background. Stopped activities still try to retain their state and member information for as long..
Android Facebook style slide http://stackoverflow.com/questions/8657894/android-facebook-style-slide HSV has zero scroll offset the menu will show through and still be clickable surprisingly . When the app starts up we scroll..
When exactly is it leak safe to use (anonymous) inner classes? http://stackoverflow.com/questions/10864853/when-exactly-is-it-leak-safe-to-use-anonymous-inner-classes this interesting video from Google I O on the subject . Still I don't fully understand the concept and especially when it..
uninstall app silently with system priveleges http://stackoverflow.com/questions/10900928/uninstall-app-silently-with-system-priveleges method and edited ApplicationManager method. Still cant get this working. When I run it I get method not found..
Android Open and Save files to/from Google Drive SDK http://stackoverflow.com/questions/12164024/android-open-and-save-files-to-from-google-drive-sdk this out wasted at least 20 hours of my time alone. Still on the console go to API Access. Create a client make it an..
IntelliJ and android.support.v7.widget.GridLayout http://stackoverflow.com/questions/12468606/intellij-and-android-support-v7-widget-gridlayout v7 GridLayout jar file in the support project libs dir. Still on Dependancies tab click to add new Library Java Browse to..
MediaButtonIntentReceiver not working in Android 4.0+ http://stackoverflow.com/questions/13257982/mediabuttonintentreceiver-not-working-in-android-4-0 android.intent.action.MEDIA_BUTTON intent filter receiver Still no luck. What am I missing here It's certainly a 4.0 ICS JellyBean..
Current Month Facebook Friends Birthdays in Android http://stackoverflow.com/questions/14373862/current-month-facebook-friends-birthdays-in-android FacebookRequestListener.FRIENDS facebookRequest Still i am using below code to get List of Friends those Birthdays..
LocationListener of NETWORK_PROVIDER is enabled but , onLocationChanged is never called http://stackoverflow.com/questions/15747543/locationlistener-of-network-provider-is-enabled-but-onlocationchanged-is-never Log.d TAG Sem sinal Report in a Samsung Galaxy S3 Still getting Sem sinal for 4 days in a row. This issue have already..
Google Play Services in emulator, implementing Google Plus login button etc http://stackoverflow.com/questions/16000548/google-play-services-in-emulator-implementing-google-plus-login-button-etc why I'm seeing the grey dull button on the emulator. Still need to figure out why could be the copy google plus apk's from..
Android JSON HttpClient to send data to PHP server with HttpResponse http://stackoverflow.com/questions/2540786/android-json-httpclient-to-send-data-to-php-server-with-httpresponse the slashes and allows the JSON to be decoded properly. Still not sure why sending a StringEntity causes a 403 error share..
Android Webview Anchor Link (Jump link) not working http://stackoverflow.com/questions/3039555/android-webview-anchor-link-jump-link-not-working will not work when the WebView is inside of a ScrollView . Still the problem for me and apparently others is that the #LINK does..
Is AsyncTask really conceptually flawed or am I just missing something? http://stackoverflow.com/questions/3357477/is-asynctask-really-conceptually-flawed-or-am-i-just-missing-something when no instance of a given component exists anymore. Still it is a complex workaround and requires to sub class some of..
Eclipse and Android XML layouts gives “'default' is not a best match for any device/locale combination” http://stackoverflow.com/questions/3774686/eclipse-and-android-xml-layouts-gives-default-is-not-a-best-match-for-any-dev at runtime so don't worry I am NOT an Android newbie. Still this is my first time with static layouts. So what's this message..
RESTful frameworks for Android, iOS…? http://stackoverflow.com/questions/4097686/restful-frameworks-for-android-ios this question I am the author of the RESTProvider. Still very early stage so I would not recommend to use it in production...
Android - not able to attach a file in email http://stackoverflow.com/questions/4123420/android-not-able-to-attach-a-file-in-email worry about device not having an external storage at all. Still external storage can be unavailable at times. Refer to http..
android:dither=“true” does not dither, what's wrong? http://stackoverflow.com/questions/4769885/androiddither-true-does-not-dither-whats-wrong as said in the post and the banding is gone also for 2.2 . Still wondering why the other methods didn't work. EDIT3 One has to..
Android What permissions required to call PowerManager.goToSleep(n) put device in sleep mode? http://stackoverflow.com/questions/5710971/android-what-permissions-required-to-call-powermanager-gotosleepn-put-device-i android.permissions.DEVICE_POWER in manifest of my app. Still complains that neither user nor process have this permission..
How can I manipulate the camera preview? http://stackoverflow.com/questions/6478375/how-can-i-manipulate-the-camera-preview probably really be done with native code at the NDK level. Still it is possible to get it working. Also my little demo is just..
Android: What is the folder name of the jar files (LIB or LIBS)? http://stackoverflow.com/questions/7185488/android-what-is-the-folder-name-of-the-jar-files-lib-or-libs I add LIB or LIBS folder then put the jar files on it. Still need to set the project properties in order to recognize the..
How to query a web service via POST request in Android? http://stackoverflow.com/questions/9237082/how-to-query-a-web-service-via-post-request-in-android featureType soapObject.addProperty propertyInfo Still there are a major problem and some minor problems left. The..
Jersey Client on Android - NullPointerException http://stackoverflow.com/questions/9342506/jersey-client-on-android-nullpointerexception since someone told me it isn't used as it should be. Still I got the same error. I simply can not understand what am I..
How to handle screen orientation change when progress dialog and background thread active? http://stackoverflow.com/questions/1111980/how-to-handle-screen-orientation-change-when-progress-dialog-and-background-thre dismiss the progress dialog in onSaveInstanceState but that just prevents an immediate crash. The background thread is still going and the UI is in partially drawn state. Need to kill the whole app before it starts working again. android android..
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 1 Set height to 0 and let the weight param expand it Note the use of the default ID This lets us use a ListActivity still ListView android id @android id list android layout_width fill_parent android layout_height 0dip android layout_weight 1..
How can I check the current status of the GPS receiver? http://stackoverflow.com/questions/2021176/how-can-i-check-the-current-status-of-the-gps-receiver if any of the satellites returns true for usedInFix isn't very helpful also. The system apparently loses the fix but still continue to report that there are several sats that are used in it. So the only working solution we have and the one we..
Declaring a custom android UI element using XML http://stackoverflow.com/questions/2695646/declaring-a-custom-android-ui-element-using-xml note that you should not use anything in android.R.styleable as per this thread it may change in the future. It is still in the documentation as being to view all these constants in the one place is useful. 3. Use it in a layout files such as..
How to get a list of installed android applications and pick one to run http://stackoverflow.com/questions/2695746/how-to-get-a-list-of-installed-android-applications-and-pick-one-to-run of installed android applications and pick one to run I asked a similar question to this earlier this week but I'm still not understanding how to get a list of all installed applications and then pick one to run. I've tried Intent intent new..
Custom Drawable for ProgressBar/ProgressDialog http://stackoverflow.com/questions/2819778/custom-drawable-for-progressbar-progressdialog layout_width wrap_content android layout_height wrap_content style @style customProgressBar LinearLayout But it still shows the same drawable as before. What am I doing wrong android progress bar progressdialog share improve this question..
Change language programatically in Android http://stackoverflow.com/questions/2900023/change-language-programatically-in-android language programatically in Android Is it possible to change the language of an app programmatically while still using Android resources If not is it possible to request a resource in an specific language I would like to let the user.. buggy. And you have to set 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..
Android: Is application running in background? http://stackoverflow.com/questions/3667022/android-is-application-running-in-background for your Activities if you'd like to but if your activity is already extended from MapActivity ListActivity etc. you still need to write the following by hand @Override protected void onResume super.onResume MyApplication.activityResumed @Override..
notifyDataSetChanged example http://stackoverflow.com/questions/3669325/notifydatasetchanged-example you were to pass in a List that was a member of an Activity and change that Activity member later the ArrayAdapter is still holding a reference to the original List . The Adapter does not know you changed the List in the Activity. Your choices..
WebView and HTML5 <video> http://stackoverflow.com/questions/3815090/webview-and-html5-video R.layout.main WebView wb WebView a.findViewById R.id.webview a.initWebView But now I should say there are still an important issue. I can play it only once. The second time I click on the video dispatcher either the poster or some play..
Background task, progress dialog, orientation change - is there any 100% working solution? http://stackoverflow.com/questions/3821423/background-task-progress-dialog-orientation-change-is-there-any-100-working file . You can use an ordered broadcast Intent to either have the activity respond to the work being done if it is still in the foreground or raise a Notification to let the user know if the work has been done. Here is a blog post with more..
Auto Scale TextView Text to Fit within Bounds http://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds height. 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.. Text view that auto adjusts text size to fit within the view. If the text size equals the minimum text size and still does not fit append with an ellipsis. @author Chase Colburn @since Apr 4 2011 public class AutoResizeTextView extends TextView.. mMinTextSize textHeight getTextHeight text textPaint width targetTextSize If we had reached our minimum text size and still don't fit append an ellipsis if mAddEllipsis targetTextSize mMinTextSize textHeight height Draw using a static layout StaticLayout..
When to call activity context OR application context? http://stackoverflow.com/questions/7298731/when-to-call-activity-context-or-application-context activity context OR application context There has been a lot of posting about what these two contexts are.. But I'm still not getting it quite right As I understand it so far Each is an instance of its class which means that some programmers..
Android Activity Life Cycle - What are all these methods for? http://stackoverflow.com/questions/8515936/android-activity-life-cycle-what-are-all-these-methods-for the device as this could cause the UI to become unresponsive. Paused When the device goes to sleep or an activity is still visible but partially hidden by a new non full sized or transparent activity the activity is considered paused. Paused activities.. hidden by a new non full sized or transparent activity the activity is considered paused. Paused activities are still alive that is they maintain all state and member information and remain attached to the window manager. This is considered.. that are completely obscured by another activity are considered stopped or in the background. Stopped activities still try to retain their state and member information for as long as possible but stopped activities are considered to be the..
Android Facebook style slide http://stackoverflow.com/questions/8657894/android-facebook-style-slide a transparent View as the first child. This means when the HSV has zero scroll offset the menu will show through and still be clickable surprisingly . When the app starts up we scroll the HSV to the offset of the first visible application View..
When exactly is it leak safe to use (anonymous) inner classes? http://stackoverflow.com/questions/10864853/when-exactly-is-it-leak-safe-to-use-anonymous-inner-classes reading some articles on memory leaks in Android and watched this interesting video from Google I O on the subject . Still I don't fully understand the concept and especially when it is safe or dangerous to user inner classes inside an Activity..
uninstall app silently with system priveleges http://stackoverflow.com/questions/10900928/uninstall-app-silently-with-system-priveleges observer INSTALL_REPLACE_EXISTING null I have added uninstallPackage method and edited ApplicationManager method. Still cant get this working. When I run it I get method not found on the invoke deletePackage line . Here is not working project..
Android Open and Save files to/from Google Drive SDK http://stackoverflow.com/questions/12164024/android-open-and-save-files-to-from-google-drive-sdk automatically turn the other on and YOU MUST TURN BOTH ON Figuring this out wasted at least 20 hours of my time alone. Still on the console go to API Access. Create a client make it an Android app. Give it your bundle ID. I don't think the fingerprints..
IntelliJ and android.support.v7.widget.GridLayout http://stackoverflow.com/questions/12468606/intellij-and-android-support-v7-widget-gridlayout section You also need to add a reference to the support v7 GridLayout jar file in the support project libs dir. Still on Dependancies tab click to add new Library Java Browse to the libs gridlayout libs folder and select the support v7 GridLayout..
MediaButtonIntentReceiver not working in Android 4.0+ http://stackoverflow.com/questions/13257982/mediabuttonintentreceiver-not-working-in-android-4-0 filter android priority 2147483647 action android name android.intent.action.MEDIA_BUTTON intent filter receiver Still no luck. What am I missing here It's certainly a 4.0 ICS JellyBean issue... This is being done in a service not an activity...
Current Month Facebook Friends Birthdays in Android http://stackoverflow.com/questions/14373862/current-month-facebook-friends-birthdays-in-android null params new FacebookRequestListener FacebookRequestListener.FRIENDS facebookRequest Still i am using below code to get List of Friends those Birthdays in Current Month Calendar c Calendar.getInstance int month..
LocationListener of NETWORK_PROVIDER is enabled but , onLocationChanged is never called http://stackoverflow.com/questions/15747543/locationlistener-of-network-provider-is-enabled-but-onlocationchanged-is-never localizacao.removeUpdates locationListenerNET Log.d TAG Sem sinal Report in a Samsung Galaxy S3 Still getting Sem sinal for 4 days in a row. This issue have already happened with Galaxy Y and LG Optimus l5 I have made another..
Google Play Services in emulator, implementing Google Plus login button etc http://stackoverflow.com/questions/16000548/google-play-services-in-emulator-implementing-google-plus-login-button-etc button not found using placeholder instead. pretty much explains why I'm seeing the grey dull button on the emulator. Still need to figure out why could be the copy google plus apk's from device hack isn't working properly. android google plus..
Android JSON HttpClient to send data to PHP server with HttpResponse http://stackoverflow.com/questions/2540786/android-json-httpclient-to-send-data-to-php-server-with-httpresponse
Android Webview Anchor Link (Jump link) not working http://stackoverflow.com/questions/3039555/android-webview-anchor-link-jump-link-not-working Jump Links initiated through the #LINK extension to the URL will not work when the WebView is inside of a ScrollView . Still the problem for me and apparently others is that the #LINK does work when launched from a touch in an href but is ignored..
Is AsyncTask really conceptually flawed or am I just missing something? http://stackoverflow.com/questions/3357477/is-asynctask-really-conceptually-flawed-or-am-i-just-missing-something doesn't leak because the references are weak and are cleared when no instance of a given component exists anymore. Still it is a complex workaround and requires to sub class some of the Droid Fu library classes making this a pretty intrusive..
Eclipse and Android XML layouts gives “'default' is not a best match for any device/locale combination” http://stackoverflow.com/questions/3774686/eclipse-and-android-xml-layouts-gives-default-is-not-a-best-match-for-any-dev In the past I have always dynamically generated my layouts at runtime so don't worry I am NOT an Android newbie. Still this is my first time with static layouts. So what's this message all about 2010 09 22 20 43 23 Rockport 'default' is not..
RESTful frameworks for Android, iOS…? http://stackoverflow.com/questions/4097686/restful-frameworks-for-android-ios rest restful authentication activeresource share improve this question I am the author of the RESTProvider. Still very early stage so I would not recommend to use it in production. I have been using it on several projects which are in..
Android - not able to attach a file in email http://stackoverflow.com/questions/4123420/android-not-able-to-attach-a-file-in-email internal non removable storage. That means you don't have to worry about device not having an external storage at all. Still external storage can be unavailable at times. Refer to http developer.android.com guide topics data data storage.html#filesExternal..
android:dither=“true” does not dither, what's wrong? http://stackoverflow.com/questions/4769885/androiddither-true-does-not-dither-whats-wrong After adding one android actually seems to use RGB8888 as said in the post and the banding is gone also for 2.2 . Still wondering why the other methods didn't work. EDIT3 One has to make sure that the PNG not only has an alpha channel but also..
Android What permissions required to call PowerManager.goToSleep(n) put device in sleep mode? http://stackoverflow.com/questions/5710971/android-what-permissions-required-to-call-powermanager-gotosleepn-put-device-i PowerManager.goToSleep n put device in sleep mode Already set android.permissions.DEVICE_POWER in manifest of my app. Still complains that neither user nor process have this permission when I call PowerManager.gotoSleep n within activity. What..
How can I manipulate the camera preview? http://stackoverflow.com/questions/6478375/how-can-i-manipulate-the-camera-preview degrees of success with it. Something like this should probably really be done with native code at the NDK level. Still it is possible to get it working. Also my little demo is just me spending a couple of hours hacking stuff together I guess..
Android: What is the folder name of the jar files (LIB or LIBS)? http://stackoverflow.com/questions/7185488/android-what-is-the-folder-name-of-the-jar-files-lib-or-libs project root folder together with bin gen res src.etc.. Even I add LIB or LIBS folder then put the jar files on it. Still need to set the project properties in order to recognize the added jar files by doing Project Properties Java Build Path..
How to query a web service via POST request in Android? http://stackoverflow.com/questions/9237082/how-to-query-a-web-service-via-post-request-in-android new PropertyInfo propertyInfo.setName GetFeature propertyInfo.setValue featureType soapObject.addProperty propertyInfo Still there are a major problem and some minor problems left. The major problem is that JAXBElement is contained in a core library..
Jersey Client on Android - NullPointerException http://stackoverflow.com/questions/9342506/jersey-client-on-android-nullpointerexception I have also tried to remove the whole thing with the EditText since someone told me it isn't used as it should be. Still I got the same error. I simply can not understand what am I doing wrong. If I should display any other additional information..
|