{"action":"created","issue":{"url":"https://api.github.com/repos/jxcore/jxcore/issues/768","labels_url":"https://api.github.com/repos/jxcore/jxcore/issues/768/labels{/name}","comments_url":"https://api.github.com/repos/jxcore/jxcore/issues/768/comments","events_url":"https://api.github.com/repos/jxcore/jxcore/issues/768/events","html_url":"https://github.com/jxcore/jxcore/issues/768","id":125419933,"number":768,"title":"JXCore configuration for no Cordova Projects","user":{"login":"carlgira","id":11393060,"avatar_url":"https://avatars.githubusercontent.com/u/11393060?v=3","gravatar_id":"","url":"https://api.github.com/users/carlgira","html_url":"https://github.com/carlgira","followers_url":"https://api.github.com/users/carlgira/followers","following_url":"https://api.github.com/users/carlgira/following{/other_user}","gists_url":"https://api.github.com/users/carlgira/gists{/gist_id}","starred_url":"https://api.github.com/users/carlgira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlgira/subscriptions","organizations_url":"https://api.github.com/users/carlgira/orgs","repos_url":"https://api.github.com/users/carlgira/repos","events_url":"https://api.github.com/users/carlgira/events{/privacy}","received_events_url":"https://api.github.com/users/carlgira/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-07T15:50:14Z","updated_at":"2016-01-10T20:27:46Z","closed_at":null,"body":"Hi\r\n\r\nThere is a tutorial, or updated example that can be followed to add Jxcore to a android project that does not use cordova??\r\n\r\nThe only thing I was able to find was an example on github about 6 months ago https://github.com/capriza/jxcore-android-sample\r\n\r\nThe problem is that I was getting an error with that example because a bug you already have solved with the cordova-jxcore plugin..... so I begin to update that sample merging  the cordova plugin sources with the ones in the project. I was able to make it work but in the process i had to erase all the cordova stuff and i'm not sure if I do it right.\r\n\r\nThe only file that i had to manually change was the jxcore.java. I put all the changes\r\n\r\n1. Remove the references of Cordova (imports and the \"extends CordovaPlugin\")\r\n2. Remove the fields\r\n    - Map callbacks;\r\n    - PluginResult result_;\r\n3. Remove the functions\r\n    - CreateResult\r\n    - jx_callback\r\n    - execute\r\n4. Change the functions onStart and onStop to remove the parameter \"boolean multitasking\"\r\n5. Change the function pluginInitialize.\r\n    - Remove the \"@Override\"\r\n    - Remove activity reference\r\n    - Remove the callbacks Map initialization\r\n    - Remove the RegisterMethod call\r\n    - Make it public so it can be called from outside to initialize the class.\r\n6. Add a constructor to pass the \"activity\"\r\n\r\nI add some other little changes and update the .so files\r\n\r\nYou can see the sources of this on github. I create a jxcore-android lib and an android application sample to execute it.\r\nhttps://github.com/carlgira/jxcore\r\n\r\nIs there something that i should not delete on jxcore.java?\r\n\r\nThanks!\r\ncarlgira\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jxcore/jxcore/issues/comments/170391044","html_url":"https://github.com/jxcore/jxcore/issues/768#issuecomment-170391044","issue_url":"https://api.github.com/repos/jxcore/jxcore/issues/768","id":170391044,"user":{"login":"carlgira","id":11393060,"avatar_url":"https://avatars.githubusercontent.com/u/11393060?v=3","gravatar_id":"","url":"https://api.github.com/users/carlgira","html_url":"https://github.com/carlgira","followers_url":"https://api.github.com/users/carlgira/followers","following_url":"https://api.github.com/users/carlgira/following{/other_user}","gists_url":"https://api.github.com/users/carlgira/gists{/gist_id}","starred_url":"https://api.github.com/users/carlgira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carlgira/subscriptions","organizations_url":"https://api.github.com/users/carlgira/orgs","repos_url":"https://api.github.com/users/carlgira/repos","events_url":"https://api.github.com/users/carlgira/events{/privacy}","received_events_url":"https://api.github.com/users/carlgira/received_events","type":"User","site_admin":false},"created_at":"2016-01-10T20:27:46Z","updated_at":"2016-01-10T20:27:46Z","body":"It's working, i just wanted to know one thing.\r\n\r\nAfter the list of changes i did to make the example work with no cordova (in the first message are all the changes) is there something i should not delete?\r\n\r\n"}}