Announcing Pastee Droid

Pastee Droid IconPastee Droid is an Android client for “the secure pastebin” Pastee!
Supports Paste encryption. If encryption is selected pastes are encrypted (AES-256) with a password. A SHA-256 hash of the password is stored in the database, not the passphrase itself, which ensures that only those who know the password will be able to view the content of your paste. All traffic is sent over SSL

Supports over 100 languages. Languages are listed in order of common (C, Java , Text Only, etc) , other (ActionScript, Debian Source File, etc ) and combo (XML+Ruby , HTML+Django/jinja, etc) .

Supports pastes of up to 200,000 characters

Pastes are not listed. Pastee assures users that it will never list or index your pastes for any reason. Privacy and security are essential to Pastee.

Paste IDs are carefully chosen , this makes them less susceptible to crawling bots. Paste ID’s are short and easy to remember if you must.

Pastee Droid supports sharing of pastes via various apps such as twitter , text message , email etc.
Pastee Droid also supports URL-shortening .Just paste a URL and it will be shortened .
Pastes have reasonable expire times. An hour , a day , a week , a month and a year.

For more information on Pastee see https://pastee.org/about

“Pastee Droid” is copyrighted by Technologique Park
“Pastee” is copyrighted by Pastee
The Pastee Droid Logo is a modification based on work created and shared by Google and used according to terms described in the Creative Commons 3.0 Attribution License. Original can be found at http://www.android.com/developers/branding.html

This slideshow requires JavaScript.

Advertisements

Announcing Bodha Converter

Bodha Converter

Bodha Converter default screen

Bodha Converter is an android app I made a while ago which I only got around to publishing recently. It allows users to convert between Binary, Octal, Decimal, Hex and Ascii with a zen like approach.

It supports general (Binary , Octal , Decimal and Hex ) conversions up to 2^63-1 in their respective formats. It also supports Ascii characters in the range of NUL to DEL (0 – 127)

A convenient table is also included for quick lookups also in the range of 0 – 127

This app collects no personal data. The internet permission is only required to serve advertisements. It can be obtained from the google play marketplace 

Hope you find it useful.

 

 

 

 

Upgraded to Cyanogen Mod 7

I recently upgraded my old HTC Hero from CM6 to 7 . The install process was pretty painless largely due to the fact I had the bulk of the work done from when I installed CM6 previously.

The upgrade and install process

I used rom manager to download and flash the rom and google tools but not before backing up my applications and data. I used the well known titanium backup for this . Once this was completed I chose to wipe the dalvik cache and system data and proceeded to install the rom via rom manager.

The install process completed fairly quickly and within no time I was back up and running . I had previously read a few reports of the rom behaving sluggishly and some people having problems, so I was anxious to ensure all the essentials worked.

Wifi , camera , gps , audio and the rest worked fine with no problems. I did notice the rom feeling a little sluggish though. To remedy this I went into the settings and overclocked the processor the 710Mhz . I tried to push it higher but it kept shutting down . Also another thing I did was to install launcher pro as the default dock instead of ADW that comes with the rom by default. I found these tweaks to greatly improve the speed and responsiveness of the rom.

So how does it compare to CM6 ?

Overall the rom seems to be more responsive , I had applied the same tweaks to CM 6 also so I’m not sure how much of a difference there really is in terms of speed or whether it is mainly the placebo effect.

In the previous version I had to install setCpu to overclock the processor while this rom had the option built into the settings. This made it very convenient and saves space too.

The UI looks a lot sleeker this time around and allows for greater theming options. Some examples  are the status bar , the dialer , the keyboard.

CM7 also has the ability to take screenshots by default which saves me having to connect it to ADB via USB to take them.

 

Conclusion

Overall I am very pleased with the performance and quality of the rom and I would like to take this time to thank the cyanogen mod community for the hard work they put into their releases and for keeping the older models alive.

 

My current setup

 

Fresh CM7 Setup

 

Preparing Debian Squeeze for Android development

Today I am going to discuss how to set up the Eclipse IDE with the Android SDK  for Android development on Debian squeeze.

To begin make sure you have the Java Development Kit  installed. I usually use sun’s Java but apparently openjdk works just as well although its not officially supported for android development. There are a few steps to go through but the commands  below will make it quick.

Step 1: Install Java

