How can I get my android emulator use my computer’s VPN interface?

First start your vpn connection and then restart the emulator, now the emulator should use the host vpn connection. it’s mostly because of the DNS issue, according to the android doc: At startup, the emulator reads the list of DNS servers that your system is currently using. It then stores the IP addresses of up … Read more

How to tell if ‘Mobile Network Data’ is enabled or disabled (even when connected by WiFi)?

The following code will tell you if “mobile data” is enabled or not, regardless of whether or not there is a mobile data connection active at the moment or whether or not wifi is enabled/active or not. This code only works on Android 2.3 (Gingerbread) and later. Actually this code also works on earlier versions … Read more

How to detect online/offline event cross-browser?

Currently in 2011, the various browser vendors cannot agree on how to define offline. Some browsers have a Work Offline feature, which they consider separate to a lack of network access, which again is different to internet access. The whole thing is a mess. Some browser vendors update the navigator.onLine flag when actual network access … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)