Skip to content

Instantly share code, notes, and snippets.

package com.udacity.gradle.builditbigger;
import android.support.test.espresso.IdlingRegistry;
import android.support.test.espresso.IdlingResource;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
package com.udacity.gradle.builditbigger;
import android.support.test.espresso.IdlingRegistry;
import android.support.test.espresso.IdlingResource;
import android.support.test.rule.ActivityTestRule;
import android.support.test.runner.AndroidJUnit4;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
public class Jokes {
public static String getJokes() {
String jokes[] = {
"Yo momma is so fat, when she sat on an iPod, she made the iPad!",
"Q: What did the spider do on the computer? A: Made a website!",
"Q: What did the computer do at lunchtime? A: Had a byte!",
"Q: What does a baby computer call his father? A: Data!",
"Q: Why did the computer keep sneezing? A: It had a virus!",
"Q: What is a computer virus? A: A terminal illness!",
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.nctechlutions.bakingapp"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
repositories {
google()
maven { url 'https://maven.fabric.io/public' }
maven {
url 'https://maven.google.com/'
name 'Google'
}
jcenter()
}
@Entity(tableName = RecipesDbContract.RECIPES_TABLE_NAME)
@Parcel(Parcel.Serialization.BEAN)
public class Recipe {
@PrimaryKey
@SerializedName("id")
@Expose
private Integer id;
@SerializedName("name")
package com.swipeacademy.kissthebaker.Widget;
import android.app.IntentService;
import android.appwidget.AppWidgetManager;
import android.content.ComponentName;
import android.content.Intent;
import android.database.Cursor;
import android.os.Binder;
import android.support.annotation.Nullable;
import android.widget.AdapterView;
// Copyright 2018 Google LLC
//
// 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
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/imageRecon"
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "27.0.3"
defaultConfig {
applicationId "website.madalina.bakingapp"
minSdkVersion 16
targetSdkVersion 26
versionCode 1