Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now
22

Without rooting your device, you won't have much choice: you can either disable the network when the app runs in foreground, as LinX64 suggested – or "hibernate" (suspend) it when it goes to background (is not actively used), as suggested by Dalvik. Of course, you could combine the two – which should effectively prevent that app from accessing the network. ...


14

Addresses are cached for 600 seconds (10 minutes) by default. Failed lookups are cached for 10 seconds. From everything I've seen, there's nothing built in to flush the cache. This is apparently a reported bug in Android because of the way it stores DNS cache. Clearing the browser cache doesn't touch the DNS, the "hard reset" clears it because it simply ...


14

Poor connection may mean that: there is either a weak signal from your wifi partner device. there is much noise from other systems using the same frequency. Both mean that many data-packets are lost and have to be retransmitted so your overall throughput goes down. You can compare this with: somebody is speaking not loud enough many people are speaking ...


14

Using only your Android: Kaspersky's Parental Control software does exactly as the title says. Mind you, it's still in beta, but I did install it and tried it out, and it seems to do it's job of blocking websites as well as applications. By the way, Kaspersky's not the only app out on the store that you can use, but I chose it due to its reputation. It's ...


13

ifconfig and ip Android 7 adb shell ifconfig adb shell ip address show ifconfig was an annoying implementation that did not show all versions by default on earlier versions as explained below, but now it works fine. netcfg Android 5.1.1 This tool was removed in later Android, and ifconfig was made more decent and shows all interfaces by default, thus ...


11

The following works for a while, but only for the browser. When you plug in your phone via usb and choose Internet pass-through, you should get a new RNDIS device (usb0 or usb1). For ubuntu, edit /etc/network/interfaces and add the following lines: iface usb0 inet dhcp iface usb1 inet dhcp This will assign an IP automatically when the device is added. If ...


11

On a typical Linux system the cache is cleared by running /etc/init.d/nscd restart, but at least my ROM doesn't use nscd to cache DNS. You can check if yours does, but I doubt it. I've seen suggestions that clearing the brower cache would clear DNS cache too, but one sure way is to do a hard reboot (shutdown, remove battery for 30s, reattach battery and boot)...


11

This problem has been plaguing me ever since I upgraded my Sony Ericcson Experia Pro ("iyokan") from Cyanogenmod 7.2 (Android 2.3.7) to 9.0 (Android 4.0.3) -- until today when I did some more detailed investigation. It's pretty clearly a defect related to the DHCP client. When it manifests, the device fails to obtain an IP address from any access point, ...


11

