android Programming Glossary: documentation
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 under what circumstances which should be used. Pointers to documentation on this and guidance about what might break if the wrong one.. context share improve this question I agree that documentation is sparse when it comes to Contexts in Android but you can piece..
Why retrieving Google Directions for Android using KML data is not working anymore? [duplicate] http://stackoverflow.com/questions/11745314/why-retrieving-google-directions-for-android-using-kml-data-is-not-working-anymo dest Parser parser https developers.google.com maps documentation directions #JSON get api String jsonURL http maps.googleapis.com..
How to close Android application? http://stackoverflow.com/questions/2092951/how-to-close-android-application mechanism in place to close an application safely per its documentation. In the last Activity that is exited usually the main Activity..
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 a vague conclusion. Note we now have much more extensive documentation on Managing Your App's Memory that covers much of the material..
Android: I want to shake it http://stackoverflow.com/questions/2317428/android-i-want-to-shake-it that will refresh my Android application. All I find of documentation involves implementing the SensorListener but Eclipse tells me..
Declaring a custom android UI element using XML http://stackoverflow.com/questions/2695646/declaring-a-custom-android-ui-element-using-xml 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...
Custom Drawable for ProgressBar/ProgressDialog http://stackoverflow.com/questions/2819778/custom-drawable-for-progressbar-progressdialog for ProgressBar ProgressDialog Reading the limited documentation that Google has provided I get the feeling that it is possible..
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 The problem is with AsyncTask . According to the documentation it allows to perform background operations and publish results..
Make a link in the Android browser start up my app? http://stackoverflow.com/questions/3469908/make-a-link-in-the-android-browser-start-up-my-app of your Mainfest file. Specifically take a look at the documentation for the data sub element. Basically what you'll need to do is..
Android - detect whether there is an Internet connection available [duplicate] http://stackoverflow.com/questions/4238921/android-detect-whether-there-is-an-internet-connection-available I have found myself the information I needed in the online documentation can you suggest a better way for this type of detection android..
FFMPEG on Android http://stackoverflow.com/questions/4725773/ffmpeg-on-android and cannot plug in FFMPEG here. Also I could not find documentation on the FFMPEG apis which need to be used for playback. Can you.. functionality using the Android NDK . There's a lot of documentation out there on how to work with the NDK. Basically you'll need.. dynamic library from your java sources. There's enough documentation on JNI out there you should be fine. Regarding using ffmpeg..
How to ship an Android application with a database? http://stackoverflow.com/questions/513084/how-to-ship-an-android-application-with-a-database the database on the device. Your thoughts Pointers to documentation regarding any issues would be great. android share improve..
NetworkOnMainThreadException http://stackoverflow.com/questions/5150637/networkonmainthreadexception not perform a networking operation on its main thread as documentation says. For this reason you must use handler or asynctask. There..
Usage CursorLoader without ContentProvider http://stackoverflow.com/questions/7182485/usage-cursorloader-without-contentprovider CursorLoader without ContentProvider Android SDK documentation says that startManagingCursor method is depracated This method.. to the framework's implementation. See the framework SDK documentation for a class overview. This was based on the CursorLoader class..
R cannot be resolved - Android error http://stackoverflow.com/questions/885009/r-cannot-be-resolved-android-error down this problem as well I found this note in the Android documentation http source.android.com source using eclipse.html Note Eclipse..
Send message from a basic server to a specific client http://stackoverflow.com/questions/10777678/send-message-from-a-basic-server-to-a-specific-client because you added code to the question See the Android Documentation about creating threads. That will be a lot of reading beyond..
GCM with PHP (Google Cloud Messaging) http://stackoverflow.com/questions/11242743/gcm-with-php-google-cloud-messaging error will go away. This is caused by a mistake in the GCM Documentation that states you should use a Server Key in the Authorization..
How to create a Custom Dialog box in android? http://stackoverflow.com/questions/13341560/how-to-create-a-custom-dialog-box-in-android or alert dialog in an android APP EDIT Android Developer Documentation recommends that we should use either DialogFragments or Dialogs..
Capture screen shot of GoogleMap Android API V2 http://stackoverflow.com/questions/13773658/capture-screen-shot-of-googlemap-android-api-v2 void snapshot GoogleMap.SnapshotReadyCallback callback Documentation is here Note that at the time of writing this post the Google..
Sending and Receiving SMS and MMS in Android (pre Kit Kat Android 4.4) http://stackoverflow.com/questions/14452808/sending-and-receiving-sms-and-mms-in-android-pre-kit-kat-android-4-4 String message Display notification... According to the Documentation of android.provider.Telephony Broadcast Action A new text based..
How do I create a ListView with rounded corners in Android? http://stackoverflow.com/questions/1683185/how-do-i-create-a-listview-with-rounded-corners-in-android question Here is one way of doing it Thanks to Android Documentation though Add the following into a file say customshape.xml and..
Android kernel compile and test with Android Emulator http://stackoverflow.com/questions/1809774/android-kernel-compile-and-test-with-android-emulator if so is there anything that special that needs to be done Documentation for the SDK is excellent however documentation for compiling..
J2ME/Android/BlackBerry - driving directions, route between two locations http://stackoverflow.com/questions/2023669/j2me-android-blackberry-driving-directions-route-between-two-locations as explicitly permitted in Section 7 or the Maps APIs Documentation you must not nor may you permit anyone else to ... 10.9 use..
Image on canvas to JPEG file [closed] http://stackoverflow.com/questions/2174875/image-on-canvas-to-jpeg-file passing it the canvas object you just created. Refer Documentation of method for details. Use Bitmap.compress to write the contents..
Android: How to periodically send location to a server http://stackoverflow.com/questions/2775628/android-how-to-periodically-send-location-to-a-server class that is a subclass of the Service class. Service Documentation Your primary application should can call startService and stopService..
How to Read MMS Data in Android? http://stackoverflow.com/questions/3012287/how-to-read-mms-data-in-android will want to know which type of message you are handling. Documentation says A virtual column MmsSms.TYPE_DISCRIMINATOR_COLUMN may be..
How to enable LogCat/Console in Eclipse for Android? http://stackoverflow.com/questions/3280051/how-to-enable-logcat-console-in-eclipse-for-android to handle every thing in Logcat. More Info Look out this Documentation . Edit 1 System.out.println is working on Logcat.If you use..
Get Android Google Analytics referrer tag http://stackoverflow.com/questions/3817030/get-android-google-analytics-referrer-tag Android Market to our application. According to the Google Documentation the referrer tag comes through via an intent and is automatically..
Android: How to rotate a bitmap on a center point http://stackoverflow.com/questions/4166917/android-how-to-rotate-a-bitmap-on-a-center-point to this problem but nothing helps even the answers here. Documentation doesn't explain anything too. I am simply trying to get a rotation..
BitmapFactory.decodeResource returns a mutable Bitmap in Android 2.2 and an immutable Bitmap in Android 1.6 http://stackoverflow.com/questions/4349075/bitmapfactory-decoderesource-returns-a-mutable-bitmap-in-android-2-2-and-an-immu an IllegalStateException in the call to bitmap.setPixels . Documentation online says an IllegalStateException is thrown from this method..
Login failed invalid key error with Facebook SDK http://stackoverflow.com/questions/4848067/login-failed-invalid-key-error-with-facebook-sdk about the Debug keystore are available in the Android Documentation Signing Applications . In order to provide Facebook with information..
Android “Only the original thread that created a view hierarchy can touch its views.” http://stackoverflow.com/questions/5161951/android-only-the-original-thread-that-created-a-view-hierarchy-can-touch-its-vi Runnable @Override public void run stuff that updates ui Documentation for Activity.runOnUiThread Just nest this inside the method..
What arguments are passed into AsyncTask<arg1, arg2, arg3>? http://stackoverflow.com/questions/6053602/what-arguments-are-passed-into-asynctaskarg1-arg2-arg3 asynctask share improve this question Google's Android Documentation Says that An asynchronous task is defined by 3 generic types..
Admob Error in Eclipse for android:configChanges http://stackoverflow.com/questions/7899767/admob-error-in-eclipse-for-androidconfigchanges e.g. uiMode needs API Level 8. From the official AdMob Documentation Requirements The Google AdMob Ads SDK for Android requires Android..
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 find any decent explanation of which is preferable and under what circumstances which should be used. Pointers to documentation on this and guidance about what might break if the wrong one is chosen would be much appreciated. android android context.. wrong one is chosen would be much appreciated. android android context share improve this question I agree that documentation is sparse when it comes to Contexts in Android but you can piece together a few facts from various sources. This blog post..
Why retrieving Google Directions for Android using KML data is not working anymore? [duplicate] http://stackoverflow.com/questions/11745314/why-retrieving-google-directions-for-android-using-kml-data-is-not-working-anymo private Route directions final GeoPoint start final GeoPoint dest Parser parser https developers.google.com maps documentation directions #JSON get api String jsonURL http maps.googleapis.com maps api directions json final StringBuffer sBuf new StringBuffer..
How to close Android application? http://stackoverflow.com/questions/2092951/how-to-close-android-application android share improve this question Android has a mechanism in place to close an application safely per its documentation. In the last Activity that is exited usually the main Activity that first came up when the application started just place..
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 discussion about what they actually mean that only results in a vague conclusion. Note we now have much more extensive documentation on Managing Your App's Memory that covers much of the material here and is more up to date with the state of Android. First..
Android: I want to shake it http://stackoverflow.com/questions/2317428/android-i-want-to-shake-it I want to shake it I need to add a shake feature that will refresh my Android application. All I find of documentation involves implementing the SensorListener but Eclipse tells me it's deprecated and suggest SensorEventListener. Anybody that..
Declaring a custom android UI element using XML http://stackoverflow.com/questions/2695646/declaring-a-custom-android-ui-element-using-xml 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 layout main.xml Include..
Custom Drawable for ProgressBar/ProgressDialog http://stackoverflow.com/questions/2819778/custom-drawable-for-progressbar-progressdialog Drawable for ProgressBar ProgressDialog Reading the limited documentation that Google has provided I get the feeling that it is possible to change the look drawable of a ProgressBar ProgressDialog..
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 one is talking about it so I guess I just must be missing something. The problem is with AsyncTask . According to the documentation it allows to perform background operations and publish results on the UI thread without having to manipulate threads and..
Make a link in the Android browser start up my app? http://stackoverflow.com/questions/3469908/make-a-link-in-the-android-browser-start-up-my-app I think you'll want to look at the intent filter element of your Mainfest file. Specifically take a look at the documentation for the data sub element. Basically what you'll need to do is define your own scheme. Something along the lines of intent..
Android - detect whether there is an Internet connection available [duplicate] http://stackoverflow.com/questions/4238921/android-detect-whether-there-is-an-internet-connection-available know how to get the snippet of code above to work how could I have found myself the information I needed in the online documentation can you suggest a better way for this type of detection android internet share improve this question The getActiveNetworkInfo..
FFMPEG on Android http://stackoverflow.com/questions/4725773/ffmpeg-on-android How can I do this on Android since IOMX apis are OMX based and cannot plug in FFMPEG here. Also I could not find documentation on the FFMPEG apis which need to be used for playback. Can you please help me with these questions and get me started on.. depend on them. Create a dynamic library wrapping ffmpeg functionality using the Android NDK . There's a lot of documentation out there on how to work with the NDK. Basically you'll need to write some C C code to export the functionality you need.. libavformat libavutil libc libz Use the ffmpeg wrapping dynamic library from your java sources. There's enough documentation on JNI out there you should be fine. Regarding using ffmpeg for playback there are many examples the ffmpeg binary itself..
How to ship an Android application with a database? http://stackoverflow.com/questions/513084/how-to-ship-an-android-application-with-a-database 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 would be great. android share improve this question I just found a way to do this in ReignDesign..
NetworkOnMainThreadException http://stackoverflow.com/questions/5150637/networkonmainthreadexception share improve this question With honeycomb you can not perform a networking operation on its main thread as documentation says. For this reason you must use handler or asynctask. There is no another way to do it. here you can find 2 examples..
Usage CursorLoader without ContentProvider http://stackoverflow.com/questions/7182485/usage-cursorloader-without-contentprovider CursorLoader without ContentProvider Android SDK documentation says that startManagingCursor method is depracated This method is deprecated. Use the new CursorLoader class with LoaderManager.. this implementation is still used it does not try to switch to the framework's implementation. See the framework SDK documentation for a class overview. This was based on the CursorLoader class public abstract class SimpleCursorLoader extends AsyncTaskLoader..
R cannot be resolved - Android error http://stackoverflow.com/questions/885009/r-cannot-be-resolved-android-error 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 using eclipse.html Note Eclipse sometimes likes to add an import android.R statement at the..
Send message from a basic server to a specific client http://stackoverflow.com/questions/10777678/send-message-from-a-basic-server-to-a-specific-client client. Post your code if you are still having trouble. UPDATE because you added code to the question See the Android Documentation about creating threads. That will be a lot of reading beyond this post on stackoverflow. As to accepting connections and..
GCM with PHP (Google Cloud Messaging) http://stackoverflow.com/questions/11242743/gcm-with-php-google-cloud-messaging key in the Authorization header. Once you do that this error will go away. This is caused by a mistake in the GCM Documentation that states you should use a Server Key in the Authorization header as written here Replace with real BROWSER API key from..
How to create a Custom Dialog box in android? http://stackoverflow.com/questions/13341560/how-to-create-a-custom-dialog-box-in-android be more appreciated. What is the best way to show an error or alert dialog in an android APP EDIT Android Developer Documentation recommends that we should use either DialogFragments or Dialogs for showing Error Alert Messages to the user. However at..
Capture screen shot of GoogleMap Android API V2 http://stackoverflow.com/questions/13773658/capture-screen-shot-of-googlemap-android-api-v2 void onSnapshotReady Bitmap snapshot and call public final void snapshot GoogleMap.SnapshotReadyCallback callback Documentation is here Note that at the time of writing this post the Google Maps Engineers have acknowledged that they jumped the gun..
Sending and Receiving SMS and MMS in Android (pre Kit Kat Android 4.4) http://stackoverflow.com/questions/14452808/sending-and-receiving-sms-and-mms-in-android-pre-kit-kat-android-4-4 the status bar. protected void showNotification int contactId String message Display notification... According to the Documentation of android.provider.Telephony Broadcast Action A new text based SMS message has been received by the device. The intent..
How do I create a ListView with rounded corners in Android? http://stackoverflow.com/questions/1683185/how-do-i-create-a-listview-with-rounded-corners-in-android corners in Android android listview share improve this question Here is one way of doing it Thanks to Android Documentation though Add the following into a file say customshape.xml and then place it in res drawable customshape.xml xml version 1.0..
Android kernel compile and test with Android Emulator http://stackoverflow.com/questions/1809774/android-kernel-compile-and-test-with-android-emulator android kernel and tested it in the Android emulator and if so is there anything that special that needs to be done Documentation for the SDK is excellent however documentation for compiling the kernel and setting up a custom machine in the emulator..
J2ME/Android/BlackBerry - driving directions, route between two locations http://stackoverflow.com/questions/2023669/j2me-android-blackberry-driving-directions-route-between-two-locations to your adherence to all of the restrictions below. Except as explicitly permitted in Section 7 or the Maps APIs Documentation you must not nor may you permit anyone else to ... 10.9 use the Service or Content with any products systems or applications..
Image on canvas to JPEG file [closed] http://stackoverflow.com/questions/2174875/image-on-canvas-to-jpeg-file Canvas object and pass this bitmap to it call view.draw Canvas passing it the canvas object you just created. Refer Documentation of method for details. Use Bitmap.compress to write the contents of the bitmap to an OutputStream file maybe. Pseudo code..
Android: How to periodically send location to a server http://stackoverflow.com/questions/2775628/android-how-to-periodically-send-location-to-a-server share improve this question You need to create a separate class that is a subclass of the Service class. Service Documentation Your primary application should can call startService and stopService to start up the background process. Theres also some..
How to Read MMS Data in Android? http://stackoverflow.com/questions/3012287/how-to-read-mms-data-in-android xxx . How to differentiate between SMS and MMS Usually you will want to know which type of message you are handling. Documentation says A virtual column MmsSms.TYPE_DISCRIMINATOR_COLUMN may be requested in the projection for a query. Its value is either..
How to enable LogCat/Console in Eclipse for Android? http://stackoverflow.com/questions/3280051/how-to-enable-logcat-console-in-eclipse-for-android Device. System.out println not works in Android. So you have to handle every thing in Logcat. More Info Look out this Documentation . Edit 1 System.out.println is working on Logcat.If you use that the Tag will be like System.out and Message will be your..
Get Android Google Analytics referrer tag http://stackoverflow.com/questions/3817030/get-android-google-analytics-referrer-tag Analytics to track ad click through referrals through the Android Market to our application. According to the Google Documentation the referrer tag comes through via an intent and is automatically recorded by the Google Analytics library. That's great..
Android: How to rotate a bitmap on a center point http://stackoverflow.com/questions/4166917/android-how-to-rotate-a-bitmap-on-a-center-point center point I've been looking for over a day for a solution to this problem but nothing helps even the answers here. Documentation doesn't explain anything too. I am simply trying to get a rotation in the direction of another object. The problem is that..
BitmapFactory.decodeResource returns a mutable Bitmap in Android 2.2 and an immutable Bitmap in Android 1.6 http://stackoverflow.com/questions/4349075/bitmapfactory-decoderesource-returns-a-mutable-bitmap-in-android-2-2-and-an-immu I test this on a friend's device running Android 1.6 I get an IllegalStateException in the call to bitmap.setPixels . Documentation online says an IllegalStateException is thrown from this method when the bitmap is immutable. The documentation doesn't..
Login failed invalid key error with Facebook SDK http://stackoverflow.com/questions/4848067/login-failed-invalid-key-error-with-facebook-sdk when you push them to the device using a debug keystore. Details about the Debug keystore are available in the Android Documentation Signing Applications . In order to provide Facebook with information about the signature you need to run the command Jay..
Android “Only the original thread that created a view hierarchy can touch its views.” http://stackoverflow.com/questions/5161951/android-only-the-original-thread-that-created-a-view-hierarchy-can-touch-its-vi There is a simple piece of code for this runOnUiThread new Runnable @Override public void run stuff that updates ui Documentation for Activity.runOnUiThread Just nest this inside the method that is running in the background then copy paste the code that..
What arguments are passed into AsyncTask<arg1, arg2, arg3>? http://stackoverflow.com/questions/6053602/what-arguments-are-passed-into-asynctaskarg1-arg2-arg3 all 3 or can I include 1 2 20 android arguments android asynctask share improve this question Google's Android Documentation Says that An asynchronous task is defined by 3 generic types called Params Progress and Result and 4 steps called onPreExecute..
Admob Error in Eclipse for android:configChanges http://stackoverflow.com/questions/7899767/admob-error-in-eclipse-for-androidconfigchanges guide topics manifest activity element.html#config e.g. uiMode needs API Level 8. From the official AdMob Documentation Requirements The Google AdMob Ads SDK for Android requires Android 1.5 or later. Make sure you have the latest copy of the..
|