从Android.App.Activity / Android.App.Fragment导航到Android.Support.V4.App.FragmentActivity

时间:2017-06-23 15:58:25

标签: c# android android-fragments xamarin.android android-fragmentactivity

鉴于my $log_file = $vhost . time2str( $TEMPLATE, time() ); open my $log_fh, '>>', $log_file or die qq{Unable to open "$log_file" for appending: $!}; print $log_fh ...; Android.App.Activity,如何导航至Android.App.Activity

上下文

我有一个应用程序,我被要求添加QrCode扫描仪。我使用的是ZXing库,要使用他们的Android.Support.V4.App.FragmentActivity,我需要将活动设为MobileBarcodeScanner,否则我将获得FragmentActivity

System.MissingMethodException

但是由于这不是项目开始时的要求,我去了[ERROR] FATAL UNHANDLED EXCEPTION: System.MissingMethodException: Method 'Android.Support.V4.Content.ContextCompat.CheckSelfPermission' not found. Android.App.Activity,我实际上使用它的扩展版本来包括一些我需要的方法和属性。

由于项目变得相当庞大和复杂 - 而且我过分依赖这些类型 - 如果没有一些错误,将Android.App.Fragment交换到Android.App.*有点困难那里。

是否有针对此案例的解决方案,还是应该从头开始重建项目?

0 个答案:

没有答案