How to upload text on Facebook timeline field using android studio? - java

i am trying to upload text on Facebook timeline using my app to Facebook app using share dialogue. Below code work fine to share link but not working on only text field.
ShareLinkContent content = new ShareLinkContent.Builder()
.setContentUrl(Uri.parse("https://developers.facebook.com"))
.build();

1 Open the Facebook Pages app (or download the Facebook Pages Manager app for Android and iOS if you don’t already have it). 2 Tap the toolbox icon at the far bottom right. 3 Under Sharing Tools, click Scheduled Posts. 4 Tap the post to open it, and click the three dots to reschedule or publish now.

Related

How to overlay Google Play app page on the top of my app?

I want to show Google play app page on the top of my app but cannot find a way. Google play app linking page does not say anything about it. Linking to Google Play.
I have not found anything like this on Google Play Core library.
Few suggested me, it is just a custom bottom sheet.
But check the images below.
Image 1 : Google app on Android showing BBC app's google play page on the top of GOOGLE app.
Image 2: Facebook in app ad shows advertiser's Google Play page after clicking the ad.
How can I implement it ?

Play a video on Android full screen from website link

I have a website which lists the links to videos. Clicking on these links will play video on browser.
Now, I am planning to develop an Android app for my website. The way I am going to do is just framing this website inside Android app.
Now, when I click on these links inside the Android app, the video is getting played as like it plays on the browser. But I need it in a way such that when a user clicks on these links the video should play automatically on full screen landscape mode.
What modification should be done in the coding to play this video on full screen upon clicking on the video link?
Thanks

Android WebView and html5 vids

Please, is there any way to force WebView to play html5 embedded vids? I spent two days tempting it (from just enabling js and plugins with hardware acceleration to using html5webview class) and made video tag working, but embedding with iframe only shows me preview.
Any suggestions, please?
Does it play if you click on it manually? There are all sorts of things that may go wrong with HTML5 video on the internet, on Android you also have to take into account the various permissions.
Try this first:
Load the webpage in a browser - does it work?
Load the webpage in the browser on the device, does it work?
Load the webpage in the webview, does it play when you click on it?
There should be an auto play property on the webview, but I know that one IOS at least that one is ignore and the video won't play until you click it.

Switching from WebView to other views in Android

I am developing a photo sharing app for Android. I have a web site that I want the Android to get WebViews for most of it, but I want the android to have a native home screen rather than the web site homescreen.
As of right now, I open a WebView for login (this is needed because i must login with twitter) but after that I want the android to go to its own native home screen rather that the web site home screen.
I have tried using the shouldOverrideUrl() method to no avail. Is it even possible to program and android app to switch from the WebView at a given url?
Just create a method to check for the URLs to catch. Then make it not call the URL and open the home screen.

Animation in Java Desktop Application like google chrome

when we click on home page in google chrome, which shows the Apps page in which 4 thumbnail icon appears like google search, youtube, gmail, chrome web store etc. and on the left side there is an arrow to move over the Most Visited page. When I click on the arrow, it navigate Most Visited page with animation and when I press the arrow of right side , it go back by the same animation.
I have created an application in J2SE (Desktop Application), in which it is required to developed the same animation like google chrome (Web Browser Animation).
Note: Current Version of Google Chrome
how can we done this? any Example?
Have a look these sample libraries and frameworks which demonstrate similar animated transitions:
Canned Transitions by the JavaFX team.
Flows in the JFX-Flow framework.
Sidebar animation sample.

Categories