android Programming Glossary: really
Android - what's the difference between the various methods to get a Context? http://stackoverflow.com/questions/1026973/android-whats-the-difference-between-the-various-methods-to-get-a-context screen orientation changes and such. I couldn't find really anything about when to use getBaseContext other than a post..
Standard Android Button with a different color http://stackoverflow.com/questions/1521640/standard-android-button-with-a-different-color That seems more complicated and non DRY than I need. All I really want to do is apply some sort of color transform to the button...
Libraries do not get added to APK anymore after upgrade to ADT 22 http://stackoverflow.com/questions/16596969/libraries-do-not-get-added-to-apk-anymore-after-upgrade-to-adt-22 the next library all without any success so i'm getting really desperate here. I would be really happy if anyone could give.. success so i'm getting really desperate here. I would be really happy if anyone could give me a hint on how to solve that problem...
Quitting an application - is that frowned upon? http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon to be used in a very narrow business field. I was actually really looking forward to developing for the Android platform since.. doesn't look very good right now Is there a way for me to really quit the application android share improve this question.. apps pick up where the user left off even if the app really was shut down since iPhone only allows one third party app at..
Close application and launch home screen on Android http://stackoverflow.com/questions/2042222/close-application-and-launch-home-screen-on-android android activity share improve this question You should really think about not exiting the application. This is not how Android..
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 multiple processes. So how much memory a processes uses is really not clear. Add on top of that paging out to disk let alone swap.. I believe procrank may be the more accurate one... but really this just leave the point take any memory info you get with..
What are the best practices for SQLite on Android? http://stackoverflow.com/questions/2493331/what-are-the-best-practices-for-sqlite-on-android It appears to offer you a read and write connection but it really doesn't. Call the read only and you'll get the write database..
Sending and Parsing JSON in Android http://stackoverflow.com/questions/2818697/sending-and-parsing-json-in-android too perhaps GSON as well not sure JsonNode Map List if you really want these instead of 'real' objects share improve this answer..
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 you are doing something like that in your app it could be really useful. 3. Use DownloadManager class GingerBread and newer only..
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 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..
Strange out of memory issue while loading an image to a Bitmap object http://stackoverflow.com/questions/477572/strange-out-of-memory-issue-while-loading-an-image-to-a-bitmap-object an out of band resize and save of my image but that is not really what I want to do but some sample code for that would be nice...
How to parse XML using the SAX parser http://stackoverflow.com/questions/4827344/how-to-parse-xml-using-the-sax-parser object somewhere or whatever. Now to be honest I can't really tell you any real advantage of this handler implementation over..
How to ship an Android application with a database? http://stackoverflow.com/questions/513084/how-to-ship-an-android-application-with-a-database database should go and how to access it. 2 It may take a really long time to create and populate the database on the device...
When to call activity context OR application context? http://stackoverflow.com/questions/7298731/when-to-call-activity-context-or-application-context too much memory.. But can anyone please come up with some really good coding examples where it would be the right thing to use..
Android - basic gesture detection http://stackoverflow.com/questions/937313/android-basic-gesture-detection the methods weren't called when I touched the screen. I really just need a concrete example of this working across views. What..
How can I catch SIGSEGV (segmentation fault) and get a stack trace under JNI on Android? http://stackoverflow.com/questions/1083154/how-can-i-catch-sigsegv-segmentation-fault-and-get-a-stack-trace-under-jni-on Meanwhile your crash handling activity is starting up. Really you should pass it the PID so it can wait for step 5 to complete..
Android eclipse editor: Unable to edit properties http://stackoverflow.com/questions/11579594/android-eclipse-editor-unable-to-edit-properties Restarting eclipse every click combos in fields etc... . Really annoying. The properties editor UPDATE Sound like a problem..
Callback to a Fragment from a DialogFragment http://stackoverflow.com/questions/13733304/callback-to-a-fragment-from-a-dialogfragment want the Activity to listen for events I need a Fragment. Really it could be any Java object that implements OnClickListener...
How to handle RTL languages on pre 4.2 versions of Android? http://stackoverflow.com/questions/15746091/how-to-handle-rtl-languages-on-pre-4-2-versions-of-android Android text handling capabilities especially pre 4.2 are Really crappy fonts. However you can package third party fonts like..
how to connect android emulator to the internet http://stackoverflow.com/questions/2039964/how-to-connect-android-emulator-to-the-internet on my laptop. So how to fix Simple Disable your LAN card. Really. Just go to your Network connections find your LAN card right..
Android OpenAL? http://stackoverflow.com/questions/2587295/android-openal I can actually port without becoming a java expert myself. Really disliking the NDK so far android audio android ndk openal alsa..
Does Android XML Layout's 'include' Tag Really Work? http://stackoverflow.com/questions/2631614/does-android-xml-layouts-include-tag-really-work Android XML Layout's 'include' Tag Really Work I am unable to override attributes when using include..
Android Quick Actions UI Pattern http://stackoverflow.com/questions/3059155/android-quick-actions-ui-pattern
Exact Difference between “Content-Provider” and “SQLite Database” http://stackoverflow.com/questions/3350408/exact-difference-between-content-provider-and-sqlite-database
Installing & using the Android NDK in Eclipse http://stackoverflow.com/questions/3469448/installing-using-the-android-ndk-in-eclipse project like normal and build it with the NDK instead Really could do with a decent tutorial if anyone know of any. EDIT..
android EditText delete(backspace) key event http://stackoverflow.com/questions/4886858/android-edittext-deletebackspace-key-event for backspace but really it is KeyEvent.KEYCODE_DEL Really that name is confusioning editText.setOnKeyListener new OnKeyListener..
How to Find memory leaks from native code in android http://stackoverflow.com/questions/5094242/how-to-find-memory-leaks-from-native-code-in-android leaks jni android ndk share improve this question Really useful information I got to find the leaks in native code. add..
MapView in a Fragment (Honeycomb) http://stackoverflow.com/questions/5109336/mapview-in-a-fragment-honeycomb LayoutInflater.java 664 Really there should be something like MapFragment that takes care of..
Android Dev - Callback URL not working… (0_o) http://stackoverflow.com/questions/5545803/android-dev-callback-url-not-working-0-o code if that would make things easier to understand. Really beating my head in here... IN RESPONE TO A GREAT ANSWER HERE..
Android: Proper Way to use onBackPressed() http://stackoverflow.com/questions/6413700/android-proper-way-to-use-onbackpressed void onBackPressed new AlertDialog.Builder this .setTitle Really Exit .setMessage Are you sure you want to exit .setNegativeButton..
Android - EditTexts in Gallery show strange behaviour when being (long)-clicked http://stackoverflow.com/questions/7051034/android-edittexts-in-gallery-show-strange-behaviour-when-being-long-clicked me I did a lot of research before asking this question. Really. Thanks a lot m1ntf4n EDIT Here is the code of my Activity...
When a Fragment is replaced and put in the back stack (or removed) does it stay in memory? http://stackoverflow.com/questions/8482606/when-a-fragment-is-replaced-and-put-in-the-back-stack-or-removed-does-it-stay C is killed or can it be removed by the system as needed Really what I am asking is whether or not I run the risk of running..
Speech to Text Include speech engine in apk http://stackoverflow.com/questions/8644650/speech-to-text-include-speech-engine-in-apk in apk I need a speech to text facility in my app for Really non Geeks. Is there a way to include the speech engine at compile..
Service not available in geoCoder http://stackoverflow.com/questions/9272918/service-not-available-in-geocoder is thrown even is isPresent returns true. EDIT END Really weird since it was working fine before and no configuration..
Android: Temporarily disable orientation changes in an Activity http://stackoverflow.com/questions/3611457/android-temporarily-disable-orientation-changes-in-an-activity if I rotate my phone it restarts the activity which is REALLY bad for the process that was running and I get a Force Close...
How advantageous is PhoneGap? http://stackoverflow.com/questions/4034558/how-advantageous-is-phonegap phonegap share improve this question if that is REALLY all your app needs to do then I believe PhoneGap can meet your..
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 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...
How to prevent the soft keyboard from ever appearing in my Activity? http://stackoverflow.com/questions/4681743/how-to-prevent-the-soft-keyboard-from-ever-appearing-in-my-activity a user problem. Don't try to subvert the user. If the user REALLY wants to open a keyboard in your app you should let them and..
Updating TextView every N seconds? http://stackoverflow.com/questions/4776514/updating-textview-every-n-seconds gets a random quote CONST_TIME CUR_TIME I guess what I'm REALLY asking is how do I make checkTime repeat it self endlessly until..
jQuery Drag and Drop on touch devices (iPad, Android) http://stackoverflow.com/questions/5796109/jquery-drag-and-drop-on-touch-devices-ipad-android flawlessly when using a mouse for almost a year. We would REALLY like to have the site work on touch screen devices but we cannot..
Samsung Galaxy bluetooth drivers http://stackoverflow.com/questions/9596978/samsung-galaxy-bluetooth-drivers Galaxy S2 2. Samsung Galaxy Gio 3. Netsurfer touch A REALLY low end locally South Africa produced android tablet 4. A Motorolla..
Stacking image views with overlapping http://stackoverflow.com/questions/9840616/stacking-image-views-with-overlapping inside your new custom ViewGroup. Hope this helps. if you REALLY need to hack this into XML you can try the following RelativeLayout..
android EditText blends into background http://stackoverflow.com/questions/9900825/android-edittext-blends-into-background solutions to my problem and I never figured out what was REALLY causing the issue. However this is how I solved it My workaround..
Android - what's the difference between the various methods to get a Context? http://stackoverflow.com/questions/1026973/android-whats-the-difference-between-the-various-methods-to-get-a-context be destroyed many times as the activity is destroyed during screen orientation changes and such. I couldn't find really anything about when to use getBaseContext other than a post from Dianne Hackborn one of the Google engineers working on..
Standard Android Button with a different color http://stackoverflow.com/questions/1521640/standard-android-button-with-a-different-color the button at rest one when focused and one when pressed . That seems more complicated and non DRY than I need. All I really want to do is apply some sort of color transform to the button. Is there an easier way to go about changing a button's color..
Libraries do not get added to APK anymore after upgrade to ADT 22 http://stackoverflow.com/questions/16596969/libraries-do-not-get-added-to-apk-anymore-after-upgrade-to-adt-22 the code that uses this library i just get the same error for the next library all without any success so i'm getting really desperate here. I would be really happy if anyone could give me a hint on how to solve that problem. android eclipse adt.. just get the same error for the next library all without any success so i'm getting really desperate here. I would be really happy if anyone could give me a hint on how to solve that problem. android eclipse adt share improve this question Quoting..
Quitting an application - is that frowned upon? http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon by the general public it is a business app that is going to be used in a very narrow business field. I was actually really looking forward to developing for the Android platform since it addresses a lot of issues that exist in Windows Mobile and.. 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 This will eventually get to your question but I first want.. necessarily feel like the app was terminated since many iPhone apps pick up where the user left off even if the app really was shut down since iPhone only allows one third party app at a time at present . As I said above there is a lot of things..
Close application and launch home screen on Android http://stackoverflow.com/questions/2042222/close-application-and-launch-home-screen-on-android
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 and Linux systems in general is actually shared across multiple processes. So how much memory a processes uses is really not clear. Add on top of that paging out to disk let alone swap which we don't use on Android and it is even less clear... different results. Why is that Honestly I haven't a clue. I believe procrank may be the more accurate one... but really this just leave the point take any memory info you get with a grain of salt often a very large grain. Finally there is the..
What are the best practices for SQLite on Android? http://stackoverflow.com/questions/2493331/what-are-the-best-practices-for-sqlite-on-android object holds on to one database connection. It appears to offer you a read and write connection but it really doesn't. Call the read only and you'll get the write database connection regardless. So one helper instance one db connection...
Sending and Parsing JSON in Android http://stackoverflow.com/questions/2818697/sending-and-parsing-json-in-android
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 service and post results to the UI with easily. If you are doing something like that in your app it could be really useful. 3. Use DownloadManager class GingerBread and newer only This method is awesome you do not have to worry about downloading..
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 application that only needs an occasional 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..
Strange out of memory issue while loading an image to a Bitmap object http://stackoverflow.com/questions/477572/strange-out-of-memory-issue-while-loading-an-image-to-a-bitmap-object of focus issue. I can use roller ball. I know I can do an out of band resize and save of my image but that is not really what I want to do but some sample code for that would be nice. As soon as I disabled the image on the list view it worked..
How to parse XML using the SAX parser http://stackoverflow.com/questions/4827344/how-to-parse-xml-using-the-sax-parser you can do something here for example send the Channel object somewhere or whatever. Now to be honest I can't really tell you any real advantage of this handler implementation over the android.sax one. I can however tell you the disadvantage..
How to ship an Android application with a database? http://stackoverflow.com/questions/513084/how-to-ship-an-android-application-with-a-database might cause problems and I currently don't know where the database should go and how to access it. 2 It may take a really long time to create and populate the database on the device. Your thoughts Pointers to documentation regarding any issues..
When to call activity context OR application context? http://stackoverflow.com/questions/7298731/when-to-call-activity-context-or-application-context the Garbage Collector GC doesn't catch and therefor uses too much memory.. But can anyone please come up with some really good coding examples where it would be the right thing to use this getting the context of the current Activity instance..
Android - basic gesture detection http://stackoverflow.com/questions/937313/android-basic-gesture-detection fling has occurred from the view. In any case I tried this and the methods weren't called when I touched the screen. I really just need a concrete example of this working across views. What when and how should I attach this listener I need to be..
How can I catch SIGSEGV (segmentation fault) and get a stack trace under JNI on Android? http://stackoverflow.com/questions/1083154/how-can-i-catch-sigsegv-segmentation-fault-and-get-a-stack-trace-under-jni-on for you and then the process will die. debugger.c debuggerd.c Meanwhile your crash handling activity is starting up. Really you should pass it the PID so it can wait for step 5 to complete I don't do this. Here you apologise to the user and ask..
Android eclipse editor: Unable to edit properties http://stackoverflow.com/questions/11579594/android-eclipse-editor-unable-to-edit-properties cause I can only change it from the XML. I tried everything Restarting eclipse every click combos in fields etc... . Really annoying. The properties editor UPDATE Sound like a problem related to Mountain Lion so we have to wait for an ADT plugin..
Callback to a Fragment from a DialogFragment http://stackoverflow.com/questions/13733304/callback-to-a-fragment-from-a-dialogfragment ........ .setAdapter adapter listener .create But I don't want the Activity to listen for events I need a Fragment. Really it could be any Java object that implements OnClickListener. Consider the concrete example of a Fragment that presents an..
How to handle RTL languages on pre 4.2 versions of Android? http://stackoverflow.com/questions/15746091/how-to-handle-rtl-languages-on-pre-4-2-versions-of-android text flow etc. Some of the problems trying to use native Android text handling capabilities especially pre 4.2 are Really crappy fonts. However you can package third party fonts like DejaVu that are pretty good. The right font can do wonders..
how to connect android emulator to the internet http://stackoverflow.com/questions/2039964/how-to-connect-android-emulator-to-the-internet you're on a wireless connection. I noticed this when I was on my laptop. So how to fix Simple Disable your LAN card. Really. Just go to your Network connections find your LAN card right click it and choose disable. Now try your emulator. If you're..
Android OpenAL? http://stackoverflow.com/questions/2587295/android-openal no shared library access on the system. Thanks.. I hope I can actually port without becoming a java expert myself. Really disliking the NDK so far android audio android ndk openal alsa share improve this question A few options are available..
Does Android XML Layout's 'include' Tag Really Work? http://stackoverflow.com/questions/2631614/does-android-xml-layouts-include-tag-really-work Android XML Layout's 'include' Tag Really Work I am unable to override attributes when using include in my Android layout files. When I searched for bugs I found..
Android Quick Actions UI Pattern http://stackoverflow.com/questions/3059155/android-quick-actions-ui-pattern
Exact Difference between “Content-Provider” and “SQLite Database” http://stackoverflow.com/questions/3350408/exact-difference-between-content-provider-and-sqlite-database
Installing & using the Android NDK in Eclipse http://stackoverflow.com/questions/3469448/installing-using-the-android-ndk-in-eclipse me on using the NDK For example do I just create an Android project like normal and build it with the NDK instead Really could do with a decent tutorial if anyone know of any. EDIT OK so I have the NDK installed now I think but does anyone have..
android EditText delete(backspace) key event http://stackoverflow.com/questions/4886858/android-edittext-deletebackspace-key-event press EDIT A common mistake we are checking KeyEvent.KEYCODE_BACK for backspace but really it is KeyEvent.KEYCODE_DEL Really that name is confusioning editText.setOnKeyListener new OnKeyListener @Override public boolean onKey View v int keyCode..
How to Find memory leaks from native code in android http://stackoverflow.com/questions/5094242/how-to-find-memory-leaks-from-native-code-in-android anybody knows how to do this. android memory management memory leaks jni android ndk share improve this question Really useful information I got to find the leaks in native code. add native true in ~ .android ddms.cfg replace system lib libc.so..
MapView in a Fragment (Honeycomb) http://stackoverflow.com/questions/5109336/mapview-in-a-fragment-honeycomb Activity.java 4090 E AndroidRuntime 834 at android.view.LayoutInflater.createViewFromTag LayoutInflater.java 664 Really there should be something like MapFragment that takes care of the background threads MapView needs I guess... So what is..
Android Dev - Callback URL not working… (0_o) http://stackoverflow.com/questions/5545803/android-dev-callback-url-not-working-0-o I just missed...I'm not at my machine now but I can supply code if that would make things easier to understand. Really beating my head in here... IN RESPONE TO A GREAT ANSWER HERE IS HOW I HANDLE MY ON RESUME protected void onResume super.onResume..
Android: Proper Way to use onBackPressed() http://stackoverflow.com/questions/6413700/android-proper-way-to-use-onbackpressed then call super.onBackPressed if they did. @Override public void onBackPressed new AlertDialog.Builder this .setTitle Really Exit .setMessage Are you sure you want to exit .setNegativeButton android.R.string.no null .setPositiveButton android.R.string.yes..
Android - EditTexts in Gallery show strange behaviour when being (long)-clicked http://stackoverflow.com/questions/7051034/android-edittexts-in-gallery-show-strange-behaviour-when-being-long-clicked you if you can help me. Any help is appreciated. And believe me I did a lot of research before asking this question. Really. Thanks a lot m1ntf4n EDIT Here is the code of my Activity. Sorry for the double post didn't take the possibility of editing..
When a Fragment is replaced and put in the back stack (or removed) does it stay in memory? http://stackoverflow.com/questions/8482606/when-a-fragment-is-replaced-and-put-in-the-back-stack-or-removed-does-it-stay F is kept in its back stack. Will F stay in memory until the C is killed or can it be removed by the system as needed Really what I am asking is whether or not I run the risk of running out of memory if I have a back stack of complicated Fragments..
Speech to Text Include speech engine in apk http://stackoverflow.com/questions/8644650/speech-to-text-include-speech-engine-in-apk to Text Include speech engine in apk I need a speech to text facility in my app for Really non Geeks. Is there a way to include the speech engine at compile time for all sorts of tablets android speech recognition..
Service not available in geoCoder http://stackoverflow.com/questions/9272918/service-not-available-in-geocoder available exception. EDIT As mentioned by Christian the exception is thrown even is isPresent returns true. EDIT END Really weird since it was working fine before and no configuration changed occurred same device same Android version same app same..
Android: Temporarily disable orientation changes in an Activity http://stackoverflow.com/questions/3611457/android-temporarily-disable-orientation-changes-in-an-activity dialog which I set as non cancellable. However I noticed that if I rotate my phone it restarts the activity which is REALLY bad for the process that was running and I get a Force Close. What I want to do is programatically disable screen orientation..
How advantageous is PhoneGap? http://stackoverflow.com/questions/4034558/how-advantageous-is-phonegap the road Thank you all in Advance.. iphone android cross platform phonegap share improve this question if that is REALLY all your app needs to do then I believe PhoneGap can meet your needs. I have been working with it for about 4 6 months now..
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 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 not work if you have an older phone and a big bitmap...
How to prevent the soft keyboard from ever appearing in my Activity? http://stackoverflow.com/questions/4681743/how-to-prevent-the-soft-keyboard-from-ever-appearing-in-my-activity it and it doesn't work on my phone. Also that sounds like a user problem. Don't try to subvert the user. If the user REALLY wants to open a keyboard in your app you should let them and if it's useless they'll hit back and it will go away. A more..
Updating TextView every N seconds? http://stackoverflow.com/questions/4776514/updating-textview-every-n-seconds CUR_TIME CONST_TIME 10000 getNextQuote null A function that gets a random quote CONST_TIME CUR_TIME I guess what I'm REALLY asking is how do I make checkTime repeat it self endlessly until onPause is called android textview self updating share..
jQuery Drag and Drop on touch devices (iPad, Android) http://stackoverflow.com/questions/5796109/jquery-drag-and-drop-on-touch-devices-ipad-android of jQuery Draggable Droppable and which has worked nearly flawlessly when using a mouse for almost a year. We would REALLY like to have the site work on touch screen devices but we cannot seem to get jQuery's drag and especially drop functionality..
Samsung Galaxy bluetooth drivers http://stackoverflow.com/questions/9596978/samsung-galaxy-bluetooth-drivers it communicates via bluetooth. I have four devices 1. Samsung Galaxy S2 2. Samsung Galaxy Gio 3. Netsurfer touch A REALLY low end locally South Africa produced android tablet 4. A Motorolla ET1 Now I have written my app I need to test the complete..
Stacking image views with overlapping http://stackoverflow.com/questions/9840616/stacking-image-views-with-overlapping them you'll use child.layout l t r b to place the child view inside your new custom ViewGroup. Hope this helps. if you REALLY need to hack this into XML you can try the following RelativeLayout android layout_width fill_parent android layout_height..
android EditText blends into background http://stackoverflow.com/questions/9900825/android-edittext-blends-into-background improve this question The other answers weren't actually solutions to my problem and I never figured out what was REALLY causing the issue. However this is how I solved it My workaround was to copy the .9.pngs and styling for the EditText widget..
|