So I may not need bindings at all.  I'm trying to use an activity written in
java that inherits from redlaser's scanner activity.  But it can't seem to
find the java class.  I keep getting an ActivityNotFound exception.

Here is what I've done:
-I've included redlasersdk.jar as AndroidJavaLibrary
-I've included RedLaserSDK.java as AndroidJavaSource
-I've included layout/video_view.axml
-I've included drawable/overlay_logo.png
-I've included raw/beep.ogg

My C# activity looks like this:

[Activity (Label = "MainActivity", MainLauncher = true)]
public class MainActivity : TabActivity
{
  protected override void OnCreate (Bundle bundle)
  {
    base.OnCreate(bundle);

    // Set our view from the "main" layout resource
    SetContentView(Resource.Layout.Main);

    TabHost tabHost = TabHost;

    // Tab for Scan
    TabHost.TabSpec scanspec = tabHost.NewTabSpec("Scan");
    scanspec.SetIndicator("",
Resources.GetDrawable(Resource.Drawable.icon_scan_tab));
    Intent scanIntent = new Intent(this,
Java.Lang.Class.ForName("com.ebay.rlsample.RedLaserSDK"));
    scanspec.SetContent(scanIntent);

    tabHost.AddTab(scanspec); // Exception occurs here....
  }
}

Any thoughts on what I'm doing wrong?  Thanks again

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/RedLaser-bindings-for-MonoDroid-tp5111514p5112442.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to