Adams Bros Blog

31Dec/110

Send Email in your Android Application

Author: Trenton

I've seen a lot of examples of how to send email from an android application.  All of them result in applications coming up in a chooser list that are not appropriate for sending email.  In this post, I'll described the various solutions I found, and the solution that brings up only email clients.

Filed under: Android, Java Continue reading
7Nov/110

Conversion to Dalvik format failed with error

Author: Trenton

I went looking, and looking, and looking, for a solution to this problem. None of them seemed to fit the bill. I tried...

  1. updating proguard
  2. not using libraries I shouldn't be
  3. re-importing the project
  4. removing duplicate android jars
  5. removing all android jars
  6. a host of other "suggestions" from Eclipse Android users
Filed under: Android, Java Continue reading
22Jul/110

Eclipse Android Hello World Tutorial Video – Part 3

Author: Trenton

In third part of the android hello world video, we explain the different components of the application, and why things are done in a certain way.  This video is a bit raw.  However, rather than editing the videos, I'm going to try and improve my presentation skills as I go.

21Jul/112

Ubuntu Sluggish or Slow

Author: Trenton

I was recently having a problem where my new computer was becoming extremely sluggish while running Ubuntu Linux 11.04.  The keyboard input was very delayed and slow.  The graphics were terribly slow.  Just about everything in the system became very slow.  I've heard reports from similar problems, of complete lockups.  It seemed to be linked to when the screensaver was activated, or power management was activated.  But, after having disabled both, and continuing to have problems, I realized that wasn't it.  Keep reading for the solution to my problem; I hope it helps you too.

Filed under: Linux, ubuntu Continue reading
16Jul/110

Eclipse Android Hello World Tutorial Video – Part 2

Author: Trenton

Part 3 - Code Explained

Okay, I've finished another android development demo video.  Sorry it took so long, I got really busy with a new computer and what not, and life in general.  In the next video in this series, I will explain the details of the hello android application.  So, if you do not understand some of what is happening, stay tuned for the next video in the series.

16Jul/110

Slow SSH Login

Author: Trenton

I had slow login problems with my SSH server for many months, and never bothered to try and fix it. Finally I got sick of it, and enabled verbose mode. I noticed it was doing public key authentication, GSSAPI authentication, and then password. The authentication would fail on public key, then the GSSAPI authentication would sit there for a long time, before moving on to password authentication.

Add the following to your /etc/ssh/sshd_config

GSSAPIAuthentication no
GSSAPICleanupCredentials no
Filed under: Linux No Comments
9Jul/110

Maven Test Debug Mode Profile

Author: Trenton

I should have blogged about this long ago, as I feel that this is a very useful way of debugging unit tests with maven.  This is especially so if you're primarily a command line sort of guy like myself.

All that is required to be able to debug a unit test is

  1. configure the maven surefire plugin from within a profile
  2. activate the maven profile from the command line

The following XML profiles section will work just peachy for you.

  <profiles>
    <profile>
      <id>dtest</id>
      <properties>
        <maven.test.skip>false</maven.test.skip>
      </properties>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <version>2.5</version>
            <configuration>
              <forkMode>once</forkMode>
              <debugForkedProcess>true</debugForkedProcess>
            </configuration>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

Now just run this.

  mvn -Pdtest package
Filed under: Uncategorized No Comments
9Jul/110

Asus Transformer Android 3.1 Contacts Force Close

Author: Trenton

I just bought an ASUS Transformer TF101.  I set everything up, and suddenly found that my contacts manager application from Google was crashing with a "Force Close" button.  I was very upset about that, so I tried to rectify it.  I was getting the following error...

  • The process android.process.acore has stopped unexpectedly. Please try again.
Filed under: Linux Continue reading
7Jul/110

Eclipse Android Hello World Tutorial Video – Part 1

Author: Trenton

Part 2

My intention is to make all of my android videos as simple as possible, and as short as possible. That way you can learn what you need to, and get on with it.

This is a quick demo on how to get started on developing for Android.  It is "hopefully" the first in a serious of android demo videos that I will be creating.  I am mainly creating them for myself, so as to become familiar with basic android development tasks, and also to play with recording sessions; I too am a newbie to Android development.  I am putting them on YouTube in case anyone else may find them valuable; perhaps for their simplicity.  I hope you enjoy.

31May/113

Evernote Loses Your Data

Author: Trenton

Be VERY careful with using evernote on multiple devices.  ALWAYS sync BEFORE editing.  Evernote does not care whether your data is current or not, it will overwrite it one way or another.  I wrote a whole whack of notes on my French course, in French, laboriously, and it lost a very large amount of them.

This does not happen every time. Usually it will show you both versions of the documents if there was a conflict.

So, be careful, evernote loses data.

Filed under: Cloud Services 3 Comments