[android-developers] Re: how to get my mobile service provider using android

2011-07-07 Thread Ahmed Shoeib
thanks for reply
i tested this code

 TelephonyManager telephonyManager =((TelephonyManager)
context.getSystemService(Context.TELEPHONY_SERVICE));
String operatorName =
telephonyManager.getNetworkOperatorName();
Log.e(service provider , operatorName);

and the output in simulator  = Android

is this a correct result on simulator or not 

On Jul 7, 12:15 pm, Raghav Sood raghavs...@gmail.com wrote:
 Take a look 
 athttp://developer.android.com/reference/android/telephony/TelephonyMan...()

 On Thu, Jul 7, 2011 at 2:16 PM, Ahmed Shoeib
 ahmedelsayed.sho...@gmail.comwrote:

  hi all ,

  i want to know how to get my mobile servie provider using android
  code ?

  thanks .

  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

 --
 Raghav 
 Soodhttp://www.raghavsood.com/http://www.androidappcheck.com/http://www.telstop.tel/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Re: how to get my mobile service provider using android

2011-07-07 Thread Raghav Sood
Yes that is correct. The emulator has no actual network and uses Android as
its carrier name.

On Thu, Jul 7, 2011 at 3:23 PM, Ahmed Shoeib
ahmedelsayed.sho...@gmail.comwrote:

 thanks for reply
 i tested this code

  TelephonyManager telephonyManager =((TelephonyManager)
 context.getSystemService(Context.TELEPHONY_SERVICE));
String operatorName =
 telephonyManager.getNetworkOperatorName();
Log.e(service provider , operatorName);

 and the output in simulator  = Android

 is this a correct result on simulator or not 

 On Jul 7, 12:15 pm, Raghav Sood raghavs...@gmail.com wrote:
  Take a look athttp://
 developer.android.com/reference/android/telephony/TelephonyMan...()
 
  On Thu, Jul 7, 2011 at 2:16 PM, Ahmed Shoeib
  ahmedelsayed.sho...@gmail.comwrote:
 
   hi all ,
 
   i want to know how to get my mobile servie provider using android
   code ?
 
   thanks .
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  Raghav Soodhttp://
 www.raghavsood.com/http://www.androidappcheck.com/http://www.telstop.tel/

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Raghav Sood
http://www.raghavsood.com/
http://www.androidappcheck.com/
http://www.telstop.tel/

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en