Skip to main content

How to Avoid Screenshot of your App.



Description

when you design an app you will add some important and premium content in your app.Now a days the people take screenshots of premium content in your app.There are some apps like hotstar,amazon prime,jio TV,Voot,MX player which contains video content which can be recorded.
So In this project we make the screenshot as well as screenrecorder disable while they use our app.So there will be no data leak.


In Android studio we have a code which make this happen by disabling the screenrecorder.

Open the IDE and paste this code in the onCreate function in Mainactivity.java.

getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE,WindowManager.LayoutParams.FLAG_SECURE);

This code will make your app Screen Secure by using Flag_Secure method.



Before Applying the code,I took the Screenshot of the App.





After Applying the code,I tried to record the screen....



Thank You

Comments

Popular posts from this blog

Auto-Image Slider using Javascript

  Introduction Image Slider is a way of displaying multiple images, videos or graphics which is created using javascript. Preview HTML Code <!DOCTYPE html> < html lang = "en" > < head > < meta charset = "UTF-8" > < meta name = "viewport" content = "width=device-width, initial-scale=1.0" > < title > Auto-Image Slider </ title > < link rel = "stylesheet" href = "https://use.fontawesome.com/releases/v5.15.1/css/all.css" > < link rel = "stylesheet" href = "ImageSlider.css" > < script src = "ImageSlider.js" > </ script > </ head > < body > < div class = "container" > < div class = "slides" > < div class = "slide" > < img src = "https://cdn.pixabay.com/photo/2020/11/20/01/10/glacier-5760277_960_72...

Connecting NodeMCU(esp8266) with Blynk App.

Lets Get Started... Here we will setup the NodeMCU board and Blynk App for making projects based on IoT. Steps to Setup:- 1 . First Install the Arduino IDE in your PC.                             2.Click on File and open Preferences.      3.Paste this link in URLs.(http://arduino.esp8266.com/stable/package_esp8266com_ index.json.). 4.Next Click on the Tools and select the Board Managers. 5.Search for ESP8266 and Install it. 6.Select the Board as NodeMCU 1.0 and also select the Port. 7.Write this code in the Arduino IDE. #define BLYNK_PRINT Serial   #include <ESP8266WiFi.h>   #include <BlynkSimpleEsp8266.h>      char auth[] = "Your Auth Code"; // the auth code that you got on your gmail and Blynk app   char ssid[] = "Username(WIFI)"; // username or ssid of your WI-FI...

Instagram Post Downloader using JQuery and Ajax

  Introduction In this project, we will learn to get the data from Instagram using the link given by the user. First the given link is modified and passed to the instance of XMLHttpRequest. Using instance of XMLHttpRequest, we will get JSON data and Access the required data such as image url, video url and create image and video tag respectively. Now you can download image as well as video as shown in the preview video. Pre-Requisite you should know to use JSON data, to access the required data ( object, arrays, string etc ). you should know to use XMLHttpRequest, to send the request, to get the data from the response. basic of JQuery is enough. Preview HTML Code <!DOCTYPE html> < html lang = "en" > < head > < meta charset = "UTF-8" > < meta name = "viewport" content = "width=device-width, initial-scale=1.0" > < title > Document </ title > < link rel = "stylesheet" ...