29 Jul 2013

The Books For Learning Java...

The Books for Learning Java......

Java Logo

Java Introduction:- 
Java is a general-purpose, concurrent, class-based, object-oriented computer programming language that is specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere" (WORA), meaning that code that runs on one platform does not need to be recompiled to run on another. Java applications are typically compiled to byte code (class file) that can run on any Java virtual machine (JVM) regardless of computer architecture. Java is, as of 2013, one of the most popular programming languages in use, particularly for client-server web applications, with a reported 10 million users. Java was originally developed by James Gosling at Sun Microsystems (which has since merged into Oracle Corporation) and released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++, but it has fewer low-level facilities than either of them.

(1)Java Programming Language Handbook By David H. Friedel and Anthony Potts:-

The basics Note is very helpful for the students which are new in this field. This book is sequentially managed from start to end. The normal student can easily understand the writings of this book.

Click here to Download this Book

(2) Core Java:- 

The Core Java Subject is the main aim of this book. This PDF Contains Fundamentals, Boot Strapping, Basic Language Syntax, Common caveat, Coding Conviction. This Book is very useful while Exam is on the head and you are a simple collage boy who never reads.

Click here To Download This Book 

(3) Introduction To Java :-

This Slideshow Contains all the major topics of JAVA. This Slideshow is very helpful when you are one day ago from exam. This is written very smoothly and understandable topics make it easy to learn. Anyone can learn basics of Java from this slideshow.

Click here for Download This Book

23 Jul 2013

Various Programming Languages



PHP Programming

PHP Programming is developed in 1995. PHP is a widely used server-side general-purpose scripting language designed for web development. PHP is now installed on more than 244 million websites and 2.1 million web servers. PHP allows developing dynamic web applications. This is an open-source, interpretive, cross-platform web language that can be embedded into HTML pages. PHP is available for most operating systems including Unix and Windows, and is an excellent server-side programming language for professional web development.

C++ Programming 

C++ Programming started in 1983. It is a statically typed, free-form, multi-paradigm, compiled, object oriented, general-purpose programming language. It is regarded as an intermediate-level language, as it comprises a combination of both high-level and low-level language features. C++ is one of the most popular programming languages implemented on many hardware and operating system platforms. As an efficient compiler to native code, its application domains include systems software, application software, device drivers, embedded software, high-performance server and client applications, and entertainment software such as video games.

JavaScript

JavaScript (JS) was developed in 1995. JS is an interpreted computer programming language originally implemented as part of web browsers so that client-side scripts could interact with the user, control the browser, alter the document content that was displayed. JavaScript is a prototype-based scripting language that is dynamic, weakly typed, and has first-class functions. Its syntax was influenced by the language C. JavaScript copies many names and naming conventions from Java, but the two languages are otherwise unrelated and have very different semantics. Embedded into HTML, used in millions of dynamic web pages to validate forms, create cookies, detect browsers and improve the design. JavaScript that is implemented as a part of a web browser to provide enhanced user interfaces. JavaScript use in applications outside of web pages (PDF docs, desktop widgets, etc) also makes up its popularity.

C# Programming

C# Programming was developed in 2000. Multi-paradigm, structured, imperative, object-oriented, event-driven, functional, generic, reflective, concurrent programming language developed by Microsoft. C# is intended to be a simple, modern, general-purpose, object-oriented programming language. The most recent version of the language is 4.0 which was released in 2010. C# is suitable for writing applications for both hosted and embedded systems, ranging from the very large that use sophisticated operating systems, down to the very small having dedicated functions.

JAVA Programming 

JAVA Programming was developed in 1995. JAVA is a general-purpose, concurrent, class-based, object-oriented computer programming language that is specifically designed to have as few implementation dependencies as possible. Object-oriented, structured, imperative, generic, reflective. This is a programming language and computing platform with the underlying technology that powers state-of-the-art programs including utilities, games, and business applications. Java has proved its usefulness for thousands of applications long before the rise of native mobile apps. It’s one of the most flexible programming languages, useful in most operating systems. If building desktop-based apps and/or Android mobile apps will be your niche, then Java the best programming language for that purpose.

19 Jul 2013

Uses of Microsoft Office....

 Uses Of Microsoft Office:-


   The main Use of Microsoft office is to make work very shorten to the world and make it very realistic.This can be happen by knowing few commands and characteristics of Microsoft office.

MS Word:-
This tool is used to generate or create the documentations, reports, instant documents, and documents that have lots of written lines. This tool is used as a job work or the printing machine tool because some can make money through this tool by typing the pages and printing out them.

MS Excel:- 
This tool is used to create office documents, statistical or numerical analysis and getting some type of calculation over the numbers which are used as an input to the cell. The pages of excel is called as a spread sheet because it is made by the combination of cells of rows and columns. This spreadsheet have multiple cells so we can make the statistical formula and have the proper results. Mainly used for getting figures for the office related expenses and incomes.

 MS PowerPoint:-
