This test rule is now in the 'test-rules' support repository. Use that one!
https://developer.android.com/reference/android/support/test/rule/ActivityTestRule.html
| public class CountingFileRequestBody extends RequestBody { | |
| private static final int SEGMENT_SIZE = 2048; // okio.Segment.SIZE | |
| private final File file; | |
| private final ProgressListener listener; | |
| private final String contentType; | |
| public CountingFileRequestBody(File file, String contentType, ProgressListener listener) { | |
| this.file = file; |
| public class ExcellentAdventure { | |
| @Retention(SOURCE) | |
| @StringDef({ERA_BC, ERA_AD}) | |
| public @interface Era { | |
| } | |
| public static final String ERA_BC = "BC"; | |
| public static final String ERA_AD = "AD"; |
| import android.content.Context; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.util.AttributeSet; | |
| import android.view.View; | |
| import org.jetbrains.annotations.NotNull; | |
| import org.jetbrains.annotations.Nullable; | |
| public class EmptyRecyclerView extends RecyclerView { | |
| @Nullable View emptyView; |
| import android.content.Context; | |
| import android.text.TextUtils; | |
| import android.text.format.DateUtils; | |
| import java.text.DateFormat; | |
| import java.text.ParseException; | |
| import java.text.SimpleDateFormat; | |
| import java.util.*; | |
| /** |
| import java.text.ParseException; | |
| import java.text.SimpleDateFormat; | |
| import java.util.Date; | |
| import java.util.TimeZone; | |
| import android.util.Log; | |
| /** | |
| * Utility class for parsing and formatting dates and times. | |
| * |
| http://stackoverflow.com/questions/15955958/android-audiorecord-to-server-over-udp-playback-issues | |
| http://i-liger.com/article/android-wav-audio-recording | |
| http://www.scriptscoop.net/t/63f9c3372043/android-what-to-do-when-noisesuppressor-not-available.html | |
| http://twigstechtips.blogspot.com.br/2013/07/android-enable-noise-cancellation-in.html | |
| http://stackoverflow.com/questions/6959930/android-need-to-record-mic-input | |
| http://stackoverflow.com/questions/4525206/android-audiorecord-class-process-live-mic-audio-quickly-set-up-callback-func | |
| http://stackoverflow.com/questions/14842803/low-latency-audio-playback-on-android | |
| http://stackoverflow.com/questions/21804390/pcm-aac-encoder-pcmdecoder-in-real-time-with-correct-optimization | |
| http://audiorecordandroid.blogspot.in/ | |
| http://stackoverflow.com/questions/15971035/remove-noise-from-audio-sample-record-using-audiorecorder |
| package com.example.mediasessioncompat; | |
| import android.app.PendingIntent; | |
| import android.content.Context; | |
| import android.content.Intent; | |
| import android.support.v4.media.MediaDescriptionCompat; | |
| import android.support.v4.media.MediaMetadataCompat; | |
| import android.support.v4.media.session.MediaButtonReceiver; | |
| import android.support.v4.media.session.MediaControllerCompat; | |
| import android.support.v4.media.session.MediaSessionCompat; |
This test rule is now in the 'test-rules' support repository. Use that one!
https://developer.android.com/reference/android/support/test/rule/ActivityTestRule.html
| <?xml version="1.0" encoding="utf-8"?> | |
| <!-- | |
| /* //device/apps/common/assets/res/any/dimens.xml | |
| ** | |
| ** Copyright 2006, The Android Open Source Project | |
| ** | |
| ** 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 | |
| ** |
use the build in sizes like @dimen/text_size_body_2_material or style/TextAppearance.Material.Headline.
Simple helper file for standard text sizes in material design. The sizes are provided by the material design documentation https://www.google.com/design/spec/style/typography.html#typography-roboto