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
####### start emulators script: | |
#!/bin/bash | |
export PATH=$ANDROID_HOME/tools/:$ANDROID_HOME/platform-tools/:$PATH | |
echo "Android HOME : $ANDROID_HOME" | |
echo "Android SDK HOME : $ANDROID_SDK_HOME" | |
echo "PATH : $PATH" | |
`dirname $0`/kill_android_emulators.sh |
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 -*- | |
# Authors: Olivier Grisel <[email protected]> | |
# Mathieu Blondel <[email protected]> | |
# Lars Buitinck <[email protected]> | |
# Robert Layton <[email protected]> | |
# Jochen Wersdörfer <[email protected]> | |
# Roman Sinayev <[email protected]> | |
# | |
# License: BSD 3 clause | |
""" |
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
actions=true | |
ads=true | |
analytics=true | |
appindexing=true | |
appstate=true | |
auth=true | |
cast=true | |
common=true | |
drive=false | |
dynamic=true |
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
final Toolbar toolbar = (Toolbar) findViewById(R.id.activity_main_toolbar); | |
//toolbar.setTitle("This is toolbar title"); | |
toolbar.setTitleTextAppearance(getBaseContext(), R.style.AppTheme_TextStyle); | |
//toolbar.setSubtitle("This is toolbar Subtitle"); | |
toolbar.setSubtitleTextAppearance(getBaseContext(), R.style.AppTheme_TextStyle); | |
toolbar.inflateMenu(R.menu.menu_main); | |
ShareActionProvider bob = (ShareActionProvider) MenuItemCompat.getActionProvider(toolbar.getMenu().findItem(R.id.share_test)); | |
Intent intent = new Intent(Intent.ACTION_SEND); | |
intent.setType("text/plain"); |
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
#!/bin/bash | |
DEVICES=$(adb devices | egrep -v 'List of devices' | cut -f 1 | xargs echo) | |
IFS=' ' | |
echo "Installing emulator hacks" | |
for DEVICE in $DEVICES; do | |
adb -s $DEVICE uninstall no.finn.android.ci &>/dev/null | |
adb -s $DEVICE install -r "src/main/resources/android_emulator_hacks.apk" || exit 1 | |
adb -s $DEVICE shell pm grant no.finn.android_emulator_hacks android.permission.SET_ANIMATION_SCALE | |
adb -s $DEVICE shell am start -n no.finn.android_emulator_hacks/no.finn.android_emulator_hacks.HackActivity |
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
public class GenericTypeConverter implements TypeConverter<GenericTypeConverter.GenericType> { | |
@Override | |
public GenericType parse(JsonParser jsonParser) throws IOException { | |
String field = null; | |
String value = null; | |
String fieldType = null; | |
String data = null; | |
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 no.finn.android.ui.objectpage; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.support.v7.internal.widget.ActivityChooserModel; | |
import android.widget.ShareActionProvider; |
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
public class RxActivityDelegate { | |
private static final String KEY_OBJECT = "rxActivityController.object"; | |
private static final String KEY_OBJECTTYPE = "rxActivityController.object.type"; | |
private static final String KEY_REQUESTCODE = "rxActivityController.requestCode"; | |
public static void setResponse(Activity activity, int requestCode, RxResponseHandler rxResponseHandler) { | |
Intent intent = activity.getIntent(); | |
intent.putExtra(KEY_OBJECT, JsonUtils.toBytes(rxResponseHandler)); | |
intent.putExtra(KEY_OBJECTTYPE, rxResponseHandler.getClass().getName()); |
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 no.finn.android.contentprovider; | |
import android.content.ContentResolver; | |
import android.database.ContentObserver; | |
import android.database.Cursor; | |
import android.net.Uri; | |
import android.os.Handler; | |
import android.os.Looper; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; |
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
#!/usr/bin/python3 | |
import json | |
import urllib | |
import urllib.request | |
import gzip | |
import os | |
### Need to setup some env's first | |
EUREKA_SOURCE = os.environ["EUREKA_SOURCE"] |
OlderNewer