Hi,
In java you could have the following method:
public static Date ParseFecha(String fecha) {
SimpleDateFormat formato = new SimpleDateFormat("dd/MM/");
Date fechaDate = null;
try {
fechaDate = formato.parse(fecha);
}
catch (ParseException
Where's the rest of the error log?
Also you didn't implement the native code for each of the native platforms
e.g. Android would have its own impl file and so would iOS.
Did you look at the How Do I video tutorial for native interfaces? It's
pre-maven but should cover all of this.
On Thursday,
I forgot to add the code used to test it:
if(cn != null && cn.isSupported()) {
rv = cn.doInNative("string");
Log.p(rv);
}
which returns "Dummy" as expected.
---
On Wednesday, June 23, 2021 at 6:15:12 PM UTC-4 Dennis Rogers wrote:
> I'm at a loss in trying to do a native
I'm at a loss in trying to do a native interface. I created the class
"MyNative"
package com.symdesign.myapp;
import com.codename1.system.NativeInterface;
public interface MyNative extends NativeInterface {
public String doInNative(String hi);
}
Then I ran the tool "create native interfaces"