This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gradle build | |
:prepareDebugDependencies UP-TO-DATE | |
:compileDebugAidl UP-TO-DATE | |
:generateDebugBuildConfig UP-TO-DATE | |
:crunchDebugRes UP-TO-DATE | |
:processDebugManifest UP-TO-DATE | |
:processDebugRes UP-TO-DATE | |
:compileDebug UP-TO-DATE | |
:dexDebug UP-TO-DATE | |
:packageDebug UP-TO-DATE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pushd ~/android-sdks/extras/android/support/v4/; rm -rf tmp__ android-support-v4-src.jar; mkdir tmp__; for d in src/*; do echo "copying files in $d"; (cd "$d"; cp -r . ../../tmp__); done; (cd tmp__; zip -q -r ../android-support-v4-src.jar .; echo "src=../libs_src/android-support-v4-src.jar" > ../android-support-v4.jar.properties); rm -rf tmp__; popd 2>&1 > /dev/null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.example.receiversample" | |
android:versionCode="1" | |
android:versionName="1.0" > | |
<uses-sdk | |
android:minSdkVersion="8" | |
android:targetSdkVersion="15" /> | |
<application |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Nur android-15/android/accessibilityservice/AccessibilityService.java android-16/android/accessibilityservice/AccessibilityService.java | |
--- android-15/android/accessibilityservice/AccessibilityService.java 2012-06-18 20:00:41.000000000 +0900 | |
+++ android-16/android/accessibilityservice/AccessibilityService.java 2012-06-28 08:41:07.000000000 +0900 | |
@@ -17,8 +17,10 @@ | |
package android.accessibilityservice; | |
import android.app.Service; | |
+import android.content.Context; | |
import android.content.Intent; | |
import android.os.IBinder; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.zakky.square; | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.view.View; | |
public class SquareView extends View { | |
public SquareView(Context context, AttributeSet attrs, int defStyle) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* by Shigeru KANEMOTO at SWITCHSCIENCE. | |
*/ | |
import java.io.File; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.StringTokenizer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.StringTokenizer; | |
public class RelativePath { | |
public static String relativePath(String origin, String target) { | |
try { | |
origin = (new File(origin)).getCanonicalPath(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newproject/ProjectNamePage.java b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newproject/ProjectNamePage.java | |
index 3db3353..cdd65c9 100644 | |
--- a/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newproject/ProjectNamePage.java | |
+++ b/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/newproject/ProjectNamePage.java | |
@@ -37,6 +37,7 @@ import org.eclipse.core.runtime.Platform; | |
import org.eclipse.core.runtime.Status; | |
import org.eclipse.jface.dialogs.IMessageProvider; | |
import org.eclipse.jface.viewers.IStructuredSelection; | |
+import org.eclipse.jface.wizard.IWizardPage; | |
import org.eclipse.jface.wizard.WizardPage; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
${:import(android.view.View,android.view.View.OnClickListener)}setOnClickListener(new OnClickListener() { | |
@Override | |
public void onClick(View v) { | |
${cursor} | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
${:import(org.eclipse.swt.widgets.MessageBox)}final MessageBox ${message:newName(org.eclipse.swt.widgets.MessageBox)} = new MessageBox(getShell(), SWT.NULL | SWT.ICON_ERROR); | |
${message:newName(org.eclipse.swt.widgets.MessageBox)}.setMessage("${cursor}"); | |
${message:newName(org.eclipse.swt.widgets.MessageBox)}.open(); |