Posts

APK install request permission

Code ••• StrictMode.setVmPolicy(new StrictMode.VmPolicy.Builder().build()); Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE); intent.setData(Uri.fromFile(new java.io.File( Environment.getExternalStorageDirectory(), "your_folder/your_apk_name.apk"))); startActivity(intent); Permission android.permission.REQUEST_INSTALL_PACKAGES Tutorial ••• https://youtu.be/WXruCt_UQnI IT Ye Phyo (Information Technology)

Search in ListView + On item click (Sketchware Project)

Image
Download Project ••• https://www.mediafire.com/download/u7p5yuxcz4rm681 IT Ye Phyo (Information Technology)

How to get local video in Sketchware

Image
Download Project ••• https://www.mediafire.com/download/telfpo5mk7m2cwx Video in used code ••• 1.This code is for get video thumbnail Bitmap bMap = ThumbnailUtils.createVideoThumbnail(file, android.provider.MediaStore.Video.Thumbnails.MICRO_KIND); imageview1.setImageBitmap(bMap); 2.This code is for get video size final java.io.File file1 = new java.io.File(file); try{ long length = file1.length(); length = length/1024; textview2.setText("File size : " + length +" KB"); }catch(Exception e){ showMessage("File not found : " + e.getMessage() + e); } 3.This code is for get duration of video MediaMetadataRetriever retriever = new MediaMetadataRetriever(); retriever.setDataSource(getApplicationContext(), Uri.fromFile(file1)); String time = retriever.extractMetadata(MediaMetadataRetriever.METADATA_KEY_DURATION); long timeInMillisec = Long.parseLong(time ); retriever.release(); textview3.setText(String.valueOf(timeInMillisec/60000) + " min" + ...

How to create Popup Menu in Sketchware Pro

Image
Download Popup Menu (Custom block) ••• https://www.mediafire.com/download/2pprq5d8kcos2e7 Tutorial on YouTube ••• https://youtu.be/9wmH0BKiz1Q IT Ye Phyo (Information Technology)

How to create custom dialog on Sketchware Pro (Without code)

Image
Download Project + Block (SH Zip) ••• https://www.mediafire.com/download/88zzaathd5l9vsq Download (SH Recovery) ••• https://www.mediafire.com/download/w45x18gkx3uta1d IT Ye Phyo - Information Technology

Sketchware project backup and restore (SH Recovery)

Image
Download (SH Recovery) ••• https://www.mediafire.com/download/w45x18gkx3uta1d IT Ye Phyo (Information Technology)