GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV Mobile 2024
→
Getting sharing data
Getting sharing data
Iniciado por Marco, jun., 16 2020 11:09 AM - 1 resposta
Conecte-se…
Marco
#1
Publicado em junho, 16 2020 - 11:09 AM
Hi everyone,
We try to get an info box when we are using the share button. See the code below:
import androidx.appcompat.app.AppCompatActivity;
import android.net.Uri;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;
import android.os.Bundle;
import android.widget.Toast;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent intent = getIntent();
String action = intent.getAction();
String type = intent.getType();
appelProcedureWL("wlandroid_displayinfo","Init");
if (Intent.ACTION_SEND.equals(action)) {
if ("text/plain".equals(type)) {
appelProcedureWL("wlandroid_displayinfo","tekst");
}else if (type.startsWith("image/")) {
appelProcedureWL("wlandroid_displayinfo","image");
}
}
}
}
Procedure
WLAndroid_DisplayInfo
(
s
Info
)
Info
(
s
Info
)
We edited the manifest. So our program can be selected on a device when you use the share button. However this code never runs (we never get the info "init"). What are we doing wrong?
Denunciar
0
0
BENAKKA
#2
Publicado em julho, 29 2020 - 9:19 AM
Hello,
Since 20/06/2020, do you have solved the problem.
I think that i have the same problem on "import androidx.appcompat.app.CompatActivity" on windev mobile.
Thanks for your attention
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