<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
//Retrieve a list of Music files currently listed in the Media store DB via URI. | |
//Some audio may be explicitly marked as not being music | |
String selection = MediaStore.Audio.Media.IS_MUSIC + " != 0"; | |
String[] projection = { | |
MediaStore.Audio.Media._ID, | |
MediaStore.Audio.Media.ARTIST, | |
MediaStore.Audio.Media.TITLE, | |
MediaStore.Audio.Media.DATA, |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
add bintray and maven plugin to buildscript dependencies (project's build.gradle)
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.1.2'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2' // ADD THIS LINE
public static byte[] convertBitmapToByteArray(Bitmap bitmap){ | |
ByteArrayOutputStream stream = new ByteArrayOutputStream(); | |
bitmap.compress(Bitmap.CompressFormat.PNG, 100, stream); | |
return stream.toByteArray(); | |
} |
Title | URI | |
---|---|---|
Flurry by Yahoo | https://dev.flurry.com/secure/signup.do | |
Google NikCollection | https://dl.google.com/edgedl/photos/nikcollection-full-1.2.11.dmg | |
Bitbucket | http://bitbucket.org/ | |
SoftLayer | http://softlayer.com/ | |
VirtualBox | http://download.virtualbox.org/virtualbox/5.0.16/VirtualBox-5.0.16-105871-OSX.dmg | |
Docker Hub | https://hub.docker.com/ | |
Oracle | http://oracle.com/ | |
Java | http://java.com | |
Sun | http://sun.com |
import sys, os, shutil | |
def generateClass(directory, classNumber, methodsPerClass, mainPackage): | |
className = "Foo" + str(classNumber) | |
filePath = os.path.join(directory, className + ".java") | |
with open(filePath,"w+") as f: | |
f.write("package " + mainPackage + "." + directory + ";\n") | |
f.write("public class " + className + " {\n") | |
for i in xrange(0, methodsPerClass): | |
f.write("public void foo" + str(i) + "(){\n") |