Skip to content

Instantly share code, notes, and snippets.

View darkplataform's full-sized avatar

darkplataform

View GitHub Profile
@timusus
timusus / AndroidMediaService.java
Last active October 6, 2021 07:09
Example of a media playback Service
//This file represents several classes. It's just named *.java for syntax highlighting purposes!
//AIDL file: Defines interfaces for communicating between activities and your service.
//You can see these implemented in the service @ 'private static class ServiceStub extends IPlaybackService.Stub'
interface IPlaybackService {
void stop();
void play();
@imminent
imminent / AccountUtils.java
Created November 12, 2012 19:55
Utility to retrieve user profile on Android device
/**
* A collection of authentication and account connection utilities. With strong inspiration from the Google IO session
* app.
* @author Dandré Allison
*/
public class AccountUtils {
/**
* Interface for interacting with the result of {@link AccountUtils#getUserProfile}.
*/