Market does not accept apks signed with the debug certificate. Create a new certificate that is valid for at least 50 years. Market requires that the certificate used to sign the apk be valid until at least October 22, 2033. Create a new certificate. keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000 jarsigner -verbose -keystore my-release-key.keystore my_application.apk alias_name
package com.momonews.m;
import android.app.Activity; import android.os.Bundle; import android.webkit.WebView; import android.webkit.WebViewClient;
public class momonews extends Activity { WebView browser; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); browser=(WebView)findViewById(R.id.webkit); browser.setWebViewClient(new Callback()); browser.getSettings().setJavaScriptEnabled(true); browser.loadUrl(" http://m.momonews.com"); }
private class Callback extends WebViewClient{ public boolean shouldOverrideUrlLoading(WebView view, String url){ browser.loadUrl(url); return(true); } }
} //http://inswave.net alwaysb@hotmail.com
|