Xamarin.android MonoDroid中的RedLaserSDK.java

Xamarin.android MonoDroid中的RedLaserSDK.java,xamarin.android,Xamarin.android,我正在尝试使用MonoDroid中的RedLaserSDK.java 我已经将redlasersdk.jar包含为AndroidJavaLibrary 我已经将RedLaserSDK.java作为AndroidJavaSource包含在内 我已经包括了layout/video_view.axml 我已经包括了drawable/overlay_logo.png 我已经包括了raw/beep.ogg 我的主要活动如下所示: [活动(Label=“MainActivity”,MainLaunche

我正在尝试使用MonoDroid中的RedLaserSDK.java

  • 我已经将redlasersdk.jar包含为AndroidJavaLibrary
  • 我已经将RedLaserSDK.java作为AndroidJavaSource包含在内
  • 我已经包括了layout/video_view.axml
  • 我已经包括了drawable/overlay_logo.png
  • 我已经包括了raw/beep.ogg
我的主要活动如下所示:

[活动(Label=“MainActivity”,MainLauncher=true)]
公共类main活动:TabActivity
{
创建时受保护的覆盖无效(捆绑包)
{
base.OnCreate(bundle);
//从“主”布局资源设置视图
SetContentView(Resource.Layout.Main);
TabHost TabHost=TabHost;
//扫描选项卡
TabHost.TabSpec scanspec=TabHost.NewTabSpec(“扫描”);
scanspec.SetIndicator(“,Resources.GetDrawable(Resource.Drawable.icon\u scan\u tab));
Intent scanIntent=newintent(这是Java.Lang.Class.ForName(“com.ebay.rlsample.RedLaserSDK”);
scanspec.SetContent(scanIntent);
tabHost.AddTab(scanspec);//此处发生异常。。。。
}
}
但我遇到了一个ActivityNotFound异常:无法显式找到类“MyApp/MyApp.com.ebay.rlsample.RedLaserSDK”

有没有想过我可能错了什么?

我所缺少的只是:

<activity android:name="com.ebay.rlsample.RedLaserSDK" android:label="RedLaserSDK"/>


或者,有人知道如何为Java源代码活动获取正确的包和类名吗?即使我需要打开apt文件来找出它。按照你的脚步,我为最新的RedLaserSDK(3.0.3)创建了一个。非常感谢。