Skip to content

Instantly share code, notes, and snippets.

@masarugen
Created October 11, 2012 00:51
Show Gist options
  • Save masarugen/3869488 to your computer and use it in GitHub Desktop.
Save masarugen/3869488 to your computer and use it in GitHub Desktop.
var getCarrier = function() {
var carrier = Ti.App.Properties.getString('carrier', null);
if (carrier == null) {
var sim = require('hogehoge.android.simoperatorname');
carrier = sim.getSimOperatorName();
Ti.App.Properties.setString('carrier', carrier);
}
return carrier;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment