IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

API standards et tierces Android Discussion :

Problème affichage Map google


Sujet :

API standards et tierces Android

  1. #1
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Août 2013
    Messages
    40
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Août 2013
    Messages : 40
    Points : 5
    Points
    5
    Par défaut Problème affichage Map google
    Slt a tous !!!

    J'essaye de créer une application sous android qui permet de se géolocaliser par le wifi ou le GPS.

    Pour l'instant je gère uniquement la position par GPS (mais la n'est pas le problème).

    Lorsque je lance mon application sur mon téléphone (Nexus 5) la map google ne s'affiche pas. J'ai le message suivant qui apparait "the provider network is now disabled". (par contre j'ai bien le cadre de la map avec le quadrillage)

    MainActivity.java
    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
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    package com.example.localisation;
     
    import android.location.Location;
    import android.location.LocationListener;
    import android.location.LocationManager;
    import android.location.LocationProvider;
    import android.os.Bundle;
    import android.view.KeyEvent;
    import android.view.Menu;
    import android.widget.Toast;
     
    import com.google.android.maps.GeoPoint;
    import com.google.android.maps.MapActivity;
    import com.google.android.maps.MapController;
    import com.google.android.maps.MapView;
     
    public class MainActivity extends MapActivity implements LocationListener{
     
    	private MapView mapView;
    	private MapController mc;
     
    	private LocationManager lm;
     
    	private double latitude;
    	private double longitude;
    	private double altitude;
    	private float accuracy;
     
    	@Override
    	public void onCreate(Bundle savedInstanceState) {
    		super.onCreate(savedInstanceState);
    		setContentView(R.layout.activity_main);
     
    		mapView = (MapView) this.findViewById(R.id.mapView);
    		mapView.setBuiltInZoomControls(true);
     
    		mc = mapView.getController();
    		mc.setZoom(17);
    	}
     
    	@Override
    	protected void onResume() {
    		super.onResume();
    		lm = (LocationManager) this.getSystemService(LOCATION_SERVICE);
    		if (lm.isProviderEnabled(LocationManager.GPS_PROVIDER))
    			lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 10000, 0,
    					this);
    		lm.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 10000, 0,
    				this);
    	}
     
    	@Override
    	protected void onPause() {
    		super.onPause();
    		lm.removeUpdates(this);
    	}
     
    	@Override
    	protected boolean isRouteDisplayed() {
    		return false;
    	}
     
    	@Override
    	public void onLocationChanged(Location location) {
    		latitude = location.getLatitude();
    		longitude = location.getLongitude();
    		altitude = location.getAltitude();
    		accuracy = location.getAccuracy();
     
    		String msg = String.format(
    				getResources().getString(R.string.new_location), latitude,
    				longitude, altitude, accuracy);
    		Toast.makeText(this, msg, Toast.LENGTH_LONG).show();
     
    		GeoPoint p = new GeoPoint((int) (latitude * 1E6), (int) (longitude * 1E6));
    		mc.animateTo(p);
    		mc.setCenter(p);
    	}
     
    	@Override
    	public void onProviderDisabled(String provider) {
    		String msg = String.format(
    				getResources().getString(R.string.provider_disabled), provider);
    		Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();
    	}
     
    	@Override
    	public void onProviderEnabled(String provider) {
    		String msg = String.format(
    				getResources().getString(R.string.provider_enabled), provider);
    		Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();
    	}
     
    	@Override
    	public void onStatusChanged(String provider, int status, Bundle extras) {
    		String newStatus = "";
    		switch (status) {
    		case LocationProvider.OUT_OF_SERVICE:
    			newStatus = "OUT_OF_SERVICE";
    			break;
    		case LocationProvider.TEMPORARILY_UNAVAILABLE:
    			newStatus = "TEMPORARILY_UNAVAILABLE";
    			break;
    		case LocationProvider.AVAILABLE:
    			newStatus = "AVAILABLE";
    			break;
    		}
    		String msg = String.format(
    				getResources().getString(R.string.provider_disabled), provider,
    				newStatus);
    		Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();
    	}
    }
    activity_main.xml
    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
    <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:paddingBottom="@dimen/activity_vertical_margin"
        android:paddingLeft="@dimen/activity_horizontal_margin"
        android:paddingRight="@dimen/activity_horizontal_margin"
        android:paddingTop="@dimen/activity_vertical_margin"
        tools:context=".MainActivity" >
     
            <com.google.android.maps.MapView
            android:id="@+id/mapView"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:apiKey="AIzaSyA5yiULAFnY2CHN8RlW5Amk1SgKeoel7Uo"
            android:clickable="true"
         />
     
    </RelativeLayout>
    LocalisationManifest.xml
    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
    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.example.localisation"
        android:versionCode="1"
        android:versionName="1.0" >
     
        <uses-sdk
            android:minSdkVersion="8"
            android:targetSdkVersion="19" />
     
        <uses-permission android:name="android.permission.INTERNET" />
        <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
        <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
     
        <application
            android:allowBackup="true"
            android:icon="@drawable/maps"
            android:label="@string/app_name"
            android:theme="@style/AppTheme" >
            <uses-library android:name="com.google.android.maps" />
     
            <activity
                android:name="com.example.localisation.MainActivity"
                android:label="@string/app_name" >
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
     
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
     
            <meta-data
                android:name="com.google.android.maps.v2.API_KEY"
                android:value="AIzaSyA5yiULAFnY2CHN8RlW5Amk1SgKeoel7Uo" />
        </application>
     
    </manifest>
    strings.xml
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    <?xml version="1.0" encoding="utf-8"?>
    <resources>
     
        <string name="app_name">Localisation</string>
        <string name="action_settings">Settings</string>
        <string name="hello_world">Hello world!</string>
        <string name="provider_enabled">The provider %s is now enabled</string>
        <string name="provider_disabled">The provider %s is now disabled</string>
        <string name="provider_new_status">The provider %1$s has now a new status %2$s</string>
        <string name="new_location">New Location : Latitude = %1$s, Longitude = %2$s, Altitude = %3$s avec une précision de %4$s mètres </string>
     
    </resources>
    J'ai bien une ApiKey fourni par google. Je ne comprend pas d'ou viens mon erreur

    Je programme pour une appli sous Android 4.4.2.

    Un peu d'aide de votre part sera la bienvenue, car je ne vois pas comment faire.

    Je previens que je débute en programmation android.

    Merci d'avance

  2. #2
    Modérateur
    Avatar de Hizin
    Homme Profil pro
    Développeur mobile
    Inscrit en
    Février 2010
    Messages
    2 180
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France

    Informations professionnelles :
    Activité : Développeur mobile

    Informations forums :
    Inscription : Février 2010
    Messages : 2 180
    Points : 5 072
    Points
    5 072
    Par défaut
    Ne serais-tu pas en cours avec dsjulien par hasard ? http://www.developpez.net/forums/d14...e-google-maps/

    Tu as exactement le même problème.
    Comment as-tu fait pour obtenir une clef pour ta GMaps ? Celles-ci ne sont plus dispo pour la GMap v1 que tu utilises.
    Pars-tu d'un tutoriel ? Ou d'une application déjà existante ?

    Ps : le RelativeLayout dans ton XML est inutile.
    C'est Android, PAS Androïd, ou Androïde didiou !
    Le premier est un OS, le second est la mauvaise orthographe du troisième, un mot français désignant un robot à forme humaine.

    Membre du comité contre la phrase "ça marche PAS" en titre et/ou explication de problème.

    N'oubliez pas de consulter les FAQ Android et les cours et tutoriels Android

  3. #3
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Août 2013
    Messages
    40
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Août 2013
    Messages : 40
    Points : 5
    Points
    5
    Par défaut
    Merci de ta réponse Hizin !!

    Non je ne suis pas en cours avec dsjulien.

    Effectivement je me suis grandement inspiré d'un tutoriel.

    Pour la clé API je suis allé sur le site de google : https://code.google.com/apis/console...9746266:access

  4. #4
    Modérateur
    Avatar de Hizin
    Homme Profil pro
    Développeur mobile
    Inscrit en
    Février 2010
    Messages
    2 180
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France

    Informations professionnelles :
    Activité : Développeur mobile

    Informations forums :
    Inscription : Février 2010
    Messages : 2 180
    Points : 5 072
    Points
    5 072
    Par défaut
    La console Google donne une clef GMap Api V2. Tu utilises la V1. Mets le tutoriel que tu as utilisé à la poubelle, il ne sert plus à rien, sauf à titre de curiosité.

    Je te suggère plutôt de partir de la documentation officielle : https://developers.google.com/maps/d.../android/start
    C'est Android, PAS Androïd, ou Androïde didiou !
    Le premier est un OS, le second est la mauvaise orthographe du troisième, un mot français désignant un robot à forme humaine.

    Membre du comité contre la phrase "ça marche PAS" en titre et/ou explication de problème.

    N'oubliez pas de consulter les FAQ Android et les cours et tutoriels Android

  5. #5
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Août 2013
    Messages
    40
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Août 2013
    Messages : 40
    Points : 5
    Points
    5
    Par défaut
    Comme tu le suggère je repars avec la doc officielle.

    Comment avoir une clé GMap Api V2 ?

  6. #6
    Modérateur
    Avatar de Hizin
    Homme Profil pro
    Développeur mobile
    Inscrit en
    Février 2010
    Messages
    2 180
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France

    Informations professionnelles :
    Activité : Développeur mobile

    Informations forums :
    Inscription : Février 2010
    Messages : 2 180
    Points : 5 072
    Points
    5 072
    Par défaut
    Comme dit, la console Google que tu as utilisé te permet d'avoir une clef V2 avec le couple certificat signé + package.
    Tu as donc déjà ta clef, et c'était le problème d'ailleurs, puisque tu utilisais une clef GMaps V2 sur une GMaps V1.
    C'est Android, PAS Androïd, ou Androïde didiou !
    Le premier est un OS, le second est la mauvaise orthographe du troisième, un mot français désignant un robot à forme humaine.

    Membre du comité contre la phrase "ça marche PAS" en titre et/ou explication de problème.

    N'oubliez pas de consulter les FAQ Android et les cours et tutoriels Android

  7. #7
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Août 2013
    Messages
    40
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Août 2013
    Messages : 40
    Points : 5
    Points
    5
    Par défaut
    J'ai fait comme dans la doc officiel mais je n'arrive toujours pas a afficher de map.

    Je comprends pas ce qu'il faut faire avec cette histoire de clé et de map v1 ou v2.

  8. #8
    Modérateur
    Avatar de Hizin
    Homme Profil pro
    Développeur mobile
    Inscrit en
    Février 2010
    Messages
    2 180
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France

    Informations professionnelles :
    Activité : Développeur mobile

    Informations forums :
    Inscription : Février 2010
    Messages : 2 180
    Points : 5 072
    Points
    5 072
    Par défaut
    Citation Envoyé par Hizin
    Membre du comité contre la phrase "ça marche PAS" en titre et/ou explication de problème.
    Que se passe-t-il ?

    Pour la V1/V2, c'est très simple à comprendre : MapActivity et MapView étaient la V1, qui est dépréciée depuis 2012 et inutilisable depuis 2013.

    La V2 est ce que nous utilisons a présent, et qui est embarquée dans les Google Play Services. Celle-ci demande plus de boulot pour la mise en place, mais permet de faire plus facilement la majeure partie des choses.
    C'est Android, PAS Androïd, ou Androïde didiou !
    Le premier est un OS, le second est la mauvaise orthographe du troisième, un mot français désignant un robot à forme humaine.

    Membre du comité contre la phrase "ça marche PAS" en titre et/ou explication de problème.

    N'oubliez pas de consulter les FAQ Android et les cours et tutoriels Android

  9. #9
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Août 2013
    Messages
    40
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Août 2013
    Messages : 40
    Points : 5
    Points
    5
    Par défaut
    Slt Hizin !!

    J'ai essayé d'avancer avec les Google Play Service.

    Je les ai installé puis importé dans mon workspace. J'ai aussi ajouter la librairie a mon projet. (propriété -> Android -> Library).

    J'ai par contre un point d'exclamation rouge sur mon projet. (voir en PJ)

    edit : j'ai plus la croix rouge sur le dossier Google Play Service

    Si tu peux me dire d'ou viens mon problème.
    Images attachées Images attachées  

  10. #10
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Août 2013
    Messages
    40
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Août 2013
    Messages : 40
    Points : 5
    Points
    5
    Par défaut
    Bon j'ai réussi a enlever ces point rouge mais je n'arrive pas a compiler l'application. j'ai le message suivant qui apparait : "Android library projects cannot be launched".

  11. #11
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Août 2013
    Messages
    40
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Août 2013
    Messages : 40
    Points : 5
    Points
    5
    Par défaut
    Bon la je ne vois pas ce qui cloche

    Voici mon nouveau code :

    AndroidManifest :
    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
    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.example.localisationindoor"
        android:versionCode="1"
        android:versionName="1.0" >
     
    <uses-sdk
            android:minSdkVersion="11"
            android:targetSdkVersion="17" />
     
        <uses-feature
            android:glEsVersion="0x00020000"
            android:required="true" />
     
        <uses-permission android:name="android.permission.INTERNET" />
        <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
        <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
        <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
     
        <application
            android:allowBackup="true"
            android:icon="@drawable/ic_launcher"
            android:label="@string/app_name"
            android:theme="@style/AppTheme" >
            <uses-library android:name="com.google.android.maps" />
     
            <meta-data
                android:name="com.google.android.maps.v2.API_KEY"
                android:value="AIzaSyCR1quQHfDllOFTdlEYgx6UbzYs3qt8t-4" />
            <meta-data
                android:name="com.google.android.gms.version"
                android:value="@integer/google_play_services_version" />
     
            <activity
                android:name="MapViewActivite"
                android:label="@string/app_name" >
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
     
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
        </application>
     
    </manifest>
    .xml :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    <?xml version="1.0" encoding="utf-8"?>
    <fragment xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/map"
        android:name="com.google.android.gms.maps.MapFragment"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />
    MainActivity :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    package com.example.localisationindoor;
     
    import android.app.Activity;
    import android.os.Bundle;
     
    public class MainActivity extends Activity {
     
    	@Override
    	protected void onCreate(Bundle savedInstanceState) {
    		super.onCreate(savedInstanceState);
    		setContentView(R.layout.activity_main);
    	} 
     
    }
    Pour rappel j'ai bien installé le package Google Play Services (Rev. 14) que j'ai importé a mon projet

    J'ai suivi le tuto officiel google. Mon appli crash des que je la lance

  12. #12
    Modérateur
    Avatar de Hizin
    Homme Profil pro
    Développeur mobile
    Inscrit en
    Février 2010
    Messages
    2 180
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France

    Informations professionnelles :
    Activité : Développeur mobile

    Informations forums :
    Inscription : Février 2010
    Messages : 2 180
    Points : 5 072
    Points
    5 072
    Par défaut
    Et comme d'hab', quelles sont les informations du crash ?

    Pour la configuration Eclipse, je ne pourrai pas t'aider, n'utilisant plus cet IDE depuis des lustres.
    Tu dois avoir deux choses par contre : un lien vers le projet Google Play Services qui se trouve dans android-sdk/extra/google/google_play_services/libproject/google-play-services_lib ET un lien vers google-play-services.jar
    C'est Android, PAS Androïd, ou Androïde didiou !
    Le premier est un OS, le second est la mauvaise orthographe du troisième, un mot français désignant un robot à forme humaine.

    Membre du comité contre la phrase "ça marche PAS" en titre et/ou explication de problème.

    N'oubliez pas de consulter les FAQ Android et les cours et tutoriels Android

  13. #13
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Août 2013
    Messages
    40
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Août 2013
    Messages : 40
    Points : 5
    Points
    5
    Par défaut
    J'ai bien les liens pointant vers le projet Google Play Services.

    Les informations du crash sont elles contenues dans les LogCats ?

  14. #14
    Modérateur
    Avatar de Hizin
    Homme Profil pro
    Développeur mobile
    Inscrit en
    Février 2010
    Messages
    2 180
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France

    Informations professionnelles :
    Activité : Développeur mobile

    Informations forums :
    Inscription : Février 2010
    Messages : 2 180
    Points : 5 072
    Points
    5 072
    Par défaut
    Oui.
    La console te permet de voir les étapes d'installation, le LogCat contient toutes les traces du terminal (attention, il y en a beaucoup).

    Je préfère insister histoire d'être sûr : par "les liens", c'est bien le JAR et le projet ?
    C'est Android, PAS Androïd, ou Androïde didiou !
    Le premier est un OS, le second est la mauvaise orthographe du troisième, un mot français désignant un robot à forme humaine.

    Membre du comité contre la phrase "ça marche PAS" en titre et/ou explication de problème.

    N'oubliez pas de consulter les FAQ Android et les cours et tutoriels Android

  15. #15
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Août 2013
    Messages
    40
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Août 2013
    Messages : 40
    Points : 5
    Points
    5
    Par défaut
    Voici les logs :

    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
    02-07 09:10:32.343: D/AndroidRuntime(28196): Shutting down VM
    02-07 09:10:32.343: W/dalvikvm(28196): threadid=1: thread exiting with uncaught exception (group=0x415b2ba8)
    02-07 09:10:32.343: E/AndroidRuntime(28196): FATAL EXCEPTION: main
    02-07 09:10:32.343: E/AndroidRuntime(28196): Process: com.example.localisationindoor, PID: 28196
    02-07 09:10:32.343: E/AndroidRuntime(28196): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.localisationindoor/com.example.localisationindoor.MapViewActivite}: java.lang.ClassNotFoundException: Didn't find class "com.example.localisationindoor.MapViewActivite" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.example.localisationindoor-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.localisationindoor-1, /vendor/lib, /system/lib]]
    02-07 09:10:32.343: E/AndroidRuntime(28196): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2121)
    02-07 09:10:32.343: E/AndroidRuntime(28196): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
    02-07 09:10:32.343: E/AndroidRuntime(28196): 	at android.app.ActivityThread.access$800(ActivityThread.java:135)
    02-07 09:10:32.343: E/AndroidRuntime(28196): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
    02-07 09:10:32.343: E/AndroidRuntime(28196): 	at android.os.Handler.dispatchMessage(Handler.java:102)
    02-07 09:10:32.343: E/AndroidRuntime(28196): 	at android.os.Looper.loop(Looper.java:136)
    02-07 09:10:32.343: E/AndroidRuntime(28196): 	at android.app.ActivityThread.main(ActivityThread.java:5017)
    02-07 09:10:32.343: E/AndroidRuntime(28196): 	at java.lang.reflect.Method.invokeNative(Native Method)
    02-07 09:10:32.343: E/AndroidRuntime(28196): 	at java.lang.reflect.Method.invoke(Method.java:515)
    02-07 09:10:32.343: E/AndroidRuntime(28196): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
    02-07 09:10:32.343: E/AndroidRuntime(28196): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
    02-07 09:10:32.343: E/AndroidRuntime(28196): 	at dalvik.system.NativeStart.main(Native Method)
    02-07 09:10:32.343: E/AndroidRuntime(28196): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.localisationindoor.MapViewActivite" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.example.localisationindoor-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.localisationindoor-1, /vendor/lib, /system/lib]]
    02-07 09:10:32.343: E/AndroidRuntime(28196): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    02-07 09:10:32.343: E/AndroidRuntime(28196): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
    02-07 09:10:32.343: E/AndroidRuntime(28196): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
    02-07 09:10:32.343: E/AndroidRuntime(28196): 	at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
    02-07 09:10:32.343: E/AndroidRuntime(28196): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112)
    02-07 09:10:32.343: E/AndroidRuntime(28196): 	... 11 more
    Par contre je n'arrive pas a comprendre ce qu'il y a de marqué dans les logs.

  16. #16
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Août 2013
    Messages
    40
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Août 2013
    Messages : 40
    Points : 5
    Points
    5
    Par défaut
    Autre logs :

    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
    02-07 09:18:18.263: D/dalvikvm(4728): GC_CONCURRENT freed 36K, 9% free 17594K/19272K, paused 2ms+1ms, total 12ms
    02-07 09:18:25.453: I/ActivityManager(766): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.localisationindoor/.MapViewActivite} from pid 1050
    02-07 09:18:25.523: D/dalvikvm(766): GC_FOR_ALLOC freed 3142K, 18% free 39221K/47820K, paused 74ms, total 75ms
    02-07 09:18:25.543: D/dalvikvm(29040): Late-enabling CheckJNI
    02-07 09:18:25.553: I/ActivityManager(766): Start proc com.example.localisationindoor for activity com.example.localisationindoor/.MapViewActivite: pid=29040 uid=10119 gids={50119, 3003, 1028, 1015}
    02-07 09:18:25.603: D/AndroidRuntime(29040): Shutting down VM
    02-07 09:18:25.603: W/dalvikvm(29040): threadid=1: thread exiting with uncaught exception (group=0x415b2ba8)
    02-07 09:18:25.603: E/AndroidRuntime(29040): FATAL EXCEPTION: main
    02-07 09:18:25.603: E/AndroidRuntime(29040): Process: com.example.localisationindoor, PID: 29040
    02-07 09:18:25.603: E/AndroidRuntime(29040): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.localisationindoor/com.example.localisationindoor.MapViewActivite}: java.lang.ClassNotFoundException: Didn't find class "com.example.localisationindoor.MapViewActivite" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.example.localisationindoor-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.localisationindoor-1, /vendor/lib, /system/lib]]
    02-07 09:18:25.603: E/AndroidRuntime(29040): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2121)
    02-07 09:18:25.603: E/AndroidRuntime(29040): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
    02-07 09:18:25.603: E/AndroidRuntime(29040): 	at android.app.ActivityThread.access$800(ActivityThread.java:135)
    02-07 09:18:25.603: E/AndroidRuntime(29040): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
    02-07 09:18:25.603: E/AndroidRuntime(29040): 	at android.os.Handler.dispatchMessage(Handler.java:102)
    02-07 09:18:25.603: E/AndroidRuntime(29040): 	at android.os.Looper.loop(Looper.java:136)
    02-07 09:18:25.603: E/AndroidRuntime(29040): 	at android.app.ActivityThread.main(ActivityThread.java:5017)
    02-07 09:18:25.603: E/AndroidRuntime(29040): 	at java.lang.reflect.Method.invokeNative(Native Method)
    02-07 09:18:25.603: E/AndroidRuntime(29040): 	at java.lang.reflect.Method.invoke(Method.java:515)
    02-07 09:18:25.603: E/AndroidRuntime(29040): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
    02-07 09:18:25.603: E/AndroidRuntime(29040): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
    02-07 09:18:25.603: E/AndroidRuntime(29040): 	at dalvik.system.NativeStart.main(Native Method)
    02-07 09:18:25.603: E/AndroidRuntime(29040): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.example.localisationindoor.MapViewActivite" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar", zip file "/data/app/com.example.localisationindoor-1.apk"],nativeLibraryDirectories=[/data/app-lib/com.example.localisationindoor-1, /vendor/lib, /system/lib]]
    02-07 09:18:25.603: E/AndroidRuntime(29040): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
    02-07 09:18:25.603: E/AndroidRuntime(29040): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
    02-07 09:18:25.603: E/AndroidRuntime(29040): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
    02-07 09:18:25.603: E/AndroidRuntime(29040): 	at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
    02-07 09:18:25.603: E/AndroidRuntime(29040): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2112)
    02-07 09:18:25.603: E/AndroidRuntime(29040): 	... 11 more
    02-07 09:18:25.603: W/ActivityManager(766):   Force finishing activity com.example.localisationindoor/.MapViewActivite
    02-07 09:18:25.683: D/dalvikvm(766): GC_FOR_ALLOC freed 1160K, 19% free 39098K/47820K, paused 64ms, total 64ms
    02-07 09:18:25.763: D/dalvikvm(766): GC_FOR_ALLOC freed 858K, 19% free 39080K/47820K, paused 72ms, total 72ms
    02-07 09:18:26.263: W/ActivityManager(766): Activity pause timeout for ActivityRecord{42e63028 u0 com.example.localisationindoor/.MapViewActivite t26 f}
    02-07 09:18:28.283: I/Process(29040): Sending signal. PID: 29040 SIG: 9
    02-07 09:18:28.293: W/InputMethodManagerService(766): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@42f444c8 attribute=null, token = android.os.BinderProxy@42dd4c68
    02-07 09:18:28.293: I/ActivityManager(766): Process com.example.localisationindoor (pid 29040) has died.
    02-07 09:18:28.463: D/dalvikvm(4728): GC_CONCURRENT freed 768K, 11% free 17212K/19160K, paused 2ms+0ms, total 13ms
    02-07 09:18:28.463: D/dalvikvm(4728): WAIT_FOR_CONCURRENT_GC blocked 11ms
    02-07 09:18:28.493: D/dalvikvm(4728): GC_CONCURRENT freed 36K, 9% free 17595K/19160K, paused 1ms+5ms, total 19ms
    02-07 09:18:28.513: E/NotificationService(766): Not posting notification with icon==0: Notification(pri=2 contentView=null vibrate=null sound=null defaults=0x0 flags=0x1 kind=[null])
    02-07 09:18:28.513: E/NotificationService(766): WARNING: In a future release this will crash the app: com.rageconsulting.android.lightflowlite
    02-07 09:18:28.513: E/NotificationService(766): Not posting notification with icon==0: Notification(pri=2 contentView=null vibrate=null sound=null defaults=0x0 flags=0x1 kind=[null])
    02-07 09:18:28.513: E/NotificationService(766): WARNING: In a future release this will crash the app: com.rageconsulting.android.lightflowlite
    02-07 09:18:28.533: D/dalvikvm(1050): GC_CONCURRENT freed 6412K, 23% free 35938K/46080K, paused 1ms+9ms, total 45ms
    02-07 09:18:28.533: D/dalvikvm(1050): WAIT_FOR_CONCURRENT_GC blocked 44ms

  17. #17
    Modérateur
    Avatar de Hizin
    Homme Profil pro
    Développeur mobile
    Inscrit en
    Février 2010
    Messages
    2 180
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France

    Informations professionnelles :
    Activité : Développeur mobile

    Informations forums :
    Inscription : Février 2010
    Messages : 2 180
    Points : 5 072
    Points
    5 072
    Par défaut
    Pas encore vu celle-là tient.

    Le message indique qu'il ne trouve pas la classe MapViewActivite du package com.example.localisationindoor.
    Mais il a l'air de la chercher dans le JAR des Google Play Services, ce qui est déconcertant.
    MapViewActivite est à toi, j'imagine ?
    Je me demande... est-ce que les Google Play Services sont installés sur ton terminal de test ? Pour le savoir, va dans les options -> applications -> toute. Si tu ne les vois pas, ils ne sont pas installés et pourrait peut-être expliquer l'erreur.
    C'est Android, PAS Androïd, ou Androïde didiou !
    Le premier est un OS, le second est la mauvaise orthographe du troisième, un mot français désignant un robot à forme humaine.

    Membre du comité contre la phrase "ça marche PAS" en titre et/ou explication de problème.

    N'oubliez pas de consulter les FAQ Android et les cours et tutoriels Android

  18. #18
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Août 2013
    Messages
    40
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Août 2013
    Messages : 40
    Points : 5
    Points
    5
    Par défaut
    Effectivement je n'ai pas les google play services d'installé sur mon nexus 5

    Je les installent et j te tiens au courant si y a des ameliorations

  19. #19
    Futur Membre du Club
    Homme Profil pro
    Étudiant
    Inscrit en
    Août 2013
    Messages
    40
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Étudiant
    Secteur : High Tech - Électronique et micro-électronique

    Informations forums :
    Inscription : Août 2013
    Messages : 40
    Points : 5
    Points
    5
    Par défaut
    Au faite comment on installe les google play services ??

  20. #20
    Modérateur
    Avatar de Hizin
    Homme Profil pro
    Développeur mobile
    Inscrit en
    Février 2010
    Messages
    2 180
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 35
    Localisation : France

    Informations professionnelles :
    Activité : Développeur mobile

    Informations forums :
    Inscription : Février 2010
    Messages : 2 180
    Points : 5 072
    Points
    5 072
    Par défaut
    Ils sont normalement sensés s'installer tout seul après un temps. >Tu peux potentiellement tenter une recherche sur Google Play.
    Si tu ne les as pas, cela signifie que tu tests sur un émulateur (je ne sais pas s'ils les ont), ou sur une ROM custom ne possédant pas Google Play.
    C'est Android, PAS Androïd, ou Androïde didiou !
    Le premier est un OS, le second est la mauvaise orthographe du troisième, un mot français désignant un robot à forme humaine.

    Membre du comité contre la phrase "ça marche PAS" en titre et/ou explication de problème.

    N'oubliez pas de consulter les FAQ Android et les cours et tutoriels Android

Discussions similaires

  1. problème affichage google Map android V2
    Par mayssa_salhi dans le forum API standards et tierces
    Réponses: 1
    Dernier message: 22/02/2014, 10h45
  2. Problème d'affichage carte Google Maps
    Par dsjulien dans le forum API standards et tierces
    Réponses: 1
    Dernier message: 01/02/2014, 21h13
  3. Problém affichage maps view android
    Par othman22222 dans le forum Composants graphiques
    Réponses: 1
    Dernier message: 03/06/2013, 10h23
  4. Problème affichage map V2
    Par janyoura dans le forum Android
    Réponses: 3
    Dernier message: 28/03/2013, 18h47
  5. [IE 8] Problème affichage Google Maps
    Par Sekigawa dans le forum IE
    Réponses: 3
    Dernier message: 08/09/2010, 14h59

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo