ProgressArcView implementation for Android

Would you like the same progress View? Here is source code for simple viewsion without customisation from XML. package com.hrupin.samples.roundanimation; import android.content.Context; import android.content.res.Resources; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.RectF; import android.os.Bundle; import android.os.Parcelable; import android.util.AttributeSet; import android.view.View; /** * Created by Igor Khrupin www.hrupin.com on 03-05-2017. */ Read more…

How to prevent screen capturing in Android

Prevent screen capturing is way for saving your content. Android SDK have special flag for it. https://developer.android.com/reference/android/view/WindowManager.LayoutParams.html#FLAG_SECURE Just declare it in your Activity like this: @Override protected void onCreate(Bundle savedInstanceState) { getWindow().setFlags(WindowManager.LayoutParams.FLAG_SECURE, WindowManager.LayoutParams.FLAG_SECURE); super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ….. } And user will see next message when try make screenshot: