Andriod

What is Android?

Android is a stack of software for mobile devices which has Operating System, middleware and some key applications. The application executes within its own process and its own instance of Dalvik Virtual Machine. Many Virtual Machines run efficiently by a DVM device. DVM executes Java language byte code which later transforms into .dex format files.

What are the key components of Android Architecture?

Mainly Android Architecture have 4 key components: 

What are the advantages of Android?

Multitasking – Yups, Android phones can run many applications, it means you can browse, Facebook while listened to the song. Ease of Notification – Any SMS, Email, or even the latest articles from an RSS Reader, there will always be a notification on the Home Screen Android phone, do not miss the LED indicator is […]

What are the disadvantages of Android?

Given that Android is an open-source platform, and the fact that different Android operating systems have been released on different mobile devices, there’s no clear cut policy to how applications can adapt with various OS versions and upgrades.

What is activity in Android?

An activity is a single, focused thing that the user can do.

What are the exceptions in Android?

InflateException : This exception is thrown by an inflater on error conditions. Surface.OutOfResourceException: When a surface is not created or re-sized, this exception is thrown.

C#.NET

Default Access Modifiers In C#.NET

In C#.NET everything (methods, variables, properties etc) are declared as private by default.

How To Encode Html String In C#.NET?

Example: using System; using System.Net; namespace Examples { class Program { static void Main(string[] args) { string htmlDecodeString = “<strong> This is strong tag </strong>”; Console.WriteLine(WebUtility.HtmlEncode(htmlDecodeString)); Console.ReadKey(); } } }

How To Decode Html Entities In C#.NET

Example: using System; using System.Net; namespace Examples { class Program { static void Main(string[] args) { string htmlEntity = “&lt;strong&gt; This is strong tag &lt;/strong&gt;”; Console.WriteLine(WebUtility.HtmlDecode(htmlEntity)); Console.ReadKey(); } } }

What Is Using Statement In C#

The using statement is used for creating a scope of an object’s reference variable. When that scope becomes end than that object reference variable is destroyed and the object is disposed and no longer in use. We can use using statement only with those classes who implements an IDisposable interface.

Difference Between Decimal And Double In C#

double and decimal data types both are used for storing frictional point values. double is used for calculations such as mathematical problems, value of earth gravity etc. decimal is used for monetary calculations such as money, accounting problems etc. The value of decimal is suffixed with m character. Character m indicates that it is a […]

Difference between struct and class in .NET?

Classes are reference types. Structs are value types. All reference types live in heap memory. All value types live in stack memory. Classes have unlimited features. Structs have limited features. Classes are used for large programs. Structs are used for small programs. Value types always contain values. Reference types can have null-reference, means some time […]

C++

What is Programming?

Definition: “A program is a precise sequence of steps to solve a particular problem.” It means that when we say that we have a program, it actually means that we know about a complete set activities to be performed in a particular order. The purpose of these activities is to solve a given problem.

History of C++ Language

The C++ language was developed in late 60’s and early 70’s, in Bell Laboratories. In those days BCPL and B languages were developed there. The BCPL language was developed in 1967 by Martin Richards as a language for writing operating systems software and compilers. In 1970 Ken Thompson used B language to create early versions […]

Tools of the Trade

As programmer we need different tools to develop a program. These tools are needed for the life cycle of programs.

First C++ Program

The best way to learn C++ is to start coding right away. So here is our very first program in C++.

Variables in C++

During programming we need to store data. This data is stored in variables. Variables are locations in memory for storing data. The memory is divided into blocks. It can be viewed as pigeon-holes.You can also think of it as PO Boxes. In post offices there are different boxes and each has an address. Similarly in […]

Data Types in C++

A variable must have a data type associated with it, for example it can have data types like integer, decimal numbers, characters etc. The variable of type Integer stores integer values and a character type variable stores character value. The primary difference between various data types is their size in memory. Different data types have […]

ASP.NET

How To Implement JQueryUI Datepicker In HTML?

The datepicker widget is a powerful UI plugin found in JQuery. The JQueryUI Datepicker provides a rich interface for valid date selection in any format such as yyy-mm-dd etc to the end-user. The JQueryUI Datepicker is easy to implement in websites. Along with Html it is also used with server side programming languages to get date […]

SQL Server ntext vs nvarchar(MAX) Datatypes

SQL Server offers ntext and nvarchar(MAX) datatypes for storing multi lingual string based information/values. There are some difference between ntext and nvarchar(MAX) datatypes: The ntext datatype stores unicode string with maximum 2GB of data. The nvarchar(MAX) datatype stores unicode string with maximum 536,870,912 characters. The ntext datatype has many disadvantages such as it does not […]

