[Solved] Unfortunately, (App Name) has stopped [closed]


http://developer.android.com/reference/android/content/Context.html#getSystemService(java.lang.String)

getSystemService needs a context.

So change your code as below

Context context;
public CustomlistActivity( Context context, int resource, int textViewResourceId,
            ArrayList<Item> string) {
        super(context, resource, textViewResourceId, string);
        // TODO Auto-generated constructor stub
        strings = string; 
        this.context = context;
    }

Then

LayoutInflater inflater  = (LayoutInflater)context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);

and remove

 private LayoutInflater getSystemService(String layoutInflaterService) {
    // TODO Auto-generated method stub
    return null;
    }

Also consider using ViewHolder Pattern

http://developer.android.com/training/improving-layouts/smooth-scrolling.html

3

solved Unfortunately, (App Name) has stopped [closed]