Create Email account from type existing Account Services
===

I gone through ***SampleSyncAdapter*** sample project provided by Android doc, but as I understand, there we add account of custom Account service.
*But my need is to create an email account from existing account services on device.*


----------
***For being more clear about my question, I am giving an example***

Here are Account services available on my Device
![enter image description here][1]

and I guess 'Google' and 'Email' account services available on each Android device.

Now I want to configure an 'Email' type of account, so I must follow these following steps 

***Step 1:*** Enter existing email id and password

***Step 2: [a]*** General Settings
            Attributes : - (Account name, Real Name, Email Address)

***Step 2: [b]*** Incoming server
            Attributes : - (POP or IMAP mail server, Server Address, user name, password)

***Step 2: [c]*** Outgoing server
            Attributes : - (SMTP server, user name, password)

***Step 3:*** By choosing Advance settings, we can configure port and certificate options. 

And these above steps, we do manually, *but I want to create an Email account programmatically* by using all above settings. 


----------

***So How can I create new email account from existing Account Services?*** 

  [1]: http://i.stack.imgur.com/9O0wp.png