hey friends ! today i am gonna tell you ,how to install phonegap offline if there is problem to install it online .
step 1: go to https://codeload.github.com/phonegap/phonegap/zip/2.9.0 and download this .
step 2 : extract it.
step 3 : open your android eclipse and start a new project.
step 4 : now open extract file and go to andriod folder and you will see 2 file there.
1- corodova.js 2- corodova.jar
step 5 : now open eclipse and copy corodova.js to " assets/www/ " .
step 6 : and copy corodova.jar to libs folder.
step 7 : now right click on project folder and go to properties .
step 8 : go to java build path/ select Libraries > click on add jar and add corodova.jar file.
step 9 : go to MainActivity,java .
step 10 : now code like this.
package com.example.mobile;
import android.os.Bundle;
import org.apache.cordova.*;
public class MainActivity extends DroidGap {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.loadUrl("file:///android_asset/www/index.html");
}
}
step 11: now you can see file:///android_asset/www/index.html this is the dir address place your html code to www folder.
step 12 : done enjoy
** this was a quick tutorial due to lack of time but hope it will useful for you..
EmoticonEmoticon