Get the name of the owner of the phone? (the email sender)

by Noonien Soong » Thu, 29 Jan 2009 03:03:50 GMT


Sponsored Links
 I want my application to send emails.

The user can pick arecipient from the contacts.

Then I generate the body text of the email and send it to the email
app ( using something like  http://androidguys.com/?p=3100 #comment-5168).

The email body looks something like :

-------------------------
Hi {recipientname}!

Please click the following link :

 http://www.somewhere.com/action.php?data=9324jlkjfddsfjlk 

If you click that like, you will live forever. Bla bla ...

Thank you,

{sendername}
---------------------------------

"{recipientname}" is replaced by the name of the recipient that I get
from the Contacts via Contacts.People.

For convenience, I'd like to replace "{sendername}" with the name of
the sender, that means the name of the owner of the phone. (As stored
in the email app, under Account Settings -> General Settings -> Your
name)   So, obviously that name is stored somewhere, ...

My question:

Is there any way to access this name via a content provider ?
Or is there any other way to get a string (e.g. "John Doe" ) with the
name of the owner/user of the device ?


Any comments appreciated...
--~--~---------~--~----~------------~-------~--~----~



Get the name of the owner of the phone? (the email sender)

by Noonien Soong » Sat, 31 Jan 2009 01:11:40 GMT


 anyone?
--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Get the name of the owner of the phone? (the email sender)

by Zombies and Robots » Thu, 19 Feb 2009 02:22:08 GMT


 I've been doing some research on this topic myself, but so far, I
haven't come up with anything.  It seems like a very simple question.

Does anyone else have an idea?

I'm going back to scouring the API...
--~--~---------~--~----~------------~-------~--~----~



Get the name of the owner of the phone? (the email sender)

by tberthel » Sat, 11 Apr 2009 07:56:56 GMT


 Did you ever find this solution?



--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. question about handle and runnables

hi,

i am using handle and runnables to switch/change the content of the
TextView using a "timer". for some reason, when running, the app
always skips the second step ("Step Two: fry egg"), and only show the
last (third) step ("Step three: serve egg").


TextView t;
        private String sText;

        private Handler mHandler = new Handler();

        private Runnable mWaitRunnable = new Runnable() {
        public void run() {
                t.setText(sText);
        }
    };

        @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.main);

        mMonster = BitmapFactory.decodeResource(getResources(),
                        R.drawable.monster1);

        t=new TextView(this);
                t=(TextView)findViewById(R.id.TextView01);

                sText = "Step One: unpack egg";
                t.setText(sText);

                sText = "Step Two: fry egg";
                mHandler.postDelayed(mWaitRunnable, 3000);

                sText = "Step three: serve egg";
                mHandler.postDelayed(mWaitRunnable, 4000);
                ...
}

-- 

2. Apk smart keyboard yg bs autotext

Permisi barusan baca di wall suhu lesjaw, ada smart keyboard yg
support autotext.

Mungkin ada yg punya dan berkenan di sharing

Thanks
Louis
ym: loui5_tan


-- 
Sent from my mobile device

-- 
"Indonesian Android Community [id-android]" 

3. Grokking the Market

4. A Widget that looks like a launcher icon?

5. How to save a WiFi connection?

6. stay inside webview?!

7. fix parameters in macro cpufreq_exit_idl