To install suns Java make sure you have edited your sources list to include the non-free repository . In order  to do this open a terminal  login as root . I will use “as root” to denote where root is required. To login as root use

su

then enter your root password.

To return to normal user mode type exit

To begin

nano  /etc/apt/sources.list  as root

add non-free beside main in your main source line

deb http://http.us.debian.org/debian stable main contrib non-free

save the file and do an apt-get update as root

now do  apt-get install sun-java6-jdk as root

choose yes to install and accept the agreement

Java should now be installed you can test by running javac in a terminal.

Step 2: Install Eclipse

Next , we must download eclipse from http://www.eclipse.org/downloads/

I use the classic version but any will do . For this tutorial I will be using the helios build for 64 bit architectures but its the same instructions for 32 bit ones.

download the build for you architecture and extract it when done using.

tar -xf eclipse-SDK-6.2-linux-gtk-x86_64.tar.gz

then move it to the /opt directory with the following command

mv ~/eclipse /opt as root

Step 3: Download the Android SDK

Next download the Android SDK from http://developer.android.com/sdk/index.html

once downloaded extract in the same way as we did with eclipse

tar -xf android-sdk_r11-linux_x86.tgz

then move it to the /opt directory  like so

mv android-sdk-linux_x86/ /opt as root

you should now have both the Android SDK and Eclipse in the opt directory now

the next step is to add the android developer toolkit to eclipse

Step 4: ADT Plugin

Start Eclipse, ( /opt/eclipse/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/

Add ADT Repository

Click OK. Note: 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.Note: 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.

Next in a terminal type

/opt/android-sdk-linux_x86/tools/android

This will bring up the AVD and SDK manager  go to the available Packages in the side bar and select the API versions you wish. I usually select all of them to test against different revisions of the API. Proceed to install the selected packages  which can take a long time depending on how many you have selected and you connection speed.

Step 5: Set up a virtual device

Once that’s completed we need to make a virtual device to develop our programs on.

In Eclipse go to Window>Android SDK and AVD Manager and select new , fill out the details as required and click create.

Android Virtual Device

NOTE: it’s a good idea to make several AVD’s against the various API’s so you can thoroughly test your device.

You can now create a new android project by opening eclipse and selecting File>New>Other>Android>Android Project

(Optional )Step 6: Setting up a physical device

All credit for this section goes to unforgivin512

Source: http://unforgivendevelopment.com/2011/05/20/udev-headaches-on-debian-testing-wheezy/

On the android developers website the guide for setting up a device under Ubuntu says to create the file “/etc/udev/rules.d/51-android.rules” , this does not work in the case of Debian. What you have to do in this case is

nano /lib/udev/rules.d/91-permissions.rules as root

Find the text similar to this

# usbfs-like devices SUBSYSTEM==”usb”, ENV{DEVTYPE}==”usb_device”, \ MODE=”0664″

Then change the mode to 0666 like below

# usbfs-like devices SUBSYSTEM==”usb”, ENV{DEVTYPE}==”usb_device”, \ MODE=”0666

This allows adb to work, however we still need to set up the device so it can be recognized. We need to create the file

nano /etc/udev/rules.d/99-android.rules as root

and enter

SUBSYSTEM==”usb”, ENV{DEVTYPE}==”usb_device”, ATTRS{idVendor}==”0bb4″, MODE=”0666″

NOTE: “0bb4” in this case is your vendors model (HTC in my case).

A full listing can be found here http://developer.android.com/guide/developing/device.html

Save the file and then restart udev as root /super user

/etc/init.d/udev restart as root

Connect the phone via USB and it should be detected when you compile and run a project.

That concludes this tutorial for today.

Fix Android Console Error: requires .class compatibility error

I recently ran into this error when migrating between versions of eclipse (due to a reinstall ), specifically from helios to indigo builds. The problem occurs due to the project being compiled against a particular Java version specified in the eclipse settings. Then when using a newer version of eclipse one will get a . class compatibility error complaining .

The error message states to select “fix project in android tools” (access by right clicking on the project folder). This did not work for me however.

I checked the Java bytecode format in “Window/Preferences”, “Java/Compiler/Compiler Compliance Level” to make sure version 1.6 was set (the version I was building against). This also did not solve the problem.

I eventually solved the problem by rebuilding the project