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
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
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
3 matches
Mail list logo