im developing an Android application for twitter that will sync data coming from the people you follow.
The problem is that:
http://api.twitter.com/1/statuses/friends.json
provides me the last 100 persons ive followed and i wanted to display only 20 for each 'page'.
I believe that the 'cursor' parameter doesnt do what i need, so i'm trying to figure out a way to store it.
Can you guys give me enlightenment?
Thanks in advance
You should be able to add a parameter count=, and combine this with the cursor parameter. Try
http://api.twitter.com/1/statuses/friends.json?count=20&cursor=-1
Related
I am making an app in which I want only health related news..
So,For getting news I am using newsapi.org ..it is giving news of all categories.
But I want only health related news to appear..
Can You help in it?
How about adding the keyword: "health"
https://newsapi.org/v2/top-headlines?q=health&apiKey=API_KEY
This page https://newsapi.org/sources then country and then source can help you do that. For example http://newsapi.org/v2/top-headlines?country=rs&category=health&apiKey=API_KEY but I don't know if category works without country. If not you can filter countries you want, make several requests and deduplicate by Id or some text matching.
Also there are q attribute.
Also it's seems to have nothing with android and android-studio.
I'm developing a personal project with Android and struggling here with some doubts about the better way to develop it.
Well, my project consists of my app consuming a Rest Webservice (which I already developed with Java and Spring) and showing up a list of places on it. The thing is: This list could be huge, something like 2000- 3000 records with description and picture of each place.
I'm using volley and OKHttp to take care of my networking stuff, so far my list of places isn't that long, so everything is alright, but I'm afraid when the list starting to get big, I don't know how my app will handle this.
My questions would be:
1- Should I store the that list on my device and update the list every time I connect to the webservice?
2 - Am I doing correct, retrieving the entire list with just one request? If not, how's the best way to do it?
Thank you guys, I'm new to android stuff, and I'm developing everything by myself, don't have anyone experience around to ask that.
Cheers!
As mentioned in comments You need your app to do "paging" and to load some of the content every time you scroll down.
For example if you will open Facebook app and go over photos you will notice that the first ones always loading the fastest and as you keep scrolling some will be left blank for few moments, thats what paging is all about.
Make sure though not to overload the app with info, specially if you use bitmaps
You can read some good tutorials here
I can't find a tool in Parse.com analytics that can show me most popular query.
I have added parse analytics to my Android app so I can see data for each search, but can't get the most popular one. I see that Parse Analytics/Explorer could hide something that I 'm looking for but can't find it.
Anyone knows how to get it?
https://parse.com/apps/app-name/slow_queries .. Check the slow queries part under analytics. Not sure if this is what you are looking for. but it shows all the queries and the number of times they were called.
I tried to goto lots of questions on this forum but could not find one useful so i decided to ask one myself.
I want to pull the birthday's of all the friends in the users friend list.
After going through a lot of stuff i found there are 2 ways to do that
Graph API
FQL Query
So, my questions are
Q1. which one of them is better/easy to integrate in the app.
Q2. http://developers.facebook.com/docs/tutorials/androidsdk/3.0/scrumptious/ is this tutorial useful for what i want to do.
Q3. If i use Graph API/FQL Query , could you please give me a link which is helpful or a Code snippet
Thanks In Advance,
Eriz
You probably want to go for the Graph API as this is usually a more simple approach.
You can check out this link to see how retrieving a list of friends are completed in API 3.0.
Hope this helps.
I can perform as a native application on android that contains a wall as the Facebook application, I have communication with the webservice using a mysql database but basically what I want to know is how I should send that information to place in my wall of my Android app, do not like the design of the wall, if I need the help of listview, or something else, also not like painting the data string in that wall, please help me, to be displayed as well as the wall facebook.
Your question is too open ended (and also a bit muddled). You can send down the data in whatever format you want (XML or JSON are the preferred ways). Of course you then need to read this data using some sort of serialization library (Jackson for JSON is a good one). Then you probably want to display the data in a ListView, creating a custom Adapter.
There are a lot of pieces to this kind of app, so you're better off building one feature at a time and asking questions about the specific problem you are having. I suggest you figure out how to get the data from the server into the phone first.