Android Development: Save
<p>In my webview there is no long click and show up a context menu where i can save link as save image and so on.</p>

<p>Here is my work so far:</p>

<pre><code>registerForContextMenu(mWebView);

public void onCreateContextMenu(ContextMenu menu, View v,ContextMenuInfo menuInfo) {  
    super.onCreateContextMenu(menu, v, menuInfo);  
        menu.setHeaderTitle("Menu");  
        menu.add(0, v.getId(), 0, "Save As... Or save image");  

}

@Override  
public boolean onContextItemSelected(MenuItem item) {  
        if(item.getTitle()=="Action 1"){function1(item.getItemId());}  

    else {return false;}  
return true;  
}  
public void function1(int id){  
    // HOW DO I SAVE??
    }
</code></pre>

<p>SO i cannot really find a working code how to save the selected online image...!
Can you guys help me out?
And have i done the context menu wrong??</p>

<p>Thank you!</p>
