小编Bha*_*hal的帖子

什么是Android中的sharedUserId,它是如何使用的?

我在sharedUserID中感到困惑.什么是使用sharedUserId?如何使用?在android中使用哪里?

java android android-ndk android-emulator android-intent

60
推荐指数
2
解决办法
5万
查看次数

我如何在ArrayAdapter类的getView方法中使用startActivityForResult?

我想使用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)

java android android-intent

4
推荐指数
2
解决办法
4048
查看次数