George John has Published 1167 Articles

How to create a custom navigation drawer in Android?

George John

George John

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

5K+ Views

This example demonstrate about How to resize Image in Android App.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.         Step ... Read More

How to make a phone call using intent in Android?

George John

George John

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

755 Views

This example demonstrate about How to lock the Android device programmatically.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     Step 3 − ... Read More

How to detect click on HTML button through javascript in Android WebView?

George John

George John

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

3K+ Views

This example demonstrate about How to lock the Android device programmatically.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     Step 3 − ... Read More

HTML DOM Object Height Property

George John

George John

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

75 Views

The HTML DOM Object Height property is used to set or return the height of an object. This height is set in pixels.Following is the syntax to set the height of an object: objObject.heightFollowing is the syntax to return the height of an object −objObject.height = pixelsAbove, pixels is the ... Read More

How to check if Location Services are enabled in Android App?

George John

George John

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

2K+ Views

This example demonstrate about How to check if Location Services are enabled in Android App.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.java   ... Read More

Is there a MAX function for rows and not for columns in MySQL?

George John

George John

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

84 Views

Yes, you can use GREATEST() from MySQL to check maximum from rows (not columns). Let us first create a table −mysql> create table DemoTable    (    Value1 int,    Value2 int,    Value3 int    ); Query OK, 0 rows affected (0.58 sec)Insert records in the table using insert ... Read More

How to add manifest permission to an application in Android?

George John

George John

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

493 Views

This example demonstrate about How to add manifest permission to an application in Android.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.java Step 3 − ... Read More

I want to return the next node after this node in a JTree with Java

George John

George John

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

141 Views

Use the getNextNode() method to get the next node after this node in Java. Here, we are displaying the next node of child node “eight” -System.out.println("Next node after this node = "+eight.getNextNode());The following is an example to return the next node after this node in a JTree -Examplepackage my; import ... Read More

How to make a background 25% transparent on Android?

George John

George John

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

207 Views

This example demonstrate about How to make a background 25% transparent on Android.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.java Step 3 − Add ... Read More

How to set a value in a particular JTable cell with Java?

George John

George John

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

1K+ Views

Let’s say initially our table is the following with a specific cell [2, 1] with value “Kane” −The following is an example to set a new value to the above table. Here, we will update the cell [2, 1] −table.setValueAt("Guptill", 2, 1);Let us see the complete example −Examplepackage my; import ... Read More

Advertisements