Re: [android-developers] How to new a class extends TelephonyManager?there is no default constructor in TM class.
You don't instantiate it directly, you don't instantiate it at all, therefore you can not extend it in the conventional sense. What you can do is to create a class that acts that acts as a wrapper for the methods of TM that you want it to expose directly. If you tell us what sort of extensions you want to make you will get better suggestions! On Aug 24, 2015 8:49 PM, 张斌 kimichangs...@gmail.com wrote: I want to create a new class extends TelephonyManager which can not instantiate directly.TelephonyManager can be instantiate through Context.getSystemService(Context.TELEPHONY_SERVICE). Are there anyone know sth about it? Waiting for your reply! -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [android-developers] How to new a class extends TelephonyManager?there is no default constructor in TM class.
Want to override some member methods,like toString. 2015-08-28 1:25 GMT+08:00 Steve Gabrilowitz steveg1...@gmail.com: You don't instantiate it directly, you don't instantiate it at all, therefore you can not extend it in the conventional sense. What you can do is to create a class that acts that acts as a wrapper for the methods of TM that you want it to expose directly. If you tell us what sort of extensions you want to make you will get better suggestions! On Aug 24, 2015 8:49 PM, 张斌 kimichangs...@gmail.com wrote: I want to create a new class extends TelephonyManager which can not instantiate directly.TelephonyManager can be instantiate through Context.getSystemService(Context.TELEPHONY_SERVICE). Are there anyone know sth about it? Waiting for your reply! -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 如果邮箱有问题,请转至kimichangs...@163.com kimichangs...@sina.com -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[android-developers] How to new a class extends TelephonyManager?there is no default constructor in TM class.
I want to create a new class extends TelephonyManager which can not instantiate directly.TelephonyManager can be instantiate through Context.getSystemService(Context.TELEPHONY_SERVICE). Are there anyone know sth about it? Waiting for your reply! -- 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 --- You received this message because you are subscribed to the Google Groups Android Developers group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.