By Ryan Aunur Rassyid
Simply create RESTful API with Google Script and store it to Google SpreadSheet like a Pro.
package com.kyawhtut.ankotest; | |
public class UserTestJava { | |
public static void main(String[] args) { | |
User user = new User("Mg Mg", 23, "Yangon", "male"); // that is work | |
User user = new User("Mg Mg", 23, "male"); // that is work now | |
} | |
} |
data class User @JvmOverloads constructor( | |
var name: String, | |
var age: Int, | |
var address: String = "", | |
var gender: String | |
) { | |
companion object { | |
val TAG = User::class.java.name | |
public class UserTestJava { | |
public static void main(String[] args) { | |
User user = User.Companion.createUser("Mg Mg", 23, "Yangon", "male"); // that is work | |
User user = User.createUser("Mg Mg", 23, "Yangon", "male"); // that is error | |
} | |
} |
data class User @JvmOverloads constructor( | |
var name: String, | |
var age: Int, | |
var address: String = "", | |
var gender: String | |
) { | |
companion object { | |
@JvmStatic | |
val TAG = User::class.java.name |
// | |
// Decompiled by Procyon - 6961ms | |
// | |
package com.conax.client.integrationlayer.internal; | |
import com.conax.client.integrationlayer.api.PlaybackErrorListener; | |
import com.google.android.exoplayer2.source.MediaSource; | |
import com.google.android.exoplayer2.source.dash.DashChunkSource$Factory; | |
import com.google.android.exoplayer2.source.dash.DashMediaSource$Factory; | |
import com.google.android.exoplayer2.source.dash.DefaultDashChunkSource$Factory; |
import android.util.Base64; | |
import android.util.Log; | |
import com.google.gson.Gson; | |
import org.apache.commons.codec.binary.Hex; | |
import java.io.UnsupportedEncodingException; | |
import java.security.GeneralSecurityException; | |
import java.security.Key; | |
import java.util.Arrays; | |
import javax.crypto.Cipher; | |
import javax.crypto.Mac; |
By Google's update at January 19, 2018, fetchAll method was added to the UrlFetch service. When I saw the usage, I couldn't find the detail information about the actual running state. So I investigated about it.
As the result, it was found that the fetchAll method is worked by the asynchronous processing. The returned data is reordered by the order of requests. By this, it was also found that if you want to retrieve the data from the several URL, the process cost of UrlFetchApp.fetchAll()
is much lower than that of UrlFetchApp.fetch()
using for loop.
The sample scripts for server side and client side are as follows.
In this report, 5 Web Apps were used as the servers. At first, 5 standalone projects were created and the following server script was put to each project. Then, Web Apps was deployed for ea
import android.annotation.SuppressLint | |
import android.os.Bundle | |
import android.view.LayoutInflater | |
import android.view.ViewGroup | |
import androidx.appcompat.app.AppCompatActivity | |
import androidx.core.view.isVisible | |
import androidx.recyclerview.widget.DividerItemDecoration | |
import androidx.recyclerview.widget.RecyclerView | |
import com.dindinn.dashboard.databinding.ActivityTableBinding | |
import com.dindinn.dashboard.databinding.ItemTableBinding |