You are here:    Home  > Blog  

Android App Designing for Multiple Screens

Android Application Develoment

Android supports hundreds device types with several screen size and density. Android ranging from small screen to large TV sets.  Now we create an app that supports multiple android devices. We create an android app that can works on multiple screen size mobile. It enhance your app and able to support multiple mobiles.

Before we create app for android we have to know some terms and concepts.

  1. Screen Size (small, normal, large, xlarge)
  2. Density (ldpi, mdpi, hdpi, xhdpi, nodpi, tvdpi)
  3. Orientation (port, land)

Our res folder in app contains all layout, draw able and values folder. It is responsible for all design aspects in android.

1. Generally android phones screen divided into four sizes. So we have to put following prefix of layout file.

  • res/layout-small.xml → For small screen, its minimum resolution  426dpX320dp
  • res/layout.xml  → For normal screen, its minimum resolution  470dpX320dp
  • res/layout-large.xml → For large screen, its minimum resolution  640dpX480dp
  • res/layout-xlarge.xml → For extra large screen, its minimum resolution  960dpX720dp

2. Density means quantity of pixel within a physical area of screen. It categorized according to density per pixel (dpi).

  • res/drawable-ldpi/icon.png  → For low density (~ 120dpi)
  • res/ drawable-mdpi/icon.png  → For medium density(~160dpi)
  • res/ drawable-hdpi/icon.png  → For high density(~240dpi)
  • res/ drawable-xhdpi/icon.png  → For extra high density (~320dpi)
  • res/ drawable-nodpi/icon.png  → For independent density.

3. For portrait and landscape screen we use this by put port or land prefix.

  • res/layout-xlarge-land.xml  → For extra large screen in landscape orientation.
  • res/layout-large-land.xml  → For large screen in landscape orientation.
  • res/ drawable-xhdpi-land/icon.png  → For extra high density in landscape orientation.

Here is screenshots of all layouts in all portrait modes.

Here is screenshots of all layouts in landscape mode.

Here is hierarchy of res folder for all screen size.

For the app launcher icon, we also create .png image according to different screen size. Here is icon size for app:

  • 36×36 for low-density
  • 48×48 for medium-density
  • 72×72 for high-density
  • 96×96 for extra high-density

 

36 x 36

36 x 36

48 x 48

48 x 48

72 x 72

72 x 72

96 x 96

96 x 96

It helps you create layout with less coding and create efficient design of layout for multiple mobile screens.

By:

Getting Started With StoryBoard in iOS

With the introduction of storyboard in new Xcode 4.x makes designing your iOS app so much easier. Storyboard allows you to graphically order all your views within a single canvas, where you can design the app’s logical flow and even assign transition animation. So without wasting any time let’s get started with our first iOS application using StoryBoard.

Step1: Open Xcode 4.x and create a Single View Application, name it “StoryBoardTutorial”, while providing name the make sure to check the use storyboard checkbox situated in the lower portion.

Step1_1

Step1

Step 2: Once your project has been created screen will look like this (below)

Step2_1

Now select the MainStoryboard.storyboard in the project navigator.

Step2_2

Step3: Xcode creates a default view controller (rootViewController) in the project. Remove default view controller and add one UITabBarController to the design canvas.

Screen Shot 2013-03-22 at 6.07.59 PM

Delete the two view controllers attached to the UITabBarController.

Screen Shot 2013-03-22 at 6.08.06 PM

Step4: Now add three UINavigationControllers to the Canvas, so that your storyboard starts looking like the following snapshot.

Screen Shot 2013-03-22 at 6.09.16 PM

First replace the three UITableViewControllers with the UIViewControllers( make them rootViewControllers of respective UINavigationController ) and also add three more UIViewControllers to the storyboard each in front of every previously added UIViewController (UIViewControllers in place of UITableVIewControllers).Screen Shot 2013-03-22 at 6.25.12 PM

Screen Shot 2013-03-22 at 7.01.34 PM

Screen Shot 2013-03-22 at 7.02.47 PM

