1
0
mirror of https://github.com/danog/termux-api.git synced 2024-12-12 09:29:46 +01:00
termux-api/app/src/main/java/com/termux/api/SmsInboxAPI.java

24 lines
713 B
Java
Raw Normal View History

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 {
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();
out.name("error").value("Reading SMS is no longer permitted by Google");
out.endObject();
}
});
}
}