How to share Text between app users after sharing on Facebook - android

My application is an app for making a travel schedule.
I want to make the app that shares user's schedules.
For this, I tried to simply share text between app users.
Let me explain the steps.
One user shares the app on Facebook to the other. When he shares the app, Text "abc" should be included, not on Facebook, but on the app.
(And I already made Textview to see if it can be sent.)
The other user opens the app on Facebook. Then Text "abc" should be seen on Textview.
I don't even know what keyword I should search.
I tried to use 'intent' and 'action.SEND'. But it doesn't work.
Could you please let me know the steps to do the above function?
Thank you in advance.

Related

Android App shared links on whatsapp are not clickable

I developed an android app, but upon sharing links from app on Whatsapp, the links are not clickable. If I do copy and paste the same message it becomes clickable.
Any idea why? Is it because app is still in development process?
For security if you dont have a contact registered in your phone, whatsapp not show as a hiperlink. This is to avoid virus, spam, etc.
In example, if you are in a whatsapp group and other person share a link in the group, you will see as hiperlink if you have the phone number registered in your phone.

How to share image from my app on Facebook

I want to allow users to share image from my app on Facebook. Say I already have an image (i.e. file path). How do I go about letting a user share it on Facebook? Basically I want the user to agree once. Then from there on, whenever the user takes a certain action in my app, share a particular image on Facebook on behave of the user. Notice that the image is to be shared automatically without the user having to take action each time; so the Facebook sharing is incidental to some other action in my app. I am looking at the Facebook documentations. It is not clear which path to take to accomplish what I need. So thanks for any guidance.
Again, the user agrees once and goes on her merry way. Then the app, each time a user takes a certain action, share an image on Facebook.
UPDATE
Here is the path I have identified for sharing a photo on behalf of a user
Setting up your app to use Open Graph
Creating an Open Graph Story
Posting with API calls
The problem with this approach is that, at least in the sample project, the user has to click on Share each time. But I don't want the user to have to click on share each time. I want them to give me permission once. And then from there the app shares for them automatically.
Trial and error is expensive here as it is a lot to implement just to see if it were what I was looking to do: Which is why I am asking here, hoping someone here has done this in the past and don't mind sharing their experience.
You should ask the user for the publish_actions permission, and then use Request.newUploadPhotoRequest to publish a photo. https://developers.facebook.com/docs/reference/android/current/class/Request/#newUploadPhotoRequest
You need uses-permission Facebook, try this; https://developers.facebook.com/docs/android/getting-started
After you do this, you need to take method onClick and send the picture directly for facebook, but for this, is necessary the login of user's.

Single Sign On as Whats App or Hike or Facebook

I have made a chatting application, In my application there is a login page, but I don't want to use this page again , once the user has installed the application for the first time. This page should not appear again and again.
I mean when the user first sign in the application, the next time when he comes back the application should directly take him to his home page as in facebook,whatsapp or hike.
I think this approach is known as Single Sign On (SSO) approach. I have traversed the stackoverflow but have not found any relevant link of my interest yet.
Please help me with a good hyperlink or any useful solution so that I can move on.
Thanks
Using SharedPreferences would be the way to go. Have a look at this thread for help.

Android App Inventor: How do I set up a HTTPS connection?

I am making an app, with a very limited audience that logs into my mini website. It uses a HTTPS login dialog box though to access the site. How would I implement a setup where the user logs in with a username and password box on the first screen, submits the info with a button, which is used to log into the website, and then the user is taken to the next screen where there is a web viewer that is logged into and viewing the protected website.
This needs to be on Android and made in App Inventor, and I am quite clueless in programming, with little experience beyond hello world! :D I can string together some basic apps but here I am stumped. Please help! I just need some clear instruction really on what to do.
Though your question is nearly one year old, I pass you a solution in case you still require it. Like you I came accross the need of creating a login dialog in AppInventor and none of the solutions I found on the web met completely my idea so I decided to develop it on my own.
The solution can be used as a template for any new app and it provides the following functionalities:
Initial login window, with buttons allowing to register or remember password (by email)
User's information stored in a tinywebDB, with basic encryption for password
Integration with Google accounts, allowing the user to inform his google account instead of having to remember yet another password
Profile window, allowing the user to modify its setting after its registration
The sources are here. I've also created a tutorial on my website. And here is a real app using this template.

Choosing default intent in android share app

Hi guys I'm developing an app where in i need to choose an app to share my status.
I'm using something like this
startActivity(Intent.createChooser(Myintent, "Share..."));
But the above line opens a window asking user to select the app to share with.
I want that option to be automated.. precisely I'm looking to update status on google plus..
So I need to start activity which chooses google plus to share...
Im guessing I need the activity name but com.google.android.app.plus opens google plus app but not the page that shares the status... Im looking to prepopulate the status string so that user just have to press send
Have you thought about using the Google plus API? You could send the data via http requests so that you would be able to stay in-app throughout the whole process. I think this kind of solution could be a much smoother experience for the user so they wouldn't have to move in and out of your app in order to accomplish posting to google plus.
Check this answer: https://stackoverflow.com/a/9229654/857583
In this case, call initShareItent("plus");
But you'll have to change the mime type to plain/text or something else.
It is starting the Google+ app, but the recipient or mail address is not filled in unfortunately.
So, EXTRA_TEXT is filled in but EXTRA_MAIl is not.

Categories

Resources