Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

Andrew

Andrew is a lightweight Android Development Project for Sublime Text 2. It combines perfectly with ADBView to get a functional Android development environment.

Notice: Andrew from Bitbucket is deprecated!

Andrew from Bitbucket has been deprecated in favor of its version on Github. If you are using Package Control, you may not be able to automatically update to the Github version, as it may count as a new plugin. However, Will Bond (the one maintaining Package Control) needs to accept the change, and it may take a while for the Github version to appear on the Install list.

If you want to have it right now (Windows and ST3 support!), you can download it from https://github.com/Korcholis/Andrew, or you can clone it, moving to the Packages directory and hitting:

git clone git://github.com/Korcholis/Andrew.git

Recent Changes

0.3

  • Refactor... > String grabs a text in your opened file and refactors it into res/values/strings.xml

0.2

  • Major menu restructuring.
  • Debug compiling is done on background when Andrew > Compile... > Compile on Save is on.
  • Added DDMS option, along with SDK Manager and Devices Manager.
  • Resources is populated after an On-save compile or when empty. Now it loads faster and works with the last resources.

0.1

  • First version

Requirements

In order to use Andrew, you need:

  • Android SDK, installed into your computer and with an Android Platform version installed. Any requirement related to this is also a requirement here.
  • For Linux users, set the permissions for your devices (See here how to do so).
  • ant (you need this for compiling Android applications).

First steps

Before you start coding, you should set your environment.

  1. Go to the Andrew > Preferences > Locate SDK command and choose whether you prefer to write it down manually or search it automatically.
  2. Go to the Andrew > Preferences > Workspace path command and select where you want to create projects by default. More or less like the Eclipse workspace.
  3. Check everything worked by clicking Andrew > Android managers > Android SDK Manager. If everything worked you should see the Android SDK Manager window. Otherwise, check the console in order to see any error.
  4. Start coding:
    1. Create a project using Android > New Android Project and follow the steps, or
    2. Use your already created project by opening the project's root folder.
      1. If you do so, you'll have to run <Android-SDK-Path>/tools/android update project --path /path/to/project to generate a build.xml file.

Coding Helps

Layout Snippets

Use snippets for any layout item. This eases the development of layouts, letting you move across the typical parameters by using Tab

Resources

Tired of writing R.id. widgetid all the time? Hit Ctrl+Shift+Alt+R (or Super+Shift+Alt+R on Mac OS X) and decide what to put using a menu.

Compile and send to Device

There's the option to compile as debug or release (and if you have a keystore, you can directly sign any release .apk), but you can also compile as debug and send it to the first device connected to the computer, automatically opening it when installed. Just the way you used to do in Eclipse, but with Sublime Text 2.

At the moment

Andrew is at its earliest version, due to the time I can spend with it. That's why I encourage everybody who wants to improve this plugin to fork and create new features or get the existing ones better.

Actually, it only works at this moment for Unix based platforms (Linux/Mac OS X).

Early future

The first thing to change is compiling asynchronously after every save. Well, actually working more on background and less on foreground.

Contributors

Have you got a glorious feature you'd like to include? Have you found a bug and you fixed it? Are you giving Windows compatibility? Do you think you can improve this project (and, I tell you, you definitely can)? Fork the project and make a pull request. I'll check by myself and eventually merge with the project.

License

This is an open git project for Sublime Text 2. Anyone can contribute here, fork, use this project however you want. It is free of charge, and comes with no warranty. Always use this along with a versioning system to avoid any problem. Use at your own risk.

Recent activity

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.