Using the Android source code as a reference about how to write
applications for the SDK isn't necessarily a good idea. Those apps
were written before there was a clear definition of the SDK APIs, and
sometimes before the SDK APIs even existed (in fact, some of the APIs
were created in response to specific needs of specific apps).

If I'm not mistaken, getSystemService() is the preferred way and the
other functions are legacy functions.

JBQ

On Wed, Dec 3, 2008 at 10:34 PM, sunil kumar <[EMAIL PROTECTED]> wrote:
> Hi Android Developers
>
> I would like to know why some of the applications are not calling the
> getSystemService(TELEPHONY_SERVICE) function for getting the telephony
> services.
>
> For ex:
> App1:(RadioInfo.Java) is calling the above function to get the telephony
> service.Like ..
> getSystemService(TELEPHONY_SERVICE)
> mTelephonyManager.getCellLocation()
>
> In App2(FDNSetting.java ) :But an other application like FDNSettings is not
> calling getSystemService() instead it directly calls a function from
> GSMSimcard.java file part of Telephony, as below.
>
> mPhone = PhoneFactory.getDefaultPhone();
> mPhone.getSimCard().getSimFdnEnabled();
>
> If any one has a good documention of How applications interact with services
> like Telephony & SIM, please share it with me.
>
> Regards,
> Sunil
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to