Here is an essay version of my class notes from Class 1 of CS183: Startup. Errors and omissions are my own. Credit for good stuff is Peter’s entirely.
CS183: Startup—Notes Essay—The Challenge of the Future
Purpose and Preamble
| /* | |
| * Copyright (C) 2017 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 |
| // Apache 2.0 licensed. | |
| import android.content.Context; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.widget.BaseAdapter; | |
| /** An implementation of {@link BaseAdapter} which uses the new/bind pattern for its views. */ | |
| public abstract class BindableAdapter<T> extends BaseAdapter { |
Here is an essay version of my class notes from Class 1 of CS183: Startup. Errors and omissions are my own. Credit for good stuff is Peter’s entirely.
CS183: Startup—Notes Essay—The Challenge of the Future
Purpose and Preamble
| import com.socialize.Socialize; | |
| import com.socialize.entity.Like; | |
| import com.socialize.error.SocializeException; | |
| import com.socialize.listener.like.LikeAddListener; | |
| if(Socialize.getSocialize().isAuthenticated()) { | |
| // Add a like to an entity defined by its URL | |
| Socialize.getSocialize().like("http://someurl.com", new LikeAddListener() { | |
| public void onError(SocializeException error) { |