can anyone tell me how to create the object of c++class in android through ndk
<p>my activity is::</p>

<pre><code>package com.soft;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class TestNdk extends Activity {
     TextView txtHello;


    private int m_cAddValue;


    private TestNdk m_cTestNDK;


    private int m_cObj;
    public TestNdk(int i, int j) {
      getSum();
    }

    public native int getSum();

     /** Called when the activity is first created. */
         @Override
          public void onCreate(Bundle savedInstanceState) {
              super.onCreate(savedInstanceState);
               setContentView(R.layout.main);



              txtHello = (TextView) findViewById(R.id.txtHello);
              txtHello.setText("hai this is for test");  
              //public TestNdk(int i, int j) ;

              m_cTestNDK = new TestNdk(20 ,30);





              txtHello.setText(m_cObj);

          }

         static{
             System.loadLibrary("TestNDK");
            initIDs();
             }


      }
</code></pre>

<p>=============================================================</p>

<p>my header file is ::test.h</p>

<pre><code>#ifndef __TEST_H__
#define __TEST_H__

class MyClass
{
private:
  int   m_cFirstNum;
  int   m_cSecondNum;
public:
  MyClass(int pNum1, int pNum2);
  int getSum();
  int getMult();
  int getSub();
  int getDiv();
};

#endif  //__TEST_H__
</code></pre>

<p>=============================================</p>

<p>my cpp file is:: test.cpp</p>

<pre><code>#include "test.h"

MyClass::MyClass(int pNum1, int pNum2)
{
  m_cFirstNum = pNum1;
  m_cSecondNum = pNum2;
}

int MyClass::getSum()
{
  return m_cFirstNum + m_cSecondNum;
}

int MyClass::getMult()
{
  return m_cFirstNum * m_cSecondNum;
}

int MyClass::getSub()
{
  return m_cFirstNum - m_cSecondNum;
}

int MyClass::getDiv()
{
  int lRetVal = 0;
  if(0 != m_cSecondNum)
  {
    lRetVal = m_cFirstNum + m_cSecondNum;
  }
  return lRetVal;
}
</code></pre>

<p>plz guide me on this 
always i am getting the message like
::newInstance failed: no ()</p>