There are actually three types of dual SIM phones. Dual SIM Standby (DSS): Only one SIM can be used at a time, 1 radio chip. The phone has single IMEI number. Dual SIM Dual Standby (DSDS): Two SIMs can be used at a time, but if one opens a call or data connection, the other is offline. The phone has two different IMEI numbers. Dual SIM Active (or sometimes ...


10

While @k3b is right in what a poor Internet connection means that's not what's causing the error message to appear. If you actually have connection issues you don't get an error message (pretty counter-intuitive) It appears that since upgrading to ics people have a problem with this. Theoretically there should be a setting to switch this off under: ...


9

The easiest way is using a tool like e.g. OS Monitor, which shows you (amongst others) also a lot of network details: OS Monitor showing network interface details (source: Google Play; click image to enlarge) As the screenshot shows, this app reveals for each network interface: interface name¹ IPv4 IP address assigned (if 0.0.0.0, this interface is ...


8

WIFI PPPOE by cnDDU is an app that allows you to make a PPPoE connection from your phone over a wireless connection: ...main purpose is for user to make PPPOE connection via WIFI, e.g. dialing through ADSL Modem with user name and password provided by some internet ISPs. This app makes the Android devices be able to connect to Internet directly via ...


8

This functionality is built into android so there's no need for an external tool/application. In settings: Wireless and networks -> Mobile Networks -> Data Enabled Disable this and you're all set.


7

The only way to do this in Android is to do a hard reboot. The necessary command-line tools are not normally available, however in my tests a hard reboot has always done the trick for me (Galaxy Nexus, and HTC Desire, various ROMs). This is a pain, but it is quicker than the 10min cache timeout.


7

Updating this question to say that as of Android 4.0, IPv6 is fairly well supported. There are still no visual indicators that it is running/working, but devices pick up IPv6 addresses and try to use them by default.


7

just type netcfg it will lists the interface, and work on any terminal emulator. running on the phone itself, or remotely via adb.


7

There is no such setting on Android phones, but you can use the Emulator for this. Install the Android SDK from developer.android.com and launch it. On the DDMS view undet the Emulator control tab, you'll find the following options: After you have created an emulator and ran it, you can set these values according to your preferences and test how different ...


7

When the data indicator is orange (on Kit kat ; grey on older versions), this means that the device is unable to receive a response from GCM (Google Cloud Messaging, the framework that handles push notifications). This traffic is sent through ports 5228, 5229, and 5230. If the AP is blocking or interfering with traffic on those ports, push notifications won'...


7

This has been happening throughout the world and is caused by a technical feature of 4G LTE. Most people don't even notice it because of the small amount of data that's used off their data plan. This is what happens: every time your phone receives or makes a voice call, it automatically switches from 4G to 3G mode due to the fact that LTE is a data-only ...


6

Try the app No-Root Firewall. It allows you to control what apps have Internet access over both wifi and cell data. It works by setting up a VPN on your phone.


6

Droidwall The app Droidwall will do this, but it requires a rooted android device. It works very well, though, giving you the option of allowing either cellular or wifi internet access to each app (or both or neither), as well as disabling the rules entirely while keeping the settings so you can easily give everything full normal access when desired, then ...


6

The only way to accomplish this is to use an online SMS gateway, which means you send the message to the service provider via the internet, and they forward it to the recipient over SMS. There are several service providers for this, but mostly they require a subscription, i.e. they're not free. Just google for "sms gateway" to find them. Some service ...


6

There is one hack by which you can block your incoming calls. Go to Settings -> Call settings -> Call forwarding Now Click on Always forward and enable it to forward the calls to a wrong number. This will ensure that calls will not come to you and the caller get the tone that call is being forwarded and number is wrong. You can disable Call forwarding ...


5

There're also apps like Internet Booster promising to "clear DNS cache" (amongst other things). I didn't try it out myself, and furthermore there seems no way to do only that (just one "optimize" button which "applies improvements"); also its effects might differ between devices (says the app's description) -- but it might be better than a reboot. Btw: while ...


5

You didn't specify whether you're using Opera Mini or Opera Mobile, Opera Mini uses compression proxy server to optimize the page for your device; and this almost invariably breaks in-browser wifi authentication page since the browser will try to connect to its proxy which it can't do because the gateway blocks access to the proxy until you authenticate. ...


5

I managed to make it work. Here is an "OSI-like" diagram of my setup, if it makes sense: ____________________ ______________________________ ____________ | LinuxVM <----+ | | | | | | VirtualBox | | | | | | | Windows7(host) | | | +--> AndroidPhone <--...


5

Android's debugging bridge adb supports backup/restore: adb backup -f wifisettings.bak presents you a message on screen which you need to confirm (and maybe enter a passphrase) to create the backup. adb restore wifisettings.bak restores it. Just set up your phone to a very simple initial state (nothing else besides the wifi settings, or so). Then ...


5

Even thought the photos are stored locally, when in the main view of the photos app only the thumbnails or nothing at all (if thumbs are not cached) will be shown when internet is off/blocked/limited. The only way you can access the local copies while using the photos app is to open the menu on the left and select "Device Folders" and then go into the ...


4

There is the turbo feature in Opera Mobile -- the same UI as Mini with a more normal renderer. The compression is less effective, though.


Only top voted, non community-wiki answers of a minimum length are eligible