Android Gdx: Sharing Content on Facebook - android

Coding in Gdx is a bit challenging, I have developed an android game in gdx. Everything went smoothly except for the part of sharing content on Facebook, I really got stuck and I don't really know how to do it. I want to share the score and a link.
if anyone has an experience on this please help.

This is nothing else than showing the Android share dialog. You can see an example on how to implement platform specific code in the libGDX wiki page, and see the Android documentation on how to show the share dialog.

Related

How to create a web application which works for both web browser and android app

I have a little knowledge in developing web application.
but I need to explore something like application which works in web browser and android app.I have idea that how both works separately.
1. Web application
2. Android App
but i don't have an idea how to code for application which works in web browser and android app.
Whether I need to code for both separately or there is any method or technology to work with it.
If so help me out with a simple Example .. or reference.
The concept you're looking for is called "Progressive Web App". I can't tell you how it works becase it would be a full tutorial. However, I can point you in the right direction.
Take a look at:
https://developers.google.com/web/progressive-web-apps/
https://developers.google.com/web/fundamentals/codelabs/your-first-pwapp/
You might also want to:
https://developers.google.com/identity/sign-in/web/android-app-installs
Good luck on your learning jurney.
Let me know if this was what you were looking for.

How to make my android app display a specific facebook post

I am working on multi users android app and I was wondering if there any method to display a specific facebook post inside the app and when the users click on the post he'll be directed to the facebook app then he can "like or share .. that post" and go back to my app
I've been searching a couple of week for method to do that but I can't find any method to do it. If you know any method to do it please tell me.
Looking for the same answer myself.
Ended up in sending the link of the post to my app, along with the post-text and image if any. Display the post and image according to you will and redirect the user to the link on click on either the image or the text. If the Facebook app is installed on the device, it will automatically ask you if you need to go to the app. You can design the app to show the image and text one below another to achieve the (near fb) style you need.
This is just a workaround to achieve the feature. I could not find a solution to achieve embedding post in android, the way it can be achieved on the web

Redirect android screen inside an app

I've developed different personal apps for android and now i'm interested in google cardboard project
So, would be possible to create an application for android to implement the same system of this project : http://www.vrdesktop.net ( windows only ). In few words mirroring the android screen inside another app that will split everything ..
actually i don't know if there are some usefull api/ways to accomplish the job.
EDIT1: i've prepared a draw to better show the idea: https://docs.google.com/drawings/d/15AYvjesIhZDTe5mfOmm5TzhRkyxmDA6L0jI9MzdKbB4/edit
After long researches i've found an open source project that is doing exactly what i was looking for:
https://github.com/frma71/sbs
P.S. Thank you for useless downvoting

Deep Link to a Facebook Page

I am new to this Deep Linking stuff, so I would really appreciate your help.
I have a post on Facebook and i need it to point to a page.
BUT when I open the link on mobile, I need it to send me to the page i want people to like, but in the Facebook App on each phone (mainly iOS and Android).
I already tried fb://profile/[pageID] but it doesn't link to the specific page, just newsfeed, inside the app. Also tried fb://page/[pageID].
The good part is that it opens it in the Facebook app.
I feel that I am so close, but I don't really know what I'm doing wrong.
I would really appreciate your suggestions!
Thank you!
To deep link to a specific page, use fb://page/{page_id} for Android and fb://profile/{page_id} for iOS.
Tested on Facebook iOS v57.0 and Android v80.0.0.21.65.
Find your page ID using http://findmyfbid.com
if the page ID you used is a text format (fb://page/example) it will not work (i don't know why)
but if it is a long number it will work like for example fb://page/1111111111

QuickActions like the Twitter app

I want to add Pattern 6: QuickActions from android's blog to my app.
Any code snippet?
Anyone try to do it already?
Should this work on android 1.5?
I just found this question right after I posted my own question/answer. Here's the code I developed for this. http://code.google.com/p/simple-quickactions/
I also have been searching for this and found someone through the wave of the Google IO session who has implemented such thing.
He posted the code on GitHub. I just tested it, and it works just great!
You'll also need some ressources from the project (drawables, styles..).
Look at line 1310 of ContactsListActivity.java from the Contacts application. It's the code that creates the intent for the contact shortcuts on the home screen that launch the quick actions intent for a contact.
This won't work before eclair.
Until the official Twitter app is open sourced by Google, you may want to take a look at this implementation:
It's really easy to use and works great.
That app is going to be open sourced at some point so you may want to wait until then. But it could be done with a Dialog with a custom background drawable, and using Window.LayoutParams to position the dialog.

Categories

Resources