Santhosh
Santhosh

Reputation: 5016

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.

Upvotes: 0

Views: 496

Answers (1)

Yahel
Yahel

Reputation: 8550

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.

Upvotes: 1

Related Questions