<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Peter:</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
      I thought in one of your previous messages you said you were trying to use Android 7.  In the documentation it says Android 8 is required.  I tried to install BRLTTY on Android 9 last fall, but I never got it to work, although I can't remember exactly
 what error I got.  I'm not sure how you would install it in a virtual machine, but Quick EMU does have Android 7, 8, and 9.  I don't think BRLTTY is in the Playstore like the documentation says. </div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Maybe I could try another experiment, but I would probably have to use Android 9.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="display: inline-block; width: 98%;">
<div style="direction: ltr; font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<b>From:</b> BRLTTY <brltty-bounces@brltty.app> on behalf of Peter Lecky <peter.lecky@stopka.sk><br>
<b>Sent:</b> Wednesday, April 3, 2024 5:40 AM<br>
<b>To:</b> brltty@brltty.app <brltty@brltty.app><br>
<b>Subject:</b> Re: [BRLTTY] Brlapi on Android</div>
<div style="direction: ltr;"> </div>
<div style="font-size: 11pt;">Good morning,<br>
<br>
I made some progress with this, but still do not have working library,<br>
so please, if someone has any idea what to do, then let me know.<br>
<br>
I made my own build from latest source (master branch). I changed<br>
common.mk, to have libraries without version suffix. More concretely, i<br>
changed line<br>
<br>
API_LIB_VERSIONED = $(API_LIB).$(API_VERSION)<br>
<br>
to<br>
<br>
API_LIB_VERSIONED = $(API_LIB)<br>
<br>
And then<br>
<br>
make clean<br>
<br>
cfg-android -a arm64-v8a<br>
<br>
make<br>
<br>
I manually added resulting libraries and jar archive to my project and<br>
successfully compiled.<br>
<br>
I can now properly load library, but with another kind of crash.<br>
<br>
Testing with this code in onclick method on one button:<br>
<br>
ConnectionBase cb=null;<br>
<br>
try {<br>
     cb=new ConnectionBase(new ConnectionSettings());<br>
     Shares.I.mTTS.say((cb==null)?"null":"have instance"+cb.getModelIdentifier());<br>
}catch(Exception e) {}<br>
And it crashes whole virtual machine with this in log (removing timestamp to make it readable ;)):<br>
  AndroidRuntime: FATAL EXCEPTION: main<br>
  AndroidRuntime: Process: xx.xx.xx, PID: 13299<br>
  AndroidRuntime: connect: No such file or directory<br>
  AndroidRuntime:        at org.a11y.brlapi.ConnectionBase.openConnection(Native Method)<br>
  AndroidRuntime:        at org.a11y.brlapi.ConnectionBase.<init>(ConnectionBase.java:43)<br>
  AndroidRuntime:        at xx.xx.xx.UIMainScreen.onBatteryClick(UIMainScreen.java:497)<br>
Please, let me know if someone has any ideas<br>
Thank you<br>
Peter<br>
<br>
On 28. 3. 2024 14:07, Peter Lecky wrote:<br>
> Good afternoon to all,<br>
><br>
> I am trying to use brlapi library for android in the project. I found<br>
> this page:<br>
><br>
> <a href="https://brltty.app/android.html" id="OWA234ccc1b-4b30-5739-68fc-8179d6c09d14" class="OWAAutoLink" data-auth="NotApplicable">
https://brltty.app/android.html</a><br>
><br>
> There is a older build of brlapi library which i am trying to use. I<br>
> used repository mentioned on that page and successfully compiled my<br>
> project, but my app crashes during initialization of the library with<br>
> this error:<br>
><br>
>>  AndroidRuntime: FATAL EXCEPTION: main<br>
>>  AndroidRuntime: Process: xxx.xxx.xxx, PID: 29870<br>
>>  AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed:<br>
>> library "libbrlapi.so.0.8" not found: needed by<br>
>> /data/app/~~YB-_ApEJ6BKmHFGYgcO1CQ==/xxx.xxx.xxx-YTdxhFskgX0ZhCxZbEwOhw==/base.apk!/lib/arm64-v8a/libbrlapi_java.so<br>
>> in namespace clns-5<br>
>>  AndroidRuntime:     at<br>
>> java.lang.Runtime.loadLibrary0(Runtime.java:1082)<br>
>>  AndroidRuntime:     at<br>
>> java.lang.Runtime.loadLibrary0(Runtime.java:1003)<br>
> It seems that libbrlapi_java library tryes to load libbrlapi.so with<br>
> version suffix (initialization crashes because file "libbrlapi.so.0.8"<br>
> is missing) but compiled apk contains libbrlapi.so without version<br>
> suffix.<br>
><br>
> I tryed to fetch all required files and added libs manually. Tryed to<br>
> rename brlapi.so to brlapi.so.0.8, but it seems that the package<br>
> manager does not support fformats other than something.so.<br>
><br>
> Can someone help please?<br>
><br>
> With best and thanks<br>
><br>
> Peter<br>
><br>
--<br>
Peter Lecký Stopka n. o.<br>
_______________________________________________<br>
This message was sent via the BRLTTY mailing list.<br>
To post a message, send an e-mail to: BRLTTY@brltty.app<br>
For general information, go to: <a href="http://brltty.app/mailman/listinfo/brltty" id="OWA5e2e0f55-285a-4b10-2265-09f62e308d00" class="OWAAutoLink" data-auth="NotApplicable">
http://brltty.app/mailman/listinfo/brltty</a></div>
</body>
</html>