Interactive Ink

interactive android SDK

Hi,

   I make two activities in android studio, the top is transparent the under is opaque.

 the top like this:

  <?xml version="1.0" encoding="utf-8"?>

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"

        xmlns:custom="http://schemas.android.com/apk/res-auto"

        android:layout_width="match_parent"

        android:layout_height="match_parent"

        android:background="#00000000">

    <com.myscript.iink.getstarted.EditorView

        android:id="@+id/editor_view"

        android:layout_width="match_parent"

        android:layout_height="match_parent"

        android:visibility="invisible"

        android:background="#00000000">

        <com.myscript.iink.getstarted.LayerView

            android:id="@+id/layer_model"

            android:layout_width="match_parent"

            android:layout_height="match_parent"

            android:layout_marginTop="0dp"

            android:layout_marginLeft="0dp"

            android:layout_marginBottom="0dp"

            android:layout_marginRight="0dp"

            custom:layerType="MODEL"/>

        <!--<com.myscript.iink.uireferenceimplementation.LayerView-->

            <!--android:id="@+id/layer_temporary"-->

            <!--android:layout_width="match_parent"-->

            <!--android:layout_height="match_parent"-->

            <!--android:layout_marginTop="0dp"-->

            <!--android:layout_marginLeft="0dp"-->

            <!--android:layout_marginBottom="0dp"-->

            <!--android:layout_marginRight="0dp"-->

            <!--custom:layerType="TEMPORARY"/>-->

    <com.myscript.iink.getstarted.LayerView

        android:id="@+id/layer_capture"

        android:layout_width="match_parent"

        android:layout_height="match_parent"

        android:layout_marginTop="0dp"

        android:layout_marginLeft="0dp"

        android:layout_marginBottom="0dp"

        android:layout_marginRight="0dp"

        custom:layerType="CAPTURE"/>

    </com.myscript.iink.getstarted.EditorView>

</FrameLayout>

              String str = editor.export_(editor.getRootBlock(),MimeType.LATEX);

              Log.d("Unity",str+" ----------------------------");


the result str is "?",  the two activities is Superposed.  I don't know why?? 





Dear Olivier,

   I found the error.  String confDir = "zip://" + getPackageCodePath() + "!/assets/conf"; the path is error.because

The assets exsits, but the conf and resources directory is not exsits, the change like:

image

image



Dear Olivier,

image


The auto change the name, I don't know How did i do?? String confDir = "zip://" + getPackageCodePath() + "!/assets"; Is this so?

Best regards


See Love



Dear Olivier,

     I solved the problem and intergrted the Unity. thanks very much。

Best regards,

See Love