This tool is used to make presentation for any analysis done by the analyst. This tool presents the slide show of the documents and make it easy to understand. This tool is very useful when we have to present our ideas in a meeting or in a seminar. This tool allows the user to make charts, diagrams, slide show effects, transition effects, animation etc. This tool helps the presenter to make most of his/her presentation sufficient to understand to anyone through its graphics.

MS Access:-
This Tool helps to create database to store values and data for the uses of future analysis.  This tool make the database which is collection of tables which are created by rows and columns. This is an sufficient tool for saving lots of word pages in one database or table. It provides the data security and the most useful feature is that, this tool can be made as a back-end application or data server to any application we make or program. This tool works as a data filler in most of applications.

MS Outlook:-
This Tool is used to save the emails and reply to those emails. This tool helps to make the email security and also made easy mail receiving and sending to others. This Tool saves the email contacts and provides o computer's contact manager to store them. We can easily find out contacts which are over Internet in our computer. This tool is important to those who's work is international and those who needs the daily update of their work via Internet or emails.

12 Jul 2013

Creating an Android “Hello World” Application with PhoneGap

Creating Android “Hello World” Application using PhoneGap


What is PhoneGap?

PhoneGap is an open source platform that allows you to create cross-platform mobile applications with HTML, JavaScript, and CSS. In order to interact with device hardware, PhoneGap provides a JavaScript API that will interface with features such as the on-board camera, GPS, and accelerometer. Even though PhoneGap is great for developing cross-platform applications, the code for developing applications while targeting one platform or another will vary. One of the greatest differences to overcome is the required software requirements. This tutorial will provide an in-depth review of setting up your development environment for Android, and will build a simple “Hello World” app.


PhoneGap Requirements for Android Development:

Java JDK

You will need to install the Java Development Kit (JDK). Follow the official instructions for setting this up.

Android SDK

You will also need the Android Software Development Kit. When you install the SDK, you will need to set the the android-sdk-<os>/tools for your user PATH variable.
System Properties

Eclipse

You will need to download and install Eclipse if you don’t already have it on your machine.

Eclipse ADT Plugin

You will need to also install the ADT plugin for Eclipse. ADT (Android Development tools) is a plugin of eclipse which provide a complete IDE for developing Android application. ADT lets you create new Android projects, and it lets you create Android projects from existing source (this is the way we will open our PhoneGap app for android on eclipse). Using ADT you can also debug an android application. As ADT is well integrated with android SDK running the app from the IDE directly launches the android emulator.
To install ADT click on “install new software” in your Eclipse’s help window and enter the following site to work with: http://dl-ssl.google.com/android/eclipse/. Then follow the wizard presented to install ADT.
ADT Screen

Android Platforms and Components

Once you have ADT installed, you will need to install the Android platform and other components. To do that, go to menu option window->Android DK and AVD manager and select the platform and API level. Android api 2.2 is latest at the time of writing this article.
ADT Configuration

Apache Ant

If you don’t have apache ant installed you can download it from http://ant.apache.org/bindownload.cgi. To install it you will just extract the downloaded Zip file and set the bin folder in the ant directory in you PATH variable.

Ruby

If you don’t have Ruby installed, you can download it from this free installer. Once installed, add the Ruby/bin path into your account’s PATH variables.

PhoneGap Framework

Of course, you will also need the PhoneGap Framework itself.
PhoneGap-Android Download

Creating Your Development Workspace

Environment Variables Check:

The following paths should be set in you account’s PATH variable:
  • your_system_path/jdk/bin
  • your_system_path/android-sdk/tools
  • your_system_path/ruby/bin
  • your_system_path/apache-ant/bin
Apart from these, you will need to set the following variables also:
  • JAVA_HOME – path of your JDK directory
  • ANT_HOME – path of you apache-ant directory
  • ANDROID_HOME – path to your android SDK directory.
To create a workspace for your PhoneGap app on android, go to the “phonegap-android” folder on the command prompt or terminal:
  1. ruby ./droidgap "[android_sdk_path]" [name] [package_name] "[www]" "[path]"  
  • android_sdk_path: Where you installed the SDK
  • name: The name to give the new application.
  • package_name: The name you want to give to your application.
  • www: The folder from where you want to copy the files of your PhoneGap app.
  • path: The application workspace for your project.
Once you run the command and if everything goes correct messages as shown below will be seen:
PhoneGap Command Line Android
The above should create a complete workspace for your PhoneGap Android app.
Workflow

Setup Your Project in Eclipse

