title: [Android]How to get results from intent launched from preference screen?
body: <p>I need help in geting results back from intent launched from 
  preference screen </p>
  
  <pre><code>   // 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); 
  </code></pre>
  
  <p>I want user to select device... In preference screeen I show "Select 
  Device" .. when user clicks that, another screen is launched by intent 
  where all devices are listed. User selects the device. </p>
  
  <p>Now how do I know user selected which device? And I want to update 
  that in the summary. </p>
  
  <p>Pls. let me know 
  Thanks </p>