|
FOROS PROFESIONALES WINDEV, WEBDEV y WINDEV Mobile |
| | | | | |
| [b]Images with list Android Apps[/b] |
| Iniciado por guest, 13,dic. 2014 23:15 - No hay respuesta |
| |
| | | |
|
| |
| Publicado el 13,diciembre 2014 - 23:15 |
Hello everyone, I wonder how I should change my code to the images to be saved with this Java code in WinDev Mobile (I am a beginner in Java) this function list Android Apps But the line p.applicationInfo.loadIcon(getCurrentActivity().getPackageManager()); returns me android.graphics.drawable.BitmapDrawable@40fb2d60 I can not save the image or assigned to a variable picture Please, Help me
//Java import java.util.*; import android.util.*; import android.content.pm.*; public static String APKListInstall(boolean bAPKSystem){ String sRes = ""; List<PackageInfo> packs = getCurrentActivity().getPackageManager().getInstalledPackages(0); for(int i=0;i<packs.size();i++) { PackageInfo p = packs.get(i); if(!bAPKSystem & ((p.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) == 1)){ continue; } if (p.versionName == null) { continue ; } if (sRes != ""){ sRes += "$SEP1$"; } sRes += p.packageName; sRes += "$SEP2$"; sRes += Integer.toString(p.versionCode); sRes += "$SEP2$"; sRes += p.versionName; sRes += "$SEP2$"; sRes += p.applicationInfo.loadIcon(getCurrentActivity().getPackageManager()); sRes += "$SEP2$"; sRes += p.applicationInfo.loadLabel(getCurrentActivity().getPackageManager()).toString(); } return sRes; } |
| |
| |
| | | |
|
| | | | |
| | |
| | |
| |
|
|
|