--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/cV0RFs0jQNw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.
Visit this group at http://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/11cb8435-fe0b-4405-b610-a458c132ded5%40googlegroups.com.
That's not importing. Just open the project and copy the dependencies from a newly created project.
--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/cV0RFs0jQNw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.
Visit this group at http://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/25aacc14-e5df-4d8d-8afa-a20fdfc5d918%40googlegroups.com.
That's not importing. Just open the project and copy the dependencies from a newly created project.
--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/cV0RFs0jQNw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.
Visit this group at http://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/25aacc14-e5df-4d8d-8afa-a20fdfc5d918%40googlegroups.com.
That's not importing. Just open the project and copy the dependencies from a newly created project.
--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/cV0RFs0jQNw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.
Visit this group at http://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/25aacc14-e5df-4d8d-8afa-a20fdfc5d918%40googlegroups.com.
File->New Project
Select Demos->Property Cross
--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/cV0RFs0jQNw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.
Visit this group at http://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/d088b7f2-45c3-4ca3-81ee-04eceb4a8547%40googlegroups.com.
i got the following json data with total result in youtube playlist 17 and resultsperpage 5 and i can only access the 5 video. How can i extract all the video in playlist. I hope you got it now. sorry for the misunderstanding before...
{
"kind": "youtube#playlistItemListResponse",
"etag": "\"0KG1mRN7bm3nResDPKHQZpg5-do/oFgfJDCzOa1KEhoBibm88NrIXCU\"",
"nextPageToken": "CAUQAA",
"pageInfo": {
"totalResults": 17,
"resultsPerPage": 5
},
"items": [5 video data........
]}
I don't understand the question.
Just create a new project and copy the sources into it.
--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/cV0RFs0jQNw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.
Visit this group at http://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/74e0a0e4-1af2-4499-a45a-3b39861c6ae1%40googlegroups.com.
"nextPageToken": "CDIQAA",
"pageInfo": {
"totalResults": 1443,
"resultsPerPage": 50
}My code is as below... how can i send request for other pages dynamically because my playlist increases day by day.... May be i can put more button and load other pages but i've no idea how to do it... Can you guide me a bit please....class MR extends ConnectionRequest {
public Map<String, Object> results;
public Vector<Map<String, Object>> response;
public Vector<Map<String, Object>> response1;
@Override
protected void readResponse(InputStream input) throws IOException {
JSONParser p = new JSONParser();
results = p.parse(new InputStreamReader(input));
String nextToken = results.get("nextPageToken").toString();
response = (Vector<Map<String, Object>>) results.get("items");
for (int i = 0; i < response.size(); i++) {
Hashtable hm = (Hashtable) response.get(i);
Hashtable snippet = (Hashtable) hm.get("snippet");
String title = snippet.get("title").toString();
String description = snippet.get("description").toString();
String publishedAt = snippet.get("publishedAt").toString();
HashMap<String, Object> m = new HashMap<String, Object>();
m.put("Line1", title);
m.put("Line2", publishedAt);
m.put("Line3", description);
Hashtable thumbnails = (Hashtable) snippet.get("thumbnails");
Hashtable quality = (Hashtable) thumbnails.get("standard");
String urlthumb = quality.get("url").toString();
m.put("icon", URLImage.createToStorage(placeholder, "thumbnailss", urlthumb, URLImage.RESIZE_SCALE_TO_FILL));
videoResource = (Hashtable) snippet.get("resourceId");
videoId = videoResource.get("videoId").toString();
m.put("video", videoId);
mData.add(m);
}
}
};
MR r = new MR();
r.setPost(false);
r.setUrl("https://www.googleapis.com/youtube/v3/playlistItems?part=snippet&maxResults=10&playlistId=PLOU2XLYxmsILZgnzcdUZOf0pUJlqvrE-Z&key=AIzaSyAhI7l8aZ6EuTsnxILfNFyAhlA7gOHyr10"); r.setDuplicateSupported(true); NetworkManager.getInstance().addToQueueAndWait(r);
When sending the JSON request you usually have an argument for the page number. If there are 5 pages you can send 5 requests.
There are usually also arguments for number of results to return with a maximum size.
--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/cV0RFs0jQNw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discu...@googlegroups.com.
Visit this group at http://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/b414022c-1cf7-4d3a-81e2-c1eefbc4ea3e%40googlegroups.com.