
Search In
Hi,
Here I am writing a simple way to use Comparator interface.
We use Comparator interface to order the objects.
First of all we need to import java.util package.
It have two methods :
Compare(Object o1, Object o2)
equals(Object o).
Th
Hello guys,
I am writing a blog to validate the HTML form by angularJS. We can validate the many thing by angularJs on real time basis for example-
required field, maximum length, minimum lenght and text pattern etc..
Now, create a form in HTML
Enable a system location dialog ,asking user that app needs to find the current location
This dialog is from Android Settings API
public class LocationData implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener
Using Toolbar in place of ActionBar:-
Nowadays ActionBar is getting replaced by toolbar, so it is good to use or get handy with new feature of Android i.e "ToolBar" , Here is the way to use toolbar in your Android Activity.
Step 1:- set the app the
Android has Lint for checking errors in Java and XML code. Lint release with every new SDK.
But Lint is not find most type of bugs,exceptions and performance issue.
I found one plugin for static analysis tools to analysis android Java code.
It
In Javascript there are several ways to detect array(variable is an array). But through this post , I will tell you ony four different ways to detect variable is an array .
Below there are 4 different ways are :->
1) Array.isArray(object) ->
JavaScript Math Object
The JavaScript math object is used to perform mathematical operation.
The Math object includes several mathematical methods.
Below are certain math objects with examples:
1)Math.sqrt(n)
this method returns the square root of
Foreign Key is used to establish a link between two tables . It always define in reference of Primary key ( another table ) . It act as a Primary key in its own table and foreign key for another table .
Difference between Primary key and Foreign key
1)Suppose we have a Button and a TextView in XML:
activity_main.xml
<Button
android:id="@+id/btnGet"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="GET IMAGES" />
<TextView
androi
Below code will help you to created SeekBar function in android. In android SeekBar is used by the end user, the user can drag the left and right to move the progress of runing file like audio song, video song etc. In the below code example, I have
