Today while I was developing Android App with PhoneGap, I found something in testing. When I ran my app in device, it normally loaded the index.html. Then I navigated through the app using the buttons I embedded in web page. Then, I pressed the back button of the device, it reloaded each previous page I entered in each button press. That took a long time to be back on App Home Page or exit from the App and sometime App crushed. So, I consider, "Is the PhoneGap is a good Framework to develop mobile app?". Then, I googled and found this comparison.
mobile appေရးတဲ့ ေနရာမွာ သုံးတဲ့ Frameworkေတြနဲ႔ Languageေတြရဲ႕ အားသားခ်က္ အားနည္းခ်က္ေတြပါ။ ဒါေပမဲ့ အေကာင္းဆုံးကေတာ့ သူ႕မူရင္း languageနဲ႔ frameworkကို သုံးတာ အေကာင္းဆုံးပါပဲ။
ဒီေန႔ေတာ့ Appကို PhoneGapနဲ႔ေရးရင္း phoneမွာ runလိုက္တယ္။ web pageေတြ တစ္ခုၿပီး တစ္ခု navigateလုပ္ၾကည့္ေတာ့ ဘာေတြ႕လဲဆိုေတာ့ back buttonႏွိပ္ရင္ အရင္ၾကည့္ဖူးတဲ့ web pageမွန္သမွ် ၿပန္ေခၚၿပီး ၾကာေတာ့ backႏွိပ္ရင္း appက crushၿဖစ္သြားတယ္။ အဲေတာ့ PhoneGap Frameworkဟာ Appေရးလို႔ ေကာင္းရဲ႕လားလို႔ စဥ္းစားမိတယ္။ googleမွာ ရွာလိုက္ေတာ့ Mobile Appေရးတဲ့အခါ သုံးတဲ့Frameworkေတြရဲ႕ အားသာခ်က္ အားနည္းခ်က္ကို ယွဥ္ၿပထားတာေတြ႕လို႔ မလာတယ္။mobile-framework-comparision : Sheet 1 |
.
| Feature | Obj-C+Iphone | Java+Android | Phonegap | Titanium |
.
| Language | Objective C | Java | Html+CSS+Javescript | Javascript |
.
| Ide | Xcode | Eclipse | Xcode or any editor | Any capable JS editor |
.
| Can deploy to | All Ios devices | All android devices | Ios and Android devices | Ios and Android devices |
.
| Interface built in | Graphical interface builder application. | XML | Html and CSS | Javascript using Titanium's API |
.
| UI Library | Cocoa | Android specific Swing like library | Webkit packaged as Native apps | Titanium specific API compiled to native apps. |
.
| Looks Native? | Native | Native | No | Native |
.
| Open source | No | Yes | Yes | Yes |
.
| Entry point of the app. | main.m | YourAppName.java | www/index.html | Resources/app.js |
.
| Big Advantages | Native platform to develop for IOS, so has most comprehensive API, and developer comunity for IOS. | Native platform to develop for IOS, so has most comprehensive API, and developer comunity for IOS. | Can use a normal webpage and package it as a mobile app with minimal changes. No need to learn a new API or language. Existing tools like Firebug continue to work. | Can use Javascript to create a App with native widgets. |
.
| Big Disadvantage | No Android | No IOS | Doesnt use native widegts, so apps dont look native. | Use its own API to layout widgets, so existing tools dont work. Api differs considerable for Android and IOS. Builds are very slow for Android. |
.
| Docuemntation | Very Good | Very Good | Fair | Poor |
.
| Api Aware IDE | Xcode | Eclipse and Others | Any IDE for Web development | None |
.
| Speed of Compilation | Fair | Fast | Instant. (If you are working with chrome/Firebug) | Slow |
ကၽြန္ေတာ္ေရးတဲ့ postေတြက စာဖတ္သူအတြက္ အက်ဳိ္းရွိတယ္ဆုိရင္ commentေပးခဲ့ပါ။ လိုအပ္ခ်က္ေလးမ်ားရွိရင္လည္း အႀကံေပးခဲ့ပါ။
0 comments:
Post a Comment