Error from Google Play (ANR Broadcast of Intent)

thewavemaster

Member
Licensed User
Longtime User
My app SMS2Speech seems to work...I already presented the app to the b4a community.,

But now I got an error from Google Play. The user used an ALCATEL ONE TOUCH 985N

following error log:

ANR Broadcast of Intent { act=android.provider.Telephony.SMS_RECEIVED (has extras) }


DALVIK THREADS:
(mutexes: tll=0 tsl=0 tscl=0 ghl=0 hwl=0 hwll=0)
"main" prio=5 tid=1 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x4002a310 self=0xcf68
| sysTid=14008 nice=0 sched=0/0 cgrp=[n/a] handle=-1345006528
| schedstat=( 5651532397 5788448586 11798 )
at android.os.BinderProxy.transact(Native Method)
at android.content.ContentProviderProxy.bulkQueryInternal(ContentProviderNative.java:359)
at android.content.ContentProviderProxy.query(ContentProviderNative.java:397)
at android.content.ContentResolver.query(ContentResolver.java:293)
at anywheresoftware.b4a.phone.Contacts2Wrapper$Contact2.GetPhones(Contacts2Wrapper.java:221)
at sms.speech.speaker._refreschkontakts(speaker.java:210)
at sms.speech.speaker._nachricht_messagereceived(speaker.java:130)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:538)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:165)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:149)
at anywheresoftware.b4a.phone.PhoneEvents$SMSInterceptor$1.onReceive(PhoneEvents.java:362)
at android.app.LoadedApk$ReceiverDispatcher$Args.run(LoadedApk.java:740)
at android.os.Handler.handleCallback(Handler.java:618)
at android.os.Handler.dispatchMessage(Handler.java:123)
at android.os.Looper.loop(SourceFile:351)
at android.app.ActivityThread.main(ActivityThread.java:3833)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:538)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:659)
at dalvik.system.NativeStart.main(Native Method)

"Binder Thread #3" prio=5 tid=10 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x405e9a20 self=0x3d73d0
| sysTid=14400 nice=0 sched=0/0 cgrp=[n/a] handle=3830984
| schedstat=( 8444730 44791194 102 )
at dalvik.system.NativeStart.run(Native Method)

"pool-2-thread-3" daemon prio=5 tid=9 TIMED_WAIT
| group="main" sCount=1 dsCount=0 obj=0x40623630 self=0x325ab8
| sysTid=14380 nice=0 sched=0/0 cgrp=[n/a] handle=1728896
| schedstat=( 852884 26966115 13 )
at java.lang.Object.wait(Native Method)
- waiting on <0x4066b900> (a java.lang.VMThread)
at java.lang.Thread.parkFor(Thread.java:1460)
at java.lang.LangAccessImpl.parkFor(LangAccessImpl.java:79)
at sun.misc.Unsafe.park(Unsafe.java:368)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:228)
at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:460)
at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:359)
at java.util.concurrent.SynchronousQueue.poll(SynchronousQueue.java:910)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1052)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:612)
at java.lang.Thread.run(Thread.java:1052)

"http3" prio=10 tid=16 WAIT
| group="main" sCount=1 dsCount=0 obj=0x40539020 self=0x2c18e8
| sysTid=14041 nice=1 sched=0/0 cgrp=[n/a] handle=2795144
| schedstat=( 10927500 1498000 17 )
at java.lang.Object.wait(Native Method)
- waiting on <0x40580980> (a android.net.http.RequestQueue)
at java.lang.Object.wait(Object.java:389)
at android.net.http.ConnectionThread.run(ConnectionThread.java:129)

"http2" prio=10 tid=15 WAIT
| group="main" sCount=1 dsCount=0 obj=0x405389b0 self=0x2ab258
| sysTid=14040 nice=1 sched=0/0 cgrp=[n/a] handle=2798520
| schedstat=( 16517075 2912999 62 )
at java.lang.Object.wait(Native Method)
- waiting on <0x40580980> (a android.net.http.RequestQueue)
at java.lang.Object.wait(Object.java:389)
at android.net.http.ConnectionThread.run(ConnectionThread.java:129)

"http1" prio=10 tid=14 WAIT
| group="main" sCount=1 dsCount=0 obj=0x4052feb0 self=0x2ab120
| sysTid=14039 nice=1 sched=0/0 cgrp=[n/a] handle=2794144
| schedstat=( 15673921 18180193 27 )
at java.lang.Object.wait(Native Method)
- waiting on <0x40580980> (a android.net.http.RequestQueue)
at java.lang.Object.wait(Object.java:389)
at android.net.http.ConnectionThread.run(ConnectionThread.java:129)

"http0" prio=10 tid=13 WAIT
| group="main" sCount=1 dsCount=0 obj=0x40525a80 self=0x2a9d60
| sysTid=14038 nice=1 sched=0/0 cgrp=[n/a] handle=2794080
| schedstat=( 36926378 39001233 134 )
at java.lang.Object.wait(Native Method)
- waiting on <0x40580980> (a android.net.http.RequestQueue)
at java.lang.Object.wait(Object.java:389)
at android.net.http.ConnectionThread.run(ConnectionThread.java:129)

