Creating a contact in Blackberry 10 from Android port -
so porting android app blackberry 10 , going well. having problem "add contact" functionality. have button takes information company , adds information contact intent.
intent intent = new intent(intent.action_insert); intent.settype(contactscontract.contacts.content_type); intent.putextra(contactscontract.intents.insert.name, provider.getorganizationname()); intent.putextra(contactscontract.intents.insert.phone, provider.getphonenumber()); intent.putextra(contactscontract.intents.insert.phone_type, contactscontract.commondatakinds.phone.type_work); intent.putextra(contactscontract.intents.insert.postal, provider.getaddressline1() + " " + provider.getaddressline2() + " " + provider.getcity() + " " + provider.getprovince() + " " + provider.getpostalcode()); intent.putextra(contactscontract.intents.insert.postal_type, contactscontract.commondatakinds.structuredpostal.type_work); intent.putextra(contactscontract.intents.insert.email, provider.getemail()); intent.putextra(contactscontract.intents.insert.email_type, contactscontract.commondatakinds.email.type_work); intent.putextra(contactscontract.intents.insert.name, provider.getorganizationname()); intent.putextra(contactscontract.intents.insert.phone, provider.getphonenumber()); intent.putextra(contactscontract.intents.insert.phone_type, contactscontract.commondatakinds.phone.type_work); intent.putextra(contactscontract.intents.insert.postal, provider.getaddressline1() + " " + provider.getaddressline2() + " " + provider.getcity() + " " + provider.getprovince() + " " + provider.getpostalcode()); intent.putextra(contactscontract.intents.insert.postal_type, contactscontract.commondatakinds.structuredpostal.type_work); intent.putextra(contactscontract.intents.insert.email, provider.getemail()); intent.putextra(contactscontract.intents.insert.email_type, contactscontract.commondatakinds.email.type_work);
does have idea how functionality working on blackberry? appreciated.
see documents describe android features not supported blackberry runtime android apps on blackberry 10. =)
unsupported apis blackberry 10
invoking device settings not supported android.settings.add_account_settings
Comments
Post a Comment