One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| import android.content.Context | |
| import android.content.SharedPreferences | |
| import kotlin.reflect.KProperty | |
| /** | |
| * Represents a single [SharedPreferences] file. | |
| * | |
| * Usage: | |
| * | |
| * ```kotlin |
| import android.app.Activity; | |
| import android.content.Intent; | |
| import android.net.Uri; | |
| import android.os.Environment; | |
| import android.provider.MediaStore; | |
| import android.support.v4.app.Fragment; | |
| import android.util.Log; | |
| import java.io.File; | |
| import java.io.IOException; |
| /* | |
| * 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 |
| import android.util.SparseArray; | |
| import android.widget.AbsListView; | |
| /** | |
| * Helper class for calculating relative scroll offsets in a ListView or GridView by tracking the | |
| * position of child views. | |
| */ | |
| public class ListViewScrollTracker { | |
| private AbsListView mListView; | |
| private SparseArray<Integer> mPositions; |
| <?php | |
| // API access key from Google API's Console | |
| define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' ); | |
| $registrationIds = array( $_GET['id'] ); | |
| // prep the bundle | |
| $msg = array |
| /* | |
| * Inspired by: http://stackoverflow.com/questions/4360060/video-streaming-with-html-5-via-node-js | |
| */ | |
| var http = require('http'), | |
| fs = require('fs'), | |
| util = require('util'); | |
| http.createServer(function (req, res) { | |
| var path = 'video.mp4'; |
| // Load the TCP Library | |
| net = require('net'); | |
| // Keep track of the chat clients | |
| var clients = []; | |
| // Start a TCP Server | |
| net.createServer(function (socket) { | |
| // Identify this client |