Re: [android-developers] Re: How to set the preferred APN through code?

2012-01-23 Thread Putti Me
Thanks Sayed for the sample code. But unfortunately even that didn't work. The 'insert' i.e. the line: getContentResolver().insert(*PREFERRED_CONTENT_URI*, values); always returns null. I'm using 2.3.3. Looks like

[android-developers] Runtime.exec(su) issue.

2012-01-17 Thread Putti Me
I try to execute the following code: * try { Process process = Runtime.getRuntime().exec(su); // blah blah } catch (Exception e) { res += ERROR + e.getMessage() + \n; } * And I get the following exception:: Error running exec(). Command: [su] Working Directory: null Environment: null

Re: [android-developers] Wifi is currently being used.

2012-01-16 Thread Putti Me
Thanks for that info. getTotalRxByteshttp://developer.android.com/reference/android/net/TrafficStats.html#getTotalRxBytes()() + getTotalTxByteshttp://developer.android.com/reference/android/net/TrafficStats.html#getTotalRxBytes()() gives me the total bytes transferred. Does this include all