Thanks Shai, it compiles fine now, but I cant work out how to call the 
code. The .aar contains a class called "AlgorithmCWrapper" but I cannot 
seem to import it (ive done a cn1lib refresh).. the interface in the c 
looks like below...

So I expected to be able to do AlgorithmCWrapper cwrap = new 
AlgorithmCWrapper(); 
or maybe
AlgorithmCWrapper my = NativeLookup.create(AlgorithmCWrapper.class);

but AlgorithmCWrapper doesnt import. Ive done this quite a few times but I 
can't see my old code because I'm travelling. How would I get it to work?

package uk.co.skyrad.hobmonitoralgo;
public class AlgorithmCWrapper {
    static {
        System.loadLibrary("hobmonitor");
    }

    public native void set_input(byte[] packedBluetoothData, byte hobLayoutId);
    public native int[] get_pan_indexes();
    public native float[] get_pan_temperatures();
    public native int[] get_pan_states();
    public native int[] get_pan_boiling_time_seconds();
    public native int[] get_time_since_food_added_seconds();
    public native void init();
    public native void step();}


On Wednesday, September 11, 2019 at 3:35:39 AM UTC+1, Shai Almog wrote:
>
> Hi,
> you can use android.xapplication_attr to inject attributes into the 
> application tag.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/93eae52e-dd5e-468c-8bd5-43b8bca7626d%40googlegroups.com.

Reply via email to