0

Run your First Android Apps in Emulator

Posted by Nantharupan on 3:15 AM in , ,
To run Android app in the Emulator, First We need to create the Emulator

Steps To create Emulator

1. Launch the Android Virtual Device Manager (AVD Manager) 
         By clicking the Icon AVD Manager from the Tool bar 
       Or By Click Window- Android Virtual Device Manager



2. In the AVD Manager Panel Click New



3. Enter the Details Specialty Select the Device screen Size, as well as Target Version and select other properties if you want, for the moment don't do anything to others


4.  That's all Emulator created, Click the Emulator in the AVD Manager and click Start button


Now we have created the Emulator, Its matter of running the app in the Emulator now,

1. Click the Application and Right click and select the Run as and Select Android application 

Eclipse installs the app on your AVD and starts it.

Your First Android App is ready, It will look like follows in Emulator









0

Build your First Android Apps using Eclipse

Posted by Nantharupan on 2:35 AM in ,
First you need to install following in order to start the android development.
1. Android SDK
2. Install ADT( Android Development Tool) Plug in for Eclipse
3. Download latest SDK tools and platforms using SDK manger in Eclipse

You can refer following document.

http://rupanl.blogspot.com/2012/07/getting-started-with-android.html


We are ready to develop our first Android Apps

1. Click File New Select Android folder and choose Android Application Project



2. Click Next and Fill the Application Name and Project Name and Package Name
( These are very important when it comes to real application that has to be deployed to android Market, Any way we can change them later)

Application Name - It will be shown as application Name in the Phone
Package Name - Only one application can be there in the Market with the same name 

Minimum Required SDK - Specify the lowest Android Version of the Android OS the app can run

Target SDK - Specify the Highest Version of the of the Android OS this application can run




3. Click Next, This section is to configure the Project location. 



4.  Click Nest This Section is to Configure the Launcher icon( Icon which will be displayed in the phone as the application icon), If you want to put your icon browse the icon you want to use. 

5. Click Next, This is the Screen to create the Activity Class( Class for the Screen). Select BlankActivity and Click Next.


6. Click Next and Click finish to create First Android application. 

This screen showing the Activity Name - Class related to our screen ( in Android Term Activity is class related to one screen)

Layout Name- XML file related to Layout of our Activity


We are done with our First Android Project. an Android Project created to you with necessary folder structure. 

Folder Structure we got is some thing like following



We will look the running and debugging the app in next post

Hope It helped you!!






0

How to Change the title of the JavaScript Alert

Posted by Nantharupan on 9:48 PM in , , ,
There was a requirement to change the title of the javascript alert. But unfortunatley we can't change the default title "Alert" of the alert box.

Alternatively we can do some thing like this,

We have to define our css in order to show a box on top of the screen.

When you want to show the alert box , just change the visibility of that css class.


This is How you call the OVER LAY to pop up This is the style of the OVER LAY Java script function which change the Visibility to true or false This is the HTML for the OVERLAY By using this Mrthod you can have different pop ups as you want

0

How to develop a Simple MVC Architecture Java Application

Posted by Nantharupan on 11:49 PM in , , ,
There are a lot of architecture in the Software industry. Basically features of most  architecture  is reduce the coupling between View and Logic. By using that we can change the view when ever we want and keep the logic same.

Some of the Architectures are

1. MVC- Model View Controller
2. MVVM- Model View ViewModel


I have been working in MVC architecture in .NET web application and MVVM  architecture  in WPF desktop application, and Mono Develop Mobile application.

When i try to develop java based desktop application, i tried to do the MVC architecture using help from internet.

Basics of MVC













M-Model
V-View
C-Controller

Model Class

Which will contain the logic of the application and data base connection and manipulation.



View Class

View will be contains the User Interface part only.

Controller

Controller will do the communication part between View and Model
<
Main Method



0

HTML 5 NEW INPUT TYPES

Posted by Nantharupan on 1:26 AM in , ,
HTML 5 added a lot of new input types. We can do the validation easily with the newly added features.

Newly added input types are follows
  1. url
  2. tel
  3. number
  4. email
  5. color
  6. date
  7. datetime
  8. datetime-local
  9. month
  10. range
  11. search
  12. time
  13. week

Some Examples

Color : 
HTML Code
<input  type="color" />

Favorite Color:

Date :
HTML Code
<input type="date" />

Date of Birth:

Number :
HTML Code
<input type="number" name="quantity" min="1" max="5">

Age :

















Popular posts

Copyright © 2009 On the way All rights reserved. Theme by Laptop Geek. | Bloggerized by FalconHive.