How to Update Custom fields in EditProfle Page

Hi every body,

I am working on Mobile Application using elgg framework mrthods. Our DB is in some other machine. Once user logged in, I store guid, UserName and Pwd in the mobie browser cookie.

When user clicks on "Edit Profile" link, How can I get all the fields + Custom fields lalong with their values. So that I can show them in edit mode and How to update them in MobileAPP ?

Please guide me.

Thanks inadvance,

Kiran.