Android-dev.it Community

 
Annunci

:arrow: Benvenuto!, se non sei ancora un utente registrato: puoi registrati qui, oppure effettua il login
:arrow: Apri un forum sul tuo nuovo smartphone Android e collabora con noi! (dettagli)

www.agendadigitale.org
Image


Sponsor
It is currently Thu May 24, 2012 7:38 am

All times are UTC + 1 hour


 Topics   Replies   Views   Last post 
No new posts Applicazione per gestire SMS

by filippo729 on Wed May 23, 2012 9:39 pm in Sviluppo e programmazione in Android

0

18

Wed May 23, 2012 9:39 pm

filippo729

No new posts На интернет-витрине

by popowahgjfghjoiuyt on Sat May 19, 2012 2:25 pm in Amministrazione

0

17

Sat May 19, 2012 2:25 pm

popowahgjfghjoiuyt

No new posts Apri un forum sul tuo nuovo smartphone Android!

[ Go to page: 1, 2, 3 ]

by ReattileGar on Fri May 18, 2012 5:27 pm in Amministrazione

27

12555

Fri May 18, 2012 5:27 pm

ReattileGar

No new posts Новый: базы для хрумера - профессиональный софт для СЕО.

by Renatafe on Fri May 18, 2012 3:14 pm in Amministrazione

0

26

Fri May 18, 2012 3:14 pm

Renatafe

No new posts Pace is undoubtedly the vital affordable Jerseys Wholesale d

by barnettmmolive2012 on Wed May 16, 2012 7:36 am in Amministrazione

1

49

Wed May 16, 2012 7:36 am

barnettmmolive2012




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Ogni volta che la avvio con l'emulatore crasha
PostPosted: Sat Sep 17, 2011 11:53 am 
Offline
User avatar

Joined: Sat Sep 17, 2011 11:47 am
Posts: 1
Operatore: Wind
Punti Android: ?
Code:
package it.programmer.appandroide;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import android.view.View.OnClickListener;
import android.content.Context;


public class AppAndroideActivity extends Activity {
    /** Called when the activity is first created. */
   
   private OnClickListener PanelControl = new OnClickListener() {
      public void onClick(View v) {
         
         
      }
   };
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Button button = (Button) findViewById(R.id.panel_button);
        button.setOnClickListener(PanelControl);
        setContentView(R.layout.main);
       
    }
}

Buongiorno,
sono nuovo e saluto tutti.
Vi presento il problema, ogni volta che avvio questo codice crasha, però il codice è corretto l'ho rivisto pure su android developer nella sezione Handling UI events.


Top
 Profile  
 
 Post subject: Re: Ogni volta che la avvio con l'emulatore crasha
PostPosted: Sat Sep 24, 2011 3:54 pm 
Offline
Moderatore
User avatar

Joined: Thu Dec 27, 2007 3:51 pm
Posts: 986
Cellulare Android: HTC Dream
Operatore: TIM
Punti Android: 1320
Ciao,
"crasha" significa che ti compare la finestra che notifica l'"errore dell'applicazione" (Force Close) ?
In questo caso dovresti vedere il LOG di sistema (sulla'apposita finestra di Eclipse oppure usando il comando ddms dell'SDK) per capire esattamente quale riga di istruzione genera l'eccezione.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
phpBB SEO

All trademarks and logos used in this site are of properties of their respective owners.