if you can help out send HTML code and read the answer
request (nativetest.pas) and response (webpage.java)
function strFromJNI(env:PJNIEnv; this:jobject): string; cdecl;
begin
// Result := '<html><body>Hello, world!</body> </html>');
end;
nativetest.pas
library nativetest;
{$mode delphi}
uses jni;
const curVM:JClass=nil;
function strFromJNI(env:PJNIEnv; this:jobject): string; cdecl;
begin
// Result := '<html><body>Hello, world!</body> </html>');
end;
function JNI_OnLoad(vm:PJavaVM;reserved:pointer):jint; cdecl;
begin
curVM:=vm;
result:=JNI_VERSION_1_6;
end;
procedure JNI_OnUnload(vm:PJavaVM;reserved:pointer); cdecl;
begin
end;
exports
JNI_OnLoad name 'JNI_OnLoad',
JNI_OnUnload name 'JNI_OnUnload',
strFromJNI name 'Java_com_pascal_systeminfo_webpage_strFromJNI';
begin
end.
webpage.java
package com.pascal.systeminfo;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import java.util.Date;
public class webpage extends Activity {
WebView browser;
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
browser=(WebView)findViewById(R.id.webkit);
browser.loadData("<html><body>Hello, world!</body> </html>",
"text/html", "UTF-8");
}
/** ------------------------------- */
public long nativeCodeLoaded=0;
static {
try {
System.loadLibrary("nativetest");
} catch(UnsatisfiedLinkError ule) {
ule.printStackTrace();
}
}
}