Click on link Floating
Posts
Showing posts from April, 2020
More blok unzip sketchware
- Get link
- X
- Other Apps
Add sourcode 1 try{ java.io .File outdir = new java.io .File(_dir);java.util.zip.ZipInputStream zin = new java.util.zip.ZipInputStream(new java.io .FileInputStream(_file_zip));java.util.zip.ZipEntry entry;String name, dir;while ((entry = zin.getNextEntry()) != null){name = entry.getName();if(entry.isDirectory()){mkdirs(outdir, name);continue;} /* this part is necessary because file entry can come before* directory entry where is file located* i.e.:* /foo/foo.txt* /foo/*/ dir = dirpart(name);if(dir != null)mkdirs(outdir, dir); extractFile(zin, outdir, name);}zin.close();}catch ( java.io .IOException e){e.printStackTrace();} Add sourcode 2 }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
Slide_baner_sketchware
- Get link
- X
- Other Apps
1. View v1 = (View) getLayoutInflater().inflate(R.layout.banner1, null); final ImageView image1 = (ImageView) v1.findViewById(R.id.imageview1); Glide.with(getApplicationContext()).load(Uri.parse(img1)).into(image1); 2. View v2 = (View) getLayoutInflater().inflate(R.layout.banner2, null); final ImageView image2 = (ImageView) v2.findViewById(R.id.imageview1); Glide.with(getApplicationContext()).load(Uri.parse(img2)).into(image2); 3. View v3 = (View) getLayoutInflater().inflate(R.layout.banner3, null); final ImageView image3 = (ImageView) v3.findViewById(R.id.imageview1); Glide.with(getApplicationContext()).load(Uri.parse(img3)).into(image3); 4. View v4 = (View) getLayoutInflater().inflate(R.layout.banner4, null); final ImageView image4 = (ImageView) v4.findViewById(R.id.imageview1); Glide.with(getApplicationContext()).load(Uri.parse(img4)).into(image4); 5. ViewGroup.LayoutParams lp =new ViewGroup.LayoutParams(getDisplayWidthPixels
- Get link
- X
- Other Apps
Intent intent = getPackageManager().getLaunchIntentForPackage("com.mobile.legends"); 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.mobile.legends")); startActivity(intent); }