How To Insert Non-English Characters In SQL Server?

SQL Server offers nchar, nvarchar, nvarchar(max) and ntext datatypes for storing Non-English or Unicode characters/article posts into database table. By using above datatypes you can insert all characters/large blogs which has been spoken in universe such as hindi, sindhi, urdu, arabic, english etc. These datatypes are also recommended by Microsoft because these support many built-in […]

SQL Server Data Type For Store Article Posts

SQL server offers several data types for storing different types of information in database. Some time we need to store a large article or blog post in a database table. For storing the large posts or articles we will use nvarchar(MAX) datatype because it supports maximum 536,870,912 characters. SQL Server nvarchar(MAX) data type supports many built-in […]

Server.Transfer Vs. Response.Redirect In Asp.NET

Response.Redirect and Server.Transfer both methods redirect user to another URL. Response.Redirect displays page name/URL in browser’s URL address bar and add it in history. Server.Transfer does not display page name/URL in browser’s URL address bar, mostly it is used for asynchronous requests such as “loading” type pages etc.

Html.Partial Vs Html.RenderPartial In ASP.NET MVC

Html.Partial returns a string that means the output of  Html.Partial can be stored in a variable. Html.RenderPartial returns void that means Html.RenderPartial  does not return anything and its output can not be stored in a variable.

JavaScript

How To Close Browser Window In JavaScript?

You can close current window of a web browser easily using JavaScript. You need window.close() Or just close() built-in JavaScript functions to achieve this task.

By 05/04/2016 Read More →

Animation and transition properties in CSS and JS

Below is the list of CSS properties that you can animate using animations and transitions. List also contain the scripting names of properties. CSS property Scripting property background backgroundProperty background-color backgroundColor background-image backgroundImage background-position backgroundPosition border border border-bottom borderBottom border-bottom-color borderBottomColor border-bottom-left-radius borderBottomLeftRadius border-bottom-right-radius borderBottomRigthRadius border-bottom-width borderBottomWidth border-color borderColor border-left borderLeft border-left-color borderLeftColor border-left-width borderLeftWidth […]

Prompt Dialog Box In JavaScript

