Links

Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

My PhoneGap app not working on ICS

I am working on an phonegap android app since last few months, after the launch of ICS i am shocked that phonegap functions are not supported on it. After some logs and alerts i have found that the code i am using to switch phonegap.js for iOS and Android is incorrect we need to replace it with simple call.

Hacking android app (Basic)

Search and download the apk file, you can use following links to search your apk if you don't have one

http://www.androiddownloadz.com/
http://www.freeandroidware.com/
http://www.freewarelovers.com/android

convert extension of the file from .apk to .zip and extract this zip, now you get the resources and other files, to get the classes decompile the file classes.dex to jar with an app from this link http://code.google.com/p/dex2jar/downloads/list

Step 1 extract the contents of dex2jar.*.*.zip file
Step 2 copy your .dex file to the extracted directory
Step 3 execute dex2jar.bat <.dex filename> on windows, or ./dex2jar.sh <.dex filename> on linux

then you can use jd-gui, the source code is quite readable as dex2jar makes some optimizations.

Frequently used Android Intents

Useful and commonly used Android Intents for frequently used tasks like managing apps, making call, sending SMS, eMail etc

Create/Deploy Android project by comand line

Creating and deploying a new Android project by Mac terminal is an exciting experience for me, for this all what i needed are Ant, Mac Terminal and Android SDK only :)

Installing or Upgrading Ant in Mac OSX

First of all Ant already come with Mac OSX, but if you really need to install it or want to upgrade it, though, the best way would be to install it through MacPorts (using sudo port install apache-ant). To install it manually you can follow these simple steps:

Installing and Configuring MacPorts

MacPorts are better way to install and updating various utilities in your mac, it is a command line tool.

Sencha Touch

Sencha Touch is a full mobile JS library, along with widgets, animations and all sort of utilities for mobile html5 development.

Installing Ant plugin in Aptana Studio

Because Aptana is build for Web development it don't have Ant in its bundle (as it comes with Eclipse). We need to install JDT with some simple steps to run Ant in Aptana

Prepopulate SQLite DataBase in PhoneGap Application

This is an old post, please refer:
https://github.com/brodysoft/Cordova-SQLitePlugin - a Cordova/PhoneGap plugin to open and use sqlite databases on Android/iOS/WP(8) with HTML5 Web SQL API

It is really hard to wait for too much time when a phonegap application runs for first time and create all its database stuff, which gives a really bad impression to the user who just downloaded the app for its iPhone or Android device. I have a little approach to save the long time taken for database creation at very first run of the app, that is; we should copy a Pre-Populated Database file to the native location of device.

Sketch Me Pro Success

WOW! I am too happy today with the Growth of Sketch Me Pro.
My application Sketch Me Pro getting a huge success in Android App market, with more then 10k downloads in time period of less then 15 days. Today it is in top of hot photography apps category of appbrain.com,

Unique features of Android OS

There are other smartphone OS available out there, but Android have some individual features that other OS do not have like: 

BDD vs TDD

If you’re not familiar with these acronyms, they stand for Behaviour-Driven Development and Test-Driven Development, BDD is little more complex as compare to TDD here are some of the basic differences:

SOAP

SOAP is a simple and extensible schema(or format) of XML information exchange over HTTP, it is used for communication between applications. SOAP stands for Simple Object Access Protocol.
A SOAP XML should have an Envelope (that is root element of a SOAP message), Header, Body and Fault element that identifies the document is SOAP message.

Introduction to PhoneGap

What is PhoneGap?
It is a bridge platform between browser of a device and native control of device, it is based on advantage that every mobile operating system provides a Web View interface for its application like UIVewView in iOS.

Android vs iPhone in the USA

  1. 6.6% of the US population has an iPhone. (source)
  2. Apple has 20.4 million iPhone users in the US. Up from 12.1 million a year ago. (source)
  3. 9.4% of the US population in using an Android phone. (source)
  4. There are 29 million Android phones in use in the US. Up from 6.4 million a year ago. (source)
  5. The proportion of new iPhone owners has jumped to 17% from 10% at the beginning of the year, while percentages of new Android phone owners has plateaued at 27%. (source)
  6. Android still makes up the majority of new smartphone sales for customers who picked them up in the last three months, but interest in the platform has stopped growing for now. (source)
  7. Apple's share of the U.S. smartphone market gained 12.3 percentage points to 29.5% in March 2011 while Android's share in the U.S. fell from 52.4% to 49.5% — its first sequential loss in any region of the world since early 2009. (source)
  8. "The migration of subscribers to the iPhone on the Verizon network should accelerate this fall when Apple coordinates the launch of iPhone 5 on the GSM and CDMA networks." (source)
  9. Verizon has 32% of the US iPhone 4 market. There was a big jump in Verizon iPhone 4 sales between May and June 2011. (source)