Skip to main content

How to share image from drawable folder


To share an image in drawable folder of your sketchware android project, first save the image in app cache and then share the saved image using it's Uri. The code to be used is provided below.


1. First add the image (my_image.jpg) to be shared in your Sketchware android project using image manager.

2. Add a Button button1 which will act as share button.

3. In event button1 onClick, use add source directly block and add following code:


Code:-.

 

 4. Save and run the project. Now you can share the image my_image.jpg by clicking button1.


Note that R.drawable.my_image is the image which will be shared. Change it as per your image.

Comments

Popular posts from this blog

best code

Find and Highlight text in ListView Skip to main content Search This Blog Sketchware Help A guide to creating android apps on mobile using Sketchware App. Find and Highlight text in ListView Get link Facebook Twitter Pinterest Email Other Apps September 15, 2019 Follow the steps given below to find and highlight text, entered in EditText, in a custom  ListView  in Sketchware. This method makes the use of class Spannable . 1. In VIEW area of your sketchware project, add an EditText and a ListView  (edittext1 and listview1). 2. Add a new  CustomView  c...