我在sharedUserID中感到困惑.什么是使用sharedUserId?如何使用?在android中使用哪里?
我想使用startActivityForResult从ArrayAdapter类中调用另一个intent,但我不能这样做.这是我的代码.
ArrayAdapter类构造函数
public QsShareManagerAdapter(Context context, String[] values, Long[] size,String[] time,
boolean isRoot, Boolean[] attrdir, ArrayList<Boolean> selected,boolean type,
LinearLayout linearLayout,String SHARE,String qsUsername)
{
super(context, R.layout.listlayout, values);
this.context = context;
this.values = values;
this.size = size;
this.time=time;
this.isRoot = isRoot;
this.attrdir = attrdir;
this.selected = selected;
this.type=type;
this.linearLayout=linearLayout;
this.SHARE=SHARE;
this.qsUsername=qsUsername;
}
@Override
public View getView(final int position, View convertView, ViewGroup parent)
{
String spliter = "/";
tag=SHARE.split(spliter);
LayoutInflater inflater = (LayoutInflater) context
.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
View rowView = inflater.inflate(R.layout.listlayout, parent, false);
//
addFiles=(Button)linearLayout.findViewById(R.id.add_files);
manageUser=(Button)linearLayout.findViewById(R.id.manage_users); …Run Code Online (Sandbox Code Playgroud)