And you can past the image in Polaris office.īut Polaris is used the hidden API provided by Samsung, as that app comes with devices. The below code which copies image but when I am trying to paste, only the images path is pasted. I have researched a lot and read this tutorial but it doesnt cover the image copying part. The code above works only for several cases where the OS is modified.įor example, in Samsung Note tablet it works. I would like to copy image from my android application to the other android application using clipboard manager. Uri imageUri = theContent.insert(_CONTENT_URI, values) ĬlipData theClip = ClipData.newUri(getContentResolver(), "Image", imageUri) Īccording to my further investigations, however, in most of Android platforms the image copy past is not possible because original android OS does not have such a feature. Values.put(, filename.getAbsolutePath()) ĬontentResolver theContent = getContentResolver() ClipboardManager mClipboard = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE) ĬontentValues values = new ContentValues(2) ![]() This code works, just find appropriate app and OS to test it.
0 Comments
Leave a Reply. |