Android Question App stop work without logs

Douglas Farias

Expert
Licensed User
Longtime User
Good morning to all!
how can i get all logs of my app?
i m using a real device and not emulator to run, is on debug and the filter is unchecked

i really dont know what can i make to see this error, the app works normal if u press at continue (wait)
if press ok app close, but no logs, no errors this is very stranged

1.jpg


LogCat connected to: B4A-Bridge: motorola XT1033-359321054369100
--------- beginning of /dev/log/main
** Activity (telaprincipal) Pause, UserClosed = false **
sending message to waiting queue (OnActivityResult)
running waiting messages (1)
** Activity (telaprincipal) Resume **
** Activity (telaprincipal) Pause, UserClosed = false **
** Activity (telaprincipal) Resume **
** Activity (main) Resume **
Installing file.
GC_CONCURRENT freed 2040K, 46% free 9418K/17252K, paused 2ms+2ms, total 19ms
GC_CONCURRENT freed 2005K, 46% free 9410K/17252K, paused 2ms+1ms, total 15ms
** Activity (main) Pause, UserClosed = false **
PackageAdded: package:click.fight.valow
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
sending message to waiting queue of uninitialized activity (submitjob)
** Service (httputils2service) Create **
ConnectionResult{statusCode=SIGN_IN_REQUIRED, resolution=PendingIntent{42a9dbe0: android.os.BinderProxy@42a9db80}}
** Activity (main) Pause, UserClosed = false **
** Activity (telaprincipal) Create, isFirst = true **
** Activity (telaprincipal) Resume **
** Activity (telaprincipal) Pause, UserClosed = false **

what can i make to see where is the erro?
 

sorex

Expert
Licensed User
Longtime User
seem to be this "app is not responding. [Wait] [Force close]" thingy.

are you having a loop that takes too long?
 
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
i put on all lops the doevents
can is the my main ?
i dont use the main for app, i use only to login later login sucess go to another activity, the profile activity
 
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
When start the activity profile
can is this?

this make download of all user photos

B4X:
Case "jobchecafotos" 'RESPOSTA EM JSON DA JOB CHECA FOTOS
Try
Dim parser As JSONParser
parser.Initialize(Job.GetString)
Dim root As Map = parser.NextObject

'SE RESPOSTAR IGUAL FALSE RETORNA
Dim Success As String = root.Get("Success")
If Success = "false" Then Return


'SE TIVER FOTOS NAO ENVIADAS EXECUTA O LOOP ABAIXO
'LISTA LOOP DE IMAGENS NÃO ENVIADAS COLOCANDO ID E URL REAL EM SQL LOCAL
Dim NotSent As Map = root.Get("NotSent")
Dim Has As String = NotSent.Get("Has")
If Has = "true" Then 'FAZ CHECAGEM SE TEM OU NÃO FOTOS VINDAS NO JSON
Dim Amount As Int = NotSent.Get("Amount") 'PEGA QUANTIDADE DE FOTOS VINDAS
Dim s(Amount) As String
Dim urls, Id As String
Dim i As Int
Dim Thumbnail1 As List = NotSent.Get("Thumbnails")
For Each colThumbnails As Map In Thumbnail1
GridView.ClearMemoryCache 'IMPORTANTE LIMPA CACHE DA MEMORIA INTERNA
GridView.ClearDiskCache 'IMPORTANTE LIMPA CACHE DO SD EXTERNO
GridView.ClearCache 'IMPORTANTE LIMPA CACHE DO SD EXTERNO
urls = colThumbnails.Get("Url")
Id = colThumbnails.Get("PhotoID")
s(i) = urls
i = i + 1
kv.putsimple("imgnurl"&i,urls.Replace("Thumbnails" , "Resamplings")) 'SALVA LOCAL IMG URL NÃO ENVIADAS
kv.putsimple("imgnid"&i, Id) 'SALVA LOCAL O ID DA FOTO
Next
GridView.ShowFromWeb(s,False) 'BAIXA NO GRIDVIEW IMAGENS
DoEvents
End If


'SE TIVER FOTOS ENVIADAS EXECUTA O LOOP ABAIXO
'LISTA LOOP DE IMAGENS ENVIADAS COLOCANDO ID E URL DA THUMBNAIL NO SQL LOCAL
Dim Sent2 As Map = root.Get("Sent")
Dim Has2 As String = Sent2.Get("Has")
If Has2 = "true" Then 'FAZ CHECAGEM SE TEM OU NÃO FOTOS VINDAS NO JSON
Dim Amount2 As Int = Sent2.Get("Amount") 'PEGA QUANTIDADE VINDA DE FOTOS
Dim s2(Amount2) As String
Dim UrlS2, id2 As String
Dim i2 As Int
Dim Thumbnail2 As List = Sent2.Get("Thumbnails")
For Each colThumbnails2 As Map In Thumbnail2
GridView2.ClearMemoryCache 'IMPORTANTE LIMPA CACHE DA MEMORIA INTERNA
GridView2.ClearDiskCache 'IMPORTANTE LIMPA CACHE DO SD EXTERNO
GridView2.ClearCache 'IMPORTANTE LIMPA CACHE DO SD EXTERNO
UrlS2 = colThumbnails2.Get("Url")
id2 = colThumbnails2.Get("PhotoID")
s2(i2) = UrlS2
i2 = i2 + 1
kv.putsimple("imgeurl"&i2,UrlS2) 'SALVA URL DO THUMBNAIL DA IMG ENVIADA, QTD CONFORME O LOOP....
kv.putsimple("imgeid"&i2, id2) 'SALVA ID DAS IMAGENS ENVIADAS PARA FAZER REQUEST DE INFORMAÇÕES DEPOIS....
Next
GridView2.ShowFromWeb(s2,False)
DoEvents
End If
 
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
Look this very very strange
when i press ok show me this but dont show any log error o_O
i think is facebook lib can is?



2.jpg
 
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
thats strange, i have added the
pw.KeepAlive(True)
on resume and app stoped to give this error o_O

all class and activity is normal at line 22, no break points and no erros,
i have added try and catch on my all app.
 
Upvote 0
Top