android Programming Glossary: those
Android update 17 seems incompatible with external Jars http://stackoverflow.com/questions/10046298/android-update-17-seems-incompatible-with-external-jars I need to get more recent versions of the jars that have those classes Or do I need to revert back to my previous version of..
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 Read APNs in Android 4.2 What is the alternative for all those applications which use mobile data to perform operations like..
handle textview link click in my android app http://stackoverflow.com/questions/1697084/handle-textview-link-click-in-my-android-app activity listen to ACTION_VIEW intents and specifically those with the scheme com.package.name intent filter category android..
Removing an activity from the history stack http://stackoverflow.com/questions/1898886/removing-an-activity-from-the-history-stack
Quitting an application - is that frowned upon? http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon haven't had a chance to play with one yet . In all of those users don't terminate anything they just leave. iPhone is a..
How to close Android application? http://stackoverflow.com/questions/2092951/how-to-close-android-application There is even application called TaskKiller just to kill those apps in the background. android share improve this question.. various issues related to threading. For example if one of those threads was making multiple related changes to the database.. changes to the database then it may have committed some of those changes but not all of those changes when it was abruptly killed...
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 ones understood by few people and my questions of those few people about them often resulting in conflicting explanations..
Focusable EditText inside ListView http://stackoverflow.com/questions/2679948/focusable-edittext-inside-listview Note the commented out setItemsCanFocus calls. With those calls I got the correct behavior but setItemsCanFocus false..
How to delete an SMS from the inbox in Android programmatically? http://stackoverflow.com/questions/419184/how-to-delete-an-sms-from-the-inbox-in-android-programmatically from the inbox to reduce the potential overflow of those messages. Questions on other Google groups on getting a definitive..
Android Listview with different layout for each row http://stackoverflow.com/questions/4777272/android-listview-with-different-layout-for-each-row many types of layout you would have it's possible to use those methods. getViewTypeCount this methods returns information how..
Auto Scale TextView Text to Fit within Bounds http://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds What routines does TextView use to wrap the text Couldn't those be somehow used to predict whether text will be small enough..
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 to display some images and captions associated with those images. I am getting the images from the Internet. Is there..
Android: How to declare global variables? http://stackoverflow.com/questions/708012/android-how-to-declare-global-variables detailing a large philosophical disagreement I have with those who encourage the use of Singletons rather than subclassing..
Actionbarsherlock + tabs + multi fragments? http://stackoverflow.com/questions/10082163/actionbarsherlock-tabs-multi-fragments The right one allows the user to select which department. Those are returned in the getItem method. The proper fragments you..
Wipe data/Factory reset through ADB [closed] http://stackoverflow.com/questions/10817721/wipe-data-factory-reset-through-adb on off enables diasables encrypted fs Those are the commands you can use according to the one I found but..
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 has just been leaked. What do you think of that Those are two very common examples of how a inner class can outlive..
How to handle screen orientation changes when there is an asyntask running with android 4.x http://stackoverflow.com/questions/11630530/how-to-handle-screen-orientation-changes-when-there-is-an-asyntask-running-with android configChanges keyboardHidden orientation Those codes work perfectly with android 3.x or lower. However it does..
How to refresh fragment tab content on button click http://stackoverflow.com/questions/13626956/how-to-refresh-fragment-tab-content-on-button-click I click on the title the article is opening with details. Those articles are loaded from Drupal site throught HTTP POST and..
How to notify an activity when GlobalVariables are changed http://stackoverflow.com/questions/14660671/how-to-notify-an-activity-when-globalvariables-are-changed It simply calls back to any listeners registered. Those listeners might be Activities they might be services. They might..
Is it worth purchasing Google Android Dev phone? http://stackoverflow.com/questions/1964788/is-it-worth-purchasing-google-android-dev-phone the unlocked phones that Android sells directly or not. Those phones link quoting the Android page Run and debug your Android..
Quitting an application - is that frowned upon? http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon where the environment closes up the application as needed. Those users simply don't think about terminating the Android app any..
WebView threads never stop (WebViewCoreThread, CookieSyncManager, http[0-3]) http://stackoverflow.com/questions/2040963/webview-threads-never-stop-webviewcorethread-cookiesyncmanager-http0-3 threads by calling the onPause onResume on the webview. Those are however hidden so you will need to do it through reflection...
How to change string resource xml values in Android programatically? http://stackoverflow.com/questions/2069671/how-to-change-string-resource-xml-values-in-android-programatically is a middle ground look into using SharedPreferences . Those are great when you just have a couple values to store and don't..
Load files bigger than 1M from assets folder http://stackoverflow.com/questions/2860157/load-files-bigger-than-1m-from-assets-folder platform but I also know that can be easily avoided. Those who have downloaded the game Reging Thunder for example can..
Share Text on Facebook from Android App via ACTION_SEND http://stackoverflow.com/questions/3515198/share-text-on-facebook-from-android-app-via-action-send presents me with all apps that can handle such an intent. Those are Twitter EMail ... and Facebook. But when I select Facebook..
BitmapFactory.decodeStream always returns null and skia decoder shows decode returned false http://stackoverflow.com/questions/3802820/bitmapfactory-decodestream-always-returns-null-and-skia-decoder-shows-decode-ret 1441 decoder decode returned false Any help Thanks. EDIT Those images failed to be decoded are also can not be shown on a WebView..
How exactly does the android:onClick XML attribute differ from setOnClickListener? http://stackoverflow.com/questions/4153517/how-exactly-does-the-androidonclick-xml-attribute-differ-from-setonclicklistene when you define the android onClick someMethod attribute. Those two code snippets are totally the same but just implemented..
Suppress / Block BroastReceiver in another app http://stackoverflow.com/questions/6600266/suppress-block-broastreceiver-in-another-app receivers are executed to receive broadcast messages. Those with higher priority values are called before those with lower..
Problems loading mobile.twitter in webview http://stackoverflow.com/questions/6856814/problems-loading-mobile-twitter-in-webview android twitter webview share improve this question Those are indeed dirty hacks. Changing the User Agent is really a..
Android and Symbian NFC mobile development questions and answers (FAQ) http://stackoverflow.com/questions/6992869/android-and-symbian-nfc-mobile-development-questions-and-answers-faq will also be soon available to integrate into citizy. Those phones are bound to have the required TS 27.007 specification..
What hardware devices do you test your Android apps on? http://stackoverflow.com/questions/7278559/what-hardware-devices-do-you-test-your-android-apps-on http developer.android.com resources dashboard opengl.html Those really help to narrow the scope of some of the choices but I..
ViewPager and fragments ??what's the right way to store fragment's state? http://stackoverflow.com/questions/7951730/viewpager-and-fragments-whats-the-right-way-to-store-fragments-state below Scope Main activity has a ViewPager with fragments. Those fragments could implement a little bit different logic for other..
Speeding up the Android build process http://stackoverflow.com/questions/9371698/speeding-up-the-android-build-process batching build process using Unix Windows shell scripts. Those minor customization you required are quite easy to achieve using..
Android update 17 seems incompatible with external Jars http://stackoverflow.com/questions/10046298/android-update-17-seems-incompatible-with-external-jars from method com.my.project.Main.isValidEmailAddress Do I need to get more recent versions of the jars that have those classes Or do I need to revert back to my previous version of java Or is this some totally unrelated problem that I'm just..
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 current null null null null Apparently you can't Read APNs in Android 4.2 What is the alternative for all those applications which use mobile data to perform operations like sending MMS and don't know the default APN setting present..
handle textview link click in my android app http://stackoverflow.com/questions/1697084/handle-textview-link-click-in-my-android-app Besides the default intent filter I simply let my target activity listen to ACTION_VIEW intents and specifically those with the scheme com.package.name intent filter category android name android.intent.category.DEFAULT action android name..
Removing an activity from the history stack http://stackoverflow.com/questions/1898886/removing-an-activity-from-the-history-stack
Quitting an application - is that frowned upon? http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon can Web apps. Or WebOS if I understand their model correctly haven't had a chance to play with one yet . In all of those users don't terminate anything they just leave. iPhone is a bit different in that it only presently allows one thing to..
How to close Android application? http://stackoverflow.com/questions/2092951/how-to-close-android-application the back button it closes the app but it stays in background. There is even application called TaskKiller just to kill those apps in the background. android share improve this question Android has a mechanism in place to close an application.. killed when the app is killed quickly. This can lead to various issues related to threading. For example if one of those threads was making multiple related changes to the database then it may have committed some of those changes but not all.. example if one of those threads was making multiple related changes to the database then it may have committed some of those changes but not all of those changes when it was abruptly killed. P @param killSafely Primitive boolean which indicates..
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 here only the first few numbers worth discussing and the remaining ones understood by few people and my questions of those few people about them often resulting in conflicting explanations MemTotal 395144 kB MemFree 184936 kB Buffers 880 kB Cached..
Focusable EditText inside ListView http://stackoverflow.com/questions/2679948/focusable-edittext-inside-listview ViewGroup.FOCUS_BEFORE_DESCENDANTS Note the commented out setItemsCanFocus calls. With those calls I got the correct behavior but setItemsCanFocus false caused focus to jump from the EditText to another widget outside..
How to delete an SMS from the inbox in Android programmatically? http://stackoverflow.com/questions/419184/how-to-delete-an-sms-from-the-inbox-in-android-programmatically it'd be nice to be able to remove application specific SMS messages from the inbox to reduce the potential overflow of those messages. Questions on other Google groups on getting a definitive answer on a programmatic way to delete SMS messages from..
Android Listview with different layout for each row http://stackoverflow.com/questions/4777272/android-listview-with-different-layout-for-each-row listview share improve this question Since you know how many types of layout you would have it's possible to use those methods. getViewTypeCount this methods returns information how many types of rows do you have in your list getItemViewType..
Auto Scale TextView Text to Fit within Bounds http://stackoverflow.com/questions/5033012/auto-scale-textview-text-to-fit-within-bounds text and repeat until a suitably small size has been found. What routines does TextView use to wrap the text Couldn't those be somehow used to predict whether text will be small enough tl dr is there a best practice way to auto resize a textview..
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 do I do a lazy load of images in ListView I am using a ListView to display some images and captions associated with those images. I am getting the images from the Internet. Is there a way to lazy load the images so while the text displays the..
Android: How to declare global variables? http://stackoverflow.com/questions/708012/android-how-to-declare-global-variables at the bottom of this post addressing some criticism and detailing a large philosophical disagreement I have with those who encourage the use of Singletons rather than subclassing Application. Read it at your own risk. ORIGINAL ANSWER The more..
Actionbarsherlock + tabs + multi fragments? http://stackoverflow.com/questions/10082163/actionbarsherlock-tabs-multi-fragments this pager handles two 'pages' the left displays sales data. The right one allows the user to select which department. Those are returned in the getItem method. The proper fragments you can use whatever Fragments you already have no modification..
Wipe data/Factory reset through ADB [closed] http://stackoverflow.com/questions/10817721/wipe-data-factory-reset-through-adb wipe_cache wipe cache but not user data then reboot set_encrypted_filesystem on off enables diasables encrypted fs Those are the commands you can use according to the one I found but that might be different for modded files. So using adb you..
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 .createLeak Now every single one of those new LeakFactories has just been leaked. What do you think of that Those are two very common examples of how a inner class can outlive an outer class of any type. If that outer class had been an..
How to handle screen orientation changes when there is an asyntask running with android 4.x http://stackoverflow.com/questions/11630530/how-to-handle-screen-orientation-changes-when-there-is-an-asyntask-running-with Androidmanifest.xml activity android name .DataBaseUpdateService android configChanges keyboardHidden orientation Those codes work perfectly with android 3.x or lower. However it does not work properly for android 4.x. Do you have any idea..
How to refresh fragment tab content on button click http://stackoverflow.com/questions/13626956/how-to-refresh-fragment-tab-content-on-button-click by textviews and imageviews arranged in linearlayout. When I click on the title the article is opening with details. Those articles are loaded from Drupal site throught HTTP POST and ViewJSON module. Tabs are created with FragmentActivity and..
How to notify an activity when GlobalVariables are changed http://stackoverflow.com/questions/14660671/how-to-notify-an-activity-when-globalvariables-are-changed the classes. The TCP Server has no knowledge of the activities. It simply calls back to any listeners registered. Those listeners might be Activities they might be services. They might be instances of MySparklyUnicorn. The server neither knows..
Is it worth purchasing Google Android Dev phone? http://stackoverflow.com/questions/1964788/is-it-worth-purchasing-google-android-dev-phone it. The question that comes to mind is if it's worth buying the unlocked phones that Android sells directly or not. Those phones link quoting the Android page Run and debug your Android applications directly on a device. Modify and rebuild the..
Quitting an application - is that frowned upon? http://stackoverflow.com/questions/2033914/quitting-an-application-is-that-frowned-upon user. Millions of people are perfectly happy with the model where the environment closes up the application as needed. Those users simply don't think about terminating the Android app any more than they think about terminating a Web page or terminating..
WebView threads never stop (WebViewCoreThread, CookieSyncManager, http[0-3]) http://stackoverflow.com/questions/2040963/webview-threads-never-stop-webviewcorethread-cookiesyncmanager-http0-3 this question You should be able to stop resume these threads by calling the onPause onResume on the webview. Those are however hidden so you will need to do it through reflection. The following code worked for me Class.forName android.webkit.WebView..
How to change string resource xml values in Android programatically? http://stackoverflow.com/questions/2069671/how-to-change-string-resource-xml-values-in-android-programatically going to be able to edit String.xml directly. However there is a middle ground look into using SharedPreferences . Those are great when you just have a couple values to store and don't feel like dealing with a full database. share improve this..
Load files bigger than 1M from assets folder http://stackoverflow.com/questions/2860157/load-files-bigger-than-1m-from-assets-folder give error with larger files. I read that is a limit of Android platform but I also know that can be easily avoided. Those who have downloaded the game Reging Thunder for example can easily see that in their assets folder is a file 18.9M large...
Share Text on Facebook from Android App via ACTION_SEND http://stackoverflow.com/questions/3515198/share-text-on-facebook-from-android-app-via-action-send the ACTION_SEND intent and the EXTRA_TEXT field. The chooser presents me with all apps that can handle such an intent. Those are Twitter EMail ... and Facebook. But when I select Facebook it opens the browser and goes to the following page http..
BitmapFactory.decodeStream always returns null and skia decoder shows decode returned false http://stackoverflow.com/questions/3802820/bitmapfactory-decodestream-always-returns-null-and-skia-decoder-shows-decode-ret imageUrl.openStream Always getting this log DEBUG skia 1441 decoder decode returned false Any help Thanks. EDIT Those images failed to be decoded are also can not be shown on a WebView . But can see if open in a Browser. android image bitmap..
How exactly does the android:onClick XML attribute differ from setOnClickListener? http://stackoverflow.com/questions/4153517/how-exactly-does-the-androidonclick-xml-attribute-differ-from-setonclicklistene code. Android just implements the OnClickListener for you when you define the android onClick someMethod attribute. Those two code snippets are totally the same but just implemented in two different ways. Code Implementation Button btn Button..
Suppress / Block BroastReceiver in another app http://stackoverflow.com/questions/6600266/suppress-block-broastreceiver-in-another-app the documentation It controls the order in which broadcast receivers are executed to receive broadcast messages. Those with higher priority values are called before those with lower values. The order applies only to synchronous messages it's..
Problems loading mobile.twitter in webview http://stackoverflow.com/questions/6856814/problems-loading-mobile-twitter-in-webview enabled mWebView.getSettings .setJavaScriptEnabled true android twitter webview share improve this question Those are indeed dirty hacks. Changing the User Agent is really a nasty solution and should never be done. When loading twitter.com..
Android and Symbian NFC mobile development questions and answers (FAQ) http://stackoverflow.com/questions/6992869/android-and-symbian-nfc-mobile-development-questions-and-answers-faq Samsung Galaxy SII model in use and the new Acer Liquid Express will also be soon available to integrate into citizy. Those phones are bound to have the required TS 27.007 specification implemented in their baseband processor firmware. When it..
What hardware devices do you test your Android apps on? http://stackoverflow.com/questions/7278559/what-hardware-devices-do-you-test-your-android-apps-on http developer.android.com resources dashboard screens.html http developer.android.com resources dashboard opengl.html Those really help to narrow the scope of some of the choices but I find myself really wanting to know what the proportions of..
ViewPager and fragments ??what's the right way to store fragment's state? http://stackoverflow.com/questions/7951730/viewpager-and-fragments-whats-the-right-way-to-store-fragments-state me. So Guru thoughts are badly needed Edit See dumb solution below Scope Main activity has a ViewPager with fragments. Those fragments could implement a little bit different logic for other submain activities so fragments data is filled via callback..
Speeding up the Android build process http://stackoverflow.com/questions/9371698/speeding-up-the-android-build-process the right direction to go it enables the possibilities of batching build process using Unix Windows shell scripts. Those minor customization you required are quite easy to achieve using maven properties plugin and android maven plugin together...
|