My colleague reports his G1 returns null from this call.  The emulator
returns some number (is it hardcoded?).  This post on StackOverflow
indicates that some (but not all) devices return the correct phone
number -

http://stackoverflow.com/questions/2443524/getline1number-return-null-but-not-always

 Is there any other and/or better way to get the phone number for the
device?

Does the device need to know its own number for sending SMS messages,
or is the sending number provided by the network carrier?

TIA if anyone has experience with this question

On Jul 13, 6:00 pm, jotobjects <[email protected]> wrote:
> Sorry to reply to my own posting.  I'm asking because my project is
> using the Telephony API getLine1Number() and I'm wondering if the
> telephone number is the same on all emulators or if it can be changed
> somehow for testing without getting the same number every time.
> Anybody have experience with that question?
>
> On Jul 12, 10:20 pm, jotobjects <[email protected]> wrote:
>
> > In Settings it shows a phone number for the device when running the
> > emulator.  It shows the same phone number with several different
> > AVD's.  Is this number the same across all development systems (i.e.,
> > is it hardcoded or random or...)?  Can it be set to some specific
> > number and how to do that?

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