Related questions
How to print to the console in Android Studio?
I just downloaded Android Studio for Linux from:
http://developer.android.com/sdk/installing/studio.html
I'm wondering how to print to the console?
Neither System.out.print(...) nor Log.e(...) from android.util.Log seem to work.
how do you get the phone's MCC and MNC in Android?
The only way I've found of retrieving MCC and MNC is by overriding an activity's onConfigurationChanged method, as such:
public void onConfigurationChanged(Configuration config)
{
super.onConfigurationChanged(config);
DeviceData.MCC = "" + config.mcc;
DeviceData.MNC = "" +config.mnc;
}
However, I need this data …