Eclipse - Error de novato en Eclipse

 
Vista:
sin imagen de perfil

Error de novato en Eclipse

Publicado por Deivy (1 intervención) el 25/10/2013 00:29:01
Hola, soy nuevo en Eclipse y tengo un problema que no puedo resolver.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import java.util.LinkedList;
...
public class MainActivity extends Activity {
		static final String DATA_TITLE = "T";
    static final String DATA_LINK  = "L";
    static LinkedList<HashMap<String, String>> data;
      @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
...
@Override
    private void setData(LinKedList<HashMap<String, String>> data){
    	SimpleAdapter sAdapter = new SimpleAdapter(getApplicationContext(), data,
    	android.R.layout.two_line_list_item,
    	new String[] { DATA_TITLE,DATA_LINK },
    	new int[] { android.R.id.text1, android.R.id.text2 });
    	ListView lv = (ListView) findViewById(R.id.lstData);
    	lv.setAdapter(sAdapter);
    }
 
}

Y me sale este mensaje de error:

LinKedList cannot be resolved to a type

Me podrian ayudar, gracias.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

Error de novato en Eclipse

Publicado por Brian Cid (6 intervenciones) el 08/06/2016 02:43:59
Espero poder ayudarte con esto prueba de cambiar tu

ListView lv por un

LinkedList roster = new LinkedList();
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar