-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: share app details on social platforms #534
Conversation
app/src/main/res/values/strings.xml
Outdated
@@ -103,4 +104,6 @@ | |||
<string name="clipart_saved_error">Error in saving Clipart</string> | |||
<string name="drawer_saved_cliparts">Saved Cliparts</string> | |||
<string name="no_gps_enabled">No GPS Found, Please Enable GPS from Settings</string> | |||
|
|||
<string name="share_msg">Badge Magic is an Android app to control LED name badges. This app provides features to portray names, graphics and simple animations on LED badges. \nI really loved this application, even you can download it from below link \nhttps://play.google.com/store/apps/details?id=org.fossasia.badgemagic</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the "I really love this application" part is not needed over here. Please frame a better message without it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also please fix the failing travis build.
@@ -122,6 +122,13 @@ class DrawerActivity : BaseActivity(), NavigationView.OnNavigationItemSelectedLi | |||
R.id.buy -> { | |||
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("https://sg.pslab.io"))) | |||
} | |||
R.id.share_app_details -> { | |||
val shareIntent = Intent() | |||
shareIntent.type = getString(R.string.share_msg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong, set proper type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah i was testing what was wrong
shareIntent.type = getString(R.string.share_msg) | ||
shareIntent.action = Intent.ACTION_SEND | ||
shareIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.share_msg)) | ||
startActivity(Intent.createChooser(shareIntent, getString(R.string.share_msg))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you setting title to share_msg
Now the travis build is fixed @yashk2000. Can you please merge it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tanmayrauth well done, you're pull request will help people spread awareness about our app. We also follow semantic naming while submitting a pr. We can name this pr with a feat prefix as this is a new feature, and the description is perfect. Hence, it can be renamed to "feat: share app details on social platforms"
Feat #533
It will be a button in navigation drawer that will help users to share details about the application across various social media. So that their friends can also get to know about this app and download it.
Changes: changes were made in navigation drawer of the the app. A new share button is added.
Screenshots for the change: