Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Local Notification Walkthrough sample problems

$
0
0

I try to implement startup of my app. when clicking on the notification view. I can get itr work when using

var activity = new Intent(this, typeof(SplashActivity)); notification.SetLatestEventInfo(this, title, text, PendingIntent.GetActivity(this, 0, activity, 0));

However I wan't to make use of NotificationCombat.Builder like the example in Xamarin documentation

http://docs.xamarin.com/guides/cross-platform/application_fundamentals/notifications/android/local_notifications_in_android_walkthrough.

Problem is that I don't know how to add my activity to the ParentStack. (does not compile)

        TaskStackBuilder stackBuilder = TaskStackBuilder.Create(this);
        stackBuilder.AddParentStack(Class.FromType(typeof(SplashActivity)));    ??????????
        stackBuilder.AddNextIntent(resultIntent);

Error 251 Member 'Java.Lang.Class.FromType(System.Type)' cannot be accessed with an instance reference; qualify it with a type name instead C:\Users\olefa_000\Documents\ONDO_ANDROID\OndoDot_Android\OndoDot_Android\Helper\PushService.cs 168 41 OndoDot_Android

Any hints


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>