Hi I have app which is written in javascript. Now i want to create a android project by using this javascript code.
Can any one please guide me how can i do this. I mean how to call javascript userintereface, javascript functions in my android code.
If possible please provide me a good tutorial guide where i can read in detail and understand the actual things. I have searched it on google but didnt find any thing so posting here.
Any help is appricated.
Than
check this link:
Can't Find variable in Phonegap using javascript
and also I have prefer this link for more details for initial developer.
http://mobile.tutsplus.com/tutorials/phonegap/creating-an-android-hello-world-application-with-phonegap/
I have explained how to use phone gap and java script in android project in first link.
Hope it will help you.
Related
The article accessing-native-apis-with-javascript tells us how to use naive-Apis with js code. It is good.
But, I don't know where is the native-Apis because I never come into Android. Is it a necessary to know basic of Android knowledges for all Nativescript learner?
So I turned to Android developer site to find the list, and I falled in an other rabbit hole. It is so complicate to me.
Can you give us a usable-native-Apis-list to access the native-Apis easily?
For example, I want to use device's contacts in my App, so I turn to Android-developer-guide site to find which API is the right one. I get a lot of APIs named "contact****", which one is the target? It's painful to seek the answer for a learner of Nativescript.
"The beauty of Nativescript is .....", I turn to Nativescript just because of these words.
But, if I should learn about all the native APIs to see the beauty in the end?
when you need to use native api , you can search for that , and you will find java code for that for example https://stackoverflow.com/a/12562234/4146943
In this answer you need getContentResolver then you search in android docs to get the package name of getContentResolver https://developer.android.com/reference/android/content/Context.html#getContentResolver()
In the begin of page you see android.content.Context so you can use android.content.Context.getContentResolver
Note :
knowing java and a little android develope with java wold really help.
Note2 : checking other plugins to see how others use native api really helps.
i recently got shown the Phaser framework (found at phaser.io) and plan on using javascript with it. I'm very used to coding in java in eclipse which has code assist that lets you see the documentation of a method (parameters, description etc) and i want to know if there is a way to/how to do it with javascript. The framework comes with the documentation, but how can i link it to the class in an ide?
Check out TypeScript and Phaser.io. This will give you full intellisense (auto-complete) in Visual Studio. This is exactly what you desire and the workflow works well as I have been using it for over 6 months.
Hi I have gone throught the site: phonegap
I have also read the documentation provided there, but is there any easy way tutorial available for that?
I have less idea about javascript coding and what I found is phonegap is entirely based on javascript. Can anyone guide me from where to start with?
Thanks in advance.
Mrunal
http://docs.phonegap.com/ : This will give you the insight of
PhoneGap APIs with source:
http://drupal.org/project/phonegap : Here you will get the complete
source code of Drupal PhoneGap app which runs of Android. iPhone and
BlackBerry. This source will help you to understand the PhoneGap
development techniques
they do have detailed set-up instructions and gettin started help.
You don't need JavaScript for a basic Phonegap App. What they do is basically translate a WebPage to a App for the desired Plattform. Therefore you just need to know as much Javascript as your app needs.
Afaik you can also use frameworks like jQuery.
More tutorials are available here: http://wiki.phonegap.com/w/page/35501397/Tutorials
Here on UI Development: http://wiki.phonegap.com/w/page/36767911/UI%20Development%20on%20PhoneGap
And there is many more.
Maybe you can look into general Javascript tutorials first if you look for a special effect or so.
Amazon has more books on PhoneGap that offers basic tutorials and code walkthroughs. Here is a new book with sample code available for download.
I need to use the publish subscribe service of Strophe to access nodes my colleague has set up.
Im trying to access a node /Communities/ on the server already set up
Does anyone know of anywhere to get started with Strophe, I have downloaded the test and looked through the api, not having used it before it is a tad confusing. Does anyone know of a tutorial or example I could use?
Any help would be greatly appreciated
Thanks
I suggest checking out the book Professional XMPP Programming with JavaScript and jQuery. You can also visit the author's Github account to see some example code and go from there.
https://github.com/metajack/strophejs
Best of luck!
For anyone that is interested I found a lot of good tutorials and examples in the following book:
Professional XMPP Programming with JavaScript and jQuery
Nice book with a lot of examples and source code, the tutorials are easy to follow as well.
I am planning to build a JS based twitter client. Information about libraries/clients is pretty old on other SO Questions. I was wondering if anyone has come across wrappers other than Spaz and TwitterHelper.
Addition : Please note this will be client app which I also plan to run on mobiles using phonegap.
Thanks :-)
I recently wrote an OAuth library for JavaScript that might help you. You can find it here:
http://bitbucket.org/techpriester/oauthentica.js
There's also some example documentation on how to extend it for use with Twitter:
http://bitbucket.org/techpriester/oauthentica.js/wiki/HowToExtend
See Anywhere, an official Twitter Javascript library. Full documentation here.