Friday, 15 August 2014

android - Sending an intent without a string first parameter -



android - Sending an intent without a string first parameter -

is possible send intent sec activity without filling out first string parameter in intent.putextra(string,var type) ?

right have this:

intent.putextra("average score: ", averagescoretosend);

i don't want send string if don't have to, if have i'll deal it.

also how pull double value sent intent? don't understand value goes in sec parameter

intent i; double averagescore = 0; = getintent(); averagescore = i.getdoubleextra(grade1.finalmathgrade, idk);

i don't need send string @ if don't have to

yes, do. extras key-value store, , first parameter key. need key value later on.

also how pull double value sent intent?

call appropriate get...extra() method, passing in key first parameter , default value sec parameter. default value used in case intent not contain under designated key.

android android-intent

No comments:

Post a Comment