"CookieSyncManager" prio=10 tid=12 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x405e54d8 self=0x26db88
| sysTid=14037 nice=10 sched=0/0 cgrp=[n/a] handle=2545640
| schedstat=( 835268 8882961 6 )
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:148)
at android.os.Looper.loop(SourceFile:330)
at android.webkit.WebSyncManager.run(WebSyncManager.java:121)
at android.webkit.CookieSyncManager.run(CookieSyncManager.java:92)
at java.lang.Thread.run(Thread.java:1052)

"WebViewWorkerThread" prio=10 tid=11 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x405e3678 self=0x26bde8
| sysTid=14034 nice=1 sched=0/0 cgrp=[n/a] handle=2535120
| schedstat=( 159894347 221831390 629 )
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:148)
at android.os.Looper.loop(SourceFile:330)
at android.os.HandlerThread.run(HandlerThread.java:91)

"WebViewCoreThread" prio=10 tid=8 SUSPENDED
| group="main" sCount=1 dsCount=0 obj=0x40596308 self=0x1ab6f8
| sysTid=14021 nice=0 sched=0/0 cgrp=[n/a] handle=1751088
| schedstat=( 21336723441 10097609636 18198 )
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:148)
at android.os.Looper.loop(SourceFile:330)
at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:691)
at java.lang.Thread.run(Thread.java:1052)

"Binder Thread #2" prio=5 tid=7 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x4051ecc8 self=0x12d490
| sysTid=14014 nice=0 sched=0/0 cgrp=[n/a] handle=1447864
| schedstat=( 25264152 121106458 264 )
at dalvik.system.NativeStart.run(Native Method)

"Binder Thread #1" prio=5 tid=6 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x4051d7c8 self=0x15d388
| sysTid=14013 nice=0 sched=0/0 cgrp=[n/a] handle=1720272
| schedstat=( 28492919 104907510 270 )
at dalvik.system.NativeStart.run(Native Method)

"Compiler" daemon prio=5 tid=5 VMWAIT
| group="system" sCount=1 dsCount=0 obj=0x4051a510 self=0x15d250
| sysTid=14012 nice=0 sched=0/0 cgrp=[n/a] handle=1717824
| schedstat=( 274050109 392975164 1269 )
at dalvik.system.NativeStart.run(Native Method)

"Signal Catcher" daemon prio=5 tid=4 RUNNABLE
| group="system" sCount=0 dsCount=0 obj=0x4051a450 self=0x158d40
| sysTid=14011 nice=0 sched=0/0 cgrp=[n/a] handle=1715496
| schedstat=( 10278497 36337731 53 )
at dalvik.system.NativeStart.run(Native Method)

"GC" daemon prio=5 tid=3 VMWAIT
| group="system" sCount=1 dsCount=0 obj=0x4051a3a8 self=0x14b8f8
| sysTid=14010 nice=0 sched=0/0 cgrp=[n/a] handle=1715224
| schedstat=( 454652726 757343039 538 )
at dalvik.system.NativeStart.run(Native Method)

"HeapWorker" daemon prio=5 tid=2 VMWAIT
| group="system" sCount=1 dsCount=0 obj=0x4051a2f0 self=0x1d5430
| sysTid=14009 nice=0 sched=0/0 cgrp=[n/a] handle=1870664
| schedstat=( 238405195 383711427 184 )
at dalvik.system.NativeStart.run(Native Method)

And I have no idea what this means? Im using the TTS Engine and the SMS Interceptor in my app...

Any ideas?
 

thewavemaster

Member
Licensed User
Longtime User
here it is

Here it is:


Sub RefreschKontakts(gesuchtenummer As String)
Dim Cname As String
Dim Cname2 As String
Dim CTEL As String
Dim CTEL2 As String

If gesuchtenummer.SubString2(0,1) = "+" Then
gesuchtenummer = "0" & gesuchtenummer.SubString(3)
End If

Dim Contacts2 As Contacts2
Dim listOfContacts As List
listOfContacts = Contacts2.GetAll(True,False)

For i = 0 To listOfContacts.Size - 1
Dim Contact As Contact
Contact = listOfContacts.Get(i)
Dim phones As Map
phones = Contact.GetPhones
Cname = Contact.Name
CTEL = Contact.PhoneNumber
CTEL = CTEL.Replace("-","")

If CTEL.Length > 1 Then
If CTEL.SubString2(0,1) = "+" Then
CTEL = "0" & CTEL.SubString(3)
End If
End If
If CTEL = gesuchtenummer Then Return Cname
Next



End Sub
 
Upvote 0

thewavemaster

Member
Licensed User
Longtime User
the task of this sub is to look in the contacts if there is already an contact with the given number.

it also "cleans" the number from the international number like +49 or 0049...
 
Upvote 0
Top