我想实现点击按钮的同时传值给onActivityResult接收
Button selectbgButton = (Button) findViewById(R.id.selectbg);
selectbgButton.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
Uri uri = android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI;
Intent intentbg = new Intent(Intent.ACTION_PICK, uri);
intentbg.putExtra("extra", "Welcome to");
startActivityForResult(intentbg, SELECT_IMAGE);
}
});
接收protected void onActivityResult(int requestCode, int resultCode,Intent intent) { String stringValue=intent.getStringExtra("extra");...............................................}
这样stringValue的值怎么传过来的是NULL呢? 怎样才能把值传过来呢 谢谢帮下忙啊
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货