PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
External Java SDK Classes in Windev Mobile Android
External Java SDK Classes in Windev Mobile Android
Started by Gautam, Mar., 21 2016 11:22 AM - 2 replies
Connect yourself…
Gautam
#1
Registered member
67 messages
Posted on March, 21 2016 - 11:22 AM
Hi
How do you reference third party external java classes in a windev Mobile (Android) 19 Project?
I have a biometric device that comes with its own sdk (.java and .class). I would like to reference these within my WM19 project.
I know that we have to create a global procedure and click on WL to change to Java and put the code there. However what I am not sure on is where to place the .java or .class files within the project. Do we add them as "other" elements in the project explorer? Do we place them in certain folder within the project or do we have to place them in the android folder or something similar? How does the windev mobile project find the java sdk files?
When I generate the project - get the following error:
"package com.fgtit.fpengine" does not exist import fgtit.fpengine.fpdevice
^
Any help will be greatly appreciated.
Thanks and regards
Gautam
Report
0
0
rob
#2
Registered member
105 messages
Posted on March, 24 2016 - 9:12 PM
If you figure this out, I would love to know the answer.
I'm struggling with an android api for a bar code reader.
I have the .aidl and .java files as well as the code to use them, just not sure how to tell WDM where and what they are.
Report
0
0
Rubén Sánchez Peña
#3
Posted on May, 19 2016 - 1:42 PM
Hi.
If you have a JAR library you can include it in the Generate Application process.
If you have only a JAVA source you can compile the java code and generate a JAR to include or you can create a Global Procedure containing the java source code. In this case you must follow the WM rules with java code (all the procedures must be Public Static, you can pass only int and string parameter types to call to/from WM procedures, ...)
Look for examples. It's easy when you see how must do it.
Rubén
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