Nishtha Thakur has Published 564 Articles

How to get current thread is interrupted in android?

Nishtha Thakur

Nishtha Thakur

Updated on 29-Jun-2020 13:41:24

172 Views

Before getting into an example, we should know what thread is. A thread is a lightweight sub-process, it going to do background operations without interrupt to ui. This example demonstrate How to get current thread is interrupted in android.Step 1 − Create a new project in Android Studio, go to ... Read More

How to run .SQL script using JDBC?

Nishtha Thakur

Nishtha Thakur

Updated on 29-Jun-2020 13:41:00

15K+ Views

A database script file is a file that contains multiple SQL quries separated from each other. Usually, these files have the .sql extention.Running .sql script files in JavaYou can execute .sql script files in Java using the runScript() method of the ScriptRunner class of Apache iBatis. To this method you ... Read More

How to get current thread is alive or not in android?

Nishtha Thakur

Nishtha Thakur

Updated on 29-Jun-2020 13:40:04

129 Views

Before getting into an example, we should know what thread is. A thread is a lightweight sub-process, it going to do back ground operations without interrupt to ui. This example demonstrate about How to get current thread is alive or not in android.Step 1 − Create a new project in ... Read More

How to get current thread count in android?

Nishtha Thakur

Nishtha Thakur

Updated on 29-Jun-2020 13:38:56

841 Views

Before getting into example, we should know what thread is. A thread is a lightweight sub-process, it going to do back ground operations without interrupt to ui. This example demonstrate about How to get current thread count in android.Step 1 − Create a new project in Android Studio, go to ... Read More

How to get offsetdatetime local date in android using offset date time API class?

Nishtha Thakur

Nishtha Thakur

Updated on 29-Jun-2020 13:37:26

336 Views

This example demonstrate about How to get offsetdatetime local date in android using offset date time API class.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to ... Read More

How to get local time in android using localtime API class?

Nishtha Thakur

Nishtha Thakur

Updated on 29-Jun-2020 13:36:10

280 Views

This example demonstrate about How to get local time in android using localtime API class.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.   ... Read More

How to get local date in android using local date API class?

Nishtha Thakur

Nishtha Thakur

Updated on 29-Jun-2020 13:34:55

331 Views

This example demonstrate about How to get local date in android using local date API class.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. ... Read More

How to exit iPhone application gracefully?

Nishtha Thakur

Nishtha Thakur

Updated on 27-Jun-2020 13:28:13

337 Views

There are times we would like to close our application due to some reason, for example if there is no internet connection and you’d like to kill the app, or any other reason according to the application. Though apple prefers not quitting the application, hence it is not supported in ... Read More

How to disable the network in iOS Simulator?

Nishtha Thakur

Nishtha Thakur

Updated on 27-Jun-2020 13:23:06

8K+ Views

Sometimes while testing our app on simulator we need to test for case where no internet is available. This can be achieved in multiple ways.Below are some of the possible ways to do itEasiest but not the most correct way is to disconnect your mac from the LAN Cable is ... Read More

How to hide Back Button on navigation bar on iPhone/iPad?

Nishtha Thakur

Nishtha Thakur

Updated on 27-Jun-2020 13:17:29

4K+ Views

To hide the back button on navigation bar we’ll have to either set the navigation button as nil and then hide it or hide it directly.Let’s create a project, add 2 view controller and Embed them in navigation controller. Let’s see how this project looks when run without any code ... Read More

Advertisements