title: How to install the new Urban Airship Push Library for Android in a Phonegap Project
body: <p>I'm building an app using Phonegap and I'm using Urban Airship for iOS and Android. </p>
  
  <p>For Android I was using it with AirMail, but now they are planning the deprecate AirMail and have published a new library (<a href="http://urbanairship.com/docs/android-client-overview.html" rel="nofollow">http://urbanairship.com/docs/android-client-overview.html</a>).</p>
  
  <p>I'm trying to make it work but I can't initialize it:</p>
  
  <pre><code>public class MainApp extends DroidGap { 
      @Override 
      public void onCreate(Bundle savedInstanceState) { 
          super.onCreate(savedInstanceState); 
          super.loadUrl("file:///android_asset/www/index.html"); 
          UAirship.takeOff(this);
      } 
  } 
  </code></pre>
  
  <p>The UAirship.takeOff() method is suppose to take an "Application" as the argument, but because PhoneGap apps extend DroidGap instead of Application it doesn't work. </p>
  
  <p>I know almost nothing about Android development, so I'm not sure how to go around this. </p>
  
  <p>Has anybody successfully installed the new UAirship library on a phonegap project?</p>