7
我需要幫助歌廳結果從意圖從 偏好屏幕推出回到[Android]如何從偏好屏幕啓動的意圖獲得結果?
// Intent preference
DevicePref =
getPreferenceManager().createPreferenceScreen(this);
// Show a Screen with list of Devices Discovered
Intent i = new Intent(this,getDevice.class);
DevicePref.setIntent(i);
DevicePref.setTitle("Select Device");
DevicePref.setSummary(mSelectedDevice);
deviceOptionsCat.addPreference(DevicePref);
我希望用戶選擇設備......在偏好screeen我秀「選擇 設備」。當用戶點擊的是,另一通過意圖 啓動屏幕,其中列出所有設備。用戶選擇設備。
現在我怎麼知道用戶選擇了哪個設備?我想在摘要中更新 。
請注意。讓我知道 感謝
這個工作對我..謝謝!最初,僅在第二次調用onActivityResult。這是因爲onPreferenceClick返回false。 – diptia 2013-02-24 19:34:13