importing codename one project

332 views
Skip to first unread message

Bbeck Shrestha

unread,
Oct 28, 2015, 5:24:05 AM10/28/15
to CodenameOne Discussions, Aayushma Nepal
while importing the codename one project, com.codename1.impl.javase.simulator class wasnt found problem occurs...

this dialog box opens 
Resolve project problems
  • Problem: Project Problem: "impl-stubs" file/folder could not be found, resolvable by: Resolver for FILE file.reference.impl-stubs unresolved 
  • Problem: Project Problem: "JavaSE.jar" file/folder could not be found, resolvable by: Resolver for FILE file.reference.JavaSE.jar unresolved 
  • Problem: Project Problem: "CodenameOne.jar" file/folder could not be found, resolvable by: Resolver for FILE file.reference.CodenameOne.jar unresolved 
  • Problem: Project Problem: "CLDC11.jar" file/folder could not be found, resolvable by: Resolver for FILE file.reference.CLDC11.jar unresolve 
  • Problem: Project Problem: "CodenameOne_SRC.zip" file/folder could not be found, resolvable by: Resolver for FILE file.reference.CodenameOne_SRC.zip unresolved 
  • Problem: Project Problem: "CalendarApp-override" file/folder could not be found, resolvable by: Resolver for FILE file.reference.CalendarApp-override unresolved
  • Problem: Project Problem: "native-internal_tmp" file/folder could not be found, resolvable by: Resolver for FILE file.reference.native-internal_tmp unresolved
  • Problem: Project Problem: "impl-cls" file/folder could not be found, resolvable by: Resolver for FILE file.reference.impl-cls unresolved 

Shai Almog

unread,
Oct 28, 2015, 11:35:12 PM10/28/15
to CodenameOne Discussions, aab...@gmail.com
Importing from? To? Which project?
I'm guessing you are trying to add something to Eclipse?
Just create a new project and make sure to give it the right main class name and package name both of which you can see in the codenameone_settings.properties
Then copy the src directory on top of the existing src and the codenameone_settings.properties on top of the existing one.

Bbeck Shrestha

unread,
Oct 29, 2015, 12:46:45 AM10/29/15
to codenameone...@googlegroups.com, Aayushma Nepal
importing from netbean 7.0.2(jdk 1.7)  codename one project to netbean 8.0.2 with jdk 1.8 (not in ecllpse)


--
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.

For more options, visit https://groups.google.com/d/optout.

Shai Almog

unread,
Oct 30, 2015, 1:59:03 AM10/30/15
to CodenameOne Discussions, aab...@gmail.com
That's not importing. Just open the project and copy the dependencies from a newly created project.

Bbeck Shrestha

unread,
Nov 1, 2015, 5:42:04 AM11/1/15
to codenameone...@googlegroups.com
i jst opened the project bt same prob.... from where can we copy the dependencies and paste where?? Sorry, i didnt get u...

On 30 October 2015 at 11:44, Shai Almog <shai....@gmail.com> wrote:
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.

Bbeck Shrestha

unread,
Nov 1, 2015, 5:46:07 AM11/1/15
to codenameone...@googlegroups.com
i jst opened the project bt same prob.... from where can we copy the dependencies and paste where?? Sorry, i didnt get u...
for eg: i opened PropertyCross project and the netbeans gives resolve project problems with above mentioned missing project problems...

On 30 October 2015 at 11:44, Shai Almog <shai....@gmail.com> wrote:
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.

Bbeck Shrestha

unread,
Nov 1, 2015, 5:55:05 AM11/1/15
to codenameone...@googlegroups.com
i downloaded the zip folder codenameone-demos-master from git but when i compare the files, i found the build, lib, native, override folders and other files missing... is it the reason??

Bbeck Shrestha

unread,
Nov 1, 2015, 5:57:59 AM11/1/15
to codenameone...@googlegroups.com
i jst opened the project and the same prob... frm where can i copy and paste the dependencies... sorry i didnt get u.
For egi opened the PropertyCross project and netbeans geive resolve problem dialog box with abov mentioned errors list....
     i downloaded the zip folder codenameone-demos-master from git but when i compare the files, i found the build, lib, native, override folders and other files missing... is it the reason??
On 30 October 2015 at 11:44, Shai Almog <shai....@gmail.com> wrote:
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.

Shai Almog

unread,
Nov 1, 2015, 10:34:07 PM11/1/15
to CodenameOne Discussions
File->New Project
Select Demos->Property Cross

Bbeck Shrestha

unread,
Nov 2, 2015, 1:55:59 AM11/2/15
to codenameone...@googlegroups.com
that works fine but my friends have edited the propertycross demo and it doesnt work in mine... not only that project all of their project gives the same error. i also want to see the demo of local notification of codenameone 3.2.2 bt its not in demo....

On 2 November 2015 at 09:19, Shai Almog <shai....@gmail.com> wrote:
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.

Shai Almog

unread,
Nov 2, 2015, 11:45:45 PM11/2/15
to CodenameOne Discussions
I don't understand the question.
Just create a new project and copy the sources into it.

Bbeck Shrestha

unread,
Nov 8, 2015, 12:21:56 AM11/8/15
to codenameone...@googlegroups.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........
]}

On 3 November 2015 at 10:30, Shai Almog <shai....@gmail.com> wrote:
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.

Shai Almog

unread,
Nov 8, 2015, 10:13:36 PM11/8/15
to CodenameOne Discussions
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.

Bbeck Shrestha

unread,
Nov 19, 2015, 12:38:00 AM11/19/15
to codenameone...@googlegroups.com
here youtube allows max result of 50 only but i hav 1000s of videos in the playlist... so i should use the argument of next page token but hav no idea how to do that...my json below
"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);

On 9 November 2015 at 08:58, Shai Almog <shai....@gmail.com> wrote:
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.

Shai Almog

unread,
Nov 19, 2015, 11:38:07 PM11/19/15
to CodenameOne Discussions
That's their API. You need to request the next page one by one.
E.g. in the property cross demo we do exactly that: https://www.udemy.com/learn-mobile-programming-by-example-with-codename-one/

in...@bookshops.com.au

unread,
Feb 3, 2016, 10:37:40 PM2/3/16
to CodenameOne Discussions
Property Cross is not showing in my Demos folder

Shai Almog

unread,
Feb 3, 2016, 11:20:10 PM2/3/16
to CodenameOne Discussions, in...@bookshops.com.au
On which IDE?
Notice its under Codename One->Demos

in...@bookshops.com.au

unread,
Feb 4, 2016, 1:33:34 AM2/4/16
to CodenameOne Discussions, in...@bookshops.com.au
I am using Eclipse.
In New Project - Cpdenameone- Demos I have - Camera, Charts, Chrome, CN1 Poker, Dr Sbaitso, Flickr, Kitchen Sink, Maps, Native Demo, SqLite Demo but no PropertyCross., Thanks, Neil

Shai Almog

unread,
Feb 5, 2016, 12:18:59 AM2/5/16
to CodenameOne Discussions, in...@bookshops.com.au


Check that you have the latest plugin installed. Make sure you followed the download instructions correctly.


Reply all
Reply to author
Forward
0 new messages