again phonebook launch

pierpa

Member
Licensed User
Longtime User
hello,

i am trying to start embedded phonebook from my app.

i tried to do this:

B4X:
   'Uri1 = "content://Contacts/people/" & ChoosenId
Uri1 = "content://com.android.contacts/data/" & ChoosenId
Intent1.Initialize(Intent1.ACTION_EDIT,Uri1)
StartActivity(Intent1)
and this (for galaxy):

B4X:
   'http://stackoverflow.com/questions/3547118/accessing-the-phonebook-on-galaxy-s-crashes-the-app
   'if (Build.DEVICE.equals("GT-I9000")){...}
   'in manifest: AddApplicationText(<activity android:name="com.sec.android.app.contacts.PhoneBookTopMenuActivity" />)
Intent1.Initialize(Intent1.ACTION_MAIN,"")
Intent1.AddCategory("CATEGORY_LAUNCHER")
Intent1.SetComponent("com.android.contacts/com.sec.android.app.contacts.PhoneBookTopMenuActivity")
StartActivity(Intent1)

without results.

is there a solution?

please, help.

i am not able to use eclipse to make the library. i just need to lauch embedded phonebook with selected (from Contacts2) ContactId

kind regards

ppp
 
Top