Wednesday, November 25, 2015

Android Game Development - Advantages Not to be Ignored


               The development of the mobile industry is playing an important market - the ability to conceptualize, develop and play the video device to bring a more successful and easier than ever before. Android app market and a lump sum needed for submitting an application, the cost is almost negligible close to the millions of customers to find. Although the bidding process is considerably shorter than in the most other Smartphone, such as regulations are more forgiving app for the Android operating system.

              Another drawing point for the development of games on Android devices is the programming language Java is presented. Java has long been one of the most popular programming languages that video game developers, and it is easy for the average programmer to get the Android Application development for the first time. Compared with most other mobile platforms, which are generally sports are changed or new invented language; the learning curve is reduced to almost nothing, when a fresh developer can be a game played in a part of time.

             Another unique aspect of developing games for Android is the lack of standardization in the family phone Droid. Because the Android operating system will not allow a mobile phone company decides to vary the phones themselves to the limit in terms of functionality and hardware specifications. Even a fully functioning device A-GPS and HDMI video compatibility, another features a QWERTY keyboard and a GPS at all. Although it is certainly dependent on a number of developers, because they probably have a phone that will meet their needs in the precision equipment to find, they also limit the potential audience, some phones will not be able to support the most complex applications.

           When you reach the process of developing the game at last to the point where it was made public, Android App developers are presented with a different choice of the market, the game will be seen? Unlike the IOS with many markets and shops app for Android phones, each with its advantages and disadvantages. The basis of the market of Android built with only the applications that are compatible with the phone is used in the Amazon app, another free application offers every day to give countless marketing strategies almost intimidating, making it useful than an application can almost always be introduced in a number of contracts with no problems. However, if it makes sense to get attention through different areas is another matter altogether.

           The process of global the Android game development really offers the most diversity in the market for smart phone. From beginning to end, these strategies can be tailored by hand to the likes of the promoter, making the game closer to the original concept as currently possible. While the public may not be as important as users of iPhone, Android looks like a serious candidate, just because of the access. And the best variety of the smartphone market today, the development possibilities are endless, and the continuous discharges can only add to the platform capabilities to offer.

MVC in Java

What is MVC Pattern?
         MVC Pattern stands for Model-View-Controller Pattern. This pattern is used to separate application's concerns.

Model
         Model represents an object or JAVA POJO carrying data. It can also have logic to update controller if its data changes.

View
         View represents the visualization of the data that model contains.

Controller
         Controller acts on both model and view. It controls the data flow into model object and updates the view whenever data changes. It keeps view and model separate.


Implementation:

            We are going to create a Student object acting as a model.StudentView will be a view class which can print student details on console and StudentController is the controller class responsible to store data in Student object and update viewStudentView accordingly.
       MVCPatternDemo, our demo class, will use StudentController to demonstrate use of MVC pattern.


Now we create the example in java MVC so follow step by step.

Step 1
      Now we create the model. model name is student.java.

Student.java

public class Student {
   private String rollNo;
   private String name;
   
   public String getRollNo() {
      return rollNo;
   }
   
   public void setRollNo(String rollNo) {
      this.rollNo = rollNo;
   }
   
   public String getName() {
      return name;
   }
   
   public void setName(String name) {
      this.name = name;
   }
}

Step 2:
      Now we create view and view file name StudentView,java.
StudentView.java.
public class StudentView {
   public void printStudentDetails(String studentName, String studentRollNo){
      System.out.println("Student: ");
      System.out.println("Name: " + studentName);
      System.out.println("Roll No: " + studentRollNo);
   }
}

Step 3:
      Now we create controller and controller name is StudentController.java.

StudentController.java
public class StudentController {
   private Student model;
   private StudentView view;

   public StudentController(Student model, StudentView view){
      this.model = model;
      this.view = view;
   }

   public void setStudentName(String name){
      model.setName(name);  
   }

   public String getStudentName(){
      return model.getName();  
   }

   public void setStudentRollNo(String rollNo){
      model.setRollNo(rollNo);  
   }

   public String getStudentRollNo(){
      return model.getRollNo();  
   }

   public void updateView(){    
      view.printStudentDetails(model.getName(), model.getRollNo());
   } 
}

Step 4

        Use the StudentController methods to demonstrate MVC design pattern usage.
MVCPatternDemo.java
public class MVCPatternDemo {
   public static void main(String[] args) {

      //fetch student record based on his roll no from the database
      Student model  = retriveStudentFromDatabase();

      //Create a view : to write student details on console
      StudentView view = new StudentView();

      StudentController controller = new StudentController(model, view);

      controller.updateView();

      //update model data
      controller.setStudentName("John");

      controller.updateView();
   }

   private static Student retriveStudentFromDatabase(){
      Student student = new Student();
      student.setName("Robert");
      student.setRollNo("10");
      return student;
   }
}
 Now Run your Project and watch the your application Output.

Like this:

Student: 
Name: Robert
Roll No: 10
Student: 
Name: John
Roll No: 10

