Create Contact Problem

madSac

Active Member
Licensed User
Longtime User
Hello,
I tried to create contact using miscutils
http://www.b4x.com/forum/additional...ial-updates/9990-solution-create-contact.html

I am getting error to initialize the map.
B4X:
m.createContactEntry2("test",Null,phones,mails,"string","string","",Null,Null)

error is
B4X:
LogCat connected to: 0123456789ABCDEF
--------- beginning of /dev/log/main


** Activity (main) Pause, UserClosed = true **
** Service (createcontact) Start **
createcontact_madtest (java line: 319)


java.lang.RuntimeException: Object should first be initialized (Map).
   at anywheresoftware.b4a.AbsObjectWrapper.getObject(AbsObjectWrapper.java:45)
   at anywheresoftware.b4a.objects.collections.Map.GetValueAt(Map.java:104)
   at lilivel.b4a.miscUtil.miscUtil.createContactEntry2(miscUtil.java:125)
   ...

i am using this code in a service.
Please help.


I posted the question no reply came so i started a new thread http://www.b4x.com/forum/additional...s/9990-solution-create-contact.html#post55449
 

thedesolatesoul

Expert
Licensed User
Longtime User
Upvote 0

madSac

Active Member
Licensed User
Longtime User
This means that there is no way.I will have to continue with this problem.
Fine
Thank You.
 
Upvote 0

mc73

Well-Known Member
Licensed User
Longtime User
Irrelevant but I'm curious. Which device gave this id to the logCat?
B4X:
0123456789ABCDEF
?
Is it a simulator or real one?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…