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

Rails 4.1 counter cache not updating

ruby-on-rails ruby-on-rails-4 counter-cache

This counter cache does not seem to be working correctly, although to my knowledge I have done everything correctly.

REST xml answer - Jaxb - Amazon product API

java rest java-ee jaxb amazon

I'm currently (trying) to work with the amazon product API to search thourgh items.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.