I Hope do you like this:
So friend Wait my next post:

Monday, November 23, 2015

Benefits of Having Android Based Smart phones and Tablet Devices



It wouldn’t be wrong to say that the craze for multimedia mobile phone has become a matter of gone by era. Now, people’s demand and choices are not limited to simply sharing a few words, sending messages, listening to music or watching videos, but have expanded to a great level. They want to well connectivity to social media sites, do shopping online, make video chat with friends, and above all use their mobile phones like a laptop. And this is the main reason that people, especially youngsters prefer to have smart phones and tablet devices designed and developed by leading mobile application companies. As far as the smart phones or tablet devices are concerned, users have different choices to select for.

Among a number of available mobile applications, Android powered smart phones and related devices are without any doubt infiltrating the advanced mobile phones or smart phones’ market. Unsurprisingly, mobile application development segment has been conquered by fastest growing Android platform within a very short span of time. Its impact can also be seen in the market as leading software development companies have come up with a number of Android application development projects and tools as well.

Talking about this new mobile application development concept deeply, it is nothing but a open source platform that endows mobile application companies with a source and advantage of making use of free applications development tools as well as technologies to meet and beat the users’ demand and to make the Android based smart phones and tablet devices more advanced and useable. When it comes to mobile applications for Android, different types of tools and languages like Java language are used to leave no stone unturned in providing the latest features to users.

SL4A or Scripting Layer for Android making this unique application more advanced as user can note down mobile applications in different supporting technical environment like Perl, JRuby, Python and the list goes on. On the other hand, Android 2.2 version that supports Adobe Flash and AIR technologies as well persuades users to a smart phone developed by using Android application and tools.

For debugging, writing, testing and other related concepts, Android SDK is a one stop solution as it provides an easy access to the aforementioned applications. In addition to this, there are a number of other applications and tools making Android supported smart phones and tablet devices perfect to use. These latest applications include Eclipse IDE, Emulator, C/C++ libraries as System C library, SGL graphics engine, 3D libraries based on open GLES 1.0 applications, SQlite Open Core Media Libraries and much more.

Android app developers make use of Android framework APIs and have a wide range of libraries to take advantage of. The Android platform embraces such C/C++ libraries as System C library, SQlite, Open Core Media Libraries, SGL graphics engine, 3D libraries based on OpenGL ES 1.0 APIs and some others.

Smart phones and tablet devices that have Android applications support have really captured the mobile phones’ market. Now, having such smart phones not only leave a remarkable impression upon, but also keep you in updated with latest technologies and mobile applications.

Sunday, November 22, 2015

MVC Hello World Program in asp.net

This article is about create mvc (Model View Controller) application in visual studio 2013.

i am using visual studio 2013 if you don't have visual studio 2013, have upper and lower version it's doesn't matter because upper and lower little bit different for creating project.

Now follow the steps.

Step 1) Open the visual studio and select the File > New > Project.


Step 2) Select the template web the (ASP.NET MVC4 and MVC5 web application).


Step 3) Select the "Empty" Template and razor or aspx view engine. i chose aspx here to use aspx pages for the view.


Now MVC applicatio has been add to in the solution.

Step 4)Now we will add the controller to our application. then just right click on controller in the solution window then "add" > "Controller".


Step 5) Set the name for the controller and add it.


Step 6) The next step we will add the view for our controller. to do that open the HelloWorld Controller. Right click in the index action and click on "Add view".



SO Don't check the "user a layout or master page" because we do not have any master in out application. after adding the view open the source code and add your design. i will add one simple line in it, "Hello World! this is my first application".




Last Step) Open the RouteConfig file and set the default action to open.



Press F5 button and run you application on browser.

This is output your application.

To be continuous MVC Tutorials 

Waiting for next MVC Article. with new application.






Friday, November 20, 2015

MVC (Model View Controller)

What is MVC?

MVC is a framework for building  web application using MVC (Model View Controller) design.

Model


  1. The Model represents the application core (for instance a list of database record).


View


  1. The view displays the data (the database record).


Controller


  1. The  Controller handles the input (to the database records).





 The Model: 
                 The model is the part of the application that handle the logic for the application data.

The View:
                  The View is the part of the application that handle the display of the data. most often the view are create from the model data.

The Controller:
                   The controller is the part of the application that handle user interaction.

Let's See an Example:
                   Suppose we're developing an online book store. The user can perform actions such as: view books, register, buy, add items to current order, create or delete books (if he is an administrator, etc.). Let's see what happens when the user clicks on the fantasy category to view the titles we have available.

                   We will have a particular controller to handle all books-related actions (view, edit, create, etc). Let's call it books_controller.php for this example. We will also have a model, for example book_model.php, handling data and logic related to the items in the shop. Finally we will have a series of views to present, for example, a list of books, a page to edit books, etc.


               The most obicous advantage we gain using MVC is a clear separation of presentation (the interface with the user) and application logic.

To be Continuous. 

Swift Start Here