test (26レス)
1-

25 2020/03/26(木) 02:19:41 ID:WhaMJ57e(1/2)
function OpenViewer(activity, url, latest) {
if (latest) {
return false;
}

var Handler = Packages.android.os.Handler;
var Intent = Packages.android.content.Intent;
var Uri = Packages.android.net.Uri;

var viewIntent = new Intent("android.intent.action.VIEW", Uri.parse("2chスレ:poverty
viewIntent.setClassName("jp.co.airfront.android.a2chMate", "jp.syoboi.a2chMate.activity.ResListActivity");

var viewIntent2 = new Intent("android.intent.action.VIEW", Uri.parse(url));
viewIntent2.setClassName("jp.co.airfront.android.a2chMate", "jp.syoboi.a2chMate.activity.ResListActivity");

var func = {run: function() {
activity.startActivity(viewIntent);
} };

var handler = new Handler();
handler.post(func);

var func2 = {run: function() {
activity.startActivity(viewIntent2);
activity.finish();
} };

handler.postDelayed(func2, 1000);

return true;
}
26 2020/03/26(木) 02:20:36 ID:WhaMJ57e(2/2)
function OpenViewer(activity, url, latest) {
if (latest) {
return false;
}

var Handler = Packages.android.os.Handler;
var Runnable = Packages.java.lang.Runnable;
var Intent = Packages.android.content.Intent;
var Uri = Packages.android.net.Uri;
var File = Packages.java.io.File;
var Environment = Packages.android.os.Environment;

var sandFile = new File(Environment.getExternalStorageDirectory() + "/2chMate/dat/apiMatez_0.dat");
sandFile.createNewFile();

var viewIntent = new Intent("android.intent.action.VIEW", Uri.parse(url));
viewIntent.setClassName("jp.co.airfront.android.a2chMate", "jp.syoboi.a2chMate.activity.ResListActivity");

var sandIntent = new Intent(viewIntent);
sandIntent.setData(Uri.parse(sandFile.toURI()));
activity.startActivity(sandIntent);

var func = {run: function() {
activity.startActivity(viewIntent);
activity.finish();
} };
var runnable = new Runnable(func)
var handler = new Handler();
handler.post(func);

return true;
}
1-
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 0.228s*