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.
Related
If a user owes me money, I want to start Paypal mobile app from my app using Intent with amount and payee information preset, all the user has to do is to verify the information and either confirm to pay or cancel to decline. Could someone show me how to initialize the intent, please?
I don't know how complicated you want to make it, but with PayPal it can be as simple as popping over to a full browser window with a URL structured like the following:
https://www.paypal.com/webscr?cmd=_xclick&item_name=description%20of%20payment&amount=77%2e88¤cy_code=USD&business=payee#example.com
The app can redirect you to the FB page in question and get you to press the like button. Trying to understand if that can be done quicker. Tks
No, that is not possible.
Facebook allowed liking certain object types in the name of the user via API until a while ago - but it has been removed since, simply because the feature was abused too much.
And Facebook pages could never be liked via API, that has always been possible via the official Like buttons only.
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.
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.
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.