sajidshamshad 0 Newbie Poster

hi
i have a simple question that how to call an array from derived class to in main class in android the array is a string array i am make the constructor in derived class and an object in main class but it does not work this is my code

package com.semanticnotion.DAO;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class DAO extends Activity {
   
   
    
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

    WordsDAO wd = new WordsDAO(new String[]{"Arte","Arquitectura","Familia","Moda","Cotilleos","Cine","Libros","Historia","Pintura","Musica","Tendencies","Modernimso","Pop art","Masteialismo","realities","filosofia","moda","fotografia","religion"});
     
    
    Button next = (Button) findViewById(R.id.Button01);
    next.setOnClickListener(new View.OnClickListener() {
        public void onClick(View view) {
            Intent myIntent = new Intent(view.getContext(), WordsDAO.class);
          
            startActivity(myIntent);
    
   }
});
    }
}

and the derived class code is

package com.semanticnotion.DAO;




public class WordsDAO  {
	
	
 

	String[] words = new String[]{"Arte","Arquitectura","Familia","Moda","Cotilleos","Cine","Libros","Historia","Pintura","Musica","Tendencies","Modernimso","Pop art","Masteialismo","realities","filosofia","moda","fotografia","religion"};
	


	
	public  WordsDAO(String[] words ) {
		this.words=words;
	  }
	
}