Skip to content

Instantly share code, notes, and snippets.

@pegli
Created October 8, 2013 22:31
Show Gist options
  • Save pegli/6892916 to your computer and use it in GitHub Desktop.
Save pegli/6892916 to your computer and use it in GitHub Desktop.
1. Created new Android module project.
2. Deleted ExampleProxy.java
3. Added MyWindowProxy.java and edited build.xml and module file.
4. ant clean compile, successful build.
/**
* This file was auto-generated by the Titanium Module SDK helper for Android
* Appcelerator Titanium Mobile
* Copyright (c) 2009-2013 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License
* Please see the LICENSE included with this distribution for details.
*
*/
package com.example.androidextension;
import org.appcelerator.kroll.KrollModule;
import org.appcelerator.kroll.annotations.Kroll;
import org.appcelerator.titanium.TiApplication;
import org.appcelerator.kroll.common.Log;
@Kroll.module(name="Androidextension", id="com.example.androidextension")
public class AndroidextensionModule extends KrollModule
{
// Standard Debugging variables
private static final String TAG = "AndroidextensionModule";
}
<project name="androidextension" default="dist">
<description>
Ant build script for Titanium Android module AndroidExtension
</description>
<property name="ti.module.root" location="${basedir}"/>
<property file="build.properties" />
<path id="dependencies">
<filelist>
<file name="${titanium.platform}/android/modules/titanium-ui.jar"/>
</filelist>
</path>
<import file="${titanium.platform}/../module/android/build.xml"/>
</project>
package com.example.androidextension;
import ti.modules.titanium.ui.WindowProxy;
public class MyWindowProxy extends WindowProxy {
public MyWindowProxy() {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment