score:1
try this:
intent shareintent = new intent(intent.action_send);
shareintent.settype("image/jpg");
uri uri = uri.fromfile(new file(getfilesdir(), "foo.jpg"));
shareintent.putextra(intent.extra_stream, uri.tostring());
startactivity(intent.createchooser(shareintent, "share image using"));
Source: stackoverflow.com
Related Query
- Share intent in Android not sharing image to any app (after popup)
- Android App Not Working After Pressing Back Button
- Android app not able to do a task after comparing a phone number
- Android app not showing any error but crash on startup?
- After installing all Swing components in Eclipse, it wil not show any option to create Swing App
- Android app - share intent fatal error
- Android app not starting after upgrade of Eclipse to Juno (ClassNotFound)
- Android ProximityAlert does not stay active after exiting app (i.e. pressing home button)
- Android app in Eclipse: Edit text not showing on Graphical layout
- Could not find adb.exe - after upgrade to Android SDK 2.3
- SRC folder in Eclipse is empty (MainActivity class not created) after creating a new android project using Eclipse
- Eclipse not running Android app on emulator a second time
- Eclipse and Android XML layouts gives "'default' is not a best match for any device/locale combination"
- Android How to create Intent Filter for custom file extension that does NOT make it part of a chooser for everything on the phone
- "Can't find API database; API check was not performed" in Android App SDK with Eclipse
- share intent via facebook for android jelly bean
- Phonegap Android App "App not installed"
- "Source not found" when debugging android app using Eclipse
- Eclipse: R not found after updating Android ADT to revision 23.0.5
- LogCat not working after update to Android N
- Android app name not changed in status bar when launching in eclipse
- Eclipse: does not launch the app after installing .apk (android)
- Eclipse - Android drawable image resources not refreshing
- Android screensaver in app if it's not used
- Android app works on real phone but not on the emulator - Android Development?
- Android app not running on emulator nor real device
- Old Android app name won't disappear after renaming
- Android Beginner: Emulator not running app or updating it
- Eclipse popup dialog lacks info after attaching android sources
- R not identified after updating to Android v.21
More Query from same tag
- Implement methods
- the colored block in debug trace won't move forward?
- Add generated-sources as source folder to Eclipse
- NoClassDefFoundError while running jar file
- eclipse: can't set break point, not working
- Maven compilation (java8 compatibility java6)
- Azure toolkit for eclipse throws error Missing requirement: Azure Common Plugin Library 2.9.5.201701250103
- Having problems creating/embeding a JApplet
- Can not create a complete android app using eclipse
- is maven required to develop spring based project?
- Export resource in jar file
- Receiving a NoClassDefFoundError even though jar is successfully downloaded via Maven and referenced in pom.xml
- How can i configure my Expression Language to work in eclipse while also using JSP/JSTL? Just JSP?
- No autocompletion on Eclipse(Helios)
- Why doesn't Eclipse always register Ctrl+z in the following piece of code
- Configuring SpringSource Tool Suite wth AspectJ
- eclipse + cdt + mingw + windows error "undefined reference to `WinMain@16'" on build
- In Eclipse / STS / maven, where do I define the deployed servlet name?
- What do these different execution environments in Eclipse mean?
- Java says this method has a constructor name
- Downloading Lejos Firmware w/ eclipse plug-in (Linux Mint 17.3)
- JFreeChart incorrect tooltips position
- Papyrus 0.9.0M6 Installation to Eclipse Juno cannot be completed
- Maven dependency log4j error
- building android lite version - full and lite versions get mixed on emulator
- Eclipse c/c++ "Program file does not exist"
- Net is not working inside my android program
- Eclipse PDT, how do I get the files on the server?
- C/C++ .exe can run on eclipse
- How can i create a documentation to my classes and methods in Android Studio?