Example: <!DOCTYPE html> <html> <body> <script> function askFromMe() { var result; var favLanguage = prompt(“What’s your favorite programming language?”); switch(favLanguage) { case “php”: result = “PHP is your favourite!”; break; case “javascript”: result = “JavaScript is your favourite!”; break; case “jquery”: result = “JQuery is your favourite!”; break; default: result = “You did not enter […]

Display Confirm Alert Box In JavaScript

Example: <script> function displayMessage(){ var sure = confirm(“Do you realy want to visit tutorialstown.com?”); if(sure) window.location.href = “https://tutorialstown.com”; else alert(“You don’t wnat to visit.”); } </script> <body> <button onclick=”displayMessage()”> Visit tutorialstown.com </button> </body>

Change Element’s Multiple Classes In JavaScript

Example: <script> function cssChange(){ document.getElementById(“heading”).className += ” my-class-one”; document.getElementById(“heading”).className += ” my-class-two”; } </script> <style> .default-style { color:red } .my-class-one { text-decoration:underline} .my-class-two { font-style:italic } </style> <body> <h2 class=”default-style” id=”heading”>Tutorialstown.com</h2><br> <button onclick=”cssChange()”> Change Css Class </button> </body>

Change Html Element’s Class In JavaScript

Examples: <script> function cssChange(){ document.getElementById(“heading”).className = “my-class-two”; } </script> <style> .my-style { color:red } .my-class-two { color:skyblue } </style> <body> <h2 class=”my-style” id=”heading”>Tutorialstown.com</h2><br> <button onclick=”cssChange()”> Change Css Class </button> </body>

jQuery

Html Form Validation In JQuery

Html Form validation is an essential part in a web development specially when you are developing a website which lets users to register their information through an online form. Web masters must use validations before process a form to the server. You can achieve the validation easily using JQuery. This validation is called client side […]

By 05/04/2016 Read More →

How To Implement JQueryUI Datepicker In HTML?

The datepicker widget is a powerful UI plugin found in JQuery. The JQueryUI Datepicker provides a rich interface for valid date selection in any format such as yyy-mm-dd etc to the end-user. The JQueryUI Datepicker is easy to implement in websites. Along with Html it is also used with server side programming languages to get date […]

Animation and transition properties in CSS and JS

Below is the list of CSS properties that you can animate using animations and transitions. List also contain the scripting names of properties. CSS property Scripting property background backgroundProperty background-color backgroundColor background-image backgroundImage background-position backgroundPosition border border border-bottom borderBottom border-bottom-color borderBottomColor border-bottom-left-radius borderBottomLeftRadius border-bottom-right-radius borderBottomRigthRadius border-bottom-width borderBottomWidth border-color borderColor border-left borderLeft border-left-color borderLeftColor border-left-width borderLeftWidth […]

How To Bind Multiple Events In JQuery?

Example: <!DOCTYPE html> <html> <head> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js”></script> <script> $(document).ready(function() { $(‘button’).on(‘click dblclick’, function(){ $(‘#js’).addClass(‘hilighter’); }); }); </script> <style> .hilighter { background-color:yellow } </style> </head> <body> <p> Jquery is a library of <span id=”js”>JavaScript. </span></p> <br> <button> Click me or Double click </button> </html> </body> </html>

How To Validate A Name In JQuery?

Example: <!Doctype html> <head> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js”></script> </head> <script> $(document).ready(function() { $(“button”).click(function() { var user_full_name = $.trim($(“#txt_user_full_name”).val()); if(user_full_name != “”) { if(!user_full_name.match(/^[a-zA-Z ]*$/)) alert(“Only alphabetic characters are allowed!”); else alert(“Name is validated.”); } else alert(“Please enter name!”); }); }); </script> <body> <input type=”text” name=”txt_user_full_name” id=”txt_user_full_name” placeholder=”Enter name”> <br> <button> Submit </button> </body>

How To Scroll Top In JQuery?

Example: <head> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js”></script> </head> <script> $(document).ready(function(){ $(window).scroll(function(){ if ($(this).scrollTop() > 100) $(‘.scrollToTop’).show(); else $(‘.scrollToTop’).hide(); }); $(‘.scrollToTop’).click(function(){ $(‘html, body’).animate({scrollTop : 0},250); return false; }); }); </script> <style> .scrollToTop { position: fixed; bottom: 3px; right: 25px; display:none; cursor:pointer; } </style> <body> <h3> Please scroll down to see effect </h3> <span style=”float:right”> <button type=”button” class=”scrollToTop”> Go TO […]

Recent Posts

Generate Pi Chart From MySQL Database In PHP

It is easy to create different types of beautiful dynamic pi charts and graphs in PHP using MySQL database. These different types of pi charts are generated automatically for us from MySQL database. In this tutorial i create a pi chart in PHP from MySQL database, for that purpose i have already created a database table […]

By 04/05/2016 Read More →

Sql Server Data Type For Storing Price Values

In most cases you want to storing a value which represents a price, amount or money in Microsoft Sql Server. Sql Server database offers different data types for storing money/price type data such as money, smallmoney, numeric(p,s) and decimal(p,s). But at this point it is important to decide that which data type is best for storing […]

By 28/04/2016 Read More →

Difference Between Http Post & Get Methods

Http Post and Get methods are a part of the HTML language. Both methods are used in HTML form to transmit user’s data to server side programming languages such as Php, Asp.net, Jsp etc. The following difference can be found between these two methods: Http Post Method Http Get Method Large data can be send to server […]

By 08/04/2016 Read More →

What Is Html Form Get Method In PHP?

When you create a html form it has an attributes called “method=get” which helps to pass or transmits user data to PHP server. Unlike post method, Mostly method=”get” transmits minimal user data to PHP server. The method=”get” has many disadvantages such as: when you post your information over on a website it becomes visible in […]

By 08/04/2016 Read More →

What Is Html Form Post Method In PHP?

When you create a dynamic website you need to use input forms for getting user input data. A form is also called web form and it can be created using the form tag in Html, every form uses an attributes called “method = Post”, that method attribute is used to send user input data to the […]

By 07/04/2016 Read More →

How To Implement Image Face Detection API In PHP?

There are many websites which provide different types of API’s those API’s detect a face of a person in image and return a complete information about that face. In this tutorial we implement image face detection API in PHP. This API is offered by faceplusplus website. Before implement this API you have to take some following steps. Step-1: Create […]

Have a natural attraction for women cosmetics and replica watches uk clothes, no
more than two for men the most attractive one, is to make their own driving experience, happy and can serve as the facade of the car, another is to highlight the taste edify sentiment rolex replica watch. The replica rolex is undoubtedly the most fashionable accessories, wear a suit to attend the activities, but also get a decent match on the replica watches .