This file contains 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
# これからWaitForConnectionすればいい感じ | |
from java.io import File | |
from java.net import URL | |
from java.net import URLClassLoader | |
import jarray | |
urlClassLoader=URLClassLoader(jarray.array([File("ddmlib.jar").toURL()], URL)) | |
AndroidDebugBridge=urlClassLoader.loadClass("com.android.ddmlib.AndroidDebugBridge") | |
bridge = AndroidDebugBridge.getBridge() |
This file contains 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
# -*- coding:utf-8 -*- | |
# author :Kazushige TAKEUCHI(@myb1126) | |
import sys | |
import os | |
# おまじない1 | |
srcroot = os.path.dirname(__file__) | |
sys.path.append(srcroot) |
This file contains 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
// THIS IS A BETA! I DON'T RECOMMEND USING IT IN PRODUCTION CODE JUST YET | |
/* | |
* Copyright 2012 Roman Nurik | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
This file contains 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
/* | |
I've been writing tests for Android code that uses Handlers to communicate with background threads. | |
I couldn't get my callbacks to be called back to. | |
I got angry. | |
I finally found the solution...after way too much looking. | |
Here it is. | |
*/ | |
package com.caseycrites.android.testexample |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item android:left="@dimen/tab_space" android:right="@dimen/tab_space"> | |
<shape android:shape="rectangle"> | |
<gradient android:angle="-90" android:startColor="@color/tabMedium" | |
android:endColor="@color/tabDark" /> | |
</shape> | |
</item> | |
<!-- draw tab background --> |
This file contains 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
<TableLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content"> | |
<TableRow> | |
<TextView | |
android:layout_column="1" | |
android:text="•"></TextView> | |
<TextView | |
android:layout_column="2" |
This file contains 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.graphics.PointF; | |
import android.view.animation.Animation; | |
import android.view.animation.Transformation; | |
// http://www.math.ubc.ca/~cass/gfx/bezier.html | |
public class ArcTranslateAnimation extends Animation { | |
private int mFromXType = ABSOLUTE; | |
private int mToXType = ABSOLUTE; |
This file contains 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 com.cyrilmottier.android.tests; | |
import android.view.View; | |
import android.view.ViewGroup; | |
/** | |
* @author Cyril Mottier | |
*/ | |
public class ViewAdditions { |
This file contains 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 se.fishtank; | |
import java.net.URI; | |
import java.util.Map; | |
import ch.qos.logback.classic.spi.ILoggingEvent; | |
import ch.qos.logback.core.sift.Discriminator; | |
import ch.qos.logback.core.spi.ContextAwareBase; | |
public class AkkaSourceDiscriminator extends ContextAwareBase implements Discriminator<ILoggingEvent> { |
This file contains 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
# -*- coding: utf-8 -*- | |
from com.android.monkeyrunner import MonkeyRunner | |
class MonkeyrunnerLibrary(object): | |
"""docstring for ClassName""" | |
ROBOT_LIBRARY_SCOPE = 'Global' | |
self.device = MonkeyRunner.waitForConnection() |