[android-developers] Re: How can i import com.android.internal.phone?

2009-04-20 Thread Daliang Luo
Thanks all above. I mean I just want to add a AT command in the ril
reference.c. And could this disturb all the other commands working?

And sorry for I'm not posting in the right place. :-(

2009/4/20 Marco Nelissen 

> You shouldn't be sending AT commands, as they would very likely interfere
> with AT commands sent by the system itself, possibly leaving the radio in an
> inconsistent state.
> Also, this list is about developing using the SDK, which by definition
> excludes all the internal APIs.
>
>
> On Mon, Apr 20, 2009 at 8:42 AM, Daliang Luo  wrote:
>
>> But Romain, what should I do if I am trying to call the function
>> invokeOemRilRequestStrings()? I am trying to send AT commands via this
>> interface.
>>
>> 2009/4/20 Daliang Luo 
>>
>>> Thanks Romain, then may be i can use telephonymanager to talk with the
>>> interfaces?
>>>
>>> 2009/4/20 Romain Guy 
>>>

 Don't. The package name says "internal" because it's a private API. Do
 NOT use it.

 On Mon, Apr 20, 2009 at 1:55 AM, Nio  wrote:
 >
 > Hi there,
 > I'm trying to invoke the functions belong to class phone and
 > PhoneFactory. But when I'm trying to import these packages, it reminds
 > errors:
 >
 > code:
 > import com.android.internal.telephony.Phone
 > import com.android.internal.telephony.PhoneFactory
 > ...
 > PhoneFactory.makeDefaultPhones(this)
 > Phone phone = PhoneFactory.getDefaultPhone()
 >
 > error:
 > The com.android.internal.telephony.Phone can not be resolved.
 > The com.android.internal.telephony.PhoneFactory can not be resolved.
 >
 > But some other packages can be imported. I don't know why. I think all
 > this packages should be included in the SDK.
 > Can any one tell me where I am getting wrong?
 > Thanks.
 > Nio
 > >
 >



 --
 Romain Guy
 Android framework engineer
 romain...@android.com

 Note: please don't send private questions to me, as I don't have time
 to provide private support.  All such questions should be posted on
 public forums, where I and others can see and answer them



>>>
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: How can i import com.android.internal.phone?

2009-04-20 Thread Marco Nelissen
You shouldn't be sending AT commands, as they would very likely interfere
with AT commands sent by the system itself, possibly leaving the radio in an
inconsistent state.
Also, this list is about developing using the SDK, which by definition
excludes all the internal APIs.


On Mon, Apr 20, 2009 at 8:42 AM, Daliang Luo  wrote:

> But Romain, what should I do if I am trying to call the function
> invokeOemRilRequestStrings()? I am trying to send AT commands via this
> interface.
>
> 2009/4/20 Daliang Luo 
>
> Thanks Romain, then may be i can use telephonymanager to talk with the
>> interfaces?
>>
>> 2009/4/20 Romain Guy 
>>
>>>
>>> Don't. The package name says "internal" because it's a private API. Do
>>> NOT use it.
>>>
>>> On Mon, Apr 20, 2009 at 1:55 AM, Nio  wrote:
>>> >
>>> > Hi there,
>>> > I'm trying to invoke the functions belong to class phone and
>>> > PhoneFactory. But when I'm trying to import these packages, it reminds
>>> > errors:
>>> >
>>> > code:
>>> > import com.android.internal.telephony.Phone
>>> > import com.android.internal.telephony.PhoneFactory
>>> > ...
>>> > PhoneFactory.makeDefaultPhones(this)
>>> > Phone phone = PhoneFactory.getDefaultPhone()
>>> >
>>> > error:
>>> > The com.android.internal.telephony.Phone can not be resolved.
>>> > The com.android.internal.telephony.PhoneFactory can not be resolved.
>>> >
>>> > But some other packages can be imported. I don't know why. I think all
>>> > this packages should be included in the SDK.
>>> > Can any one tell me where I am getting wrong?
>>> > Thanks.
>>> > Nio
>>> > >
>>> >
>>>
>>>
>>>
>>> --
>>> Romain Guy
>>> Android framework engineer
>>> romain...@android.com
>>>
>>> Note: please don't send private questions to me, as I don't have time
>>> to provide private support.  All such questions should be posted on
>>> public forums, where I and others can see and answer them
>>>
>>>
>>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: How can i import com.android.internal.phone?

2009-04-20 Thread Mark Murphy

You are cross-posting to multiple lists. Please stop that.