Once this is done, this workspace can be opened in eclipse. In eclipse choose new project and then choose Android Project.
Create Android Eclipse Project
Next select “create project from existing source” and give the project a name as shown below.
Configure an Android Eclipse Project
If you try to build and run the project in Eclipse you will get a build error. This is because you have not added the external library (phonegap.jar) which is created in the libs folder of your workspace.
Remove Build Errors
To add that external library right click on the project an select Build Path-> Add external archive and then select the phonegap.jar in your libs folder.
Remove Build Errors 2
If all goes well, this should remove all the build errors in your project. Now try to run your project in the emulator. You should see the screen below. This is because you have not added any PhoneGap HTML or JavaScript files in your project.
Running the Hello World App
In the assets/www folder of the workspace, there will already be a file called phonegap.js. In that folder create a file called index.html with the following code:
  1. <!DOCTYPE HTML>  
  2. <html>  
  3.   <head>  
  4.     <meta name="viewport" content="width=320; user-scalable=no" />  
  5.     <meta http-equiv="Content-type" content="text/html; charset=utf-8">  
  6.     <title>PhoneGap Android App</title>  
  7.               <script type="text/javascript" charset="utf-8" src="phonegap.js"></script>  
  8.               <script type="text/javascript" charset="utf-8">  
  9.                         var showMessageBox = function() {  
  10.                              navigator.notification.alert("Hello World of PhoneGap");  
  11.                         }  
  12.                         function init(){  
  13.                              document.addEventListener("deviceready", showMessageBox, true);  
  14.                         }  
  15.   </script>  
  16.   </head>  
  17.   <body onload="init();"  >  
  18.   </body>  
  19. </html>  
In the code the line:
  1. <script type="text/javascript" charset="utf-8" src="phonegap.js"></script>  
includes the phonegap.js file which lets you call native API’s of android. On the load of the body the init function registers the function showMessageBox on the PhoneGap event deviceready which is triggered when phonegap has done the processing to initialized everything for your program so that it can call the PhoneGap API’s. The showMessageBox function calls the PhoneGap API navigator.notification.alert which displays the message box on screen. Running the app after adding the index.html and refreshing the project in Eclipse you will see the following screen:
Making it an Alert
Now let’s add some more functionality to our app. The following code creates a text box to enter the name of the person and a button when clicked displays a message box:
  1. <!DOCTYPE HTML>  
  2. <html>  
  3.   <head>  
  4.     <meta name="viewport" content="width=320; user-scalable=no" />  
  5.     <meta http-equiv="Content-type" content="text/html; charset=utf-8">  
  6.     <title>PhoneGap</title>  
  7.               <script type="text/javascript" charset="utf-8" src="phonegap.js"></script>  
  8.               <script type="text/javascript" charset="utf-8">  
  9.               var displayHello = function() {  
  10.                         var name =      document.getElementById("firstname").value;  
  11.                         navigator.notification.alert("name" + name);  
  12.             }  
  13.    </script>  
  14.   </head>  
  15.   <body onload="init();" id="bdy" >  
  16.             <div id="txt">  
  17.             <input   type="text" name="firstname" id="firstname" />  
  18.             </div>  
  19.             <div id ="btn">  
  20.     <a href="#" class="btn" onclick="displayHello();">Say Hello</a>  
  21.             </div>  
  22.         </div>  
  23.   </body>  
  24. </html>  
In the following line of code we have created a text box where you can enter your name.
  1. <input   type="text" name="firstname" id="firstname" />  
In the line
  1. <a href="#" class="btn" onclick="displayHello();">Say Hello  
We have created a link which on click calls the function displayHello which fetches the value from the text box and displays a message box saying hello to the name entered by the user.
Custom Alert Text
Final Preview
The GUI shown above does not have any styling to it. You can beautify the display and add colors to it using a CSS file. Create a master.css in your assets\www folder with the following code:
  1. #bdy  
  2. {  
  3.             background:#F0F0F0;  
  4. }  
  5. #btn a{  
  6.             border: 1px solid #555;  
  7.             -webkit-border-radius: 5px;  
  8.             border-radius: 5px;  
  9.             text-align:center;  
  10.             display:block;  
  11.             float:left;  
  12.             background:#6600CC;  
  13.             width:308px;  
  14.             color:#FFF;  
  15.             font-size:1.1em;  
  16.             text-decoration:none;  
  17.             padding:1.2em 0;  
  18.             margin:3px 0px 3px 5px;  
  19. }  
  20. #txt{  
  21.             border: 1px solid #555;  
  22.             -webkit-border-radius: 5px;  
  23.             border-radius: 5px;  
  24.             text-align:center;  
  25.             display:block;  
  26.             float:left;  
  27.             background:#00FFCC;  
  28.             width:308px;  
  29.             color:#9ab;  
  30.             font-size:1.1em;  
  31.             text-decoration:none;  
  32.             padding:1.2em 0;  
  33.             margin:3px 0px 3px 5px;  
  34. }  
In your index.html add the following line before in your head tags to link to master.css:
  1. <link rel="stylesheet" href="master.css" type="text/css" media="screen" title="no title" charset="utf-8">  
Now if you run the app you should see a screen like the following:
Final Preview

Conclusion

To create a PhoneGap app on Android, a lot of different software has to work together. This could mean that you could have trouble setting up the complete environment to create a PhoneGap app on Android. However, once all the software is in place, you can easily create PhoneGap apps using open web standards like HTML, JavaScript, CSS and PhoneGap’s own API’s to perform device hardware specific processing. This saves you the trouble of learning the native language for Android programming and still has much of the power of custom, native built Android apps.



Comments

© 2013-2016 ITTechnocrates. All rights resevered. Developed by Bhavya Mehta