The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> ble EXPLORER
adnan shahid
post Mar 1 2015, 07:44 AM
Post #1


Member
***

Group: Members
Posts: 61
Joined: 23-June 14
Member No.: 21,128



please check the following error while running the BluetoothLEExplorer.Droid project from http://developer.xamarin.com/content/BluetoothLEExplorer/.
D:\robotics programming\ys u\BluetoothLEExplorer_2\BluetoothLEExplorer.Droid\obj\Debug\android\src\bluetoothleexplorer\droid\ui\controls\ScanButton.java(3,3): Error: error: no suitable constructor found for Button(Context,AttributeSet,int,int)
super (p0, p1, p2, p3);
constructor Button.Button(Context) is not applicable
(actual and formal argument lists differ in length)
constructor Button.Button(Context,AttributeSet) is not applicable
(actual and formal argument lists differ in length)
constructor Button.Button(Context,AttributeSet,int) is not applicable
(actual and formal argument lists differ in length)
(BluetoothLEExplorer.Droid)

this is on line 43 in ScanButton.java file in the controls directory.
the following is ScanButton.java file
CODE
package bluetoothleexplorer.droid.ui.controls;


public class ScanButton
    extends android.widget.Button
    implements
        mono.android.IGCUserPeer
{
    static final String __md_methods;
    static {
        __md_methods =
            "";
        mono.android.Runtime.register ("BluetoothLEExplorer.Droid.UI.Controls.ScanButton, Xamarin.Robotics.BluetoothLEExplorer.Droid, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", ScanButton.class, __md_methods);
    }


    public ScanButton (android.content.Context p0) throws java.lang.Throwable
    {
        super (p0);
        if (getClass () == ScanButton.class)
            mono.android.TypeManager.Activate ("BluetoothLEExplorer.Droid.UI.Controls.ScanButton, Xamarin.Robotics.BluetoothLEExplorer.Droid, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", "Android.Content.Context, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065", this, new java.lang.Object[] { p0 });
    }


    public ScanButton (android.content.Context p0, android.util.AttributeSet p1) throws java.lang.Throwable
    {
        super (p0, p1);
        if (getClass () == ScanButton.class)
            mono.android.TypeManager.Activate ("BluetoothLEExplorer.Droid.UI.Controls.ScanButton, Xamarin.Robotics.BluetoothLEExplorer.Droid, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", "Android.Content.Context, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065:Android.Util.IAttributeSet, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065", this, new java.lang.Object[] { p0, p1 });
    }


    public ScanButton (android.content.Context p0, android.util.AttributeSet p1, int p2) throws java.lang.Throwable
    {
        super (p0, p1, p2);
        if (getClass () == ScanButton.class)
            mono.android.TypeManager.Activate ("BluetoothLEExplorer.Droid.UI.Controls.ScanButton, Xamarin.Robotics.BluetoothLEExplorer.Droid, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", "Android.Content.Context, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065:Android.Util.IAttributeSet, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065:System.Int32, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", this, new java.lang.Object[] { p0, p1, p2 });
    }


    public ScanButton (android.content.Context p0, android.util.AttributeSet p1, int p2, int p3) throws java.lang.Throwable
    {
        super (p0, p1, p2, p3);
        if (getClass () == ScanButton.class)
            mono.android.TypeManager.Activate ("BluetoothLEExplorer.Droid.UI.Controls.ScanButton, Xamarin.Robotics.BluetoothLEExplorer.Droid, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null", "Android.Content.Context, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065:Android.Util.IAttributeSet, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065:System.Int32, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e:System.Int32, mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e", this, new java.lang.Object[] { p0, p1, p2, p3 });
    }

    java.util.ArrayList refList;
    public void monodroidAddReference (java.lang.Object obj)
    {
        if (refList == null)
            refList = new java.util.ArrayList ();
        refList.add (obj);
    }

    public void monodroidClearReferences ()
    {
        if (refList != null)
            refList.clear ();
    }
}


thanks
best rgards
adnan
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 03:58 AM