2015-07-26 02:23:21 +02:00
|
|
|
package com.termux.api;
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
import android.content.Intent;
|
|
|
|
import android.util.JsonWriter;
|
|
|
|
|
|
|
|
import com.termux.api.util.ResultReturner;
|
|
|
|
import com.termux.api.util.ResultReturner.ResultJsonWriter;
|
|
|
|
|
|
|
|
public class SmsInboxAPI {
|
|
|
|
|
2016-06-06 00:23:00 +02:00
|
|
|
static void onReceive(TermuxApiReceiver apiReceiver, final Context context, Intent intent) {
|
|
|
|
ResultReturner.returnData(apiReceiver, intent, new ResultJsonWriter() {
|
|
|
|
@Override
|
|
|
|
public void writeJson(JsonWriter out) throws Exception {
|
|
|
|
out.beginObject();
|
2019-03-20 00:08:32 +01:00
|
|
|
out.name("error").value("Reading SMS is no longer permitted by Google");
|
2016-06-06 00:23:00 +02:00
|
|
|
out.endObject();
|
|
|
|
}
|
2019-03-20 00:08:32 +01:00
|
|
|
});
|
2018-08-26 01:14:12 +02:00
|
|
|
}
|
|
|
|
|
2015-07-26 02:23:21 +02:00
|
|
|
}
|