> But Romain, what should I do if I am trying to call the function
> invokeOemRilRequestStrings()? I am trying to send AT commands via this
> interface.

If you are writing applications to the SDK, to be deployed on existing
devices, you cannot call invokeOemRilRequestStrings() or anything else on
private classes.

If you are making changes to the firmware, please stick to the thread you
started on [android-platform], as that is a more relevant group than this
one.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 2.0 Available!



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: How can i import com.android.internal.phone?

2009-04-20 Thread Daliang Luo
But Romain, what should I do if I am trying to call the function
invokeOemRilRequestStrings()? I am trying to send AT commands via this
interface.

2009/4/20 Daliang Luo 

> Thanks Romain, then may be i can use telephonymanager to talk with the
> interfaces?
>
> 2009/4/20 Romain Guy 
>
>>
>> Don't. The package name says "internal" because it's a private API. Do
>> NOT use it.
>>
>> On Mon, Apr 20, 2009 at 1:55 AM, Nio  wrote:
>> >
>> > Hi there,
>> > I'm trying to invoke the functions belong to class phone and
>> > PhoneFactory. But when I'm trying to import these packages, it reminds
>> > errors:
>> >
>> > code:
>> > import com.android.internal.telephony.Phone
>> > import com.android.internal.telephony.PhoneFactory
>> > ...
>> > PhoneFactory.makeDefaultPhones(this)
>> > Phone phone = PhoneFactory.getDefaultPhone()
>> >
>> > error:
>> > The com.android.internal.telephony.Phone can not be resolved.
>> > The com.android.internal.telephony.PhoneFactory can not be resolved.
>> >
>> > But some other packages can be imported. I don't know why. I think all
>> > this packages should be included in the SDK.
>> > Can any one tell me where I am getting wrong?
>> > Thanks.
>> > Nio
>> > >
>> >
>>
>>
>>
>> --
>> Romain Guy
>> Android framework engineer
>> romain...@android.com
>>
>> Note: please don't send private questions to me, as I don't have time
>> to provide private support.  All such questions should be posted on
>> public forums, where I and others can see and answer them
>>
>> >>
>>
>

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: How can i import com.android.internal.phone?

2009-04-20 Thread Daliang Luo
Thanks Romain, then may be i can use telephonymanager to talk with the
interfaces?

2009/4/20 Romain Guy 

>
> Don't. The package name says "internal" because it's a private API. Do
> NOT use it.
>
> On Mon, Apr 20, 2009 at 1:55 AM, Nio  wrote:
> >
> > Hi there,
> > I'm trying to invoke the functions belong to class phone and
> > PhoneFactory. But when I'm trying to import these packages, it reminds
> > errors:
> >
> > code:
> > import com.android.internal.telephony.Phone
> > import com.android.internal.telephony.PhoneFactory
> > ...
> > PhoneFactory.makeDefaultPhones(this)
> > Phone phone = PhoneFactory.getDefaultPhone()
> >
> > error:
> > The com.android.internal.telephony.Phone can not be resolved.
> > The com.android.internal.telephony.PhoneFactory can not be resolved.
> >
> > But some other packages can be imported. I don't know why. I think all
> > this packages should be included in the SDK.
> > Can any one tell me where I am getting wrong?
> > Thanks.
> > Nio
> > >
> >
>
>
>
> --
> Romain Guy
> Android framework engineer
> romain...@android.com
>
> Note: please don't send private questions to me, as I don't have time
> to provide private support.  All such questions should be posted on
> public forums, where I and others can see and answer them
>
> >
>

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



[android-developers] Re: How can i import com.android.internal.phone?

2009-04-20 Thread Romain Guy

Don't. The package name says "internal" because it's a private API. Do
NOT use it.

On Mon, Apr 20, 2009 at 1:55 AM, Nio  wrote:
>
> Hi there,
> I'm trying to invoke the functions belong to class phone and
> PhoneFactory. But when I'm trying to import these packages, it reminds
> errors:
>
> code:
> import com.android.internal.telephony.Phone
> import com.android.internal.telephony.PhoneFactory
> ...
> PhoneFactory.makeDefaultPhones(this)
> Phone phone = PhoneFactory.getDefaultPhone()
>
> error:
> The com.android.internal.telephony.Phone can not be resolved.
> The com.android.internal.telephony.PhoneFactory can not be resolved.
>
> But some other packages can be imported. I don't know why. I think all
> this packages should be included in the SDK.
> Can any one tell me where I am getting wrong?
> Thanks.
> Nio
> >
>



-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---