How to drag & drop an image over html page in android ?

I need to open a html page on android device and add an image dynamically to the page after clicking on a button. How do i do that ? Is it possible to drag & drop that image over html page? Please help me.


Here are a few hints :

  • Use a webview to host a webpage inside your app
  • Use the webview.loadurl to load the content you want to use(image, html, ...)
  • If you don't want to replace the content but add the image to whatever the content already is, use the scheme "javascript:" in the webview.loadurl to launch javascript on the hosted page and make it do whatever you want.
  • Once you have some code and something specific to ask, come back here and do so.

Good luck.

Need Your Help

Limiting HTML Input into Text Box

html user-input markup

How do I limit the types of HTML that a user can input into a textbox? I'm running a small forum using some custom software that I'm beta testing, but I need to know how to limit the HTML input. Any