You will need to copy it to File.DirInternal and then load it. You can get this folder in your Java code by calling anywheresoftware.b4a.objects.streams.File.getDirInternal.
Back to square one!
Oh my god, now when i got the .so files to work, i get a error when installing on a Samsung Tab 3, Application not compatible!
Maybe I need to connect with the service and AIDL-files instead. 40% of our users has Tab 3.
This is the instructions.
Use PclService.apk
1. Create a package com.ingenico.pclservice in the src/ directory of your project
2. Copy the aidl files from %Add-on_Dir%\Android\SDK\ to the previously created package to be able to use the PclService features:
IPclService.aidl
IPclServiceCallback.aidl
TransactionIn.aidl
TransactionOut.aidl
3. Copy file %Add-on_Dir%\Android\SDK\Transaction.jar in the libs/ directory of the project and add it to the Java Build Path as an external library
This is thejava code snippet to connect.
public class YourActivity extends Activity {
// Declare IPclService interface
protected IPclService mPclService = null;
// Declare Serviceconnection
private PclServiceConnection mServiceConnection;
// Implement ServiceConnection
class PclServiceConnection implements ServiceConnection
{
public void onServiceConnected(ComponentName className, IBinder boundService )
{
mPclService = IPclService.Stub.asInterface((IBinder)boundService);
}
public void onServiceDisconnected(ComponentName className)
{
mPclService = null;
}
};
// You can call this method in onCreate for instance to bind to
// the service
private void initService()
{ mServiceConnection = new PclServiceConnection();
Intent i = new Intent();
i.setClassName( "com.ingenico.pclservice",
"com.ingenico.pclservice.PclService" );
getApplicationContext().bindService( i, this.mServiceConnection,
Context.BIND_AUTO_CREATE);
}
// You can call this method in onDestroy for instance to unbind
// from the service
private void releaseService()
{
getApplicationContext().unbindService( this.mServiceConnection);
}
};
Before i start, do you see ANYTHING in this that might be a problem with B4A, Do i need to exchange anything with the BA object?