Jump to content

[question] Hello World, Eclipse, Emulateur : problème


Recommended Posts

Rebonjour à tous !

J'ai trouvé ! un seul mot Attendre, attendre. en fait l'émulateur est très lent environ 5 minutes.

Je n'ai trouvé pour changer le titre avec la mention "résolu"

Merci et à bientôt

Michel

Bonjour à tous,

Je suis newbie et je viens d'acquérir un smartphone (Xperia comme James ...). Je souhaite lui programmer une appli et donc j'ai installé la config suivante :

Ubuntu 12.04

Eclipse Platform Version: 3.7.2 Build id: I20110613-1736

Android 4.1.2

Premier programme naturellement : Hello World !

J'ai écris un petit de prog (voir ci-dessous) et lorsque que je "run" l'émulateur démarre mais pas mon appli, en fait rien n'apparait dans l'emulateur (voir sortie console).

Si quelqu'un à une pirte de recherche, je le remercie d'avance.

Michel

Sortie console

===========

[helloworld] Android Launch!

[helloworld] adb is running normally.

[helloworld] Performing com.example.helloworld.HelloWorldActivity activity launch

[helloworld] Automatic Target Mode: launching new emulator with compatible AVD 'Test'

[helloworld] Launching a new emulator with Virtual Device 'Test'

[Emulator] emulator: emulator window was out of view and was recentered

[Emulator]

[helloworld] New emulator found: emulator-5554

[helloworld] Waiting for HOME ('android.process.acore') to be launched...

Mon prog

========

package com.example.helloworld;

import android.app.Activity;

import android.os.Bundle;

import android.widget.TextView;

public class HelloWorldActivity extends Activity {

@Override

public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_hello_world);

TextView tv=new TextView(this);

tv.setText("Hello World ! Voici ma première application Android !");

setContentView(tv);

}

}

Edited by michel54
Link to comment
Share on other sites

as tu test de lancer 2 émulateur en même temps ,

le emulator-5554 me pose des problèmes, je lance un 2éme en parallèle le 5556 et tous vas plus vite

Edited by carx
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...