Share Files Dynamically with Open Source Library

android-sharing

There is an almost infinite wealth of app development knowledge housed within Google’s Developer Pages. However, not every solution presented by Google is the most optimal, and there is still plenty of room for some improvement. A good example is the¬†ShareActionProvider class that is responsible for the share option within apps. You’ve undoubtedly encountered this in apps like Gallery, for example.

XDA Recognized Contributor nikwen noticed that data sharing isn’t done dynamically, so it consumes more time. This is because the application need to identify the file type. Then, it creates the correct sharing activity. Nikwen decided to improve this library by creating his own open source replacement, capable of handling sharing dynamically. This saves a lot of time and removes all limits from Google’s implementation. This can be seen in practice in XDA Senior Member SimplicityApks‘s previously covered FunctionCapture application.

The developer shows that even great solutions can be improved upon, and that’s the beauty of Android. If you are interested in the project and develop your own applications, head over to the original thread to learn more about adding DynamicShareActionProvider to your work.


_________
Want something on the XDA Portal? Send us a tip!