Skip to content

Instantly share code, notes, and snippets.

package com.example.android.multiscreen_music_app;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
package com.example.android.multiscreen_music_app;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "27.0.3"
defaultConfig {
applicationId "website.madalina.bakingapp"
minSdkVersion 16
targetSdkVersion 26
versionCode 1
<?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"
// 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,
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;
@Entity(tableName = RecipesDbContract.RECIPES_TABLE_NAME)
@Parcel(Parcel.Serialization.BEAN)
public class Recipe {
@PrimaryKey
@SerializedName("id")
@Expose
private Integer id;
@SerializedName("name")
repositories {
google()
maven { url 'https://maven.fabric.io/public' }
maven {
url 'https://maven.google.com/'
name 'Google'
}
jcenter()
}
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.nctechlutions.bakingapp"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
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!",