getting email address of the account on the phone

by bh23 » Tue, 31 Aug 2010 01:53:19 GMT


Sponsored Links
 I am writing an app and I want to send the user a welcome email when
they install the app, in order to do this I could prompt them to enter
their email address, but I would prefer to just detect the email of
their account on the phone and send it without forcing them to type.

Is this possible?

--



getting email address of the account on the phone

by TreKing » Tue, 31 Aug 2010 23:03:13 GMT


 




To take the user's email off the phone, send it to your own server and use
it to send them unsolicited emails? I hope not.

-------------------------------------------------------------------------------------------------
TreKing < http://sites.google.com/site/rezmobileapps/treking> ; - Chicago
transit tracking app for Android-powered devices

--


Sponsored Links


getting email address of the account on the phone

by San » Wed, 01 Sep 2010 06:14:17 GMT


 Account[] allAccounts =
AccountManager.get(getApplicationContext()).getAccounts();
for(Account account : allAccounts)
{
   String emailAccName = account.name;
   String emailAccType = account.type;
}

Dont forget to add <uses-permission
android:name="android.permission.GET_ACCOUNTS" /> in manifest

--



getting email address of the account on the phone

by San » Wed, 01 Sep 2010 06:16:18 GMT


 Account[] allAccounts =
AccountManager.get(getApplicationContext()).getAccounts();
for(Account account : allAccounts)
{
   String emailAccName = account.name;
   String emailAccType = account.type;
}

Dont forget to add
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
in the manifest

--



Other Threads

1. How is android's AlertDialog layout define?

Hi,

How is android's AlertDialog layout define? Is there a layout.xml file
corresponding to the AlertDialog?
I have looked at AlertDialog implementation, But i don't figure out
how that is being layout (e.g. the location of the button, the
location of text) Where are they defined? And how can I change that?

Thank you.

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

2. How to keep focus highlight on ExpandableList group....

I'm using an ExpandableListActivity and notice that whenever I select
a group item (to expand or collapse it), it highlights briefly and
then
quickly un-highlights.

For my application, I want the group items to remain highlighted. I've
tried requestFocus() and several other things but nothing is working.

Anyone know how to keep a selected group item (after expand or
collapse)
highlighted and focused?

Any help appreciated.

jh


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

3. com.android.dx.cf.code.SimException: local variable type mismatch

4. WebView and Button in layout, only one of them can be clicked.

5. More than one package in my project on pre 1.5 sdk

6. how to adjust the window position on the framework layer

7. How to enable/disable GPRS/EDGE data connection