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. Larger screen support

Hi all,
We need to build support for screens larger than WVGA (480x800) and
FWVGA (480x854).  For example, let's say there is a device that
supports 1024x768.  Ideally, I would like to use Android's res folder
structure (e.g. res/layout-large) to automatically provide a different
layout for even larger screens.

Reading the documentation[1] it seems that WVGA and FWVGA would pull
from the same res folder (res/layout-large) as 1024x768.

As a result, I think we have to do this in code.  We would define a
constant and build multiple code paths that address traditional screen
sizes under one path, and 1024x768 and similar screen sizes under
another path.

Am I misreading the documentation?  Is there a way to do this that I
haven't considered?
Additionally, is there a notion of #ifdef in Android's Java, as there
is in C?

Thanks much.

[1] http://developer.android.com/guide/practices/screens_support.html

-- 

2. Problem with reading contacts on Samsung Galaxy Europa

Is this happening only on Europa ?

-Dan





> 

3. Update WTS : Androids 2nd.

4. MotoDroid Susah SMS

5. WQVGA not respecting android:layout_height="fill_parent" for layout.

6. How comes that the estimate time becomes negative

7. how to change colours in a .xml defined layout in run time