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 :

Afficher les périphiques bluetooth disponibles.


Sujet :

API standards et tierces Android

  1. #21
    Membre habitué
    Homme Profil pro
    Consultant informatique
    Inscrit en
    Mars 2016
    Messages
    80
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Espagne

    Informations professionnelles :
    Activité : Consultant informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mars 2016
    Messages : 80
    Points : 176
    Points
    176
    Par défaut
    hummm la stackstrace, c'est le log
    Normalement quand ton appli s'arrête elle crache du log.

    Sinon mets toi en mode debug et met un point d'arret dans le catch du createBond().
    Et après tu regardes la valeur de e et tu la copies

  2. #22
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Mars 2016
    Messages
    61
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 29
    Localisation : France, Territoire de Belfort (Franche Comté)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2016
    Messages : 61
    Points : 17
    Points
    17
    Par défaut
    Ah oui oui je saisi mieux la ! Fatal exception ; adresse bluetooth invalide à ce que j'ai pu comprendre, je t'envoie sa dans 5 petites minutes Merci !

  3. #23
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Mars 2016
    Messages
    61
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 29
    Localisation : France, Territoire de Belfort (Franche Comté)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2016
    Messages : 61
    Points : 17
    Points
    17
    Par défaut
    Donc voilà le log

    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
    E: FATAL EXCEPTION: main
       Process: com.locateit.antholife.locateit, PID: 9559
       java.lang.IllegalArgumentException: 0
       14:89:FD:E1:26:1F is not a valid Bluetooth address
           at android.bluetooth.BluetoothDevice.<init>(BluetoothDevice.java:881)
           at android.bluetooth.BluetoothAdapter.getRemoteDevice(BluetoothAdapter.java:619)
           at com.locateit.antholife.locateit.Bluetooth$2.onItemClick(Bluetooth.java:61)
           at android.widget.AdapterView.performItemClick(AdapterView.java:345)
           at android.widget.AbsListView.performItemClick(AbsListView.java:1547)
           at android.widget.AbsListView$PerformClick.run(AbsListView.java:3821)
           at android.widget.AbsListView$3.run(AbsListView.java:5841)
           at android.os.Handler.handleCallback(Handler.java:739)
           at android.os.Handler.dispatchMessage(Handler.java:95)
           at android.os.Looper.loop(Looper.java:158)
           at android.app.ActivityThread.main(ActivityThread.java:7229)
           at java.lang.reflect.Method.invoke(Native Method)
           at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
           at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:117)

  4. #24
    Membre habitué
    Homme Profil pro
    Consultant informatique
    Inscrit en
    Mars 2016
    Messages
    80
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Espagne

    Informations professionnelles :
    Activité : Consultant informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mars 2016
    Messages : 80
    Points : 176
    Points
    176
    Par défaut
    A la place de :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    //Récupération de l'adress du device que tu veux connecter
                    String address = info.substring(info.length()-19);
    tu peux try:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    //Récupération de l'adress du device que tu veux connecter
                    String address = info.substring(info.length()-17);
    La taille n'est plus vraiment la même d'après ce que j'ai vu.

    Jérémy.

  5. #25
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Mars 2016
    Messages
    61
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 29
    Localisation : France, Territoire de Belfort (Franche Comté)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2016
    Messages : 61
    Points : 17
    Points
    17
    Par défaut
    Merci ! Cela fonctionne !!

    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
      try {
                        String address = info.substring(info.length()-17);
                        BluetoothDevice connect_device = bluetoothAdapter.getRemoteDevice(address);
                        Boolean isPaired;
                        try {
                            isPaired= connect_device.createBond();
     
                            if(isPaired)
                            {
                                Toast.makeText(Bluetooth.this, "Device Paired", Toast.LENGTH_LONG).show();
                                btArrayAdapter.notifyDataSetChanged();
                            }
                        } catch (Exception e) {
                            e.printStackTrace();
                        }
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                    //Récupération du device
     
     
     
                }
            });
    Maintenant pouvez vous continuer à m'aider ? Sinon je peu comprendre l'ennui que tu ressens lol, merci !

  6. #26
    Membre habitué
    Homme Profil pro
    Consultant informatique
    Inscrit en
    Mars 2016
    Messages
    80
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Espagne

    Informations professionnelles :
    Activité : Consultant informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mars 2016
    Messages : 80
    Points : 176
    Points
    176
    Par défaut
    Je veux bien essayer


    Mais pense à mettre des pouces verts sur les messages qui t'ont aider et a mettre en résolu si ca marche la demande d'origine

  7. #27
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Mars 2016
    Messages
    61
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 29
    Localisation : France, Territoire de Belfort (Franche Comté)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2016
    Messages : 61
    Points : 17
    Points
    17
    Par défaut
    Voilà tout est fais !

    Donc si tu le permet on change de sujet pour parler sms ! J'ai réussi à envoyé sa pas de souci, maintenant j'aimerais que mon application récupere un sms entrant pour comparer le contenu du sms a quelque chose de prédéfini comme "coucou" ; et enchainé avec un if derrière, je me fais comprendre lol ?
    j'ai déja du code mais hélas il ne fonctionne pas .. Voila :

    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
    public class MyReceiver extends BroadcastReceiver {
        public MyReceiver() {
        }
        @Override
        public void onReceive(Context context, Intent intent) {
     
     
                Bundle extra = intent.getExtras();
                if(extra!= null){
                    Object[] pdus = (Object[])extra.get("pdus");
                    final SmsMessage[] messages = new SmsMessage[pdus.length];
                    for(int i = 0; i<pdus.length; i++){
                        messages[i]= SmsMessage.createFromPdu((byte[])pdus[i]);
                    }
                    if (messages.length>-1) {
                        Log.v("aha", "Marche1");
                        for (int i = 0; i<messages.length; i++) {
                            Log.v("aha", "Marche2");
                            final String messageBody = messages[i].getMessageBody();
                            final String phoneNumber = messages[i].getDisplayOriginatingAddress();
                            Toast.makeText(context,"Expéditeur:" + phoneNumber, Toast.LENGTH_LONG).show();
                            Toast.makeText(context,"Message : " + messageBody, Toast.LENGTH_LONG).show();
                        }
                    }
                }
     
        }
    Le OnCreate de la première activité pour le lancer :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    @Override
        protected void onCreate(Bundle savedInstanceState)
        {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_main);
     
            ActionBar actionBar = getSupportActionBar();
            actionBar.hide();
            MyReceiver sms = new MyReceiver();
            Log.v("aha3", "smslancer");
    Comme tu peu le voir j'essaye déja d'afficher le message dans un toast mais rien.. Merci ! pour ton aide

  8. #28
    Membre habitué
    Homme Profil pro
    Consultant informatique
    Inscrit en
    Mars 2016
    Messages
    80
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Espagne

    Informations professionnelles :
    Activité : Consultant informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mars 2016
    Messages : 80
    Points : 176
    Points
    176
    Par défaut
    Merci aha tous n'étaient pas useful mais merci ^^

    Pour les sms...

    déjà tu peux enlever le final des deux variables :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    final String messageBody = messages[i].getMessageBody();
    final String phoneNumber = messages[i].getDisplayOriginatingAddress();
    Ensuite à la place des Toasts, utilise les logs comme tu as fait

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    Log.v("aha", messageBody );
    Log.v("aha", phoneNumber );

  9. #29
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Mars 2016
    Messages
    61
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 29
    Localisation : France, Territoire de Belfort (Franche Comté)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2016
    Messages : 61
    Points : 17
    Points
    17
    Par défaut
    Pour moi si lol !

    Alors il n'y carrément rien qui s'affiche quand je filtre sur le log en question. Je pense que j'ai du mal initialisé car je pense le myreceiver n'est même pas parcouru, lu en faite

  10. #30
    Membre habitué
    Homme Profil pro
    Consultant informatique
    Inscrit en
    Mars 2016
    Messages
    80
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Espagne

    Informations professionnelles :
    Activité : Consultant informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mars 2016
    Messages : 80
    Points : 176
    Points
    176
    Par défaut
    remplace ta méthode par ceci :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
     
    @Override
        public void onReceive(Context context, Intent intent) {
            Log.v("aha", "Receive1");
            if (Telephony.Sms.Intents.SMS_RECEIVED_ACTION.equals(intent.getAction())) {
                Log.v("aha", "recu sms");
                for (SmsMessage smsMessage : Telephony.Sms.Intents.getMessagesFromIntent(intent)) {
                    Log.v("aha", "au moins 1 sms");
                    String messageBody = smsMessage.getMessageBody();
                    Log.v("aha", messageBody);
                }
            }
        }

  11. #31
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Mars 2016
    Messages
    61
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 29
    Localisation : France, Territoire de Belfort (Franche Comté)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2016
    Messages : 61
    Points : 17
    Points
    17
    Par défaut
    Idem rien du tout...... Je ne comprend pas
    Voilà même le log complet au cas où, mais rien ne se passe lorsque je recois un sms

    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
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    I: Timeline: Activity_idle id: android.os.BinderProxy@a310b94 time:28769386
    D: ViewPostImeInputStage processPointer 0
     
       [ 04-13 16:02:29.051 10739:10969 E/         ]
       g2d stretchFimgApi_v5 function does not exist
     
       [ 04-13 16:02:29.051 10739:10969 E/         ]
       [JM] stretchFimgApi might be v4.
    D: ViewPostImeInputStage processPointer 1
    W: hasData : 2, -1, null
    E: clipEx is android.sec.clipboard.ClipboardExManager@cda0e02
    W: hasData : 2, -1, null
    E: clipEx has text data : false
    D: MSG_RESIZED: ci=Rect(0, 84 - 0, 0) vi=Rect(0, 84 - 0, 945) or=1
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: hasData : 2, -1, null
    E: clipEx is android.sec.clipboard.ClipboardExManager@cda0e02
    W: hasData : 2, -1, null
    E: clipEx has text data : false
    W: hasData : 2, -1, null
    E: clipEx is android.sec.clipboard.ClipboardExManager@cda0e02
    W: hasData : 2, -1, null
    E: clipEx has text data : false
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: hasData : 2, -1, null
    E: clipEx is android.sec.clipboard.ClipboardExManager@cda0e02
    W: hasData : 2, -1, null
    E: clipEx has text data : false
    W: hasData : 2, -1, null
    E: clipEx is android.sec.clipboard.ClipboardExManager@cda0e02
    W: hasData : 2, -1, null
    E: clipEx has text data : false
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: hasData : 2, -1, null
    E: clipEx is android.sec.clipboard.ClipboardExManager@cda0e02
    W: hasData : 2, -1, null
    E: clipEx has text data : false
    W: hasData : 2, -1, null
    E: clipEx is android.sec.clipboard.ClipboardExManager@cda0e02
    W: hasData : 2, -1, null
    E: clipEx has text data : false
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: hasData : 2, -1, null
    E: clipEx is android.sec.clipboard.ClipboardExManager@cda0e02
    W: hasData : 2, -1, null
    E: clipEx has text data : false
    W: hasData : 2, -1, null
    E: clipEx is android.sec.clipboard.ClipboardExManager@cda0e02
    W: hasData : 2, -1, null
    E: clipEx has text data : false
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: hasData : 2, -1, null
    E: clipEx is android.sec.clipboard.ClipboardExManager@cda0e02
    W: hasData : 2, -1, null
    E: clipEx has text data : false
    W: hasData : 2, -1, null
    E: clipEx is android.sec.clipboard.ClipboardExManager@cda0e02
    W: hasData : 2, -1, null
    E: clipEx has text data : false
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: hasData : 2, -1, null
    E: clipEx is android.sec.clipboard.ClipboardExManager@cda0e02
    W: hasData : 2, -1, null
    E: clipEx has text data : false
    W: hasData : 2, -1, null
    E: clipEx is android.sec.clipboard.ClipboardExManager@cda0e02
    W: hasData : 2, -1, null
    E: clipEx has text data : false
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: hasData : 2, -1, null
    E: clipEx is android.sec.clipboard.ClipboardExManager@cda0e02
    W: hasData : 2, -1, null
    E: clipEx has text data : false
    W: hasData : 2, -1, null
    E: clipEx is android.sec.clipboard.ClipboardExManager@cda0e02
    W: hasData : 2, -1, null
    E: clipEx has text data : false
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: hasData : 2, -1, null
    E: clipEx is android.sec.clipboard.ClipboardExManager@cda0e02
    W: hasData : 2, -1, null
    E: clipEx has text data : false
    W: hasData : 2, -1, null
    E: clipEx is android.sec.clipboard.ClipboardExManager@cda0e02
    W: hasData : 2, -1, null
    E: clipEx has text data : false
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    D: ViewPostImeInputStage processKey 0
    D: ViewPostImeInputStage processKey 1
    W: hasData : 2, -1, null
    E: clipEx is android.sec.clipboard.ClipboardExManager@cda0e02
    W: hasData : 2, -1, null
    E: clipEx has text data : false
    W: hasData : 2, -1, null
    E: clipEx is android.sec.clipboard.ClipboardExManager@cda0e02
    W: hasData : 2, -1, null
    E: clipEx has text data : false
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: hasData : 2, -1, null
    E: clipEx is android.sec.clipboard.ClipboardExManager@cda0e02
    W: hasData : 2, -1, null
    E: clipEx has text data : false
    W: hasData : 2, -1, null
    E: clipEx is android.sec.clipboard.ClipboardExManager@cda0e02
    W: hasData : 2, -1, null
    E: clipEx has text data : false
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    D: ViewPostImeInputStage processKey 0
    D: ViewPostImeInputStage processKey 1
    D: MSG_RESIZED: ci=Rect(0, 84 - 0, 0) vi=Rect(0, 84 - 0, 0) or=1
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    D: ViewPostImeInputStage processPointer 0
    D: ViewPostImeInputStage processPointer 1
    I: Timeline: Activity_launch_request id:com.locateit.antholife.locateit time:28858666
    W: getTopLevelResources: /data/app/com.locateit.antholife.locateit-2/base.apk / 1.0 running in com.locateit.antholife.locateit rsrc of package com.locateit.antholife.locateit
    W: getTopLevelResources: /data/app/com.locateit.antholife.locateit-2/base.apk / 1.0 running in com.locateit.antholife.locateit rsrc of package com.locateit.antholife.locateit
    I: Making Creator dynamically
    I: Inside getClassLibPath caller 
    W: getTopLevelResources: /data/app/com.google.android.gms-2/base.apk / 1.0 running in com.locateit.antholife.locateit rsrc of package com.google.android.gms
    D: For user 0 new overlays fetched Null
    D: Reading stored module config
    D: Primary ABI of requesting process is arm64-v8a
    D: Classloading successful. Optimized code found.
    I: Google Play services client version: 8487000
    I: Google Play services package version: 8703440
    W: Suspending all threads took: 9.897ms
    I: Token loaded from file. Expires in: 381065404 ms.
    I: Scheduling next attempt in 380765 seconds.
    D: Get MotionRecognitionManager
    E: mSContextService = android.hardware.scontext.ISContextService$Stub$Proxy@248730f
    E: motionService = com.samsung.android.motion.IMotionRecognitionService$Stub$Proxy@881bf9c
    E: motionService = com.samsung.android.motion.IMotionRecognitionService$Stub$Proxy@881bf9c
    W: mkdir failed: EEXIST (File exists) : /storage/emulated/0/Android/data/com.locateit.antholife.locateit/cache/debug
    W: mkdir failed: EEXIST (File exists) : /storage/emulated/0/Android/data/com.locateit.antholife.locateit/cache
    I: (HTTPLog)-Static: isSBSettingEnabled true
    I: (HTTPLog)-Static: isShipBuild true
    I: (HTTPLog)-Static: getDebugLevel 0x4f4c
    I: (HTTPLog)-Thread-7127-116957451: SmartBonding Enabling is true, SHIP_BUILD is true, log to file is false, DBG is false, DEBUG_LEVEL (1-LOW, 2-MID, 3-HIGH) is 1
    I: (HTTPLog)-Thread-7127-116957451: SMARTBONDING_FEATURE_ENABLED is true
    I: (HTTPLog)-Static: isSBSettingEnabled true
    I: dispatchOnViewCreated > Target : com.google.android.gms.maps.MapFragment isFragment :true
    I: Tagging socket 85 with tag 99e6744e00000000{2582017102,0} uid -1, pid: 10739, getuid(): 10335
    I: Tagging socket 91 with tag 99e6744e00000000{2582017102,0} uid -1, pid: 10739, getuid(): 10335
    D: performCreate Call Injection manager
    I: dispatchOnViewCreated > Target : com.locateit.antholife.locateit.Main2Activity isFragment :false
    D: Metadata value : SecSettings2
    D: #1 mView = com.android.internal.policy.PhoneWindow$DecorView{4c23331 I.E...... R.....ID 0,0-0,0}
    I: Skipped 48 frames!  The application may be doing too much work on its main thread.
    D: new_window_surface returns 0x3000,  [1440x2560]-format:1
    I: Untagging socket 85
    D: #1 mView = android.widget.LinearLayout{16c99d3 V.E...... ......I. 0,0-0,0}
    D: eglInitialize EGLDisplay = 0x7f7ede7ea8
     
       [ 04-13 16:02:34.391 10739:14185 D/         ]
       ro.exynos.dss isEnabled: 0
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    D: new_window_surface returns 0x3000,  [1440x2476]-format:2
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    D: new_window_surface returns 0x3000,  [377x154]-format:1
    I: dispatchCreateOptionsMenu :com.locateit.antholife.locateit.Main2Activity
    I: dispatchPrepareOptionsMenu :com.locateit.antholife.locateit.Main2Activity
    D: MSG_RESIZED_REPORT: ci=Rect(0, 84 - 0, 0) vi=Rect(0, 84 - 0, 0) or=1
    I: (HTTPLog)-Static: isSBSettingEnabled true
    I: (HTTPLog)-Static: isShipBuild true
    I: (HTTPLog)-Static: getDebugLevel 0x4f4c
    I: (HTTPLog)-Thread-7128-114262924: SmartBonding Enabling is true, SHIP_BUILD is true, log to file is false, DBG is false, DEBUG_LEVEL (1-LOW, 2-MID, 3-HIGH) is 1
    I: (HTTPLog)-Thread-7128-114262924: SMARTBONDING_FEATURE_ENABLED is true
    I: (HTTPLog)-Static: isSBSettingEnabled true
    I: Tagging socket 85 with tag 99e6744e00000000{2582017102,0} uid -1, pid: 10739, getuid(): 10335
    D: eglInitialize EGLDisplay = 0x7f9ab1ff08
    D: new_window_surface returns 0x3000,  [1440x2280]-format:2
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    V: 0x7f77a5d000 Launching thread(s), CPUs 8
    I: Untagging socket 85
    D: MSG_RESIZED_REPORT: ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
    I: Timeline: Activity_idle id: android.os.BinderProxy@4f8eba time:28859910
    D: eglInitialize EGLDisplay = 0x7f9ab1ff08
    D: eglTerminate EGLDisplay = 0x7f9ab1ff98
    V: updateVisibility : ActivityRecord{b86e926 token=android.os.BinderProxy@a310b94 {com.locateit.antholife.locateit/com.locateit.antholife.locateit.MainActivity}} show : false
    D: eglInitialize EGLDisplay = 0x7f9ab1ff08
    D: eglInitialize EGLDisplay = 0x7f9ab1ff08
    I: Background sticky concurrent mark sweep GC freed 43223(4MB) AllocSpace objects, 89(6MB) LOS objects, 31% free, 24MB/36MB, paused 8.830ms total 30.447ms
    D: #3 mView = null
    I: (HTTPLog)-Static: isSBSettingEnabled true
    I: (HTTPLog)-Static: isShipBuild true
    I: (HTTPLog)-Static: getDebugLevel 0x4f4c
    I: (HTTPLog)-Thread-7129-100253279: SmartBonding Enabling is true, SHIP_BUILD is true, log to file is false, DBG is false, DEBUG_LEVEL (1-LOW, 2-MID, 3-HIGH) is 1
    I: (HTTPLog)-Thread-7129-100253279: SMARTBONDING_FEATURE_ENABLED is true
    I: (HTTPLog)-Static: isSBSettingEnabled true
    I: Tagging socket 59 with tag 4d84493300000000{1300515123,0} uid -1, pid: 10739, getuid(): 10335
    I: Tagging socket 100 with tag 4d84493300000000{1300515123,0} uid -1, pid: 10739, getuid(): 10335
    I: Untagging socket 59
    D: ViewPostImeInputStage processPointer 0
    D: ViewPostImeInputStage processPointer 1
    D: ViewPostImeInputStage processPointer 0
    D: ViewPostImeInputStage processPointer 1
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: Points are too far apart 4.000000596046461
    D: ViewPostImeInputStage processPointer 0
    D: ViewPostImeInputStage processPointer 1
    I: Timeline: Activity_launch_request id:com.locateit.antholife.locateit time:28881910
    D: eglTerminate EGLDisplay = 0x7f7ede7ac8
    D: eglTerminate EGLDisplay = 0x7f7ede7ac8
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: Points are too far apart 4.000000596046461
    W: getTopLevelResources: /data/app/com.locateit.antholife.locateit-2/base.apk / 1.0 running in com.locateit.antholife.locateit rsrc of package com.locateit.antholife.locateit
    W: getTopLevelResources: /data/app/com.locateit.antholife.locateit-2/base.apk / 1.0 running in com.locateit.antholife.locateit rsrc of package com.locateit.antholife.locateit
    D: setTypeface with style : 0
    D: setTypeface with style : 0
    D: performCreate Call Injection manager
    I: dispatchOnViewCreated > Target : com.locateit.antholife.locateit.Setting isFragment :false
    D: Metadata value : SecSettings2
    D: #1 mView = com.android.internal.policy.PhoneWindow$DecorView{b763270 I.E...... R.....ID 0,0-0,0}
    D: new_window_surface returns 0x3000,  [1440x2560]-format:1
    W: hasData : 2, -1, null
    E: clipEx is android.sec.clipboard.ClipboardExManager@bb5b91b
    W: hasData : 2, -1, null
    E: clipEx has text data : false
    D: #1 mView = android.widget.LinearLayout{a83ab8 V.E...... ......I. 0,0-0,0}
    I: dispatchCreateOptionsMenu :com.locateit.antholife.locateit.Setting
    I: dispatchPrepareOptionsMenu :com.locateit.antholife.locateit.Setting
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    D: new_window_surface returns 0x3000,  [1347x220]-format:1
    D: MSG_RESIZED_REPORT: ci=Rect(0, 84 - 0, 0) vi=Rect(0, 84 - 0, 0) or=1
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    D: MSG_RESIZED_REPORT: ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
    D: eglTerminate EGLDisplay = 0x7fffffddf8
    I: Timeline: Activity_idle id: android.os.BinderProxy@82ab112 time:28882181
    V: updateVisibility : ActivityRecord{d183093 token=android.os.BinderProxy@4f8eba {com.locateit.antholife.locateit/com.locateit.antholife.locateit.Main2Activity}} show : false
    D: #3 mView = null
    D: ViewPostImeInputStage processPointer 0
    D: ViewPostImeInputStage processPointer 1
    I: Timeline: Activity_launch_request id:com.locateit.antholife.locateit time:28892926
    D: #1 mView = android.widget.LinearLayout{78a81fc V.E...... ......I. 0,0-0,0}
    D: new_window_surface returns 0x3000,  [1347x220]-format:1
    D: MSG_RESIZED_REPORT: ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    W: getTopLevelResources: /data/app/com.locateit.antholife.locateit-2/base.apk / 1.0 running in com.locateit.antholife.locateit rsrc of package com.locateit.antholife.locateit
    D: Get MotionRecognitionManager
    E: mSContextService = android.hardware.scontext.ISContextService$Stub$Proxy@ca0ec1d
    E: motionService = com.samsung.android.motion.IMotionRecognitionService$Stub$Proxy@3e38e92
    E: motionService = com.samsung.android.motion.IMotionRecognitionService$Stub$Proxy@3e38e92
    D: performCreate Call Injection manager
    I: dispatchOnViewCreated > Target : com.locateit.antholife.locateit.Bluetooth isFragment :false
    D: Metadata value : SecSettings2
    D: #1 mView = com.android.internal.policy.PhoneWindow$DecorView{ace9fbf I.E...... R.....ID 0,0-0,0}
    D: new_window_surface returns 0x3000,  [1440x2560]-format:1
    I: dispatchCreateOptionsMenu :com.locateit.antholife.locateit.Bluetooth
    I: dispatchPrepareOptionsMenu :com.locateit.antholife.locateit.Bluetooth
    W: DisplayListCanvas is started on unbinded RenderNode (without mOwningView)
    D: MSG_RESIZED_REPORT: ci=Rect(0, 84 - 0, 0) vi=Rect(0, 84 - 0, 0) or=1
    I: Timeline: Activity_idle id: android.os.BinderProxy@754feda time:28893128
    V: updateVisibility : ActivityRecord{a469e8e token=android.os.BinderProxy@82ab112 {com.locateit.antholife.locateit/com.locateit.antholife.locateit.Setting}} show : false
    D: #3 mView = null
    D: onBluetoothStateChange: up=true
    D: onBluetoothStateChange: Bluetooth is on
    I: Timeline: Activity_idle id: android.os.BinderProxy@754feda time:28895839

  12. #32
    Membre habitué
    Homme Profil pro
    Consultant informatique
    Inscrit en
    Mars 2016
    Messages
    80
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Espagne

    Informations professionnelles :
    Activité : Consultant informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mars 2016
    Messages : 80
    Points : 176
    Points
    176
    Par défaut
    Question débile, mais tu simules comment l'envoie de SMS?

  13. #33
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Mars 2016
    Messages
    61
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 29
    Localisation : France, Territoire de Belfort (Franche Comté)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2016
    Messages : 61
    Points : 17
    Points
    17
    Par défaut
    En demandant à une personne à portée de m'envoyer un sms lol n'est pas bon ?

  14. #34
    Membre habitué
    Homme Profil pro
    Consultant informatique
    Inscrit en
    Mars 2016
    Messages
    80
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Espagne

    Informations professionnelles :
    Activité : Consultant informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mars 2016
    Messages : 80
    Points : 176
    Points
    176
    Par défaut
    Pas vraiment pendant le développement.
    Il faudrait faire un simulateur qui envoie les sms.

    regarde ca : developer.android.com/tools/help/emulator.html#sms


    Pourrais-tu m'envoyer ton AndroidManifest.xml stp?

  15. #35
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Mars 2016
    Messages
    61
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 29
    Localisation : France, Territoire de Belfort (Franche Comté)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2016
    Messages : 61
    Points : 17
    Points
    17
    Par défaut
    Désolée.. Oui ! Voilà mon manifest :

    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
    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.locateit.antholife.locateit">
     
        <uses-permission android:name="android.permission.BLUETOOTH" />
        <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" />
        <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
        <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
        <uses-permission android:name="android.permission.SEND_SMS" />
        <uses-permission android:name="android.permission.BLUETOOTH" />
        <uses-permission android:name="android.permission.RECEIVE_SMS" />
        <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
     
        <receiver android:name=".MyReceiver">
            android:enabled="true"
            android:exported="true" >
            <intent-filter android:priority="999">
                <action android:name="android.provider.Telephony.SMS_RECEIVED" />
            </intent-filter>
        </receiver>
     
        <application
            android:allowBackup="true"
            android:icon="@mipmap/locate"
            android:label="@string/app_nameprincipal"
            android:supportsRtl="true"
            android:theme="@style/AppTheme">
            <uses-feature
                android:glEsVersion="0x00020000"
                android:required="true" />
     
            <supports-screens
                android:anyDensity="true"
                android:largeScreens="true"
                android:normalScreens="true"
                android:resizeable="true"
                android:smallScreens="true"
                android:xlargeScreens="true" />
     
            <activity android:name=".MainActivity">
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
     
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
            <activity
                android:name=".Main2Activity"
                android:label="@string/title_activity_main2"
                android:theme="@style/AppTheme.NoActionBar" />
            <activity
                android:name=".Changelog"
                android:label="@string/title_activity_changelog"
                android:theme="@style/AppTheme.NoActionBar" />
     
            <meta-data
                android:name="com.google.android.gms.version"
                android:value="@integer/google_play_services_version" />
            <meta-data
                android:name="com.google.android.maps.v2.API_KEY"
                android:value="AIzaSyBfmF3WWxsPhufZR5keiDNRy-33hJI1rvM" />
     
            <activity
                android:name=".lequipe"
                android:label="@string/nomequipe" />
            <activity
                android:name=".Setting"
                android:label="@string/title_activity_setting" />
            <activity android:name=".MDPinterne" />
            <activity android:name=".Bluetooth"></activity>
        </application>
     
    </manifest>

  16. #36
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Mars 2016
    Messages
    61
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 29
    Localisation : France, Territoire de Belfort (Franche Comté)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2016
    Messages : 61
    Points : 17
    Points
    17
    Par défaut
    Pour l'émulateur ;
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    sms send <senderPhoneNumber> <textmessage>
    je peu le mettre dans un onClick d'un bouton ?

  17. #37
    Membre habitué
    Homme Profil pro
    Consultant informatique
    Inscrit en
    Mars 2016
    Messages
    80
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Espagne

    Informations professionnelles :
    Activité : Consultant informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mars 2016
    Messages : 80
    Points : 176
    Points
    176
    Par défaut
    Le code à l'air correct.

    Pour l'émulateur, regarde ici : http://androidexample.com/Incomming_...aid=62&aaid=87
    La petite vidéo à la fin.

    Jérémy

  18. #38
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Mars 2016
    Messages
    61
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 29
    Localisation : France, Territoire de Belfort (Franche Comté)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2016
    Messages : 61
    Points : 17
    Points
    17
    Par défaut
    C'est bon j'ai réussi nickel merci , donc maintenant je fais quoi ?

  19. #39
    Membre à l'essai
    Femme Profil pro
    Étudiant
    Inscrit en
    Mars 2016
    Messages
    61
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 29
    Localisation : France, Territoire de Belfort (Franche Comté)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2016
    Messages : 61
    Points : 17
    Points
    17
    Par défaut
    Alors voilà je viens de terminer au bout de 3h, pendant ton absence j'ai énormemment avancé et résolu mon problème, tout s'affiche bien dans les toasts et j'ai même fais beaucoupl plus, mais j'ai toujours besoin d'aide dans le domaine sms, si tu est d'accord, je t'expose mon problème

  20. #40
    Membre habitué
    Homme Profil pro
    Consultant informatique
    Inscrit en
    Mars 2016
    Messages
    80
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Espagne

    Informations professionnelles :
    Activité : Consultant informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Mars 2016
    Messages : 80
    Points : 176
    Points
    176
    Par défaut
    Tu es arrivé à utiliser le simulateur de SMS?

    Vas y je t'écoute

+ Répondre à la discussion
Cette discussion est résolue.
Page 2 sur 3 PremièrePremière 123 DernièreDernière

Discussions similaires

  1. [MySQL] afficher les chambres disponibles
    Par ezelbatchen dans le forum PHP & Base de données
    Réponses: 29
    Dernier message: 13/06/2013, 14h18
  2. Réponses: 1
    Dernier message: 22/01/2013, 10h06
  3. d'afficher les partitions disponibles de disque
    Par memo11 dans le forum Windows XP
    Réponses: 1
    Dernier message: 27/01/2010, 19h01
  4. Réponses: 5
    Dernier message: 27/04/2007, 14h43
  5. Afficher les bonnes facettes
    Par WormsHL-Groove dans le forum OpenGL
    Réponses: 3
    Dernier message: 26/08/2002, 21h36

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