Salut à tous!

Je suis entrain de faire une application qui récupère des ininfo de localisation sur un serveur. Et grâce au info sur le serveur je fais une navigation gps vers les coordonnées latitude et longitude en utilisation l'intent de google map
http://developer.android.com/guide/a...p-intents.html

Et sur le serveur la position de l'élément se met a jour chaque minute et j'aimerais donc savoir si c'était possible de mettre aussi a jour la destination de l'activité google map sans que l'utilisateur n'est a faire de manipulation?!

Car dans le cas actuel de l'application si l'utilisateur veut suivre l'élément il doit revenir sur mon activité et recliquer sur le bouton qui relance une nouvelle navigation vers les nouvelles coordonnées.
J'espère avoir été assez clair.

Source du code pour ouvrir l'intent:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
	public void startIntentToGoogleMap(LatLng latlng, String labelTo)
	{
 
		 String uri = String.format(Locale.FRENCH, "http://maps.google.com/maps?&daddr=%f,%f (%s)", latlng.latitude, latlng.longitude, labelTo);
 
	        Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
	        intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity");
	        try
	        {
	            startActivity(intent);
	        }
	        catch(ActivityNotFoundException ex)
	        {
	            try
	            {
	                Intent unrestrictedIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
	                startActivity(unrestrictedIntent);
	            }
	            catch(ActivityNotFoundException innerEx)
	            {
	                Toast.makeText(this, "Please install a maps application", Toast.LENGTH_LONG).show();
	            }
	        }
	}
 
	public void startIntentToGoogleStreeView(LatLng latlng, String labelTo)
	{
 
 
		 	Intent intent = new Intent(android.content.Intent.ACTION_VIEW,Uri.parse("google.streetview:cbll="+ latlng.latitude+","+latlng.longitude+"&cbp=1,99.56,,1,1&mz=21"));
 
 
 
	        intent.setClassName("com.google.android.apps.maps", "com.google.android.maps.MapsActivity");
	        try
	        {
	            startActivity(intent);
	        }
	        catch(ActivityNotFoundException ex)
	        {
	            try
	            {
	            	String uri = String.format(Locale.ENGLISH, "http://maps.google.com/maps?&daddr=%f,%f (%s)", latlng.latitude, latlng.longitude, labelTo);
	                Intent unrestrictedIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(uri));
	                startActivity(unrestrictedIntent);
	            }
	            catch(ActivityNotFoundException innerEx)
	            {
	                Toast.makeText(this, "Please install a maps application", Toast.LENGTH_LONG).show();
	            }
	        }
	}
Merci d'avance