Instagram follow on button click - java

I'm currently trying to add a feature which allows users to follow an instagram account by clicking a button. I've seen other apps use that but I could not figure out how. As you can see in this post, following people by using the api is no longer availible. https://developers.facebook.com/blog/post/2018/01/30/instagram-graph-api-updates/
Maybe some of you know how to do what I want.

You can do it with a hack that is..
Intent externalIntent = new Intent(Intent.ACTION_VIEW,Uri.parse("instraURL"));
startActivity(externalIntent);
App will move user to external Browser and browser will move user on Instagram app..
As it is not perfect solution but i am just sharing because it can help developers when they don't have SDK.

Related

How do I give a user an option to use my app as default with android

I am making an app that is filtering videos through ID when a link is clicked through deep links. It works but the user has to set the app to open as default. How do I make the little window asking if they would always want to open YouTube links with my app within an activity?

Android Studio creating tabs for a app , beginner

I am currently working on a project and I want to make different tabs. Like the app flipboard
I am making my app in android studio and I am done with the "home page", but I don't know how to make a new tab.
I also want to make like a sign in page for when people first open the app like facebook.
For lasst I also want it to have google maps in it.
But I don't know how to do that either.
So my question is how do you do that or is there a book / website where you can get all the information about this and android studio in general.
Your question is too broad and I don't think anyone is going to write up the code for you. A simple google search has given me this:
For Facebook login, implement Facebook SDK:
https://developers.facebook.com/docs/android/getting-started
Google Maps:
https://developers.google.com/maps/documentation/android-api/?hl=en
Google's SDKs also support user login, which you could use together with Facebook.
For "creating new tabs", apparently I can't post more than two links in my post since I don't have enough reputation, but google "android how to make new activity".
For the Tabs you can use the Android Action Bar:
Tutorial
For the Map you can use the Google Maps API, its easy to understand ;)
Google Maps
I am using this guide based on SlidingTabLayout . And i think it will help you perfectly .

Google Places API for Android - PlacePikcer without search option

I am building an application, where the user has to select a Place he wants.
For that, I am using the PlacePicker dialog, as the Google Places API for Android is teaching in the API reference site.
However, when the user click the button and open the Place Picker Dialog, it does not have any button where the user can type the name of the place he wants to select. So, the user will have to select a place just dragging on the map; this is horrible for the user, specially if he wants to choose a specific location far from his location or he doesn't know where is the place on the map.
So, I've tried searching on Google and foruns on the internet and I didn't find anything about how to set the dialog to appear the search button.
Thank you! ;)
Unfortunately the Place Picker does not support what you are asking for.
From what I can see search is currently not supported in the PlacePicker API. You can look at: PlacePicker.IntentBuilder and PlacePicker
#Ferran Negre: Yes, I also saw that Hangouts (version 4.0.100406486) seems to use the PlacePicker with search. I actually logged it to make sure and they do use the PlacePicker activity. SO either they copied the PlacePicker code into Hangouts and modified it (they are Google and should have access) OR there is a hidden API for showing search that for some reason has not yet been released. Even if such a hidden API exists though it would be bad practice to try to use it.
It looks like that they have listened to us and they already support this feature!
We have also added the autocomplete functionality to the place picker—a UI widget that helps users communicate their current location, such as a place, address or location on a map.
http://googlegeodevelopers.blogspot.com/2015/12/autocomplete-widget-and-updated-place.html
Place picker currently not supporting option to search ,but you can use android-place-picker
library
by this lib you can achieve this functionality + you can display recent searched locations also.And hope Google will soon add this feature to Place Picker.till that time you can use this. :)

Want to create a login page like facebook login, but have no idea where to start

I'm in the process of making an alternative facebook app for android, but I have no idea where to start. I'm looking at the Facebook SDK but that seems like it's used for people who want to use Facebook as their platform for their own seperate apps. I want to make a login screen like facebook login screen, and I'm looking at their SDK but their SDK seems like it's for completely different apps that use facebook as their platform. I'm just really dumbstruck about how I would do this facebook alternative. I'm pretty new to programming aswell. However, making something like a facebook app alternative, where would I start?
well, the Facebook SDK fits your need flawlessly.
users will have to grant you the privileges to read & write on their behalf and then, the SDK is the limit.
i suggest you take a look at the Getting Started guide & search 4 a good library.

Do I need Google+ sign-in to use Google Play Game Services?

I was trying to integrate a Google+ sign-in button into my app. I kept getting this "Unknown error" that no one seems to have an answer too and its apparently an error that has been happening a lot since Google released this at their I/O recently.
My SO thread on "Unknown error" here.
So my question is if this Google+ sign-in button even necessary for me to integrate Google Play Game Services (GPGS) into my app? If I use a feature of the GPGS, do I have to let the users log into Google+? Ultimately all I want is to use the leaderboard feature of the GPGS and couldn't care less if they are logged into Google+.
No buttons are truly necessary, but they are the best way to communicate to the user that they can sign in with Google. If you just want to use leaderboards, here's how to do it:
Perform setup and create your game's client ID as described in our docs.
Configure the leaderboard in the developer console.
Set up one or more test accounts to use to test your app.
Once that's done you're ready to start your code. Download the samples to serve as a starting point.
Import BaseGameUtils to your workspace.
Import the Google Play Services library project into your workspace (you can find it in the SDK manager under Extras, Google, Google Play Services)
Derive your Activity class from the sample's BaseGameActivity
Add a sign-in button in your layout (see sample's layout XML)
When the user clicks the button, call beginUserInitiatedSignIn().
When you get onSignInSucceeded, hide the sign-in button. Now you're ready to make any API calls, including submit leaderboard scores!
Hope this helps.
If not, please take a look at our Troubleshooting guide too, to see if there are any setup issues you might be overlooking.

Categories

Resources