Android: startActivityForResult always gets a resultCode of 0? [closed]
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: For some reason, when I use the call, the result is always returned as 0. All I am doing is popup the selection box and then once the selection is made, the user hits the back button. Does anyone know what mistake I could be doing? CALLING ACTIVITY: Intent i = new Intent(this, Selection.class); Log.d("Front-End", "Launching Activity"); startActivityForResult(i, SELECTION); INVOKED ACTIVITY: bundle.putStringArray("selections", selected_array); Intent resultIntent = new Intent(); resultIntent.putExtras(bundle); setResult(RESULT_OK,