PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
[WM27] Need help consuming a external Android .aar (ATM)
[WM27] Need help consuming a external Android .aar (ATM)
Started by Predl ALEXANDER, Aug., 01 2022 10:41 AM - No answer
Connect yourself…
Predl ALEXANDER
#1
Registered member
1 message
Posted on August, 01 2022 - 10:41 AM
Hi,
I try to consume a .aar from SIX Payments, they have an app which I can control the ATM. This app works fine, so I wanted to use this .aar from the app in WM27 but I stopped on a little problem:
public static void SIXConnect()
{
Activity tmpActivity = getCurrentActivity();
ComponentActivity compActivity = new ComponentActivity();
Context context = getApplicationContext();
TerminalAndroid terminal = null;
TerminalAndroid.onCreate(compActivity);
}
This compiles fine, but on runtime line TerminalAndroid.onCreate(compActivity) it tells me an error:
Message=Internal error.
System message=No virtual method getActivityResultRegistry()Landroidx/activity/result/ActivityResultRegistry; in class Landroidx/activity/ComponentActivity; or its super classes (declaration of 'androidx.activity.ComponentActivity' appears in /data/app/com.syspredl.primakiosk.go-LiDD1Id5ZRvcsP5yM1MibQ==/base.apk)
Process=Clic sur WIN_TEST.BTN_NoName1
WLanguage stack=Clic sur WIN_TEST.BTN_NoName1
Java stack=com.six.timapi.TerminalAndroid.onCreate(TerminalAndroid.java:55)
I'm sure, I need a ComponentActivity from WinDev (seems to be null), how can I get a ComponentActivity from WinDev Mobile??
When I use the Activity the error is:
error: incompatible types: Activity cannot be converted to ComponentActivity
yours
Alexander Predl
Report
0
0
→ Go back to WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text