GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV Mobile 2024
→
External Java SDK Classes in Windev Mobile Android
External Java SDK Classes in Windev Mobile Android
Iniciado por Gautam, mar., 21 2016 11:22 AM - 2 respostas
Conecte-se…
Gautam
#1
Membro registado
67 mensagems
Publicado em março, 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
Denunciar
0
0
rob
#2
Membro registado
105 mensagems
Publicado em março, 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.
Denunciar
0
0
Rubén Sánchez Peña
#3
Publicado em maio, 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
Denunciar
0
0
→ Voltar para WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto