Understanding Android Manifest.xml File


 

Every Android application must have an AndroidManifest.xml file (with precisely that name) in its root directory. The manifest presents essential information about the application to the Android system, information the system must have before it can run any of the application’s code. Among other things, the manifest does the following:

  • It names the Java package for the application. The package name serves as a unique identifier for the application.
  • It describes the components of the application — the activities, services, broadcast receivers, and content providers that the application is composed of. It names the classes that implement each of the components and publishes their capabilities (for example, which Intent messages they can handle). These declarations let the Android system know what the components are and under what conditions they can be launched.
  • It determines which processes will host application components.
  • It declares which permissions the application must have in order to access protected parts of the API and interact with other applications.
  • It also declares the permissions that others are required to have in order to interact with the application’s components.
  • It lists the Instrumentation classes that provide profiling and other information as the application is running. These declarations are present in the manifest only while the application is being developed and tested; they’re removed before the application is published.
  • It declares the minimum level of the Android API that the application requires.
  • It lists the libraries that the application must be linked against.

Continue reading

Advertisements

What is Android ???


Android is a software stack for mobile devices that includes an operating system, middleware and key applications. The Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language.

Features

  • Application framework enabling reuse and replacement of components
  • Dalvik virtual machine optimized for mobile devices
  • Integrated browser based on the open source WebKit engine
  • Optimized graphics powered by a custom 2D graphics library; 3D graphics based on the OpenGL ES 1.0 specification (hardware acceleration optional)
  • SQLite for structured data storage
  • Media support for common audio, video, and still image formats (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF)
  • GSM Telephony (hardware dependent)
  • Bluetooth, EDGE, 3G, and WiFi (hardware dependent)
  • Camera, GPS, compass, and accelerometer (hardware dependent)
  • Rich development environment including a device emulator, tools for debugging, memory and performance profiling, and a plugin for the Eclipse IDE

Android Architecture

The following diagram shows the major components of the Android operating system. Each section is described in more detail below.

Android System Architecture

Continue reading

Work is a Rubber Ball


Speech by Bryan Dyson (CEO of Coca Cola)

“Imagine life as a game in which you are juggling some five
balls in the air. You name them – work, family, health,
friends and spirit and you’re keeping all of these in the
air.

You will soon understand that work is a rubber ball.

If you drop it, it will bounce back.

But the other four Balls – family, health, friends and
spirit – are made of glass. If you drop one of these; they
will be irrevocably scuffed, marked, nicked, damaged or even
shattered. They will never be the same. You must understand
that and strive for Balance in your life.”

By Jagat Kothari Posted in General

Common MySQL Commands


Command To Connect To MySQL Server :

mysql -u username -p password -h hostname -Pportnumber

Backup All The Databases From MySQL Server :

mysqldump -uroot -p password –all-databases > c:\backup_all_db.sql

Import SQL File To Specific Database In MySQL Server :

mysqldump -h hostname -uroot -proot -Pportnumber testdb < testdb.sql

Continue reading

Magento – Custom Redirection


In Magento, to Perform a Custom Redirection, we can use the setRedirect() Method of front controller.

For example, if on certain page we want to check that if customer is logged in then only customer can access that page.  For such scenario, first we can check if customer is logged in or not using the isLoggedIn() method and then we can set the current Page URL that can be used if customer goes to login page and successfully logged in in the magento store. that can be achieved using setBeforeAuthUrl() method.

i.e. Currently user is not logged in and is on the category page. We want functionality that if user is logged-in then only he/she can view the full product details page. So when user clicks on product link for viewing the detailed page, he will be redirected to the Customer Login Page. If customer successfully authenticated then again he/she will be redirected on the same page where he was previously. this can be implemented with the help of setBeforeAuthUrl() method.

Example :
Continue reading

Generate Random String Using MySQL


Have you ever wanted to generate a random string in MySQL, say for assigning a random password to a list of users?


SELECT SUBSTRING(MD5(RAND()) FROM 1 FOR 6) AS passwordString

This generates a 6 character string where the characters are taken randomly from the MD5 command (and therefore in the range a-z and 0-9).

Enjoy………

By Jagat Kothari Posted in MySQL Tagged

Installing Apache, MySQL, and PHP on Linux


This tutorial is designed to guide you through the initial steps of setting up Apache, MySQL, and PHP on Linux. The Linux distribution being utilized for this tutorial is Fedora Core 1, however the steps should be very similar across most distributions. This tutorial makes the assumption that you have the required development tools loaded for compiling programs from source, these tools are beyond the scope of this document and will not be covered here. Also, it assumes you can use the “vi” text editor for basic editing tasks. Continue reading

Favourite Quotes


It is absurd to divide people into good and bad. People are either charming or tedious – Oscar Wilde

"Resove to be a master of change rather than a victim of change."

Destiny is simply d strength of ur desires.. If u cry at a trouble, it grows double!! If u laugh at d trouble, It disappears like a bubble!! 😉

The abundant life does not come to those who have had a lot of obstacles removed from their path by others. It develops from within and is rooted in strong mental and moral fiber.

A fact is a simple statement that everyone believes. It is innocent, unless found guilty. A hypothesis is a novel suggestion that no one wants to believe. It is guilty, until found effective. – Edward Teller

Cherish your visions and your dreams, as they are the children of your soul; the blueprints of your ultimate achievements.

When Time Is Running Good……………….Ur Mistakes Are Taken As Joke………………Bt When Ur Time Is Running Bad…………………..All Ur Jokes Are Noticed…….

"If the loser keeps his smile, the winner will lose the thrill of victory…!!!

Common sense is rarely practised.

Love happens only once.. The rest is just life ..

Being free is important but not as important as being open source.

As I grow older , I regret to say that a detestable habit of thinking seems to be getting a hold of me.

Multitasking= being able to screw up several things at the same time

I love being married. It’s so great to find that one special person you want to annoy for the rest of your life.

Choose a job you love, and you will never have to work a day in your life.

Fact Of the Life: You just can’t love a job for the lifetime. Human beings always get bored by repeatedely doing the same thing.

One measure of leadership is the caliber of people who choose to follow you.

Never be a lecturer, you will become a typical Analyst.

I am certain there is too much certainty in the world.

Continue reading

Apache HTTP Server Tutorial


The Apache HTTP Server, commonly referred to as Apache , is web server software notable for playing a key role in the initial growth of the World Wide Web. In 2009 it became the first web server software to surpass the 100 million web site milestone.

The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows NT. The goal of this project is to provide a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards.

Apache HTTP Server Presentation

List of Topics Covered ::

Apache HTTP Server Overview
Apache Configuration Files
Core Apache Configuration Directives
Virtual Hosts
Error Handling
Important Apache Modules
Q & A

View Slides