FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV Mobile 2024
→
Getting sharing data
Getting sharing data
Débuté par Marco, 16 juin 2020 11:09 - 1 réponse
Connectez-vous…
Marco
#1
Posté le 16 juin 2020 - 11:09
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?
Signaler
0
0
BENAKKA
#2
Posté le 29 juillet 2020 - 09:19
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
Signaler
0
0
→ Revenir à WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte