I am new to phonegap platform. Have some queries plz help me out.
First of all my question is that "what exactly is cordova cleaver"? plz answer in layman language.
Second if somebody says "each module running through one main webview object" then does this mean that the app has only one webview.
Thanks,
Vishal.
with cleaver you can change a native view to show html
If you want to use cleaver, you have to include cordova as a framework.
in the .dmg you have a pdf explaining the steps to include cordova as a framework and how to use it.
I supose you need cordova installed, because if you don't install it, you can't get the cordova.framework
Related
i am working on designing Android App UI and i wonder if it is possible to export Pixate prototype to android studio ? have anyone tried or having an idea how to do that ?
As mentioned in their website(Pixate.com) to someone's question, they have mentioned that , for now its just a prototyping app , which means you just design it and show how it is to others and currently there is no feature to export it to android studio but they have mentioned that they are thinking to add that feature as it helps the developer a lot, being a developer myself , I was also looking for exactly what you are looking , Adobe is developing a product with code name Project Comet which is going to be a competitor for Sketch 3 which is also a awesome prototyping software but its available only for mac, I hope adobe will be launching the Project comet to Windows as well and it would be of great help if they include the feature of exporting the code so that we can easily desgin and do the animations in these softwares and export them along with the code so that we can import in our IDE as this would allow us to spend more energy on back end rather than on front end ...
This is my first post on SOF. OK, let's get to the merits...
Im quite new in Phonegap and mobile applications world but i have some expirience with developing in PHP, C#, JS... but in Phonegap iam stuck in early stage.
I download Phonegap app for windows to testing apps, this software create for me fresh project.
Now i add to index html: <img src="http://domain.com/img.png" />.
In desktop phonegap image is visible but after build i see crash link to image icon. I tested this on Andy emulator and on my HTC ONE - the same effect.
I tryed with jquery link, api connection, nodejs+socket.io external resources in my app, in the next step with additional attributs in html markups, in the next step i used many different config.xml combinations (changing/deleting sections with domains ACL).... i have only one configuration file. ( i builded .apk on adobe web page)
...and I still have this problem.
What could be the problem ? What should I check? how should I debug/test ?
thank you in advance and sorry for my English .
try after Addind <access origin="*" /> in your config.xml file
I had this line in my first approach in config.xml and i check this position witch , domain.com, domain.com, domain.com/picture.png and with option "subdomains" ... and this is not issue in this case.
thanks!
As I know i have to use android studio for this.
But i am looking for someone who can tell step by step process to change what all codes to make that app a web view app with a test URL foo.com .
What i did till now :
I open Android Studio
Choose a blank activity
Please let me know further steps that works
Please note that i am not looking to develop this on eclipse as new Android Studio is more preferable for me to work with
You need to make a setContentView(R.layout.your_layout) in your activity's onCreate method. You would then make an xml file in the layout folder containing the WebView. Those are the basics to get you started. You can look here for examples and the documentation. There are also lots of tutorials online.
I am a new bee to phonegap and want to clarify some doubts .
I have heard that phone gap allows you to code for one platform and then code for all platforms can be created(or reused ) via some commands and then one just needs to do some tweeking around for new platform added .
However i see that when i created my app for android and then i called cordova platform add ios command , the code for ios was not auto generated or the same code could not be be reutilised . ie for me now i had to code again .
Question : Was i wrong to assume that this can be done ? can it be done and if yes what are the steps for auto-generating code for a newer platform .
If i have to create code for new platform say ios again from scratch i don't know what benefit does phonegap provides me . ?
Phonegap doesnt generate the code for you. I mean, you code in javascript, html and css and you use this code throughout the different platforms. Sometimes, you have to modify it because the calls to internal functionalities can change. But PhoneGap is not a code generator, is not a cross compiler, it´s just a wrapper which embeds your code in a webview and by using the cordova tools, you can generate the skeletons, for every platform, but it wont generate code for you automatically, the code is the one you have made in HTML5. You can take your www folder from iOS and put in in the android skeleton you have created and try it. Sometimes it works from the beginning...and some times, which are the most of the cases, you have to do some fixes to polish the code. Hope it helps
i am new to sencha touch & phone gap.i want to run simple hello word app in eclipse.but i dont know how to do it.if any one knows it than let me know fast
Thanks in advance
Aamirkhan I.
UPDATE:
Well there is a plugin availble for eclipse in which we can easily create any sencha,jquery mobile,phonegap project's,just need to follow some steps to integrate that plugin..see MY POST for that plugin guide,i updated my answer just to help other's who don't know how to write sample application in phonegap eclipse.
Thanks
follow this folder structure.
---your application name
-------src
--------------your activity class
-------gen
--------------generated files
-------android2.2
--------------generated files
-------Referenced Library
--------------Phone gap referenct which is placed in the libs folder
-------assets
--------------create folder www
---------------------place your html files & create sub folders for sencha files(
-------bin
--------------auto generated files
-------libs
--------------phonegap-1.3.0.jar
-------res
--------------some auto generated files
--------------create xml folder in that place phonegap.xml and plugins.xml files
-------Android Manifest
-------proguard.cfg
-------project.properties
Start by doing the Getting Started tutorial of PhoneGap on whatever OS you want to work.
http://phonegap.com/start
You should get your Hello World pretty easily
And if you want to go further you can do that great Sencha Touch tutorial :
http://www.sencha.com/learn/a-sencha-touch-mvc-application-with-phonegap/
Hope it helps
I would suggest you to use Apatna studio for the Sencha client development. It helps to build web applications quickly and easily and it is one of the Eclipse based powerful web development engine.
http://aptana.com/
Find Aptana Studio 3 Release Updates site: http://download.aptana.com/studio3-rcp/plugin/update/
Another alternative is Spket plugin for eclipse for Javascript. Spket Update site: http://www.spket.com/update/
Once your are done with the client development, you can follow the below link to build the different version of mobile application builds using phone-gap. Visit here for Phonegap developers reference link