Screen Shot 2013-03-22 at 6.18.26 PM

You can give different colour to each viewController’s view in order to identify them easily. In my case I have used the following colours.

Screen Shot 2013-03-22 at 7.05.44 PM

Also add the three UIButtons to the Dark Colour ViewController.

Screen Shot 2013-03-22 at 7.31.02 PM

Step5: Here the DarkGreen, DardRed, DarkBlue viewControllers are set as the rootViewController of the respective UINavigationControllers what is left is to connect each the LightGreen, LightRed, LightBlue ViewController to the DarkGreen, DarkRed, DarkBlue viewControllers respectively. Now right click the mouse on UIButton present in the DarkGreen controller and drag it to LightGreen viewController, as you release the click the following window appears

Screen Shot 2013-03-22 at 7.13.15 PM

Select “push” option provided in the following window. Repeat the step for DarkRed and DarkBlue ViewControllers. Now your Storyboard must look like the following

Screen Shot 2013-03-22 at 7.33.09 PM

What is left now is to serve to the dish. Build & execute the project.

Screen Shot 2013-03-22 at 7.42.51 PM Screen Shot 2013-03-22 at 7.42.54 PM

Screen Shot 2013-03-22 at 7.42.58 PMScreen Shot 2013-03-22 at 7.43.01 PM

Screen Shot 2013-03-22 at 7.43.07 PM Screen Shot 2013-03-22 at 7.43.10 PM

Congratulation without writing a single line of code here is your first iOS Tab based App using Storyboard

Happy Coding Happy Coding

By:

Galaxy S4 vs iPhone 5 vs HTC One vs Lumia 920

Samsung Galaxy  S4

Samsung released their latest flagship phone the galaxy s4 yesterday. At first glance this phone looks very similar to galaxy s3, but if you see it carefully you’ll notice that this is thinner then s3 and looks more solid. You’ll also notice that this phone does not feel cheap plastic and looks and feel richer.

Galaxy s4 have a 5” screen but doesn’t look much bigger then its older kin.

Whats Inside Galaxy S4

It has a Super Amoled screen with 1920×1080 resolution with 441ppi. Samsung is using gorilla’s latest gorilla glass 3 in this handset. Depending on the market, it has 1.9 Ghzquarcore processor (US) or a 1.8 GhzOcta-core processor (rest of the world). This beast run Android’s latest 4.4.2 jelly bean.

It has 2GB of RAM and available in 16, 32 or 64 GB storage with microSD card slot. So you can increase the storage capacity to whopping 128 GB.

It has all the basic wireless connections, including Bluetooth 4.0 LE, NFC, Wi-Fi and GPS. Samsung also included a IR port in this handset so you can also control your TV or other IR receiver equipment with this phone.

This phone has a stunning 13 mega pixels rear and 2 mega pixels front camera.

This beast is powered by 2600 mAh battery.

Lets compare Galaxy S4 to other companies flagship phones.

Here we are comparing this new phone with other companies flagship phones.

galaxy-s4-tiny

Galaxy S4

iphone-5-tiny

iPhone 5

htc-one-tiny2

HTC One

Nokia-Lumia-920-tiny

Lumia 920

Screen Size

5 inches 4 inches 4.65 inches 4.5 inches

Resolution

1920×1080 1136×640 1920×1080 1280×768

Screen Type/DPI

Super AMOLED, 441 ppi LCD, 326 pp S-LCD 3, 468 ppi AMOLED, 332 ppi

Weight

4.6 oz 3.9 oz 5 oz 6.5 oz

Chipset

Quad-core 1.9GHz Snapdragon 600 in the U.S. (8-core 1.8GHz Exnyos 5 Octa elsewhere) Dual-core Apple A6 Quad-core 1.7GHz Snapdragon 600 Dual-core 1.5 GHz Snapdragon S4

Storage

16GB, 32GB or 64GB +microSD slot 16GB, 32GB or 64GB, no card slot 32GB or 64GB, no card slot 32GB, no card slot

Connectors

