I wish to detect if a user has enabled both background data (settings->accounts and sync->background data) and packet data (settings->wireless and network->mobile networks->use packet data) so I can inform the user how to enable them.
This link says how to test the background data but it has been deprecated. The recommendation says to use getActiveNetworkInfo() but this might return the WIFI connection and therefore not display if background data is enabled or not.
I have not found any links on how to detect if packet data is enabled or not.
I had this exact same question and I had to start a bounty to get the answer. Cost me a third of my reputation, but well worth it.
As I say, I cant claim credit for know this, my question was answered by https://stackoverflow.com/users/769265/david-wasser
but it cost me, so if you want to accept this as an answer I can start to get me some of my reputation points back! 🙂