list of request codes - their names and values?

by for android » Thu, 09 Apr 2009 13:43:10 GMT


Sponsored Links
 The requestCode is the constant you send from ur code which starts the
activity

startActivityForResult(intent,100);


So you are sending the code 100.

you need to look at the result code which are RESULT_OK,RESULT_CANCELED
which are defined in the Activity class.





--~--~---------~--~----~------------~-------~--~----~



list of request codes - their names and values?

by Rob Franz » Fri, 10 Apr 2009 06:55:03 GMT


 But this is a RingtonePreference - I'm not starting the activity from code.
 RingtonePreference is defined in preferences.xml (which defines how the
Preferences are laid out).
All I know is that the request code - not the *result code* - that is
returned is 100.

I need to know the name associated with that value 100... I can't find it
anywhere :-)

Thanks
Rob






--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


list of request codes - their names and values?

by Mark Murphy » Fri, 10 Apr 2009 07:15:47 GMT


 


What are you attempting to achieve by listening on onActivityResult()
from a PreferenceActivity?

Is it something that could be handled better via a
Preference.OnPreferenceChangeListener?

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

_The Busy Coder's Guide to Android Development_ Version 2.0 Available!

--~--~---------~--~----~------------~-------~--~----~



list of request codes - their names and values?

by Rob Franz » Fri, 10 Apr 2009 08:07:33 GMT


 What I am doing is getting the URI of the ringtone that the user selects in
the ringtone picker.  Then I save it for later use.
It works, but I'm just trying to figure out what that request code is.

Thanks
Rob






--~--~---------~--~----~------------~-------~--~----~



list of request codes - their names and values?

by Mark Murphy » Fri, 10 Apr 2009 08:19:47 GMT


 


That should be in your preferences, though. After all, you're the one
asking for the ringtone via the RingtonePreference, right?

Just open up your SharedPreferences
(PreferenceManager.getDefaultSharedPreferences()) and read out the
value. Or use Preference.OnPreferenceChangeListener to be notified when
the user changed your preference of interest.

I feel like I'm missing something...

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

_The Busy Coder's Guide to Android Development_ Version 2.0 Available!

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. ChromeToPhone on CM6-RC

akhirnya tadi gw dengan sangat terpaksa apgred ke CM6-RC2 setelah sekian
lama bertahan di CM-5.0.8.. gara2 tiba2 N1 gw ngadat bootloop terus, jadinya
skalian aja gw bersihin en flash CM6..

beralih ke froyo untuk pertama kali, tentunya pengen nyoba fitur2 yg
eksklusif buat froyo.. akhirnya install flash -> sukses.. next attempt,
install chrometophone -> gagal!!

kronologisnya, jalanin chrometophone, pencet Next, pilih account yg akan
dgunakan, pencet Next -> [Connecting] -> muncul pesan Allow / Deny buat
Access Request -> Pencet Allow -> Force Close!! Pesan yg muncul: "The
application Settings Storage (process system) has stopped unexpectedly.
Please try again" :((

ada yg udah coba di CM6-RC2 en jalan blon? thx..

-- 
"Indonesian Android Community [id-android]" 

2. image with panning and zooming

hi,

I would like a minimal sample android app that can display an image (bigger
than the screen size) and allow it to pan and zoom. is there an example for
the same.
Thanks in advance for any inputs.

Zaheer

-- 

3. How to code ContactsContract so that it runs in 2.2 and doesn't crash 1.5?

4. Samsung Extravaganza plus plus on Mirdak Yogya @Starbucks Amplaz dimulai jam 16:00 hari Rab

5. How does the Marketplace app widget use a ViewFlipper? (or a fading view)

6. Driver for USB device

7. INTENT_SEND and attached files