Native implementation not working
<p>Trying native Android code with codename one, but same is not working on device. When i try on simulator it is not work also no any message / error. But when same is tried on actual device then got Message <code>"NO Support"</code>. It means in <code>NativeCall nt = NativeLookup.create(NativeCall.class);</code> through device <code>nt</code> is <code>null</code>. Is there any mistake in my code ?</p>

<p>NativeImpl code :</p>

<pre><code>public class NativeCallImpl extends Activity implements userclasses.NativeCall{

public void setNative(String param) {
    Intent intent = new Intent(this, UploadData.class);  
    PendingIntent pendingIntent = PendingIntent.getBroadcast(  
                                  this.getApplicationContext(), 234324243, intent, 0);  
     AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);
     alarmManager.set(AlarmManager.RTC_WAKEUP, System.currentTimeMillis()  
                                  + (10 * 1000), pendingIntent);
     Toast.makeText(getApplicationContext(), "Native call", Toast.LENGTH_LONG).show();
}

public boolean isSupported() {
    return true;
}
}
</code></pre>

<p>Interface :</p>

<pre><code>public interface NativeCall extends NativeInterface{
public void setNative(String mobileNumber);
//public boolean isSupported();
}
</code></pre>

<p>Call:</p>

<pre><code>private void autoUpdate(){
    NativeCall nt= NativeLookup.create(NativeCall.class);
    if(nt!=null){
        nt.setNative(getMobileNumber());
    }else{
        Dialog.show("NO Support", "No Native Support", "OK", null);
    }
}
</code></pre>

<p>Screenshot of device :
<a href="https://i.stack.imgur.com/lqven.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lqven.png" alt="enter image description here"></a></p>