(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.
(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.
buildscript { | |
repositories { | |
mavenCentral() | |
maven { | |
url 'https://oss.sonatype.org/content/repositories/snapshots/' | |
} | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.9.+' | |
classpath 'com.squareup.gradle:gradle-android-test-plugin:0.9.1-SNAPSHOT' |
These rules are adopted from the AngularJS commit conventions.
Following the nice answer on stackoverflow to this question of when to use one or the other content-types for POSTing data, viz. application/x-www-form-urlencoded
and multipart/form-data
,
“The moral of the story is, if you have binary (non-alphanumeric) data (or a significantly sized payload) to transmit, use
multipart/form-data
. Otherwise, useapplication/x-www-form-urlencoded
.”
The full version of Matt Bridges' answer:
public class SettingsFragment extends PreferenceFragment { | |
EditTextPreference namePreference; | |
@Override public void onCreate(@Nullable Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
namePreference = (EditTextPreference) findPreference(getString(R.string.pref_name_key)); | |
namePreference.setSummary("Uwoah! A summary."); |
public class SettingsFragment extends PreferenceFragment { | |
@BindPref(R.string.pref_name_key) | |
EditTextPreference namePreference; | |
@Override public void onCreate(@Nullable Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
namePreference.setSummary("Uwoah! A summary."); | |
} |
public class SettingsFragment_PrefBinding { | |
@UiThread | |
public SettingsFragment_PrefBinding(final SettingsFragment target) { | |
target.editPreference = (EditTextPreference) target.findPreference(target.getString(2131427366)); | |
target.findPreference(target.getString(2131427358)).setOnPreferenceClickListener(new OnPreferenceClickListener(){ | |
@Override public boolean onPreferenceClick(Preference preference) { | |
target.onNameClick(preference); | |
return true; | |
} |
{ | |
"sound_urls": [ | |
"https://aromashooter-app.s3-ap-northeast-1.amazonaws.com/sounds/Hes+a+Pirate++Jack+Sparrow+(Disneys+Pirates+of+the+Caribbean+Theme).mp3", | |
"https://aromashooter-app.s3-ap-northeast-1.amazonaws.com/sounds/ComeAnGetYourLove.mp3", | |
"https://aromashooter-app.s3-ap-northeast-1.amazonaws.com/sounds/HookedOnA+Feeling.mp3" | |
] | |
} |