Reputation: 6918
I am totally beginner to Xamarin Mobile development. I am learning it from Xamarin Website. I am doing a sample provided on the same website. activity_lifecycle/saving_state_walkthrough.
protected override void OnSaveInstanceState (Bundle outState)
{
outState.PutInt ("click_count", _counter);
Log.Debug(GetType().FullName, "Saving instance state");
base.OnSaveInstanceState (outState);
}
when i build the Project it trows me error on Log.Debug, that Log.Debug does not exists in Current Context.
i don't know to how to resolve this, can any body help me. is there any additional namespace or reference i need to add to the project. Please help me.
Upvotes: 2
Views: 2417
Reputation: 6918
Found the Solution:
We just need to add
using Android.Util;
namespace it will work.
Thanks for your time have a good day.
Upvotes: 2