Instead of the verbose setOnClickListener
:
RxView.clicks(submitButton).subscribe(o -> log("submit button clicked!"));
Observable
.just(1, 2, 3, 4, 5, 6, 7, 8, 9, 10)
package com.emagic.newproject; | |
import java.util.ArrayList; | |
import org.apache.http.NameValuePair; | |
import org.json.JSONArray; | |
import org.json.JSONException; | |
import org.json.JSONObject; | |
import org.json.JSONStringer; |
package com.emagic.newproject; | |
import android.annotation.TargetApi; | |
import android.app.Activity; | |
import android.app.ProgressDialog; | |
import android.content.Intent; | |
import android.net.nsd.NsdManager.RegistrationListener; | |
import android.os.Build; | |
import android.os.Bundle; | |
import android.util.Log; |
#Intro
Kotlin is a new programming language for the JVM. It produces Java bytecode, supports Android and generates JavaScript. The latest version of the language is Kotlin M5.3
Kotlin project website is at kotlin.jetbrains.org.
All the codes here can be copied and run on Kotlin online editor.
Let's get started.
<?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 |
package co.kodparadise.mausam.utils | |
import android.app.Notification | |
import android.content.Context | |
import android.content.SharedPreferences | |
import co.kodparadise.mausam.R | |
import com.afollestad.materialdialogs.MaterialDialog | |
/** | |
* Created by rkodekar on 8/19/17. |
package co.kodparadise.mausam.utils | |
import android.app.Notification | |
import android.content.Context | |
import android.content.SharedPreferences | |
import co.kodparadise.mausam.R | |
import com.afollestad.materialdialogs.MaterialDialog | |
/** | |
* Created by rkodekar on 8/19/17. |
package co.kodparadise.khabarsamachar.application | |
import android.content.Context | |
import co.kodparadise.khabarsamachar.annotations.AppScope | |
import co.kodparadise.khabarsamachar.dependencies.ContextModule | |
import com.github.ajalt.timberkt.Timber | |
import dagger.Module | |
import dagger.Provides | |
import okhttp3.Cache | |
import okhttp3.OkHttpClient |
import 'dart:convert'; | |
import 'package:flutter/material.dart'; | |
import 'package:http/http.dart' as http; | |
import 'package:redux/redux.dart'; | |
import 'package:chatmetricsproject/models/models.dart' show Login, AppState; | |
import 'package:chatmetricsproject/widgetutils/widgetutils.dart' show WidgetUtils; | |
class LoginRequest { |