Developing with Phonegap [closed] - android

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I've heard a lot of the Phonegap framework and starting to dig into it soon.
As far as I've understood Phonegap allows you to create Web applications that is converted to a native mobile app.
However my questions is how do I use database ? fx SQL lite? If it is only HTML5, CSS3 and Java script then how is this possible? What if I want to use let's say access to the phone book? How is this accomplished?
Or if I want to use something else that is part of the Android SDK?

If you would go through with the documentation files many things could have been clear already.
1) There are 3 kinds of database in phonegap. localStorage, webSQL, indexedDB. If you want to use SQLite then there are SQLite wrappers which allow you to create and maintain SQLite database from javascript
2) Yes it's html,css,javascript. They are main weapons. But you can also use native codes to accomplish some task which can't be done with web technology only. There is a system called custom plugin. You can build custom plugin to use native codes if you need.
3) Most of the things are already taken care of by phonegap. Stuff like using contacts, playing media etc. can be done using various api. These are called plugin. If you install contact plugin, you will be able to use contact list using javascript code. (See this example for how it's done)
Basically phonegap gives you a framework which acts like a bridge between web technology and native technology.

Related

Correct way to structure an HTML app [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I've previously made native apps but I'm considering making an HTML/JS app. I'm uncertain as to how these should be structured.
For example:
Should the app just be a webview that points to my server, ie: www.example.com/webapp and have ALL the app files and resources there?
Should ALL the app files be contained inside the executable?
Something in between, like for example have big asset files (images, maybe libraries like jQuery) stored locally while the actual app gets pulled in from my server, as to always use the latest code.
This app in particular needs Internet access as it's only purpose really is to query a database of local offers, so in this case I'm not worried about providing offline access to any functionality.
Also, will Apple approve of any app that is just a webview pointing to a server, since I could totally change the functionality after it's approved?
Any other thing I should be aware of when creating HTML mobile apps, specially in regards to getting Apple approval?
Thanks!
Apple will aprove .ipa apps that are using just HTML and web languanges. However Apple has several requirements when submitting apps to the app store. These requirements sometimes make people who develope apps using HTML5 think their apps got rejected because it was in HTML5.
I would suggest coding in standard HTML5 JQuery, JQuery Mobile, CSS and using JSON for your MySQL Databases. You can compile your app using Phonegap this way you can make it for many types of mobile devices or you can simply upload it to your server.
Try to use PhoneGap it uses WebView in Android and IOS.
Also check Phonegap based frameworks and plugins like:
Appcelerator
KendoUI and Icenium
Convertigo
Sencha
You can also use jQuery mobile with those tools.

How do you create apps on the fly? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
There are hundreds of sites now which allow you to create apps for iOS & Android on the fly. Am completely lost on how they are able to achieve this online. Are there any services which help compile the code?
Can anyone help in giving an outline of the full process? They primarily look like mobile webapps placed in a virtual browser.
Any thoughts on the flow will be helpful.
Sample sites:
http://www.theappbuilder.com,
http://www.shoutem.com,
http://www.appypie.com,
http://www.appsbar.com,
http://mobiappbuilder.com
All of them support native apps. How do they do this?
UPDATE
Thank you for your answers. But am not looking at creating apps. Am looking at creating a service which creates apps. A service which allows creating mobile webapps is no issue at all. But how do the above companies allow creation of Android & iOS native apps on the fly? How do they do it i.e. what is the technology/flow for that?
They are HTML5+javascript based like crossplatform frameworks like PhoneGap for instance.
You are exactly right.
The trick is in the word native. A native application in this context doesn't mean an application written in Obj-C or Java. They have a small native core, mostly only to display a web view and they dynamically generate HTML pages for it. They can run their own web server on the device or use HTML prepared beforehand or load it from some internet source but most of the functionality is done by HTML(5).
Depending on how advanced the framework is, the native core is bigger and can provide some of the native features, e.g. access to filesystem or notifications. If a web server is running inside the application, then the server can provide the advanced functionality using some HTTP API.
The UI is usually done in HTML (+ CSS & javascript) but there can be also some native components.
The biggest problem is usually the look & feel which is not native (usually CSS mocks up the native UI), performance and memory problems.
It's good for small applications, it's terrible for bigger applications.
Once you have the framework and the user-generated functionality (UI, images etc), it's trivial to compile it using command line tools (e.g. ant for Android, xcodebuild for iOS).
Edit:
In other words, the native framework contains a web server and a web browser. The application is only a resource that is inserted into the framework. It's exactly the same as when you are creating a normal web application. The only difference is that the server side data is stored on the client, too. Depending on the framework, the server side scripts can be either compiled or interpreted.

Create local web app for iphone and android [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I want to develop a local web app using mobile jquery.
what is the way to open the app using icon in iphone and in android?
Thanks,
it really depends on your project depth.depth in sense of complexity.its always suggested to develop separate for each platform.evaluate your needs carefully.
if the application is simple enough then you can go for third party apis
PhoneGap and Sencha Touch are good options.
but still you might find yourself restricted by a third party API if you need to add new functionality in the future.
What i understand from your question is you want to create a iOS and Android app using html, jQuery etc. There are tools such as PhoneGap, Titanium and Sencha touch. Using this tools you can create a mobile applications with help you HTML, jQuery. However, this apps won't have same user experience as it'll have with the native apps. Also, just think about future releases of your application. If Apple or Android adds new features to there OS it'll be definitely take sometime for above third party API to implement them
Also, apple clearly rejects app which acts like a website. So, you'll have to be careful with this. I'd suggest you to go for native app development. It'll provide you flexibility.
As far as I know, you can't get anything onto iOS without an Apple Developer account. As for Android, you can check out PhoneGap. It also has iOS, but it won't build without a valid apple dev account. Does that seem to be what you're looking for?

Develop android and iphone app [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm gonna develop a small app both for android and Iphone. The app will contain a simple little online magazine. I have not done any app before. I work with developing Web pages in asp.net c# and I'm familiar with java. So I'm a beginner in terms of mobile apps, and now I'm wondering how to begin and where to find good information about basic app-development.
If you aren't building anything complex and just want to display something, a good solution might be PhoneGap. You can develop using HTML, CSS and Javascript and deploy to multiple platforms.
If you want to develop native applications, however, for Android, you can follow Vogella tutorials. He provides a set of tutorials starting from beginner level to intermediate.
There are many routes you can go. I will try to list some below:
Java / Objective C. You will need to know how to program in each of these languages (java for droid and Obj C for iphone). Use the SDK for the respective platform.
Cross Platform mobile platform- You can use frameworks like Rhodes, Sensa touch, etc. This will let you write code one time and build the packages for android, iphone, and much more.
Web- You can write applications using web technologies like HTML5, CSS, Javascript, etc and there are tools to package them as Android / Iphone application. Otherwise, you can use a WebView in Android (which basically creates a browser-like experience in your application).
It is upto you to decide the best route to go. There are tons of information available online (stackoverflow, and Android/Iphone sdk websites).
I suggest that you take a look at http://developer.android.com/ for guidance in android development

Augmented reality phonegap [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed last year.
Improve this question
I would like to know if I can use phonegap to create a simple augmented reality application.
Can I create an augmented reality browser with phonegap to show pois at camera of Android phone?
Anyone know some references or simple examples?
PhoneGap is not just a native wrapper of a web app. Through the PhoneGap javascript APIs, the "web app" has access to the mobile phone functions such as Geolocation, Accelerometer Camera, Contacts, Database, File system, etc. Basically any function that the mobile phone SDK provides can be "bridged" to the javascript world. On the other hand, a normal web app that runs on the mobile web browser does not have access to most of these functions (security being the primary reason). Therefore, a PhoneGap app is more of a mobile app than a web app. You can certainly use PhoneGap to wrap a web app that does not use any PhoneGap APIs at all, but that is not what PhoneGap was created for.
if there is something u want to use in your app that phonegap does not provides then you can create a native plugin and use the functionality in your app.
thus phonegap can be used to create apps that can match 100% with the functionality provided by a native app. you can give it a try to create your app.
You can use the Wikitude AR Phonegap Plugin, you can do almost everything with that using JS, HTML5 and CSS3.

Categories

Resources