Index: src/main/java/org/apache/maven/plugin/idea/IdeaModuleMojo.java
===================================================================
--- src/main/java/org/apache/maven/plugin/idea/IdeaModuleMojo.java	(revision 728546)
+++ src/main/java/org/apache/maven/plugin/idea/IdeaModuleMojo.java	(revision )
@@ -116,6 +116,18 @@
     private String sourceClassifier;
 
     /**
+     * Android configuration
+     * {@code
+        <androidConfiguration>
+            <plaform>Android 2.2 Platform</plaform>
+            <gen>$MODULE_DIR$/target/generated-sources/gen</gen>
+        </androidConfiguration>
+     * }
+     * @parameter
+     */
+    private Map androidConfiguration = new HashMap();
+
+    /**
      * Sets the classifier string attached to an artifact javadoc archive name.
      *
      * @parameter expression="${javadocClassifier}" default-value="javadoc"
@@ -194,7 +206,7 @@
                            boolean downloadSources, String sourceClassifier, boolean downloadJavadocs,
                            String javadocClassifier, Library[] libraries, Set macros, String exclude,
                            boolean useShortDependencyNames, String deploymentDescriptorFile, boolean ideaPlugin,
-                           String ideaVersion )
+                           String ideaVersion, Map androidConfiguration)
     {
         super.initParam( project, artifactFactory, localRepo, artifactResolver, artifactMetadataSource, log,
                          overwrite );
@@ -228,6 +240,8 @@
         this.ideaPlugin = ideaPlugin;
 
         this.ideaVersion = ideaVersion;
+
+        this.androidConfiguration = androidConfiguration;
     }
 
     /**
@@ -279,6 +293,10 @@
             {
                 addPluginModule( module );
             }
+            else if ( "apk".equals( executedProject.getPackaging() ) )
+            {
+                addAndroidModule( module );
+            }
 
             Element component = findComponent( module, "NewModuleRootManager" );
             Element output = findElement( component, "output" );
@@ -857,6 +875,47 @@
         pluginDevElement.addAttribute( "url", getModuleFileUrl( "src/main/resources/META-INF/plugin.xml" ) );
     }
 
+    private void addAndroidModule( Element module )
+    {
+        module.addAttribute( "type", "ANDROID_MODULE" );
+
+        String platform = (String) androidConfiguration.get("platform");
+        if(platform == null)
+            platform = "Android 2.2 Platform";
+
+        String gen = (String) androidConfiguration.get("gen");
+        if(gen == null)
+            gen = new File(executedProject.getBasedir(), "gen").getAbsolutePath();
+
+        Element config = module.addElement("component" )
+                .addAttribute( "name", "FacetManager" )
+                .addElement("facet")
+                .addAttribute("type", "android")
+                .addAttribute("name", "Android")
+                .addElement("configuration");
+        config.addElement("option")
+                .addAttribute("name", "PLATFORM_NAME")
+                .addAttribute("value", platform);
+        config.addElement("option")
+                .addAttribute("name", "USE_CUSTOM_GEN_FOLDER")
+                .addAttribute("value", "true");
+        config.addElement("option")
+                .addAttribute("name", "CUSTOM_GEN_FOLDER_RELATIVE_PATH")
+                .addAttribute("value", gen);
+
+        /*
+      <component name="FacetManager">
+        <facet type="android" name="Android">
+          <configuration>
+            <option name="PLATFORM_NAME" value="Android 2.2 Platform" />
+            <option name="USE_CUSTOM_GEN_FOLDER" value="false" />
+            <option name="CUSTOM_GEN_FOLDER_RELATIVE_PATH" value="" />
+          </configuration>
+        </facet>
+      </component>
+        */
+    }
+
     /**
      * Translate the relative path of the file into module path
      *
Index: src/main/java/org/apache/maven/plugin/idea/IdeaMojo.java
===================================================================
--- src/main/java/org/apache/maven/plugin/idea/IdeaMojo.java	(revision 635080)
+++ src/main/java/org/apache/maven/plugin/idea/IdeaMojo.java	(revision )
@@ -23,8 +23,10 @@
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.project.MavenProject;
 
+import java.util.HashMap;
 import java.util.HashSet;
 import java.util.List;
+import java.util.Map;
 import java.util.Set;
 
 /**
@@ -183,7 +185,19 @@
      */
     private boolean ideaPlugin;
 
+    /**
+     * Android configuration
+     * {@code
+        <androidConfiguration>
+            <plaform>Android 2.2 Platform</plaform>
+            <gen>$MODULE_DIR$/target/generated-sources/gen</gen>
+        </androidConfiguration>
+     * }
+     * @parameter
+     */
+    private Map androidConfiguration = new HashMap();
 
+
     public void execute()
         throws MojoExecutionException
     {
@@ -215,7 +229,7 @@
         mojo.initParam( executedProject, artifactFactory, localRepo, artifactResolver, artifactMetadataSource, getLog(),
                         overwrite, executedProject, reactorProjects, wagonManager, linkModules, useFullNames,
                         downloadSources, sourceClassifier, downloadJavadocs, javadocClassifier, libraries, macros,
-                        exclude, dependenciesAsLibraries, deploymentDescriptorFile, ideaPlugin, ideaVersion );
+                        exclude, dependenciesAsLibraries, deploymentDescriptorFile, ideaPlugin, ideaVersion, androidConfiguration );
 
         mojo.rewriteModule();
     }
