I have an android app that uses the appcompat.v7 ShareActionProvider. When I run the app frm Android Studio on the device, I see a share icon and I can share my content.
As soon as I run the "Generate Singned APK" from the menu and install the apk on my device, I don't see the share-icon but the text I set. And when I click on the text, the share intent is not starting.
This is my build.gradle...
android {
compileSdkVersion 22
buildToolsVersion "23.0.0"
defaultConfig {
applicationId "xxx.xxx.xx"
minSdkVersion 14
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt')
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:22.2.0+'
compile 'com.google.android.gms:play-services:7.0.0'
compile 'net.hockeyapp.android:HockeySDK:3.5.0'
}
It doesn't matter if I disable minify or shrink resources. The functionality doesn't work. The gradle build is fine, no errors there and the rest of the app is running well. I'm using v7.Toolbar for example...
Any idea why the ShareActionProvider is not working?
Best regards, Jan