Skip to content

Instantly share code, notes, and snippets.

View Josephaguele's full-sized avatar
💭
Software Developer

Joseph Josephaguele

💭
Software Developer
  • United Kingdom
View GitHub Profile
@Josephaguele
Josephaguele / Full Stack JavaScript.md
Created February 22, 2023 09:34 — forked from royshouvik/Full Stack JavaScript.md
Learn Full Stack JavaScript Web Development for FREE using resources like YouTube, Udacity and NodeSchool
package com.example.android.pets.data;
import com.example.android.pets.data.PetContract.PetEntry;
import android.content.ContentProvider;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.net.Uri;
@Josephaguele
Josephaguele / EditorActivity
Created June 4, 2017 12:56
PetProvider and EditorActivity with the updatePet method
/*
* Copyright (C) 2016 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
@Josephaguele
Josephaguele / CatalogActivity
Created June 1, 2017 04:51
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android.pets/com.example.android.pets.CatalogActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'int android.database.Cursor.getCount()' on a null object reference
/*
* Copyright (C) 2016 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