Ankith Reddy has Published 996 Articles

What are access specifiers in C#.NET?

Ankith Reddy

Ankith Reddy

Updated on 30-Jul-2019 22:30:23

719 Views

To define the scope and visibility of a class member, use an access specifier. C# supports the following access specifiers − Public Private Protected Internal Protected internal Let us learn about them one by one. Public Access Specifier It allows a class to expose its member variables and ... Read More

How to convert timestamp to datetime in MySQL?

Ankith Reddy

Ankith Reddy

Updated on 30-Jul-2019 22:30:23

6K+ Views

We can convert the timestamp to date time with the help of FROM_UNIXTIME() function. Let us see an example. First, we will create a table with column of int type. Then we convert it to timestamp and again into date time. Creating a table with integer type. mysql> create ... Read More

What is difference between Boolean and tinyint(1) in MySQL?

Ankith Reddy

Ankith Reddy

Updated on 30-Jul-2019 22:30:23

3K+ Views

The basic difference between Boolean and tinyint(1) is only in the naming convention. If we say that we need true or false values then Boolean comes to our mind, instead of tinyint(1). These data types are synonyms. It is up to us which data type we want to use- values ... Read More

How to create a custom listview in android?

Ankith Reddy

Ankith Reddy

Updated on 30-Jul-2019 22:30:23

4K+ Views

Before getting into listview example, we should know about listview, Listview is a collection of items pulled from arraylist, list or any databases. Most uses of listview is a collection of items in vertical format, we can scroll up/down and click on any item.What is custom listview?Custom listview works based ... Read More

How do I list all the columns in a MySQL table?

Ankith Reddy

Ankith Reddy

Updated on 30-Jul-2019 22:30:23

7K+ Views

To list all columns in a table, we can use the SHOW command. Let us first create a table. mysql> create table ColumnsList -> ( -> id int, -> Firstname varchar(200), -> LastName varchar(100), ... Read More

Enhancing your logging experience with Timber in Android

Ankith Reddy

Ankith Reddy

Updated on 30-Jul-2019 22:30:23

392 Views

Timber library is a extended library of android Log's. While developing android applications, most of developers prefer Android Logs. But here problem is about clean logs while deploy android project. To avoid this process using Timber library.This example demonstrate about how to integrate Timber in android.Step 1 − Create a ... Read More

How to handle fragmentation of auto increment ID column in MySQL?

Ankith Reddy

Ankith Reddy

Updated on 30-Jul-2019 22:30:23

359 Views

Whenever we renumber, there might be a problem. There is a need to declare a unique ID for a column. In MySQL version 5.6 InnoDB, we can reuse the auto_increment ID by including the ID column in an INSERT statement and we can give any specific value that we want. ... Read More

How do I get the current time zone of MySQL?

Ankith Reddy

Ankith Reddy

Updated on 30-Jul-2019 22:30:23

7K+ Views

The following is the syntax to get the current time zone of MySQL. mysql> SELECT @@global.time_zone, @@session.time_zone; The following is the output. +--------------------+---------------------+ | @@global.time_zone | @@session.time_zone | +--------------------+---------------------+ | SYSTEM | SYSTEM ... Read More

Handler in android ?

Ankith Reddy

Ankith Reddy

Updated on 30-Jul-2019 22:30:23

13K+ Views

We cant touch background thread to main thread directly so handler is going to collect all events which are available in main thread in a queue and posses this queue to looper class.In android Handler is mainly used to update the main thread from background thread or other than main ... Read More

How to check visibility of virtual keyboard on Android?

Ankith Reddy

Ankith Reddy

Updated on 30-Jul-2019 22:30:23

989 Views

There are some situations, we should find keyboard is visible or not in particular activity. In this example we can check visibility of virtual keyboard on android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a ... Read More

Advertisements