This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Text; | |
using JetBrains.Annotations; | |
using PKWARE.ArchiveAPI; | |
using PKWARE.Smartcrypt.MetaClient; | |
using PKWARE.Smartcrypt.Protocol; | |
using PKWARE.Smartcrypt.Unstructured.ArchiveSupport; | |
namespace Your.Namespace | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account. | |
Token for proof: | |
[Verifying my OpenPGP key: openpgp4fpr:57f3c3aa7f59cf7e650cc7bf37f56b848d9f2a56] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { | |
// ... Some magical things | |
if (ContextCompat.checkSelfPermission(getActivity(), READ_CONTACTS) == PackageManager.PERMISSION_GRANTED) { | |
// We have access. Life is good. | |
setupContactsPicker(); | |
} else if (ActivityCompat.shouldShowRequestPermissionRationale(getActivity(), READ_CONTACTS)) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright 2014-2015 Marius Volkhart | |
* | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
// Manifest Information | |
def versionMajor = 0 | |
def versionMinor = 2 | |
def versionPatch = 0 | |
android { | |
compileSdkVersion 20 | |
buildToolsVersion "20" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Provides the Observable interface for the Observer Pattern.<br/> | |
* <br/> | |
* Generics explained:<br/> | |
* T - The type of the argument that this Observable will push to the Observers.<br/> | |
* <br/> | |
* Using this interface for the Observer pattern prevents the need for type casting and for using | |
* {@code instanceof} to discover types. | |
*/ | |
public interface Observable<T> { |