android Programming Glossary: enabling
replicate ActionBar Tab(s) with custom view http://stackoverflow.com/questions/12392541/replicate-actionbar-tabs-with-custom-view actionbarsherlock share improve this question enabling embedded tabs pre ICS if actionBarSherlock instanceof ActionBarImpl.. actionBarSherlock catch Exception e Log.e TAG Error enabling embedded tabs e helper method private void enableEmbeddedTabs..
Bitmap recycle with largeHeap enabled http://stackoverflow.com/questions/12716574/bitmap-recycle-with-largeheap-enabled recycle with largeHeap enabled Before enabling largeHeap option I was handling with large bitmaps and it's..
Map view following user - MyLocationOverlay type functionality for Android Maps API V2 http://stackoverflow.com/questions/13739990/map-view-following-user-mylocationoverlay-type-functionality-for-android-maps call deactivate . This method is automatically invoked by enabling my location layer. @Override public void activate OnLocationChangedListener..
How to get My Location changed event with Google Maps android API v2? http://stackoverflow.com/questions/13742551/how-to-get-my-location-changed-event-with-google-maps-android-api-v2 call deactivate . This method is automatically invoked by enabling my location layer. @Override public void activate OnLocationChangedListener..
Auto-fit TextView for Android http://stackoverflow.com/questions/16017165/auto-fit-textview-for-android else too big return 1 Enables or disables size caching enabling it will improve performance where you are animating a value.. font size against getText .length Be careful though while enabling it as 0 takes more space than 1 on some fonts and so on. @param..
Streaming video from Android camera to server http://stackoverflow.com/questions/2550847/streaming-video-from-android-camera-to-server this question I have hosted a open source project to enabling Android phone to IP camera http code.google.com p ipcamera for..
API for configuring static IP addresses in an android application http://stackoverflow.com/questions/2922455/api-for-configuring-static-ip-addresses-in-an-android-application connected to the carrier and uses their DHCP security for enabling you to connect and use their services sort of like changing..
How to programmaticaly lock screen in Android? [duplicate] http://stackoverflow.com/questions/3594532/how-to-programmaticaly-lock-screen-in-android can you lock screen from your app Also check code for enabling and disabling lock Screen in Android. Referenced from here KeyguardManager..
How to disable Mobile Data on Android http://stackoverflow.com/questions/3644144/how-to-disable-mobile-data-on-android improve this question The Dataconnection disable and enabling APIS are hidden in the SDK and not exposed to the user this..
Android adb “Unable to open sync connection!” http://stackoverflow.com/questions/3912548/android-adb-unable-to-open-sync-connection However disabling USB debugging on the phone and then re enabling it has worked so far. Hopefully it keeps working These fixes..
Android: How to Enable/Disable Wifi or Internet Connection Programmatically http://stackoverflow.com/questions/3930990/android-how-to-enable-disable-wifi-or-internet-connection-programmatically android share improve this question I know of enabling or disabling wifi WifiManager wifiManager WifiManager this.context.getSystemService..
Android Checkbox listview select all (disable/enable) http://stackoverflow.com/questions/4553186/android-checkbox-listview-select-all-disable-enable true You need to edit this code to handle both enabling and disabling but I hope you get the idea Also this only checks..
How can I get the dreaded WRITE_SECURE_SETTINGS permission for my android app? http://stackoverflow.com/questions/5034160/how-can-i-get-the-dreaded-write-secure-settings-permission-for-my-android-app receiver on and off For privacy reasons if nothing else enabling or disabling any sort of location tracking needs to be solely..
VideoView getDrawingCache is returning black http://stackoverflow.com/questions/5278707/videoview-getdrawingcache-is-returning-black is turned off. When hardware acceleration is turned on enabling the drawing cache has no effect on rendering because the system..
Hang up outgoing call in Android http://stackoverflow.com/questions/599443/hang-up-outgoing-call-in-android the API. Can you suggest some workaround For example enabling airplane mode during the call Just an example this hack didn't..
How do I obtain crash-data from my Android application? http://stackoverflow.com/questions/601503/how-do-i-obtain-crash-data-from-my-android-application Crash Report for Android library ACRA is a library enabling Android Application to automatically post their crash reports..
Changing ViewPager to enable infinite page scrolling http://stackoverflow.com/questions/7766630/changing-viewpager-to-enable-infinite-page-scrolling an internal method that requires the index and a flag enabling smooth scrolling. This flag is boolean smoothScroll . Extending..
Google Android USB Driver and ADB http://stackoverflow.com/questions/9709263/google-android-usb-driver-and-adb by adb kill server adb start server adb devices and enabling debugging in developer options on android device This should..
Issue with tablet detection Synchro Digital http://stackoverflow.com/questions/11874348/issue-with-tablet-detection-synchro-digital directly from Eclipse nothing appears in the device list. Enabling USB debugging doesn't change anything. No activity in the logcat..
Hide System Bar in Tablets http://stackoverflow.com/questions/12605266/hide-system-bar-in-tablets dim and other elements in the system bar also hide. Enabling this is useful for creating more immersive games without distraction..
How to disable Single SIgn On for facebook android app? http://stackoverflow.com/questions/13899955/how-to-disable-single-sign-on-for-facebook-android-app I have seen the problem being queried here Disabling and Enabling Single Sign On in Facebook as Required I know that in SDK 2.0..
android-maven-plugin: Disable debug build for apk http://stackoverflow.com/questions/15055961/android-maven-plugin-disable-debug-build-for-apk local assets files to combined assets directory. INFO Enabling debug build for apk. Is there an explicit way to disable debugging..
Android: Simulate WiFi in the emulator? http://stackoverflow.com/questions/1563370/android-simulate-wifi-in-the-emulator 695 Received wifi state changed from Unknown to Enabling D SettingsWifiEnabler 695 Received wifi state changed from Enabling.. D SettingsWifiEnabler 695 Received wifi state changed from Enabling to Unknown How can I simulate WiFi connectivity in the emulator..
What is the best IDE to develop Android apps in? [closed] http://stackoverflow.com/questions/1715697/what-is-the-best-ide-to-develop-android-apps-in ORIGINAL ANSWER IntelliJ now has support for Android. See Enabling Android Support from the JetBrains help page and the Google..
Enabling ProGuard in Eclipse for Android http://stackoverflow.com/questions/4732656/enabling-proguard-in-eclipse-for-android ProGuard in Eclipse for Android The new documentation on ProGuard..
Android: What are the recommended configurations for Proguard? http://stackoverflow.com/questions/5068251/android-what-are-the-recommended-configurations-for-proguard share improve this question Based on my answer Enabling ProGuard in Eclipse for Android I've ended up with this generic..
Bluetooth SPP between Android and other device, UUID and PIN questions http://stackoverflow.com/questions/5263144/bluetooth-spp-between-android-and-other-device-uuid-and-pin-questions see if the medical device can find your device. See here Enabling Discoverability in Android For PIN pairing The android device..
VideoView getDrawingCache is returning black http://stackoverflow.com/questions/5278707/videoview-getdrawingcache-is-returning-black question From the docs for View#setDrawingCacheEnabled Enabling the drawing cache is similar to setting a layer when hardware..
How to enable GPS in android coding [duplicate] http://stackoverflow.com/questions/5481695/how-to-enable-gps-in-android-coding the GPS receiver no application can make use of it. Enabling the GPS receiver requires a user to do it manually. Edit It..
Getting started with Open NFC emulator http://stackoverflow.com/questions/6770774/getting-started-with-open-nfc-emulator 165 Setting NFC enabled state to true D OpenNFCService 250 Enabling NFC. previous false D OpenNFCService 250 mIsNfcEnabled NFC false.. 165 Setting NFC enabled state to true D OpenNFCService 250 Enabling NFC. previous false D OpenNFCService 250 mIsNfcEnabled NFC false..
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 versión 2.3.4_r1 of the AOSP sources. They allow Enabling NFC card emulation mode on the Nexus S. This mode is always..
Enabling Wifi on Android Emulator http://stackoverflow.com/questions/7876302/enabling-wifi-on-android-emulator Wifi on Android Emulator My question is how to enable wifi..
Disabling & Enabling Paging In ViewPager in Android http://stackoverflow.com/questions/8134336/disabling-enabling-paging-in-viewpager-in-android Enabling Paging In ViewPager in Android I am using android compatibility..
replicate ActionBar Tab(s) with custom view http://stackoverflow.com/questions/12392541/replicate-actionbar-tabs-with-custom-view library would be greatly appreciated. android android actionbar actionbarsherlock share improve this question enabling embedded tabs pre ICS if actionBarSherlock instanceof ActionBarImpl enableEmbeddedTabs actionBarSherlock ICS and forward.. true enableEmbeddedTabs actionBarField.get actionBarSherlock catch Exception e Log.e TAG Error enabling embedded tabs e helper method private void enableEmbeddedTabs Object actionBar try Method setHasEmbeddedTabsMethod actionBar.getClass..
Bitmap recycle with largeHeap enabled http://stackoverflow.com/questions/12716574/bitmap-recycle-with-largeheap-enabled recycle with largeHeap enabled Before enabling largeHeap option I was handling with large bitmaps and it's consume almost the entiry memory available for the application..
Map view following user - MyLocationOverlay type functionality for Android Maps API V2 http://stackoverflow.com/questions/13739990/map-view-following-user-mylocationoverlay-type-functionality-for-android-maps will notify the supplied listener periodically until you call deactivate . This method is automatically invoked by enabling my location layer. @Override public void activate OnLocationChangedListener listener We need to keep a reference to my..
How to get My Location changed event with Google Maps android API v2? http://stackoverflow.com/questions/13742551/how-to-get-my-location-changed-event-with-google-maps-android-api-v2 will notify the supplied listener periodically until you call deactivate . This method is automatically invoked by enabling my location layer. @Override public void activate OnLocationChangedListener listener We need to keep a reference to my..
Auto-fit TextView for Android http://stackoverflow.com/questions/16017165/auto-fit-textview-for-android too small don't worry we will find the best match return 1 else too big return 1 Enables or disables size caching enabling it will improve performance where you are animating a value inside TextView. This stores the font size against getText .length.. you are animating a value inside TextView. This stores the font size against getText .length Be careful though while enabling it as 0 takes more space than 1 on some fonts and so on. @param enable enable font size caching public void enableSizeCache..
Streaming video from Android camera to server http://stackoverflow.com/questions/2550847/streaming-video-from-android-camera-to-server this android video streaming video streaming share improve this question I have hosted a open source project to enabling Android phone to IP camera http code.google.com p ipcamera for android The raw video data is fetched from LocalSocket and..
API for configuring static IP addresses in an android application http://stackoverflow.com/questions/2922455/api-for-configuring-static-ip-addresses-in-an-android-application 4G etc interface I do not believe this is possible as it is connected to the carrier and uses their DHCP security for enabling you to connect and use their services sort of like changing the external IP of your cable modem without the consent of your..
How to programmaticaly lock screen in Android? [duplicate] http://stackoverflow.com/questions/3594532/how-to-programmaticaly-lock-screen-in-android Referenced from here http stackoverflow.com questions 3219950 can you lock screen from your app Also check code for enabling and disabling lock Screen in Android. Referenced from here KeyguardManager keyguardManager KeyguardManager getSystemService..
How to disable Mobile Data on Android http://stackoverflow.com/questions/3644144/how-to-disable-mobile-data-on-android Please someone give me some insight. Thanks android share improve this question The Dataconnection disable and enabling APIS are hidden in the SDK and not exposed to the user this can be achived by accessing the ITelephony interface using the..
Android adb “Unable to open sync connection!” http://stackoverflow.com/questions/3912548/android-adb-unable-to-open-sync-connection the cord worked but then it stopped working completely. However disabling USB debugging on the phone and then re enabling it has worked so far. Hopefully it keeps working These fixes really seem like silly hacks.. I'm not sure what the underlying..
Android: How to Enable/Disable Wifi or Internet Connection Programmatically http://stackoverflow.com/questions/3930990/android-how-to-enable-disable-wifi-or-internet-connection-programmatically connec.getNetworkInfo 0 .setState NetworkInfo.State.DISCONNECTED android share improve this question I know of enabling or disabling wifi WifiManager wifiManager WifiManager this.context.getSystemService Context.WIFI_SERVICE wifiManager.setWifiEnabled..
Android Checkbox listview select all (disable/enable) http://stackoverflow.com/questions/4553186/android-checkbox-listview-select-all-disable-enable CheckBox itemLayout.findViewById R.id.MyListViewCheckBox cb.setChecked true You need to edit this code to handle both enabling and disabling but I hope you get the idea Also this only checks each checkbox make sure you are returning an id or object..
How can I get the dreaded WRITE_SECURE_SETTINGS permission for my android app? http://stackoverflow.com/questions/5034160/how-can-i-get-the-dreaded-write-secure-settings-permission-for-my-android-app improve this question I need to be able to toggle the GPS receiver on and off For privacy reasons if nothing else enabling or disabling any sort of location tracking needs to be solely in the hands of the user via trusted applications not at the..
VideoView getDrawingCache is returning black http://stackoverflow.com/questions/5278707/videoview-getdrawingcache-is-returning-black cache is similar to setting a layer when hardware acceleration is turned off. When hardware acceleration is turned on enabling the drawing cache has no effect on rendering because the system uses a different mechanism for acceleration which ignores..
Hang up outgoing call in Android http://stackoverflow.com/questions/599443/hang-up-outgoing-call-in-android callIntent But stopping the call seems to be disallowed through the API. Can you suggest some workaround For example enabling airplane mode during the call Just an example this hack didn't work for me android telephony telephonymanager share improve..
How do I obtain crash-data from my Android application? http://stackoverflow.com/questions/601503/how-do-i-obtain-crash-data-from-my-android-application share improve this question You might try the ACRA Application Crash Report for Android library ACRA is a library enabling Android Application to automatically post their crash reports to a GoogleDoc form. It is targetted to android applications..
Changing ViewPager to enable infinite page scrolling http://stackoverflow.com/questions/7766630/changing-viewpager-to-enable-infinite-page-scrolling int changes the page with animation. This method calls an internal method that requires the index and a flag enabling smooth scrolling. This flag is boolean smoothScroll . Extending this method with a second parameter boolean smoothScroll..
Google Android USB Driver and ADB http://stackoverflow.com/questions/9709263/google-android-usb-driver-and-adb usb vendor id in this example At last you can test installation by adb kill server adb start server adb devices and enabling debugging in developer options on android device This should restart ADB Server and list devices. If driver is working ok..
Issue with tablet detection Synchro Digital http://stackoverflow.com/questions/11874348/issue-with-tablet-detection-synchro-digital it is not recognized as a tablet therefore it can't compile directly from Eclipse nothing appears in the device list. Enabling USB debugging doesn't change anything. No activity in the logcat when connecting the tablet. In device management I find..
Hide System Bar in Tablets http://stackoverflow.com/questions/12605266/hide-system-bar-in-tablets mode for the system bar or navigation bar. Navigation buttons dim and other elements in the system bar also hide. Enabling this is useful for creating more immersive games without distraction for the system navigation buttons. share improve..
How to disable Single SIgn On for facebook android app? http://stackoverflow.com/questions/13899955/how-to-disable-single-sign-on-for-facebook-android-app so that it is independent of the facebook app on the device. I have seen the problem being queried here Disabling and Enabling Single Sign On in Facebook as Required I know that in SDK 2.0 it could have been done using FORCE_DIALOG_AUTH but in SDK..
android-maven-plugin: Disable debug build for apk http://stackoverflow.com/questions/15055961/android-maven-plugin-disable-debug-build-for-apk android maven plugin 3.5.0 apk default apk @ stackx INFO Copying local assets files to combined assets directory. INFO Enabling debug build for apk. Is there an explicit way to disable debugging android debugging maven build maven plugin share improve..
Android: Simulate WiFi in the emulator? http://stackoverflow.com/questions/1563370/android-simulate-wifi-in-the-emulator E WifiService 566 Failed to load Wi Fi driver. D SettingsWifiEnabler 695 Received wifi state changed from Unknown to Enabling D SettingsWifiEnabler 695 Received wifi state changed from Enabling to Unknown How can I simulate WiFi connectivity in the.. 695 Received wifi state changed from Unknown to Enabling D SettingsWifiEnabler 695 Received wifi state changed from Enabling to Unknown How can I simulate WiFi connectivity in the emulator android testing android emulator wifi device emulation..
What is the best IDE to develop Android apps in? [closed] http://stackoverflow.com/questions/1715697/what-is-the-best-ide-to-develop-android-apps-in from now on be the definitive IDE for Android development D ORIGINAL ANSWER IntelliJ now has support for Android. See Enabling Android Support from the JetBrains help page and the Google Code project page for the plugin. The Getting Started wiki page..
Enabling ProGuard in Eclipse for Android http://stackoverflow.com/questions/4732656/enabling-proguard-in-eclipse-for-android ProGuard in Eclipse for Android The new documentation on ProGuard for Android says to add a line to the default.properties..
Android: What are the recommended configurations for Proguard? http://stackoverflow.com/questions/5068251/android-what-are-the-recommended-configurations-for-proguard a good policy where should i add the copyright android proguard share improve this question Based on my answer Enabling ProGuard in Eclipse for Android I've ended up with this generic file. I've added comments to remember what each line is..
Bluetooth SPP between Android and other device, UUID and PIN questions http://stackoverflow.com/questions/5263144/bluetooth-spp-between-android-and-other-device-uuid-and-pin-questions it discoverable programetically or through the settings and see if the medical device can find your device. See here Enabling Discoverability in Android For PIN pairing The android device should start the pairing process when a non paired device..
VideoView getDrawingCache is returning black http://stackoverflow.com/questions/5278707/videoview-getdrawingcache-is-returning-black android bitmap screenshot videoview share improve this question From the docs for View#setDrawingCacheEnabled Enabling the drawing cache is similar to setting a layer when hardware acceleration is turned off. When hardware acceleration is..
How to enable GPS in android coding [duplicate] http://stackoverflow.com/questions/5481695/how-to-enable-gps-in-android-coding GPS for everything other than Lookout and if you have disabled the GPS receiver no application can make use of it. Enabling the GPS receiver requires a user to do it manually. Edit It looks like in the new version of Lookout they are most likely..
Getting started with Open NFC emulator http://stackoverflow.com/questions/6770774/getting-started-with-open-nfc-emulator Stub Proxy@406df430 D NfcEnabler 165 Setting NFC enabled state to true D OpenNFCService 250 Enabling NFC. previous false D OpenNFCService 250 mIsNfcEnabled NFC false D OpenNFCService 250 _enable true D OpenNFCService 250.. Setting System NFC NFC_CC_IP 114.31.179.86 D NfcEnabler 165 Setting NFC enabled state to true D OpenNFCService 250 Enabling NFC. previous false D OpenNFCService 250 mIsNfcEnabled NFC false D OpenNFCService 250 _enable true D OpenNFCService 250..
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 this is only for experimental purposes. They apply to gingerbread versión 2.3.4_r1 of the AOSP sources. They allow Enabling NFC card emulation mode on the Nexus S. This mode is always enabled. Disabling reader mode letting the card emulation being..
Enabling Wifi on Android Emulator http://stackoverflow.com/questions/7876302/enabling-wifi-on-android-emulator Wifi on Android Emulator My question is how to enable wifi on Android emulator I have tried to find this but no one is..
Disabling & Enabling Paging In ViewPager in Android http://stackoverflow.com/questions/8134336/disabling-enabling-paging-in-viewpager-in-android Enabling Paging In ViewPager in Android I am using android compatibility package version 4 for displaying pdf pages in my app. I..
|