Posts

Showing posts from January, 2017

How to Start with Android ?

Android  is a famous mobile operating system developed by Google, based on the Linux kernel and designed primarily for  mobile devices like smartphones, hand held devices and tablets. Android’s user interface is mainly based on direct manipulation, using touch gestures that loosely correspond to real-world actions, such as swiping, tapping and pinching, to manipulate on-screen objects, along with a virtual keyboard for text input. In addition to touchscreen devices, Google has further developed Android TV or smart TV for televisions, Android Auto for cars, and Android Wear for wrist watches, each with a specialized user interface. Variants of Android are also used on notebooks, game consoles, digital cameras, and other electronics. To start working with android you need know how different applications are created on android platform. Android is based on java ...

PHP – Web Concepts

This session demonstrates how PHP can provide dynamic content according to browser type, randomly generated numbers or User Input. It also demonstrated how the client browser can be redirected. Identifying Browser & Platform PHP creates some useful  environment variables  that can be seen in the  phpinfo.php  page that was used to setup the PHP environment. One of the environment variables set by PHP is  HTTP_USER_AGENT  which identifies the user’s browser and operating system. PHP provides a function getenv() to access the value of all the environment variables. The information contained in the HTTP_USER_AGENT environment variable can be used to create dynamic content appropriate to the browser. Following example demonstrates how you can identify a client browser and operating system. NOTE  − The function preg_match()is discussed in  PHP Regular expression session. <html> <body> <? php fun...

Java – Exceptions

Image
An exception (or exceptional event) is a problem that arises during the execution of a program. When an  Exception  occurs the normal flow of the program is disrupted and the program/Application terminates abnormally, which is not recommended, therefore, these exceptions are to be handled. An exception can occur for many different reasons. Following are some scenarios where an exception occurs. A user has entered an invalid data. A file that needs to be opened cannot be found. A network connection has been lost in the middle of communications or the JVM has run out of memory. Some of these exceptions are caused by user error, others by programmer error, and others by physical resources that have failed in some manner. Based on these, we have three categories of Exceptions. You need to understand them to know how exception handling works in Java. Checked exceptions  − A checked exception is an exception that occurs at the compile time, these are also ...