// first you retrieve the entry in the spinner. don't know what that is,
but let's assume that it's an integer id
int entryId = ... // something
Intent intentActShow = new Intent( this, typeof( ActShowActivity ) );
intentActShow.PutExtra( "id", entryId ); // let's store the entry id on the
intent so that it's available on the other side
StartActivity( intentActShow );
// Now in your ActShowActivity
...
protected override void OnCreate( Bundle bundle )
{
base.OnCreate( bundle );
SetContentView( Resource.Layout.login );
int entryId = Intent.GetIntExtra( "entryId", -1 ); // retrieve the
entry id on the other side
Hope this helps
On 17 August 2012 12:40, MysteriX <[email protected]> wrote:
> There is a new question now...
>
> How can i directly call my Activity this way? my new activity is called
> "actShow"...
> my old code was this:
>
> Intent intentActShow = new Intent(this, typeof(actShow));
>
> StartActivity(intentActShow);
>
> In your code there is a string and an integer. i dont know how to use your
> code. iam confused :S sorry..
>
>
>
>
> --
> View this message in context:
> http://mono-for-android.1047100.n5.nabble.com/New-Activity-Give-it-a-string-tp5711379p5711382.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> Monodroid mailing list
> [email protected]
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
>
--
Gonçalo Oliveira
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid