Tools and Development kit
Android :
Using Android Studio
To set up Android Studio on Windows:
Using Eclipse IDE and ADT Plugin
You can also work on both which is considered as the best way in case of Blackberry development.
You can code in Eclipse and compile/run in JDE.
Apache Cordova>3.0 Installation for Hybrid Apps Development
Follow the steps to install Apache Cordova :
PhoneGap version<3.0 Installation for Android OS
There are different guidelines for installing phonegap for different OS, which you may find here.
Follow given set of instructions to install phonegap plugin for Android :
Android :
Using Android Studio
To set up Android Studio on Windows:
- Launch
the .exe file you
downloaded.
- Follow
the setup wizard to install Android Studio and any necessary SDK tools.
On some Windows systems, the launcher script does not find
where the JDK is installed. If you encounter this problem, you need to set an
environment variable indicating the correct location.
Select Start menu > Computer > System
Properties > Advanced System Properties. Then open Advanced tab
> Environment Variables and add a new system variable JAVA_HOME that
points to your JDK folder, for example C:\Program
Files\Java\jdk1.7.0_21.
The individual tools and other SDK packages used by Android
Studio are installed in a separate directory.
If you need to access the tools
directly, use a terminal to navigate to the location where they are installed.
For example:
\Users\<user>\sdk\
To set up Android Studio on Mac OSX:
- Launch
the .dmg file you
downloaded.
- Drag
and drop Android Studio into the Applications folder.
- Open
Android Studio and follow the setup wizard to install any necessary SDK
tools.
If you need to use the Android SDK tools from a command
line, you can access them at:
/Users/<user>/Library/Android/sdk/
To set up Android Studio on Linux:
- Unpack
the .zip file you
downloaded to an appropriate location for your applications.
- To
launch Android Studio, open a terminal; navigate to the android-studio/bin/ directory, and executestudio.sh.
You may want to add android-studio/bin/ to your
PATH environmental variable so that you can start Android Studio from any
directory.
- If
the SDK is not already installed, follow the setup wizard to install the
SDK and any necessary SDK tools.
Using Eclipse IDE and ADT Plugin
- Installation of a tool i.e. Eclipse for windows, you can find the download link here.
- Installation of Android SDK for eclipse as plugin :
- Start Eclipse, then select Help > Install New Software.
- Click Add, in the top-right corner.
- In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location:
https://dl-ssl.google.com/android/eclipse/
- Click OK.If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
- In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
- In the next window, you'll see a list of the tools to be downloaded. Click Next.
- Read and accept the license agreements, then click Finish.If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
- When the installation completes, restart Eclipse.
Alternate Method :
- Download the ADT Plugin zip file (do not unpack it):
- ADT-21.1.0.zip
- Start Eclipse, then select Help > Install New Software.
- Click Add, in the top-right corner.
- In the Add Repository dialog, click Archive.
- Select the downloaded ADT-21.1.0.zip file and click OK.
- Enter "ADT Plugin" for the name and click OK.
- In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
- In the next window, you'll see a list of the tools to be downloaded. Click Next.
- Read and accept the license agreements, then click Finish.If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
- When the installation completes, restart Eclipse.
To update your plugin once you've installed using the zip file, you will have to follow these steps again instead of the default update instructions.
Blackberry : Research In Motion :
For Blackberry Development you need to Install Blackberry JDE or you can Download Blackberry plugin for Eclipse.
Here is a link that have both of the mentioned ways of installation.
For easiness, it is better to code in Eclipse rather than in BB JDE as Eclipse provide more suggestions than JDE.
Blackberry : Research In Motion :
For Blackberry Development you need to Install Blackberry JDE or you can Download Blackberry plugin for Eclipse.
Here is a link that have both of the mentioned ways of installation.
For easiness, it is better to code in Eclipse rather than in BB JDE as Eclipse provide more suggestions than JDE.
You can also work on both which is considered as the best way in case of Blackberry development.
You can code in Eclipse and compile/run in JDE.
Following are the steps :
- Create new java project in Eclipse.
- Include the libraries needed for Blackberry Environment : Righclick on project>Build Configurations path>Add External Libraries
- Include the library "net_rim_api.jar"
- Open JDE, Create new Workspace.
- Add project to the workspace that is created through Eclipse.
- Add all project files into the JDE project manually.
- Build Project or run directly in JDE.
Apache Cordova>3.0 Installation for Hybrid Apps Development
Follow the steps to install Apache Cordova :
- Install NodeJs in your system from here.
- Install Git in your system from here.
- After successful installation, you may check node version by executing the command <npm -version> on command line tool.
- Install Apache Cordova by executing the command <npm install -g cordova>. This would install the latest version of Cordova.
- After successful installation of cordova, you may create cordova based project for different platforms. However, it is pretty much obvious that you would need respective SDKs for different OSes.
- Installation Completed!
PhoneGap version<3.0 Installation for Android OS
There are different guidelines for installing phonegap for different OS, which you may find here.
Follow given set of instructions to install phonegap plugin for Android :
- Download Phonegap Package for Android from here.
- Open Eclipse, go to file>new>others>Android Application Project. Give the required information like project name etc.
- Create a directory under asset : www>index.html.
- Right click on the project go to Build Path>configure build path>Libraries>Add External Jar and enter the directory root where your installed package is extracted out and add cordova 2.9.1.js
- Copy xml folder from installed package to the res directory of your project.
- Open src>package>MainActivity.java and copy paste these lines of code : -
package com.example.MainActivity;
import org.apache.cordova.DroidGap;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
public class MainActivity extends DroidGap {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.init();
super.appView.getSettings().setJavaScriptEnabled(true);
super.appView.addJavascriptInterface(new JavaScriptInterface(),
"Android");
super.loadUrl("file:///android_asset/www/index.html",5000);
}
public class JavaScriptInterface {
}
}
Installation Completed ! Now run your project using Run > Run As> Android Project.
Comments
Post a Comment