Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>To display the web view, Insure TweetToTwitterActivity twitter is a started and active activity, otherwise it can not setContentView, as it is not in control. This can be done with something like...</p> <pre><code>TweetToTwitterActivity twitter = new TweetToTwitterActivity(); Intent intent = new Intent(); intent.setClass(context, TweetToTwitterActivity .class); startActivity(intent); </code></pre> <p>Then, it is likely best (possibly required) to call your method form the twitter activity onCreate method, rather then from where the activity is created. </p> <p>If, as mentioned in the comment, you do not want to actually display the webview, but simply call a web page and analyze the results, do not use a webview, but rather an HttpPost (Or possibly an HttpGet, depending on what you are doing.) Here is an example from an app I have that does a web post, and looks at the results rather then displaying the results....</p> <pre><code>public static void checkWebSite() { HttpClient httpclient = getClient(); HttpPost httppost = new HttpPost("http://yoursite.com/pathtopage"); try { //If you need to add name value params you can do that here... List&lt;NameValuePair&gt; nameValuePairs = new ArrayList&lt;NameValuePair&gt;(2); nameValuePairs.add(new BasicNameValuePair("name", "value")); httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); // Execute HTTP Post Request HttpResponse response = httpclient.execute(httppost); String html = InputStreamToString(response.getEntity().getContent()).toString(); //You can now analyze the html string for whatever you are looking for } catch (ClientProtocolException e) { // TODO Auto-generated catch block } catch (IOException e) { // TODO Auto-generated catch block } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload