M madSac Active Member Licensed User Longtime User Feb 5, 2013 #1 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. Code: Copy m.createContactEntry2("test",Null,phones,mails,"string","string","",Null,Null) error is Code: Copy 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
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. Code: Copy m.createContactEntry2("test",Null,phones,mails,"string","string","",Null,Null) error is Code: Copy 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 Feb 5, 2013 #2 The author gave the solution here in Post 9 Upvote 0
M madSac Active Member Licensed User Longtime User Feb 5, 2013 #3 Yes i read that.But will it cause any problem like if another app access that data then it will get an assigned value rather than null as null and "" are different. Check discussion Difference between null and "" Java String - Stack Overflow Upvote 0
Yes i read that.But will it cause any problem like if another app access that data then it will get an assigned value rather than null as null and "" are different. Check discussion Difference between null and "" Java String - Stack Overflow
thedesolatesoul Expert Licensed User Longtime User Feb 5, 2013 #4 madSac said: Yes i read that.But will it cause any problem like if another app access that data then it will get an assigned value rather than null as null and "" are different. Check discussion Difference between null and "" Java String - Stack Overflow Click to expand... It is a bug in the library. Upvote 0
madSac said: Yes i read that.But will it cause any problem like if another app access that data then it will get an assigned value rather than null as null and "" are different. Check discussion Difference between null and "" Java String - Stack Overflow Click to expand... It is a bug in the library.
M madSac Active Member Licensed User Longtime User Feb 5, 2013 #5 This means that there is no way.I will have to continue with this problem. Fine Thank You. Upvote 0
thedesolatesoul Expert Licensed User Longtime User Feb 5, 2013 #6 madSac said: This means that there is no way.I will have to continue with this problem. Click to expand... Unless you write your own library or ask someone to write it for you. Upvote 0
madSac said: This means that there is no way.I will have to continue with this problem. Click to expand... Unless you write your own library or ask someone to write it for you.
mc73 Well-Known Member Licensed User Longtime User Feb 5, 2013 #7 Irrelevant but I'm curious. Which device gave this id to the logCat? Code: Copy 0123456789ABCDEF ? Is it a simulator or real one? Upvote 0
Irrelevant but I'm curious. Which device gave this id to the logCat? Code: Copy 0123456789ABCDEF ? Is it a simulator or real one?
M madSac Active Member Licensed User Longtime User Feb 5, 2013 #8 thedesolatesoul said: Unless you write your own library or ask someone to write it for you. Click to expand... Hmm...i will surely try to make one better.but currenly I don't have much time to play with java. Upvote 0
thedesolatesoul said: Unless you write your own library or ask someone to write it for you. Click to expand... Hmm...i will surely try to make one better.but currenly I don't have much time to play with java.
M madSac Active Member Licensed User Longtime User Feb 5, 2013 #9 mc73 said: Irrelevant but I'm curious. Which device gave this id to the logCat? Code: Copy 0123456789ABCDEF ? Is it a simulator or real one? Click to expand... It is real device.My own phone Upvote 0
mc73 said: Irrelevant but I'm curious. Which device gave this id to the logCat? Code: Copy 0123456789ABCDEF ? Is it a simulator or real one? Click to expand... It is real device.My own phone