Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

HockeyApp for Android can't find button resource id

$
0
0

I'm integrating the HockeyApp component into my Forms application. iOS is already working, but I added in the Android component and necessary code just now. However, in the MainActivity I get an error:

    protected override void OnCreate (Bundle bundle)
    {
        base.OnCreate (bundle);

        //Register to with the Update Manager
        HockeyApp.UpdateManager.Register (this, HOCKEYAPP_APPID);

        Xamarin.Forms.Forms.Init (this, bundle);

        SetPage (App.GetMainPage ());

        FindViewById<Button> (Resource.Id.buttonShowFeedback).Click += delegate {

            //Show the feedback screen
            HockeyApp.FeedbackManager.ShowFeedbackActivity(this);
        };
    }

It can't find the resource buttonShowFeedback. This doesn't surprise me I guess, since I have not added a button with that id. I'm not sure where I would add it, given this is a Forms application. How do I add this button? Do I have to do it? Will it show up on my app somewhere?


Viewing all articles
Browse latest Browse all 58056

Trending Articles