Tuesday, October 15, 2013

About Phablets (Big Phones)

Hello friends here are some thoughts on Phablets or big phones which might help you in buying smartphones. Now a days phablets are IN. Just Four or Five year ago people like small and handy phones which are easy to carry, easy to call and message and for your regular need. In those days if someone carries a big screen phone everyone look at him or her with a tilted eye or probably saying "Now That's Awkward". But now phablets made mark.people are just use to these big screen phones in market like Galaxy NOTE series which i think, made remarkable presence in market and i have also one (original  galaxy NOTE) . When i made my mind to buy a smart phone probably a year ago. i was like which one i should buy there are so many in market. The day i had decided that i want Samsung galaxy NOTE . believe me that night was sleepless i was still thinking should i go for that big phone is it really suitable for me and yeah price was also pinching me somewhere. thoughts are continuously running in my mind but when i woke in Morning being a gadget lover i went straight to market and bought myself a beautiful Samsung Galaxy Note worth Rs 30500 (approx $499). 


I love it now i am a proud owner of  samsung galaxy note. i spent a year with galaxy note and still going good. Here are some thoughts about good and bad points on phablets. 

















Good points

Big screen gives you rich experience of viewing. everything display on screen is easily visible you are reading some news or checking emails viewing images so smooth and easy. it think this is the main advantage of  phablets . watching movies on 5.3" screen is quite good experience. 

S-pen (Galaxy note series) . S.pen or smart pen is really wonderful thing this is what make your phone different from other phones. i am a business man and i need to note every little things happening in business i donn't  need to carry a extra dairy or chunks papers to note down my activity and tasks . I just pull my S pen and start writing my daily work on notepad. i feel so relaxed and one s pen packed with multiple functionalties.

I have got with dual core processor which is decent enough to play games and other apps . otherwise now every phone got quad core processors. :)

Your never forget mobile somewhere, usually you put your mobile on table and forgot to pick it up (may be in shops, at home) but phablets make you think . Heyaaa why my pockets are empty. :) 


BAD Points

Big size is definitely  not a pocket friendly. It makes your pocket so bulky every time you need to sit down you have to pull it from your pockets. Fit into shirt pockets ?? don't even think of that. if you are riding bike or two wheeler then its a itchy experience. I have to travel on bike all day its very hard to carry a phone in your jeans pocket all day. 

Handle with care - You need to be careful about handling of phablets. You cannot perform One hand operation with that unless you activate one hand operation function in phone settings but then you would  think if i need to put it on one hand operation which gives unpleasant feeling of using phone why not i would have bought small phone .:( 

Battery life is of course a big problem. Big screens consumes more battery. 5.3" need atleast 3000mah what think. so you could work whole day long with phone (calls, internet etc.). 



But phablets are todays need. you dont need to carry a extra tablet with you . if you think you would buy a phone and then you would buy a tablet . I think phablets are your mates, TIme saver. 



  

Saturday, May 18, 2013

Android interview Q n A


What is android?

Android is a stack of software for mobile devices which has Operating System, middleware and some key applications. The application executes within its own process and its own instance of Dalvik Virtual Machine. Many Virtual Machines run efficiently by a DVM device. DVM executes Java language byte code which later transforms into .dex format files.


What are the advantages of Android?

 The following are the advantages of Android:

1 The customer will be benefited from wide range of mobile applications to choose, since the monopoly of wireless carriers like AT&T and Orange will be broken by Google Android.
2 Features like weather details, live RSS feeds, opening screen, icon on the opening screen can be customized.
3 Innovative products like the location-aware services, location of a nearby convenience store etc., are some of the additive facilities in Android.
Components can be reused and replaced by the application framework.
a Optimized DVM for mobile devices.
b SQLite enables to store the data in a structured manner.
c Supports GSM telephone and Bluetooth, WiFi, 3G and EDGE technologies.
d The development is a combination of a device emulator, debugging tools, memory profiling and plug-in for Eclipse IDE.


Introduction Android:

Android is an operating system for mobile devices that includes middleware and key applications, and uses a modified version of the Linux kernel. It was initially developed by Android Inc..It allows developers to write managed code in the Java language, controlling the device via Google-developed Java libraries…..

The Android SDK includes a comprehensive set of development tools . These include a debugger, libraries, a handset emulator (based on QEMU), documentation, sample code, and tutorials. Currently supported development platforms include x86-architecture computers running Linux (any modern desktop Linux distribution), Mac OS X 10.4.8 or later, Windows XP or Vista.
Android does not use established Java standards, i.e. Java SE and ME. 

This prevents compatibility among Java applications written for those platforms and those for the Android platform. Android only reuses the Java language syntax, but does not provide the full-class libraries and APIs bundled with Java SE or ME.



Explain about the exceptions of Android?
The following are the exceptions that are supported by Android

a )InflateException : When an error conditions are occurred, this exception is thrown.

b) Surface.OutOfResourceException: When a surface is not created or resized, this exception is thrown.

