android Programming Glossary: question
Close/hide the Android Soft Keyboard http://stackoverflow.com/questions/1109022/close-hide-the-android-soft-keyboard android keypad android input method share improve this question You can force Android to hide the virtual keyboard using the..
Saving Activity state in Android http://stackoverflow.com/questions/151777/saving-activity-state-in-android two one... android application state share improve this question You need to override onSaveInstanceState Bundle savedInstanceState..
Sending Email in Android using JavaMail API without using the default/built-in app http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-built-in-a this application. android email share improve this question Send e mail in Android using the JavaMail API using Gmail authentication..
Quitting an application - is that frowned upon? http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon really quit the application android share improve this question This will eventually get to your question but I first want.. improve this question This will eventually get to your question but I first want to address a number of issues you raise in.. back button does not kill the app at all see link in my question above . Pressing the BACK button does not kill the app . It..
How do I pass data between activities in Android? http://stackoverflow.com/questions/2091465/how-do-i-pass-data-between-activities-in-android solutions to this problem android share improve this question The easiest way to do this would be to pass the session id..
Is there a unique Android device ID? http://stackoverflow.com/questions/2785485/is-there-a-unique-android-device-id it via java android uniqueidentifier share improve this question Settings.Secure#ANDROID_ID returns the Android ID as an unique..
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 android download android asynctask share improve this question There are many ways to download files. Following I will post.. 2. Download from Service The big question here is how do I update my activity from a service . In the..
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 accomplish this android geolocation share improve this question Here's what I do First of all I check what providers are enabled...
Activity restart on rotation Android http://stackoverflow.com/questions/456211/activity-restart-on-rotation-android android rotation android activity share improve this question Using the Application Class Depending on what you're doing..
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 failed android image memory bitmap share improve this question The Android Training class Displaying Bitmaps Efficiently offers..
How do I do a lazy load of images in ListView http://stackoverflow.com/questions/541966/how-do-i-do-a-lazy-load-of-images-in-listview android image url android listview share improve this question Here's what I created to hold the images that my app is currently..
Android: How to declare global variables? http://stackoverflow.com/questions/708012/android-how-to-declare-global-variables singleton global variables state share improve this question I wrote this answer back in '09 when Android was relatively..
R cannot be resolved - Android error http://stackoverflow.com/questions/885009/r-cannot-be-resolved-android-error . android eclipse android resources share improve this question After tracking down this problem as well I found this note..
How to use an existing database with an Android application [duplicate] http://stackoverflow.com/questions/9109438/how-to-use-an-existing-database-with-an-android-application database with an Android application duplicate This question already has an answer here How to ship an Android application.. database java android eclipse sqlite share improve this question EDIT You can find source code sample project here . NOTE Before..
Android - basic gesture detection http://stackoverflow.com/questions/937313/android-basic-gesture-detection Any advice would be greatly appreciated. Apologies if the question is disjointed please ask for clarification and I'll happily.. android listener gesture recognition share improve this question Thanks to Code Shogun whose code I adapted to my situation...
upload video to facebook in android http://stackoverflow.com/questions/10151708/upload-video-to-facebook-in-android Problem My video isn't being uploaded to Facebook. Question How can I upload a video to Facebook Note I can upload a picture..
In Android -How directly post tweet to following users of a authenticate user in android without open Tweet dialog (Message Dialog box) http://stackoverflow.com/questions/13134629/in-android-how-directly-post-tweet-to-following-users-of-a-authenticate-user-in without open dialog.I am using this link for authenticate Question How directly post tweet to following users of a authenticate..
Using ActionBarSherlock With the New SupportMapFragment http://stackoverflow.com/questions/13721929/using-actionbarsherlock-with-the-new-supportmapfragment to do that I need to use the SupportMapFragment class. My Question Is it possible to use the SupportMapFragment class alongside..
Pass ArrayList data into SOAP web service in android http://stackoverflow.com/questions/19198017/pass-arraylist-data-into-soap-web-service-in-android Q OnLineApplication.mParserResults.get i .getQuestion System.out.println A OnLineApplication.mParserResults.get i.. i request.addProperty CompanyID 30 request.addProperty Question OnLineApplication.mParserResults.get i .getQuestion request.addProperty.. Question OnLineApplication.mParserResults.get i .getQuestion request.addProperty Answer OnLineApplication.mParserResults.get..
Quitting an application - is that frowned upon? http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon in my attempt to learn Android I just read the following Question Does the user have a choice to kill the application unless we..
How to create/write file in the root of the android device? http://stackoverflow.com/questions/2079766/how-to-create-write-file-in-the-root-of-the-android-device when it's placed in root directory on the mobile device. Question is how do I place a file in the root directory I have been looking..
Question mark (?) in XML attributes for Android http://stackoverflow.com/questions/2733907/question-mark-in-xml-attributes-for-android mark in XML attributes for Android Can anyone explain the question..
How to detect USER INACTIVITY in android http://stackoverflow.com/questions/4208730/how-to-detect-user-inactivity-in-android Count down timer starts and logs out user after 5 mins My Question I want this same behavior even when the app is in the foreground..
Closing the database in a ContentProvider http://stackoverflow.com/questions/4547461/closing-the-database-in-a-contentprovider I don't really trust the sample code that much either... Question summary When should we close the database in a provider if at..
Playing an pre-recorded audio file to somebody over a call http://stackoverflow.com/questions/5452595/playing-an-pre-recorded-audio-file-to-somebody-over-a-call atleast that is what i have heard seen on the internet. My Question is this if this is truly the way it is how is prankdial accomplishing.. android media player share improve this question My Question is this if this is truly the way it is how is prankdial accomplishing..
stuck with getting camera pic when using the tab Activity http://stackoverflow.com/questions/6677466/stuck-with-getting-camera-pic-when-using-the-tab-activity improve this question As for I understand from your Question is This happen while using ActivityGroup . Since you are starting..
android fragment- How to save states of views in a fragment when another fragment is pushed on top of it http://stackoverflow.com/questions/6787071/android-fragment-how-to-save-states-of-views-in-a-fragment-when-another-fragmen particular state before FragB got pushed on top of it. My Question is how can I restore FragA to its previous state Is there a..
install / uninstall APKs programmatically (PackageManager vs Intents) http://stackoverflow.com/questions/6813322/install-uninstall-apks-programmatically-packagemanager-vs-intents and is most likely capable of setting this value. Question Is it possible to specify package installer name using intents..
Voice Detection in Android Application http://stackoverflow.com/questions/7955041/voice-detection-in-android-application give me back same buffer with voice data in .wav format. Question How I can detect that user start to talk How I can detect that..
Application restart - Activity Entry Point http://stackoverflow.com/questions/11243019/application-restart-activity-entry-point skips the SplashActivity and displays the MainActivity . QUESTION is this the expected behaviour If the entire process is stopped..
Android OnClickListener - identify a button http://stackoverflow.com/questions/3320115/android-onclicklistener-identify-a-button new View.OnClickListener public void onClick View v MY QUESTION STARTS HERE IF b1 do this IF b2 do this MY QUESTION ENDS HERE.. v MY QUESTION STARTS HERE IF b1 do this IF b2 do this MY QUESTION ENDS HERE How do I check which button has been clicked android..
Android Can't create handler inside thread that has not called Looper.prepare() http://stackoverflow.com/questions/5009816/android-cant-create-handler-inside-thread-that-has-not-called-looper-prepare the UI thread. ADDED FOLLOWING THE STACKTRACE APPEARING IN QUESTION Looks like you're trying to start an AsyncTask from a GL rendering..
Calling a java method from c++ in Android http://stackoverflow.com/questions/5198105/calling-a-java-method-from-c-in-android THE SOLUTION TO THIS PROBLEM IS IN THE BOTTOM OF THE QUESTION Hi. I'm trying to get a simple java method call from c while..
EditText is losing users' input when rotating android phone http://stackoverflow.com/questions/5657828/edittext-is-losing-users-input-when-rotating-android-phone mode or portrait and rotates the phone the text is lost. QUESTION How can I prevent the loss of the text underlying code onCreate..
Bring task to front on android.intent.action.USER_PRESENT http://stackoverflow.com/questions/8750854/bring-task-to-front-on-android-intent-action-user-present I have a task i.e. app with multiple activities. QUESTION How do I bring a task to the front w o re ordering the activity..
Android: CountDownTimer skips last onTick()! http://stackoverflow.com/questions/8857590/android-countdowntimer-skips-last-ontick it new MyCountDownTimer 10000 2000 .Start EDIT FOR GOOFY'S QUESTION you should have a variable to hold counter status boolean ... can write a Stop method like Start . EDIT 2 FOR GOOFY'S QUESTION actually there is no bug on stopping counter but there is a..
Android Stop Background Music http://stackoverflow.com/questions/9148615/android-stop-background-music do I have to programattically do this actually the BIGGEST QUESTION FOR THIS POST IS WHY DOES PRESSING THE HOME BUTTON NOT CALL..
Close/hide the Android Soft Keyboard http://stackoverflow.com/questions/1109022/close-hide-the-android-soft-keyboard find an example of it android keyboard android softkeyboard android keypad android input method share improve this question You can force Android to hide the virtual keyboard using the InputMethodManager calling hideSoftInputFromWindow passing..
Saving Activity state in Android http://stackoverflow.com/questions/151777/saving-activity-state-in-android would appreciate any help. Cue me looking a fool in three two one... android application state share improve this question You need to override onSaveInstanceState Bundle savedInstanceState and write the application state values you want to change..
Sending Email in Android using JavaMail API without using the default/built-in app http://stackoverflow.com/questions/2020088/sending-email-in-android-using-javamail-api-without-using-the-default-built-in-a trying to send the mail on button click directly without using this application. android email share improve this question Send e mail in Android using the JavaMail API using Gmail authentication Steps to create a sample Project MailSenderActivity.java..
Quitting an application - is that frowned upon? http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon 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 to address a number of issues you raise in your various comments.. 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 to address a number of issues you raise in your various comments to the various answers already given at.. task never on exit. Some comments suggest that hitting the back button does not kill the app at all see link in my question above . Pressing the BACK button does not kill the app . It finishes the activity that was on screen when the user pressed..
How do I pass data between activities in Android? http://stackoverflow.com/questions/2091465/how-do-i-pass-data-between-activities-in-android available to all activities Alternatively are there any other solutions to this problem android share improve this question The easiest way to do this would be to pass the session id to the signout activity in the intent you're using to start..
Is there a unique Android device ID? http://stackoverflow.com/questions/2785485/is-there-a-unique-android-device-id have a unique id and if so what is a simple way to access it via java android uniqueidentifier share improve this question Settings.Secure#ANDROID_ID returns the Android ID as an unique 64 bit hex string. import android.provider.Settings.Secure..
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 and how to download the file in the first place. java android download android asynctask share improve this question There are many ways to download files. Following I will post most common ways it is up to you to decide which method is.. the WAKE_LOCK permission. uses permission android name android.permission.WAKE_LOCK 2. Download from Service The big question here is how do I update my activity from a service . In the next example we are going to use two classes you may not be..
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 to give you the best results. Is there a simpler way to accomplish this android geolocation share improve this question Here's what I do First of all I check what providers are enabled. Some may be disabled on the device some may be disabled..
Activity restart on rotation Android http://stackoverflow.com/questions/456211/activity-restart-on-rotation-android Limit the app to just portrait so that onCreate is not called. android rotation android activity share improve this question Using the Application Class Depending on what you're doing in your initialization you could consider creating a new class..
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 13 18.694 DEBUG skia 4204 xxxxxxxxxxxxxxxxxxxx allocPixelRef failed android image memory bitmap share improve this question The Android Training class Displaying Bitmaps Efficiently offers some great information for understanding and dealing with..
How do I do a lazy load of images in ListView http://stackoverflow.com/questions/541966/how-do-i-do-a-lazy-load-of-images-in-listview as they are downloaded The number of images is not fixed. android image url android listview share improve this question Here's what I created to hold the images that my app is currently displaying. Please note that the Log object in use here..
Android: How to declare global variables? http://stackoverflow.com/questions/708012/android-how-to-declare-global-variables the user already successfully authenticates Thanks android singleton global variables state share improve this question I wrote this answer back in '09 when Android was relatively new and there were many not well established areas in Android..
R cannot be resolved - Android error http://stackoverflow.com/questions/885009/r-cannot-be-resolved-android-error Why PS I do have an XML file named main.xml under res layout . android eclipse android resources share improve this question After tracking down this problem as well I found this note in the Android documentation http source.android.com source..
How to use an existing database with an Android application [duplicate] http://stackoverflow.com/questions/9109438/how-to-use-an-existing-database-with-an-android-application to use an existing database with an Android application duplicate This question already has an answer here How to ship an Android application with a database 8 answers I have already created.. application gain access to this database and use it as its database java android eclipse sqlite share improve this question EDIT You can find source code sample project here . NOTE Before trying this code please find this line in below code private..
Android - basic gesture detection http://stackoverflow.com/questions/937313/android-basic-gesture-detection to work for SelectFilterActivity Adapted from photostream . Any advice would be greatly appreciated. Apologies if the question is disjointed please ask for clarification and I'll happily tell you the specifics of what I've tried. android listener.. and I'll happily tell you the specifics of what I've tried. android listener gesture recognition share improve this question Thanks to Code Shogun whose code I adapted to my situation. Let your activity implement OnClickListener as usual public..
upload video to facebook in android http://stackoverflow.com/questions/10151708/upload-video-to-facebook-in-android video to facebook in android Problem My video isn't being uploaded to Facebook. Question How can I upload a video to Facebook Note I can upload a picture from my gallery. There are no Exceptions being thrown...
In Android -How directly post tweet to following users of a authenticate user in android without open Tweet dialog (Message Dialog box) http://stackoverflow.com/questions/13134629/in-android-how-directly-post-tweet-to-following-users-of-a-authenticate-user-in list Name id of following users but not able to post tweet without open dialog.I am using this link for authenticate Question How directly post tweet to following users of a authenticate user in android wihout open Tweet dialog box Message Dialog..
Using ActionBarSherlock With the New SupportMapFragment http://stackoverflow.com/questions/13721929/using-actionbarsherlock-with-the-new-supportmapfragment need to implement the new Google Maps in my application and to do that I need to use the SupportMapFragment class. My Question Is it possible to use the SupportMapFragment class alongside ActionBarSherlock Thanks in advance EDIT I have downloaded..
Pass ArrayList data into SOAP web service in android http://stackoverflow.com/questions/19198017/pass-arraylist-data-into-soap-web-service-in-android OnLineApplication.mParserResults.get i .getCompanyId System.out.println Q OnLineApplication.mParserResults.get i .getQuestion System.out.println A OnLineApplication.mParserResults.get i .getAnswer new insertResult .execute public class insertResult.. dt for int i 0 i OnLineApplication.mParserResults.size i request.addProperty CompanyID 30 request.addProperty Question OnLineApplication.mParserResults.get i .getQuestion request.addProperty Answer OnLineApplication.mParserResults.get i .getAnswer.. i request.addProperty CompanyID 30 request.addProperty Question OnLineApplication.mParserResults.get i .getQuestion request.addProperty Answer OnLineApplication.mParserResults.get i .getAnswer SoapSerializationEnvelope envelope new SoapSerializationEnvelope..
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..
How to create/write file in the root of the android device? http://stackoverflow.com/questions/2079766/how-to-create-write-file-in-the-root-of-the-android-device extension .in . The application reads and parses the .in file when it's placed in root directory on the mobile device. Question is how do I place a file in the root directory I have been looking around for an answer but havent found one yet. regards..
Question mark (?) in XML attributes for Android http://stackoverflow.com/questions/2733907/question-mark-in-xml-attributes-for-android mark in XML attributes for Android Can anyone explain the question mark means in Android XML attributes TextView style..
How to detect USER INACTIVITY in android http://stackoverflow.com/questions/4208730/how-to-detect-user-inactivity-in-android and logs out user after 5 mins OR user turns the screen OFF Count down timer starts and logs out user after 5 mins My Question I want this same behavior even when the app is in the foreground but user doesn't interact with the app for a long time..
Closing the database in a ContentProvider http://stackoverflow.com/questions/4547461/closing-the-database-in-a-contentprovider piece of the puzzle but I'd really like to know for sure. I don't really trust the sample code that much either... Question summary When should we close the database in a provider if at all android sqlite android contentprovider share improve..
Playing an pre-recorded audio file to somebody over a call http://stackoverflow.com/questions/5452595/playing-an-pre-recorded-audio-file-to-somebody-over-a-call not actually been used to play a pre recorded audio file or atleast that is what i have heard seen on the internet. My Question is this if this is truly the way it is how is prankdial accomplishing this Many similar questions have been asked but they.. wondering if anybody has gained any more insight about this. android media player share improve this question My Question is this if this is truly the way it is how is prankdial accomplishing this It is impossible. Android applications do not..
stuck with getting camera pic when using the tab Activity http://stackoverflow.com/questions/6677466/stuck-with-getting-camera-pic-when-using-the-tab-activity TakePicture Activity takePictureIntent android share improve this question As for I understand from your Question is This happen while using ActivityGroup . Since you are starting Activity for result inside a child Activity i.e TakePicture.class..
android fragment- How to save states of views in a fragment when another fragment is pushed on top of it http://stackoverflow.com/questions/6787071/android-fragment-how-to-save-states-of-views-in-a-fragment-when-another-fragmen the top and the onCreateView is called. Now I had FragA in a particular state before FragB got pushed on top of it. My Question is how can I restore FragA to its previous state Is there a way to save state like say in a Bundle and if so then which..
install / uninstall APKs programmatically (PackageManager vs Intents) http://stackoverflow.com/questions/6813322/install-uninstall-apks-programmatically-packagemanager-vs-intents installPackage ... takes the installer package name as a parameter and is most likely capable of setting this value. Question Is it possible to specify package installer name using intents Maybe the name of the installer package can be added as an..
Voice Detection in Android Application http://stackoverflow.com/questions/7955041/voice-detection-in-android-application and then user finish talking application stops recording and give me back same buffer with voice data in .wav format. Question How I can detect that user start to talk How I can detect that user stop to talk android voice detection share improve..
Application restart - Activity Entry Point http://stackoverflow.com/questions/11243019/application-restart-activity-entry-point of my application to be SplashActivity again BUT the system skips the SplashActivity and displays the MainActivity . QUESTION is this the expected behaviour If the entire process is stopped shouldn't my application be started with SplashActivity..
Android OnClickListener - identify a button http://stackoverflow.com/questions/3320115/android-onclicklistener-identify-a-button myhandler ... View.OnClickListener myhandler new View.OnClickListener public void onClick View v MY QUESTION STARTS HERE IF b1 do this IF b2 do this MY QUESTION ENDS HERE How do I check which button has been clicked android events.. myhandler new View.OnClickListener public void onClick View v MY QUESTION STARTS HERE IF b1 do this IF b2 do this MY QUESTION ENDS HERE How do I check which button has been clicked android events resources listener share improve this question..
Android Can't create handler inside thread that has not called Looper.prepare() http://stackoverflow.com/questions/5009816/android-cant-create-handler-inside-thread-that-has-not-called-looper-prepare returns will be passed to onPostExecute which runs on the UI thread. ADDED FOLLOWING THE STACKTRACE APPEARING IN QUESTION Looks like you're trying to start an AsyncTask from a GL rendering thread... don't do that cos they won't ever Looper.loop..
Calling a java method from c++ in Android http://stackoverflow.com/questions/5198105/calling-a-java-method-from-c-in-android a java method from c in Android THE SOLUTION TO THIS PROBLEM IS IN THE BOTTOM OF THE QUESTION Hi. I'm trying to get a simple java method call from c while java calls native method. So here's the java code public class..
EditText is losing users' input when rotating android phone http://stackoverflow.com/questions/5657828/edittext-is-losing-users-input-when-rotating-android-phone phone PROBLEM When a user types into the editText landscape mode or portrait and rotates the phone the text is lost. QUESTION How can I prevent the loss of the text underlying code onCreate setContentView myLayout get references to UI widgets with..
Bring task to front on android.intent.action.USER_PRESENT http://stackoverflow.com/questions/8750854/bring-task-to-front-on-android-intent-action-user-present task to front on android.intent.action.USER_PRESENT BACKGROUND I have a task i.e. app with multiple activities. QUESTION How do I bring a task to the front w o re ordering the activity stack for that task USER SCENARIO When the device boots..
Android: CountDownTimer skips last onTick()! http://stackoverflow.com/questions/8857590/android-countdowntimer-skips-last-ontick handler.postDelayed counter countDownInterval and to start it new MyCountDownTimer 10000 2000 .Start EDIT FOR GOOFY'S QUESTION you should have a variable to hold counter status boolean . then you can write a Stop method like Start . EDIT 2 FOR GOOFY'S.. have a variable to hold counter status boolean . then you can write a Stop method like Start . EDIT 2 FOR GOOFY'S QUESTION actually there is no bug on stopping counter but there is a bug on start again after stop resume . I'm writing a new updated..
Android Stop Background Music http://stackoverflow.com/questions/9148615/android-stop-background-music the background music. YES 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..
|