Skip to main content

Posts

Android Collapsing ToolbarLayout Example

Android CollapsingToolbarLayout is a wrapper for Toolbar which implements a collapsing app bar. It is designed to be used as a direct child of a AppBarLayout. CollapsingToolbarLayout is the newly introduced in Lollipop , using which you can create awesome scrolling effect. The following sample will explain you how to achieve this CollapsingToolbarLayout Build Gradle file : build.gradle dependencies {     compile 'com.android.support:design:23.0.1'    compile 'de.hdodenhof:circleimageview:2.2.0' }   XML Layout activity_main.xml <? xml version= "1.0" encoding= "utf-8" ?> < android.support.design.widget.CoordinatorLayout xmlns: android = "http://schemas.android.com/apk/res/android"     xmlns: app = "http://schemas.android.com/apk/res-auto"     android :layout_width= "match_parent"     android :layout_height= "match_parent"     android :background= "@...

Disabling screen shot capture in Android application

In this tutorial we are going to show how to protect your application from screen shot capturing. Some applications might be having sensitive personal data (for example all banking applications), so as a developer we need to disable the option to take screen shot using DDMS console. See following steps : Use WindowManager.LayoutParams.FLAG_SECURE before setContentView() mehtod Note: There is no application level protection. You have to add this code in all the activities that you want to protect. Generally, when you take a screenshot, you will see a “Screen Capture” notification in the notification bar and you can see that screenshot in the Gallery app if you click that notification. Now, if you use FLAG_SECURE, the Notification will be “Can’t take screenshot…….” as below, Do as follow, In your Activity.Java import android.view.WindowManager; public class MainActivity extends AppCompatActivity { @Override public void onCreate(Bundle savedInstanceState) { ...

Ionic Framework Tutorial for Building Mobile Applications - How to start Hybrid

Have you heard about Ionic Framework? It is the most popular framework for building hybrid mobile applications. This post is a introductory post about the Ionic Framework Tutorial I will be posting here. In this post we will learn about the environment setup for Ionic Framework. And we will also deploy a very simple Hello World application. So lets start. Prerequisites Though you can easily build Hybrid Applications but we will be discussing about Android here. To develop hybrid application don’t worry about java. Because you need the knowledge of HTML, CSS and JavaScript for building Mobile apps with Ionic Framework. What is Ionic Framework? Ionic is a front end HTML Framework. It is build on AngularJS and Cordova. If you are a web developer then you can easily start building Mobile Applications using Ionic Framework as it uses the web technologies like HTML, CSS, JavaScript. etc. Ionic Framework Tutorial So the first thing we need to get started with Ionic Framewo...