Skip to main content

Posts

Create Custom EditText View in Android

We use the EditText for taking the input from the user and use it at several places in our project. We required to do lots of customization for each time and there are lots of redundant code we write. Writing and managing these redundant codes is very difficult for example if we want to change the look and feel of the view them we need to modify it at each place where our EditText is getting used. So to avoid these kinds of the problem we can create our own Custom EditText View by just. The EditText view is just an extension of the TextView with lots of editing option and properties that required for the user input. How To Create Custom EditText View For creating the Custom EditText we need to extend the AppCompatEditText and override all three constructors of the view as given below. import android.content.Context; import android.graphics.Typeface; import android.support.annotation.Nullable; import android.support.v7.widget.AppCompatEditText; import android.util.AttributeSet; public...

WSS Security in Android using Ksoap2 SOAP Library

In this post, we are going to implement the WSS security in android using KSOAP2 library. Generally, most of the android application is created on the REST-based API but still, there are lots of android application which are created on the SOAP protocol and if you are here then obviously you have a project which required SOAP-based implementation directly from android app and implementing the security in this is very important. So let's start the implement WSS Security in Android using Ksoap2 SOAP Client . Create SOAP Demo Android Project To complete learn the implementation of WSS security, first of all, we have will create an android project. So Let's create the project using the Android Studio IDE File->New Project and select the Activity type and type the name of your project and click the finish button. UI Design of the SOAP Android Application Designing the Layout of any application is the first and most important part of any application. So we are going to design the...

ELK Stack and Beats for a centralized monitoring solution

ELK stack stands for Elastic Search, Logstash and Kibana, together all these three components do the jobs of the centralized monitoring solution of your infrastructure. In short ELK stack is not just monitoring solution it comes with lots of other features like searching the historical data, visualized your monitoring status, quick findings of the root cause of the problem, machine learning, Graph and many more. It has lots of plugins that make it more interesting and useful for today worlds where we have hundreds of microservices and servers running on the cloud and personal data center. Why ELK Stack? ELK stack has some unique features, that make it different from any other monitoring tools and software, some of them are given below. Most powerful and unique features of ELK stack is that its lightweight The core of the ELK and very fist is the elastic search which provides the unique functionality of the searching of any error and status. A centralized database of all the servers and...

No toolchains found in the NDK toolchains folder for ABI with prefix

The  "No toolchains found in the NDK toolchains folder for ABI with prefix" error is now coming frequently if you import any old project into the android studio after latest update into the android studio. A solution of this error in the android studio is the updating gradel version to latest one into your apps level build.gradle file and sync the project again, as given below.   dependencies { classpath 'com.android.tools.build:gradle:3.2.1' }    

Creating a Cross platform Mobile App with Flutter and Dart

Whenever we create a mobile application, we want our app to be compatible with as many different devices as possible. For Android, this means designing for devices with a range of hardware, software and screen configurations, but if we want our app to reach the largest possible audience, then we have to move beyond Android and make your app available on other mobile platforms as well. For example, you have to create an app for the android device but later on you have planned to target your app for iPhone and iPad then you need to port complete code to IOS and that is not an easy task, its required huge time and effort even for maintenance. Every single code change needs to write for both platforms. So in this post  Creating a cross platform Mobile App with Flutter and Dart we are going to learn how to develop an application which runs cross the platform, i.e the same code base can be used for Android and IOS both. Installing the Flutter and Dart Plugin in Android Studio for Cr...

Kotlin Basic Syntax: Loop and Conditional Control Operator

In this article, we will cover some basic syntax of Kotlin. Like for, dowhile and while loop, if and when control operator, downTo , step , in and its use. These are first and the very basic concept of any programming language. Using the if control operator in Kotlin If the conditional operator in Kotlin is similar to the java and it can be used in the same as like into the java only difference as normal is that we don't require ";"  operator at the end of every line. var a=11 var b=20 if(a < b){ println("$a is less then $b" ) } Output:- 11 is less then 20 Using the if with else control operator in Kotlin we can use the traditional if else statement like we use in the java and syntax for this as given below. println("Enter the number:") var c = readLine() var a=c!!.toInt() var b=20 if(a < b){ println("$a is less then $b" ) } else{ println("$a is greater then $b")...

Kotlin Parcelable Array Objects Send To Activity

We know that IPC (Inter Process Communication) between the activity is an extremely important part of any application development. We often required that we need to send some data to other activity. For example, we may be required to send an array of data, data could be an Integer, String, Long, Double, Float or any other custom data objects. So, In this example, we are going to learn how to implement the Kotlin Parcelable Array object to send the data from one activity to second activity. What is Parcel? The parcel class is designed as a high-performance IPC transport. A Parcel can contain both flattened data that will be unflattened on the other side of the IPC, and references to live IBinde r objects that will result in the other side receiving a proxy IBinder connected with the original IBinder in the Parcel. Create Kotlin Parcelable Array Objects Parcelable is API for placing the arbitrary objects into the Parcel. In Actual in android app development, Parcelable is an interface ...