microUSB Apple Lightning microUSB microUSB

Operating System

Android 4.2.2 (Jelly Bean) iOS 6 Android 4.1 (Jelly Bean) Microsoft Windows Phone 8

Battery (in milliamperes/hour)

2,600 mAh 1,434 mAh 2,300 mAh 2,000 mAh

Camera

13MP autofocus, LED flash & zero shutter lag 8MP, autofocus, LED flash 4MP (“ultrapixels”) 8MP, autofocus, optical image stabilization, dual-LED flash

Networking

Wi-Fi, 2G, 3G, 4G LTE Wi-Fi, 2G, 3G, 4G LTE Wi-Fi, 2G, 3G, 4G LTE Wi-Fi, 2G, 3G, 4G LTE

U.S. Price (with 2-year contract)

Not announced $199 for 16GB, $299 for 32GB, $399 for 64GB $199.99 $99.99

Let us know your thoughts in comments what you think about Galaxy S4, will you buy it over iPhone 5 or HTC one or Lumia 920?

By:

Facts to Know Before You Hire Android Development Company

Android Application Develoment

Over the recent years, many across the world have started using Android phones. The quality for these gadgets is termed to be the best and the platform is not charged for usage as well. This means the software platform is an open source and we all know it is the collaboration of Open Handset Alliance and Google that gave birth to Androids as well. The platform is very user friendly and that’s why it helps with a lot of apps to function well on it. Android functions are fast and quick to say the least, and they are the best for Android App Development, hence the popularity.

The competition is intense and severe to say the least, and this is why it is very important to have services of an able Android App Developer to help you with the needful. But before you hire a freelancer or a company, there are many things you need to take care about. Knowing the minute details of the android app would be great and then finding a professional for the job at hand would be excellent. Both of these concepts would thus help you bring to the world the best of apps they have been waiting for, bringing you large profits in return as well.

When you have to check on how feasible it would be to hire an Android App Development company, there are a few questions to ask:

  1. The uniqueness of your app
  2. The languages to use
  3. What can your app offer the market which isn’t out yet
  4. How user friendly is the app

The moment you have an answer to all of these questions, it would be very easy then for you to find the right Android App Developer who could and would help you achieve the needful. And the market is full of them, but you should choose one that has immense experience. Check their past portfolios and check what their previous clients have to say about their skills.

In conclusion

If you would like to have cost effective solutions delivered to you by a reputed Android App Development Company, do contact us on www.mobileappprovider.com and we would be glad to guide you on the path of mind blowing technology.

By:

Hire The Best Mobile Game Developers And Experts

Mobile Game Development

Gone are the days when we were happy with the basic mobile games or computer games. These days, thanks to technology we need more of everything and there has been a total 360 degree turn in the world of mobile games too. Mobile Game Developers have sensationalized this and made gadgets a source of fun and entertainment with mind blowing games on offer. Gaming on a cell phone is now a rage, and we all know how popular it has become. You can enjoy a game just about anywhere, and not only when you are sitting in front of your computer.

With advancement in technology on every second, Mobile Game Designers are reaping profits with their innovative offerings. They are building interactive and very indulging games that excite everyone and offer adventures and thrill that only they can bring to the world of high end phone freaks. The iPhone and ipad for example has stirred the mobile device world with a range of interactive games on offer, added to their large screens. The android too hasn’t been left far behind, and the best of all games are now in your hands to enjoy.

So the best way to ensure that you get these games would be to hire experienced Mobile Game Developers who know the needs of the masses. And this you should do by hiring experts from reputed and well known companies or freelancers who have a reputation in the market. The latter would be more affordable but hiring a company would be very reliable as well. You can always take a look online and check the company’s portfolio.

Conduct a background check on the company and find out if their past clients they have worked for are happy with their skills or not. This would assure you that the right Mobile Game Designers are being selected and you would get amazing mobile games to offer the public.

If you are looking out for Mobile Game Developers allows us to help you find the right talent. We would like you to visit us at www.mobileappprovider.com today!

By: