Back to project page AndroidFileBroadcast.
The source code is released under:
Apache License
If you think the Android project AndroidFileBroadcast listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.bucketdevelopers.uft; // w ww . jav a 2 s .c o m import java.io.File; import java.util.Arrays; import java.util.List; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; public class ReceivedListHandler extends ArrayAdapter<String>{ protected File temppath; protected static List<String> values = Arrays.asList((String[]) null); private final Context context; public ReceivedListHandler(Context context,List<String> objects) { super(context, R.layout.list_text,objects); this.context = context; this.values = objects; } @Override public View getView(int position, View convertView, ViewGroup parent) { LayoutInflater inflater = (LayoutInflater) context .getSystemService(Context.LAYOUT_INFLATER_SERVICE); View rowView = inflater.inflate(R.layout.list_text, parent, false); TextView textView = (TextView) rowView.findViewById(R.id.tv_list); textView.setText(values.get(position)); return rowView; } }