Saturday, November 21, 2009

How to install android NDK on Windows

Downlaods

NDK : http://dl.google.com/android/ndk/android-ndk-1.6_r1-windows.zip

CygWin :http://cygwin.com/setup.exe

GNU Make 3.81 : http://ftp.gnu.org/pub/gnu/make/make-3.81.tar.bz2

Startup cygwin and navigate to NDK_HOME
enter the command "export ANDROID_NDK_ROOT=NDK_HOME"
run the script "bash build/host-setup.sh"

U will get a "Host Setup Complete" message .

Done......

Monday, June 1, 2009

Creating an AVD in Android


--> android list targets

Available Android targets:
id:1
Name: Android 1.1
Type: platform
API level: 2
Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P
id:2
Name: Android 1.5
Type: platform
API level: 3
Skins: HVGA (default), HVGA-L, HVGA-P, QVGA-L, QVGA-P
id:3
Name: Google APIs
Type: add-on
Vendor: Google Inc.
Description: Android + Google APIs
Based on Android 1.5 (API level 3)
Libraries:
* com.google.android.maps (maps.jar)
API for Google Maps
Skins: HVGA (default), HVGA-L, QVGA-P, HVGA-P, QVGA-L

---> android create avd -n AVDNAME -t 2 (AVD with Target Android 1.5)

Tuesday, May 12, 2009

Samsung i7500

Android Icons

Android: Getting currenet APN proxy Settings

Cursor cursor= getContentResolver()
.query(Uri.parse("content://telephony/carriers"), new String[] {"name"}, "current=1", null, null);//Current=1 current APN

if (cursor!=null) {
try {
if (cursor.moveToFirst()) {
String name = cursor.getString(0);
}
} finally {
cursor.close();
}

Constant Fields avaiolable in "com.android.providers.telephony.TelephonyProvider"

Tuesday, April 28, 2009

Android SDCard Simulation

1) Create a new SDCard

mksdcard [-l label] [K|M]

eg: mksdcard -label 128M c:\sdcard.img


2) Add files in SDcard

adb push filePath /sdcard

eg: adb push img.jpg /sdacrd

3) Integrate with emulator

From eclipse do to project->Run>Target>Addtion Commal line options

give "-sdcard c:\sdcard.img" and run it.

Wednesday, April 15, 2009

Future of Mobile Phones

Its one thing to write about events on hindsight and a completly different thing to predict the future. This article tries to do the latter powered by the knowledge of the former. The key question before I start is "Why is it even worth predicting future of mobile phones?" or put it differently "Why is this article worth 10 minutes of your time when you have hundreds of worthy alternatives to spend your time?".

The answer to both of the above questions can be found in the happenings of recent past when a non-mobile company launched a device which is better and smarter than all other phones in the market. Never has such an event happened before in such a fiercely competitive market. Yes, I am talking about the now familiar iPhone from Apple. The launch of iPhone has changed the mobile phone world completly - it has redefined the idea of a mobile phone. What do we normally do with a mobile phone? Call right... iPhone has just changed the definition and other smart phones are catching up. The mobile phone is not just a device used for calling but is a gaming device for some, a productivity improvement tool for others, a music player for a different segment and a internet gateway for many many more. So why is a it worth predicting the future of mobile phones - because this affects over 70% of the population is one way or the other, because there are opportunities, lessons for too many players who are involved in this revolution - public , Mobile service providers, mobile manufacturers and businesses in general. This is one all encompassing silent revolution that has started and only kept quite by the surrounding economic environment of the times but its not going to be silent for too long - the world will change for ever. Thats why its important to understand whats coming so that we plan for the future today

Let me make my predictions

1) The name "Smart Phone" will lose its relevance. Tomorrow's Smart Phone is a music player, gaming device, internet gateway, Social networking tool, business & personal productivity tool. I am suggesting a segment called "Smart Mobiles" and I am going to use this term from now on in the rest of the article.

2) Business disruption: "Smart Mobiles" are going to disrupt many a business model - couple of examples are Gaming , these devices are going to give a serious fight to Nintendo DS and other portable gaming players. Another industry that will spring up is the infrastructure that will need to support these billions of devices downloading zillions of bytes lefte right and center. 3G is already 19th century. so 4G is definitely the next short term solution but it should not be a surprise if we see an 8G service within the next decade. BIG thing is people will pay for this power.

3) Social networking on the go - I really dont know how to even describe the next gen kid. Gone are the days of generation gap between parents and kids. The future is a generation gap between brothers and sisters.

4) Newspaper & publishing industry - I think, the industry is wasting time complaining about google instead they should start redefining their business models to suit this new wave and irrespective of how small or how big they are, a "Smart mobile" strategy can mark the difference between success and failure. The key to this argument is the prediction that things wont be free on the mobile unlike the Internet. Guys - find your sweet spot NOW.

5) Financial: Yup this industry has been a key contributor to the economic mess we are in but dont forget one thing - a thriving financial industry is the key to economic growth and thats why we need to bail them out inspite of their greed and excesses. In the future, we will see a lot of internet banking move to the smart mobiles. In fact "Smart Mobile" payments will become common place shaling up the credit card industry and much more cheaper too.

6) Mobile commerce: This will take off especially for low priced high volume items like music, movie tickets and hundreds of other products. The movie and music industry's boom time has arrived. All the billions of devices are going to download so much music that the traditional CD sales might look like change. Yes I am predicting that this industr is going to benefit a lot from this revolution and then TV - this is the world of truly charging the customer for what they are viewing, eliminate the cable guy ( though not completly) but the capability is there.....

7) Businesses in general: each business shall use "Smart Mobiles" in some capacity or the other as a productivity improvement tool for their sales folks or as a business enhancement tool for their customers ( eg: Newspapers - news on the go)

8) Consumers in general: the "Smart Mobile" has given the power to perform things on the go. You can do your banking, read your newspaper / magazine , shop, Watch videos, book movie tickets, play games , listen to your music, reply to email, network , Keep an eye on your home, control devices at home and much more - all this on the go.. wow- wish I was a gen x kid.. We bought our first TV when I was 10 years old

There are hundreds and hundreds of ways mobiles are going to redefine our lives.. Some of them I have captured above. a lot is still unanswered. I will keep this blog alive with new things