Membuat Aplikasi Config PUBG Dengan Sketchware – Data Pendukung

Membuat Aplikasi Config PUBG Dengan Sketchware

Code Pendukung Project Config PUBG File Online

Java Code ASD BLOCK UNZIP

try
{
java.io.File outdir = new java.io.File(_lokasiUnzip);
java.util.zip.ZipInputStream zin = new java.util.zip.ZipInputStream(new java.io.FileInputStream(_lokasiFileZip));
java.util.zip.ZipEntry entry;
String name, dir;
while ((entry = zin.getNextEntry()) != null)
{
name = entry.getName();
if(entry.isDirectory())
{
mkdirs(outdir, name);
continue;
}


dir = dirpart(name);
if(dir != null)
mkdirs(outdir, dir);

extractFile(zin, outdir, name);
}
zin.close();
}
catch (java.io.IOException e)
{
e.printStackTrace();
}

}
private static void extractFile(java.util.zip.ZipInputStream in, java.io.File outdir, String name) throws java.io.IOException
{
byte[] buffer = new byte[4096];
java.io.BufferedOutputStream out = new java.io.BufferedOutputStream(new java.io.FileOutputStream(new java.io.File(outdir, name)));
int count = -1;
while ((count = in.read(buffer)) != -1)
out.write(buffer, 0, count);
out.close();
}

private static void mkdirs(java.io.File outdir, String path)
{
java.io.File d = new java.io.File(outdir, path);
if(!d.exists())
d.mkdirs();
}

private static String dirpart(String name)
{
int s = name.lastIndexOf(java.io.File.separatorChar);
return s == -1 ? null : name.substring(0, s);
Java Code ASD Block Unzip File

Path Lokasi File Config di Folder Data PUBG :

/storage/emulated/0/Android/data/com.tencent.ig/files/UE4Game/ShadowTrackerExtra/ShadowTrackerExtra/Saved/Config/Android/UserCustom.ini

Java Code ASD BLOCK Dialog Progress Download

final ProgressDialog prog2 = new ProgressDialog(YourActivity.this);
prog2.setMax(100);
prog2.setMessage("Get File Module....");
prog2.setIndeterminate(true);
prog2.setCancelable(false);
prog2.show();

//Java Code ASD BLOCK CLOSE DIALOG
prog2.dismiss();
Java Code ASD BLOCK Dialog Progress Download

Java Code ASD Intent Open PUBG GAME App

Intent intent = getPackageManager().getLaunchIntentForPackage("com.tencent.ig");

if (intent != null) { // We found the activity now start the activity intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

startActivity(intent);

} else {

// Bring user to the market or let them choose an app?

intent = new Intent(Intent.ACTION_VIEW); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

intent.setData(Uri.parse("market://details?id=" + "com.tencent.ig")); startActivity(intent);
}
Java Code ASD Intent Open PUBG GAME App

Download File Config PUBG : Klik disini

Bagikan Tanggapan Anda di Sini

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d blogger menyukai ini: