/** * Create a new data */ PublicUriaddnewapn (APN ){ Log.I("Apnhelper", "add operations "); Contentresolver = context. getcontentresolver (); Contentvalues =NewContentvalues (); Contentvalues. Put ("name", APN. getname ()); Contentvalues. Put ("APN", APN. getapn ()); Contentvalues. Put ("MCC", APN. getmcc ()); Contentvalues. Put ("MNC", APN. getmnc ()); Contentvalues. Put ("numeric", APN. getnumeric ()); Contentvalues. Put ("proxy", APN. getproxy ()); Contentvalues. Put ("Port", APN. getport ()); Contentvalues. Put ("authtype", APN. getauthtype ()); Contentvalues. Put ("current", APN. getcurrent ()); Contentvalues. Put ("type", APN. GetType ()); Contentvalues. Put ("user", APN. getuser ()); Contentvalues. Put ("server", APN. getserver ()); Contentvalues. Put ("password", APN. GetPassword ()); Contentvalues. Put ("mmsport", APN. getmmsport ()); Contentvalues. Put ("mmsproxy", APN. getmmsproxy ()); Contentvalues. Put ("mmsc", APN. getmmsc ()); Uri newuri = contentresolver. insert (createuri, contentvalues ); Log.I("Apnhelper", "newuri. tostring ():" + newuri. tostring ()); ReturnNewuri; } |