Android library for easy URL sharing to social channels.
Sure, you can use the default ShareIntent class in Android, but what if you just want to share an URL and just want to share it with some Social Channels...
SocialURLShare provides different Social Channel implementations for easy URL sharing. The implementation will look if a native social channel app has been installed. If so, the native app will share the URL. If not, the default browser will be used..
Do you want to see it in action, check out the SocialURLShare sample app.
Currently the library supports the following Social Channels:
- Facebook™
- Twitter™
- LinkedIn™
- Google+™
Current version: 0.1.0
Just create a SocialChannel Share Class, set the link and and call share:
Implementation example: sharing to Twitter™
TwitterShare sharer = new TwitterShare(Activity);
sharer.setLink("link to share");
sharer.share();
Add maven central to your build.gradle
:
buildscript {
repositories {
mavenCentral()
}
}
repositories {
mavenCentral()
}
Then declare SocialURLShare within your dependencies:
dependencies {
...
compile('com.wiebe-elsinga.android.library:socialurlshare:0.1.0')
}
To use SocialURLShare within your Maven build simply add
<dependency>
<groupId>com.wiebe-elsinga.android.library</groupId>
<artifactId>socialurlshare</artifactId>
<version>${socialurlshare.version}</version>
<type>aar</type>
</dependency>
to your pom.xml
If you find a bug or have a new feature you want to add, just create a pull request and submit it to us. You can also file an issue.
Please note, if you have a pull request, make sure to use the develop branch as your base.
Travis master: Travis develop:
Copyright 2014 Wiebe Elsinga
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.