PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV Mobile 2024 → Access the photos and videos Gallery - Acessar a Galeria de fotos e videos
Access the photos and videos Gallery - Acessar a Galeria de fotos e videos
Débuté par adrianoboller, 24 nov. 2014 11:57 - Aucune réponse
Membre enregistré
3 651 messages
Popularité : +175 (223 votes)
Posté le 24 novembre 2014 - 11:57
//Galeria de fotos e videos - Adriano Boller - 30/08/2013

import android.app.Activity;
import android.content.Intent;
import java.lang.*;
import android.util.*;
import java.lang.Exception;
import android.util.Log;

PUBLIC static boolean GaleriaFotosVideos()
{
try
{
Intent i = new Intent(Intent.ACTION_PICK);
i.setType("image/*");
getActiviteEnCours().startActivity(i);
RETURN True;
}
catch(EXCEPTION e) {
Log.e("WM",e.toString());
RETURN False;
}
}