iink SDK on Device

Answered

Use the debug.log-file function

创建EditorView后,编写以下代码

Com.myscript.iink.Configuration conf = engine.getConfiguration(); 

String path = Environment.getExternalStorageDirectory()。getPath()+ File.separator +“asaLog.txt”; 

 conf.setString(“debug.log-file”,path); 

并且apk正常启动,并且正常使用创建,写入,转换和保存的功能。 

但我找不到指定目录中的asaLog.txt文件。 

我试图用file.createNewFile()方法创建这个文件。我可以成功创建asaLog.txt文件,但没有日志数据。 

我的设置是否正确?或者我还需要做别的事吗? 

我正在制作android软件,谢谢


Best Answer

Dear 龚 文益,

Thank you for contacting us and your question.

On our side, we created the log file as follows:
File file = new File(getExternalFilesDir(null), File.separator +"asaLog.txt");
conf.setString("debug.log-file",file.getAbsolutePath());


We can then access the asaLog.txt file.

Can you confirm you gave the proper authorizations in both your code and in the settings of your application on the device?

Best regards,

Olivier

1 Comment

Answer

Dear 龚 文益,

Thank you for contacting us and your question.

On our side, we created the log file as follows:
File file = new File(getExternalFilesDir(null), File.separator +"asaLog.txt");
conf.setString("debug.log-file",file.getAbsolutePath());


We can then access the asaLog.txt file.

Can you confirm you gave the proper authorizations in both your code and in the settings of your application on the device?

Best regards,

Olivier