Monday, June 12, 2017

Android Content Provider

June 12, 2017
content-provider-tech-stack
Welcome to this post. In this post we are going we learn about Content Provider. Content Provider In the previous post , we work with the database. We learn how to create a database. How to use contract class. But we don't write any methods to access the database. In this post, we learn about how to access the database. For access database, we use the content provider. Let's start- Before...
Read More

Sunday, June 11, 2017

Android Sql Database with Contract Class

June 11, 2017
sql
Welcome to my Blog. Today our tutorial is covered Android database. For database we use SQLite. It's a light weight. There is a lot of benefits to using SQLite database. you can find on online about why developers use SQLite. But In this post, I am not going to tell you about it, I am just showing it uses. Let's start- First, we create a Java Class and extend it by SQLiteOpenHelper...
Read More

Monday, May 29, 2017

Kotlin: working with String

May 29, 2017
kotlin
Welcome to kotlin Series In this tutorial, we are working with String of Kotlin. In this post, we are going to learn about- #variable type #variable declaring #String #Join String #Compare two String #Find index from any String. Ok Let's start by Creating the main method fun main(arg : Array<String>){ println("Hello world kotlin") } In Kotlin we have two types of variable- 1.mutable 2.immutable 1.mutable...
Read More

Sunday, May 21, 2017

Android CollapsingToolbarLayout

May 21, 2017
toolbar-min
Android CollapsingToolbarLayout is one of the most common features on android material design. By using collapsing toolbar we can now collapse our android app toolbar and use image or others things on the toolbar and that visibility is gone with collapse. In this post, We will learn how to use Collapsing Tollbar layout. Let's check documentation Now start- First, add design dependence on your...
Read More

Friday, May 19, 2017

Bookstore a java example code

May 19, 2017
java
Bookstore a java example code LEVEL: BEGINNER This example is good for understanding Array methods conditions(if and else) the process of this bookstore: 1.First, we have a collection of books name: static String[] book = { "java", "c", "c++", "php", "javascript", "html" }; 2.we ask the user to which book is he want? 3. we search that book name in our list of books 4. if we find...
Read More

Java String Example

May 19, 2017
String
String in Java Strings Example Example 1: Get first two characters of any String public String firstTwo(String str) { if (str.length() >= 2) { return str.substring(0, 2); } else { return str; } // Solution notes: need an if/else structure to call substring if the length // is 2 or more, and otherwise return the string itself } Alternative example of getting first...
Read More