In the following code, these lines: "score.setText(shops[i].getScore());" and "icon.setImageResource(R.drawable.test1);"
the app keep throws the Rescources.NotFoundException. I checked the xml file, all the ids are defined and they are all in the R.java. So I really don't know why the app throw this exception. Could anyone help me on this problem? Thank you very much!!!
 try{
 TextView name= (TextView)findViewById(R.id.name);
 TextView description = (TextView)findViewById(R.id.description);
 TextView score = (TextView)findViewById(R.id.score);
 ImageView icon = (ImageView)findViewById(R.id.icon);
 name.setText(shops[i].getName());
 description.setText(shops[i].getDescription());
 score.setText(shops[i].getScore());
 UrlImage urlImage = new UrlImage(context,shops[i].getIconUrl());
    Drawable drawable = urlImage.getDrawable(context);
    if(drawable!=null){
     icon.setImageDrawable(urlImage.getDrawable(context));
    }else{
     icon.setImageResource(R.drawable.test1);
    }
 }catch(NotFoundException e){
   Toast.makeText(walkstreet.this,
     "marker"+i,
     Toast.LENGTH_SHORT).show();
 }