c) SurfaceHolder.BadSurfaceTypeException: This exception is thrown from the lockCanvas() method, when invoked on a Surface whose is SURFACE_TYPE_PUSH_BUFFERS

d )WindowManager.BadTokenException: This exception is thrown at the time of trying to add view an invalid WindowManager.LayoutParamstoken.

What is a service?
A service doesn’t have a visual user interface, but rather runs in the background for an indefinite period of time.
For example, a service might play background music as the user attends to other matters, or it might fetch data over the network or calculate something and provide the result to activities that need it.Each service extends the Service base class.


What is an activity?

An activity is a single, focused thing that the user can do. Almost all activities interact with the user, so the Activity class takes care of creating a window for you in which you can place your UI with setContentView(View). 
For example, an activity might present a list of menu items users can choose from or it might display photographs along with their captions.

What is an Application ?

Collection of one or more activities, services, listeners, and intent receivers. An application has a single manifest, and is compiled into a single .apk file on the device.

What is APK format ?

The APK file is compressed the AndroidManifest.xml file, application code (.dex files), resource files, and other files. A project is compiled into a single .apk file.

What is .apk extension?
The extension for an Android package file, which typically contains all of the files related to a single Android 
application. The file itself is a compressed collection of an AndroidManifest.xml file, application code (.dex 
files), resource files, and other files. A project is compiled into a single .apk file.

What is .dex extension?
Android programs are compiled into .dex (Dalvik Executable) files, which are in turn zipped into a single .apk file on the device. .dex files can be created by automatically translating compiled applications written in 

the Java programming language.



What is a Content Provider ?
A. A class built on ContentProvider that handles content query strings of a specific format to return data in a specific format. See Reading and writing data to a content provider for information on using content providers.

 What is a Dalvik ?
 The name of Android’s virtual machine. The Dalvik VM is an interpreter-only virtual machine that executes 
files in the Dalvik Executable (.dex) format, a format that is optimized for efficient storage and memory mappable execution. The virtual machine is register-based, and it can run classes compiled by a Java language 

compiler that have been transformed into its native format using the included “dx” tool. The VM runs on top of 


Posix-compliant operating systems, which it relies on for underlying functionality (such as threading and low 



level memory management). The Dalvik core class library is intended to provide a familiar development base 

for those used to programming with Java Standard Edition, but it is geared specifically to the needs of a small mobile device.



What is an DDMS ?

A. Dalvik Debug Monitor Service, a GUI debugging application shipped with the SDK. It provides screen capture, log dump, and process examination capabilities.

What is Drawable? 
A compiled visual resource that can be used as a background, title, or other part of the screen. It is compiled into an android.graphics.drawable subclass.
How many ways data stored in Android?
1.SharedPreferences
2.Internal Storage
3.External Storage
4.SQLite Database
5.Network connection

Types of Android applications?
1.Foreground
2.Background
3.Intermittent
4.Widget

Android Development Tools?
The Android SDK and Virtual Device Manager Used to create and manage Android Virtual Devices (AVD) and SDK packages.


The Android Emulator An implementation of the Android virtual machine designed to run within a virtual device on your development computer. Use the emulator to test and debug your Android applications. Dalvik Debug Monitoring Service(DDMS)  Use the DDMS perspective to monitor and control the Dalvik virtual machines on which your debugging your application.


Android Asset Packaging Tool(AAPT) Constructs the destributable Android packages files (.apk).
Android Debug Bridge(ADB) A client-server application that provedes a link to a running emulator.It lets you copy files, install compiled application packages(.apk),and run shell commands.


What is View in Android?
Views are the base class for all visual interface elements(commonly known as controls or widgets). 
All UI controls,including the layout classes,are derived for View.

What View Group in Android?

A. View Groups are extensions of the View class that can contain multiple child View.Extend the ViewGroupclass to create compound controls made up of interconnected child Views.



Some more Gigs about Android.


How will you record a phone call in Android? How to get a handle on Audio Stream for a call in 
Android?
A. Permissions.PROCESS_OUTGOING_CALLS: Allows an application to monitor, modify, or abort outgoing calls.

Why cannot you run standard Java bytecode on Android?
A. Android uses Dalvik Virtual Machine (DVM) which requires a special bytecode. We need to convert Java class files into Dalvik Executable files using an Android tool called "dx". In normal circumstances, developers will not be using this tool directly and build tools will care for the generation of DVM compatible files.

Can you deploy executable JARs on Android? Which packaging is supported by Android?
A. No. Android platform does not support JAR deployments. Applications are packed into Android Package (.apk) using Android Asset Packaging Tool (aapt) and then deployed on to Android platform. Google provides Android Development Tools for Eclipse that can be used to generate Android Package.

Android application can only be programmed in Java?
 False. You can program Android apps in C/C++ using NDK .

What is an action?
The Intent Sender desires something or doing some task.

When does Android start and end an application process?
 Android starts an application process when application's component needs to be executed. It then closes the process when it's no longer needed (garbage collection).

How can two Android applications share same Linux user ID and share same VM?
The applications must sign with the same certificate in order to share same Linux user ID and share same 
VM.