Showing posts with label jEdit. Show all posts
Showing posts with label jEdit. Show all posts

Monday, October 1, 2012

Android development using jEdit part 2

In this part of tutorial we will see how to create Android virtual devices, create a project and deploy it.

First of all create an AVD of targetted Android platform.



Select Plugins->A-B->Android->Create AVD and fill in details. One needs to enter AVD Name (Specify identifiable name by which you can guess platform later), Target (platform),  SD Card Size and Skin. If no dialog box comes up check your $PATH variable, that happened with me and I kept wondering until I realize that Android sdk tools directory was missing from path.

If you see this error "Error: This platform has more than one ABI. Please specify one using --abi." in console window (requires console plugin) manually specify ABI as bellow.
android create avd -n avd-jelly-bean -t 11 -c 32M -s WVGA800 --abi x86
Android 4.1 is a basic Android platform.
Do you wish to create a custom hardware profile [no]
Process android exited with code 0
Created AVD 'avd-jelly-bean' based on Android 4.1, Intel Atom (x86) processor,
with the following hardware config:
hw.lcd.density=240
vm.heapSize=48
hw.ramSize=512
 PS. Bye no means this is an Android tutorial, nor I am a pro. To know about ABI etc follow any Android programming tutorial.


Launch the AVD by selecting "Launch AVD"



Depending upon how powerful machine you've got, sooner or later you'll see AVD running.

Now create a android project

Create a project viewer project. This one is for jEdit to track and different from Android project.



Build and deploy this project, and you shall see it in you emulator listed among other apps like this


Update:
If you see an error like "waiting for device" even if the AVD  is running try instructions from here.

This ends the tutorial here, I would like to reiterate that I am not a pro and if you want to learn Android programming in detail here is a link.

Thanks for reading, many thanks goes to Dale Anson for this plugin. See you some time later :).

Sunday, September 30, 2012

Android development using jEdit part 1

While there are many good IDEs for android development like eclipse, NetBeans, intelliJ;  sometimes one may want to use lightweight editor to create android apps and still don't want to get into command line every time.

Here's a little how-to of creating android projects, AVDs using jEdit and it's Android plugin.

First off-course you need Android SDK installed and setup the path. Following is one example on openSUSE 12.2.


Download the Android SDK from this link.
Unzip into a convenient location, remember that you need to give the location name in PATH environment variable.
Install Android version you want to target.




Setup PATH in .profile, for example
export PATH=${PATH}:/home/ashish/android-sdk-linux/tools/
Install jEdit from here (I am using jEdit 5.0pre1)
Open plug-in manager and install Android plugin




Now you will start seeing options for creating AVDs, projects etc.




In upcoming parts I shall describe Android development further using jEdit, and its Android plugin.