Skip to content

Instantly share code, notes, and snippets.

View shivbrar's full-sized avatar

Shiv Raj Singh Gurjar shivbrar

View GitHub Profile
@shivbrar
shivbrar / StoreContract.java
Created March 23, 2017 21:54 — forked from udacityandroid/StoreContract.java
Example contract class for a table which contains data about the store's headphones stock
public final class StoreContract {
public static abstract class HeadphoneEntry implements BaseColumns {
public static final String TABLE_NAME = "headphones";
public static final String COLUMN_NAME = "name";
public static final String COLUMN_PRICE = "price";
public static final String COLUMN_STYLE = "style";
public static final String COLUMN_IN_STOCK = "in_stock";
public static final String COLUMN_DESCRIPTION = "description";
@shivbrar
shivbrar / WeatherContract.java
Created March 23, 2017 01:32 — forked from udacityandroid/WeatherContract.java
Contract class for a weather application called Sunshine
/*
* Copyright (C) 2014 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software