Bonjour a tous,

j'ouvre ce sujet sur la géolocalisation sous android studio..

je rencontre un souci concernant la liaison entre la bdd et la géolocalisation..

je découvre android studio..

en je fait en ce moment une requête en bdd

dans un listener ce qui fait planter complètement mon application

j'ai ce joli message:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
05-20 21:35:39.720 30654-30667/com.myphone.mute.mutemyphone I/art: Thread[9,tid=30667,WaitingInMainSignalCatcherLoop,Thread*=0x55ac619a40,peer=0x12c00080,"Signal Catcher"]: reacting to signal 3
05-20 21:35:40.100 30654-30667/com.myphone.mute.mutemyphone I/art: Wrote stack traces to '/data/anr/traces.txt'
05-20 21:35:43.410 30654-30674/com.myphone.mute.mutemyphone W/art: Suspending all threads took: 6.135ms
05-20 21:35:43.450 30654-30674/com.myphone.mute.mutemyphone I/art: Background sticky concurrent mark sweep GC freed 266954(9MB) AllocSpace objects, 0(0B) LOS objects, 32% free, 16MB/24MB, paused 7.049ms total 66.457ms
05-20 21:35:52.740 30654-30654/com.myphone.mute.mutemyphone I/art: Can not find class: Landroid/support/v4/view/KeyEventCompat$HoneycombKeyEventVersionImpl;
05-20 21:35:52.740 30654-30654/com.myphone.mute.mutemyphone I/art: Can not find class: Landroid/support/v4/view/KeyEventCompat$EclairKeyEventVersionImpl;
05-20 21:35:52.740 30654-30654/com.myphone.mute.mutemyphone I/art: Can not find class: Landroid/support/v4/view/KeyEventCompat$BaseKeyEventVersionImpl;
05-20 21:35:52.740 30654-30654/com.myphone.mute.mutemyphone I/art: Can not find class: Landroid/support/v4/view/KeyEventCompat$KeyEventVersionImpl;
05-20 21:35:52.740 30654-30654/com.myphone.mute.mutemyphone I/art: Can not find class: Landroid/support/v4/view/KeyEventCompatHoneycomb;
05-20 21:35:56.110 30654-30654/com.myphone.mute.mutemyphone I/Choreographer: Skipped 1750 frames!  The application may be doing too much work on its main thread.
05-20 21:36:06.060 30654-30668/com.myphone.mute.mutemyphone W/art: Suspending all threads took: 14.605ms
je voudrait pouvoir géolocaliser mon utilisateur

a l'approche d'un lieu public et l'avertir a ce moment

je pense ne pas faire de requête en bdd dans le listener.. ce qui allègera le fonctionnement de l'app..

après je n'ai pas d'inspiration..

pouvez-vous me conseiller?

merci.