ကၽြန္ေတာ္ႏွင့္ Android Developer အိပ္မက္



ကၽြန္ေတာ္ဟာ အနည္းငယ္ လူသိစ ၿပဳလာတဲ့ developer တစ္ေယာက္ ၿဖစ္လာတဲ့အခါ အမ်ားစု ကၽြန္ေတာ့ကို ေမးၾကတာက Android App ေရးတတ္ဖို႔ ဘယ္လို ေလ့လာရမလဲ ဆိုတဲ့ ေမးခြန္း ၿဖစ္ပါတယ္။ ဒီေမးခြန္းကို ေမးတဲ့ထဲမွာ ရင္းႏွီးတဲ့လူေတြ ပါသလို၊ လုံးဝမရင္းႏွီးတဲ့လူေတြလည္း ပါ,ပါတယ္။ အဲလိုေမးခံရတိုင္း ကၽြန္ေတာ့္မွာ အေၿဖမရွိ ၿဖစ္တတ္ပါတယ္။ ဘာလို႔ အေၿဖမရွိရတာလဲ။ ကၽြန္ေတာ္က ေရေရရာရာ မေၿဖႏိုင္လို႔လား၊ လ်ဳိခ်င္လို႔ မေၿပာတာလား။ ဒီစာဟာ အဲ့အတြက္ အေၿဖ ၿဖစ္ေကာင္း ၿဖစ္ပါလိမ့္မယ္။

ကၽြန္ေတာ္၏ ပထမဆုံး android ဖုန္းကို 17-8-2012တြင္ စတင္ ပိုင္ဆိုင္ခဲ့တယ္။ မွတ္မွတ္ရရမို႔လည္း မွတ္မိေနတာပါ။ Huawei U8825ေလးပါ။ ဖုန္းဝယ္ၿပီး မၾကာပါဘူး၊ ဖုန္းလမ္းမွာ ျပဳတ္ၾကခဲ့တာ ကံေကာင္းလို႔ ၿပန္ရပါတယ္။ ဒါေပမဲ့ ဖုန္းက ကိုယ့္လက္ထဲ ၿပန္ေရာက္ေတာ့ ဖြင့္လိုက္ရင္ logoမွာတင္ တစ္ေနပါတယ္။ ဆိုင္သြားျပေတာ့ ဆိုင္က firmwareေရးရမယ္ ေၿပာပါတယ္။ programmingမေတာက္တေခါက္ သင္ဖူးတဲ့ ITေက်ာင္းဆင္း ကၽြန္ေတာ္ဟာ ဆိုင္က serviceသမားကို ေတာ္ေတာ္ အထင္ႀကီးသြားတယ္။ ဖုန္းအတြက္ softwareကို သူတို႔က ေရးတတ္တယ္ဆိုၿပီး။

ေနာက္ မၾကာပါဘူး။ ဖုန္းအင္တာနက္ ေလ်ွာက္ၿဖစ္သြားတယ္။ သူမ်ားေပးတဲ့ appေလးနဲ႔ ဖုန္းကို ဟိုလို တန္ဆာဆင္၊ ဒီလိုတန္ဆာဆင္နဲ႔ ကလိေနတာပဲ။ အဲ့ခ်ိန္မွာ ငတက္ၿပား ဆိုတဲ့ ၿမန္မာဂိမ္းေလး ထြက္လာတယ္။ အဲ့ဒါေလး download ဆြဲၿပီး ဟားးးးးး တအား ဂုဏ္ယူတာေပါ့။ ကိုယ့္ျမန္မာေတြ ေရးတဲ့ဂိမ္းဆိုၿပီး။ အိမ္ကလူေတြက ေဆာ့ၾကည့္ၿပီး “ဟင္း..ဂိမ္းကလည္း ေႏွးတာ၊ graphicကလည္း ၾကမ္းတာ”နဲ႔။ ဒီလို ေျပာရမလားဆိုျပီး ကိုယ္က စိတ္ထဲက ႀကိတ္ေဒါသထြက္တာေပါ့။ သူတို႔ေတာင္ ေရးတတ္လို႔လားဆိုၿပီး။ Aboutထဲမွာ Programmerက ဘယ္သူ၊ designerက ဘယ္သူဆိုေတာ့ အင္း တစ္ေန႔က်ရင္ ငါလည္း ဒီလို ဂိမ္းမ်ဳိးေလး ေရးႏိုင္တဲ့သူ ၿဖစ္ရင္ ေကာင္းမွာဆိုၿပီး programmer နာမည္ေနရာမွာ ကိုယ့္နာမည္ေလး ထည့္ၿပီး စိတ္ကူးယဥ္ၾကည့္တာပဲ။



ကၽြန္ေတာ္ေရးတဲ့ postေတြက စာဖတ္သူအတြက္ အက်ဳိ္းရွိတယ္ဆုိရင္ commentေပးခဲ့ပါ။ လိုအပ္ခ်က္ေလးမ်ားရွိရင္လည္း အႀကံေပးခဲ့ပါ။


မိမိ websiteအား browserနဲ႔ မဖြင့္ပဲ andorid apkလုပ္မယ္



Android App Project အသစ္ create လုပ္လိုက္ပါ။ ဘယ္လို လုပ္ရမယ္မွန္း မသိရင္ ဒီ  link မွာ ၾကည့္ပါ။

AndroidManifest.xml ဖြင့္ၿပီး  ေအာက္က code ကူးထည့္လိ္ုက္ပါ။ ေအာက္က codeက မိမိ appမွာ internet သုံးခြင့္ၿပဳဖို႔ ခြင့္ၿပဳခ်က္ေတာင္းတဲ့ code ၿဖစ္ပါတယ္။

<uses-permission android:name="android.permission.INTERNET" />


ကၽြန္ေတာ္ေရးတဲ့ postေတြက စာဖတ္သူအတြက္ အက်ဳိ္းရွိတယ္ဆုိရင္ commentေပးခဲ့ပါ။ လိုအပ္ခ်က္ေလးမ်ားရွိရင္လည္း အႀကံေပးခဲ့ပါ။


Hobbit 2: The desolation of Smaug ၾကည့္ၿပီးေနာက္





Hobbit 2 ကို ေကာင္းတယ္ေၿပာလို႔ သြားၾကည့္ၿဖစ္တယ္။ Hobbit 1ကို အိမ္မွာ တခါၾကည့္ဖူးၿပီး ဇာတ္လမ္းက ေမ့ေတ့ေတ့ ၿဖစ္ေနၿပီ။ ထြက္ထြက္ခ်င္းၾကည့္မေတာ့ ခုိးကူးနဲ႔ညားၿပီး မႈန္ဝါးဝါး၊ အသံက မပီမသ၊ စာတန္းထိုးက မမွန္နဲ႔ နားမလည္လုိက္ဘူး။ ေနာက္လည္း အၾကည္ထြက္ေတာ့ ဝယ္မၾကည့္ၿဖစ္ေတာ့ပါဘူး။ ၾကာၿပီဆိုမွ ခု နံပါတ္တူးထြက္ေတာ့ လူေၿပာသူေၿပာမ်ားတာနဲ႔ Diamondမွာ 3D သြားၾကည့္ၿဖစ္တယ္။

ဇာတ္လမ္းအဖြင့္ကို Gandalf နဲ႔ လူပုေခါင္းေဆာင္ Thorin Oakensheild တို႔ ခရီးအတြက္တိုင္ပင္တာကို ေနာက္ေၾကာင္းၿပတာနဲ႔ စဖြင့္တယ္။ ၿပီးေတာ့ sceneကို လက္ရွိအေၿခအေနၿဖစ္တဲ့ ေနာက္က Orcsေတြလိုက္လို႔ ထြက္ေၿပးတာကို ၿပတယ္။ Orcsေတြရန္က လြတ္ေအာင္ေၿပးရင္း Beorn (Skin Changer)နဲ႔ ေတြ႕ၿပီး Mirkwoodကို ၿဖတ္ဖို႔ ၿမင္းပုေလးေတြ အကူအညီရတယ္။ Mirkwoodမွာ Spidersေတြ တိုက္ခိုက္တာၿပတယ္။ 3Dၿဖစ္ၿပီး ၾကည့္ေနတဲ့အတန္းက screenနဲ႔ နည္းနည္းနီးတဲ့အတြက္ Spider ဘြားကနဲ Bilboေနာက္က ေပၚလာတဲ့အခန္းမွာ လူက လန္႔ၿပီး ခုံေပၚက ေလ်ာက်တယ္။ Spiderရန္က လြတ္သြားေပမဲ့ Wood Elfsေတြရဲ႕ အဖမ္းခံရတယ္။ Wood Elf ဘုရင္ Thranduilက အထင္လြဲၿပီး ဖမ္းထားတယ္။ (Elfs မ်ားႏွင့္ Dwarvesေတြၾကားမွာ Dwarvesတို႔ရဲ႕ တိုင္းၿပည္ Moria ပ်က္စီးမႈေၾကာင့္ မ်ဳိးႏြယ္ခ်င္း မတည့္ေနတာ ၿဖစ္တယ္။ ေရႊေတြလိုခ်င္တာလည္း တပိုင္းေပါ့ေလ။) ေနာက္ Bilboရဲ႕ အကူအညီနဲ႔ လြတ္ေၿမာက္သြားၿပီး Lake Townေရာက္သြားတာ ၿပတယ္။ Lake Town မွာ Thorin Oakenshieldကို ေတြ႕တဲ့အခါ လူတို႔က တခ်ိန္က နိမိတ္ဖတ္တဲ့အတိုင္း ၿဖစ္လာေတာ့မယ္ဆိုၿပီး ေပ်ာ္ရႊင္ၾကတယ္။ နိမိတ္အရ Thror, King Under the Mountain ရဲ႕ မ်ဳိးဆက္ၿပန္လာတဲ့အခါ ၿမစ္တစ္ခုလုံး ေရႊေတြ ေခ်ာင္းစီးေနမယ္ဆိုေတာ့ ေပ်ာ္ၾကတာေပါ့။ လူေတြ အကူအညီေပးတဲ့အတြက္ နဂါးရွိရာ ေတာင္ေအာက္က လိုဏ္ဂူဆီေရာက္၊ နဂါးႀကီးက သူတို႕လာတာသိၿပီး ဖိုက္တင္း ပေလးၿပီး ေနာက္ Lake Townက လူေတြ ဒီလူပုေတြကို ကူညီရမလားဆိုၿပီး ဖ်က္ဆီးဖို႔ထြက္သြား၊ ဇာတ္လမ္းလည္း တပိုင္းတစနဲ႔ ရပ္သြားေရာ။ အဲမွာ ကၽြန္ေတာ္က ဘာဆက္ ၿဖစ္မလဲ သိခ်င္တာေပါ့ေနာ။ ဒါနဲ႔ စာအုပ္ ဖတ္ၿဖစ္သြားတယ္ ဆိုပါစို႔။


ကၽြန္ေတာ္ေရးတဲ့ postေတြက စာဖတ္သူအတြက္ အက်ဳိ္းရွိတယ္ဆုိရင္ commentေပးခဲ့ပါ။ လိုအပ္ခ်က္ေလးမ်ားရွိရင္လည္း အႀကံေပးခဲ့ပါ။


Flat UI for mobile and web developer

Flat UI on iPhone 5c
ဒီတခါေတာ့ ကၽြန္ေတာ္က linkေလးတစ္ခု ညႊန္းေပးခ်င္ပါတယ္။ ခုေနာက္ပိုင္း design trendေတြမွာ Flat UIေတြ ေခတ္စားလာတာေတြ႕ရတယ္။ ကိုယ္ မဆြဲတတ္လို႔ စိတ္ပ်က္စရာမလိုပါဘူး။ အလကားေပးတဲ့ designေတြ အမ်ားႀကီးရွိၿပီး ကိုယ့္ app သို႔ website မွာထည့္သုံးလို႔ ရပါတယ္။
ကၽြန္ေတာ္ကိုယ္တိုင္ ခုေရးေနတဲ့ application မွာ Flat UI သုံးဖို႔ ရည္ရြယ္ထားတဲ့အတြက္ ရွာေဖြေတြ႕သမွ်ကို မိတ္ေဆြတို႔ကို ၿပန္မွ်လိုက္ပါတယ္။ ေအာက္က linkမွာ နမူနာ PSD ္ငfile ေတြ ၾကည့္ၿပီး download လုပ္လုိ႔ ရပါတယ္။



ကၽြန္ေတာ္ေရးတဲ့ postေတြက စာဖတ္သူအတြက္ အက်ဳိ္းရွိတယ္ဆုိရင္ commentေပးခဲ့ပါ။ လိုအပ္ခ်က္ေလးမ်ားရွိရင္လည္း အႀကံေပးခဲ့ပါ။


Android Appမွာ ဓာတ္ပုံေတြကို ဘယ္လိုSlideShowၿပမလဲ

ဒီေန႔ေတာ့ HelloWorld programေရးတတ္ၿပီဆိုေတာ့ appထဲမွာ ဓာတ္ပုံေလးေတြ slide showလုပ္တဲ့ပုံအေၾကာင္း ေၿပာၿပမယ္။ လြယ္လြယ္ေလးပါ။ ထုံးစံအတိုင္း projectအသစ္ေဆာက္လိုက္ရေအာင္။
ကၽြန္ေတာ္ကေတာ့ ImageSlideShowDemoဆိုၿပီး Project ေဆာက္လိုက္ၿပီ။ Step-1ၿပီး nextေတြ ႏွိပ္ဗ်ာ။



ကၽြန္ေတာ္ေရးတဲ့ postေတြက စာဖတ္သူအတြက္ အက်ဳိ္းရွိတယ္ဆုိရင္ commentေပးခဲ့ပါ။ လိုအပ္ခ်က္ေလးမ်ားရွိရင္လည္း အႀကံေပးခဲ့ပါ။


Mobile Frameworkမ်ားအား ႏႈိင္းယွဥ္ၿခင္း

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ေတြရဲ႕ အားသာခ်က္ အားနည္းခ်က္ကို ယွဥ္ၿပထားတာေတြ႕လို႔ မလာတယ္။


ကၽြန္ေတာ္ေရးတဲ့ postေတြက စာဖတ္သူအတြက္ အက်ဳိ္းရွိတယ္ဆုိရင္ commentေပးခဲ့ပါ။ လိုအပ္ခ်က္ေလးမ်ားရွိရင္လည္း အႀကံေပးခဲ့ပါ။


Web UI tool for Mobile Apps

Today when learning to develop Android Apps with PhoneGap, I want a very nice static web page design. But clearly web design is not my thing. So I found a very nice framework for developing mobile Web UI. That is JQuery Mobile.

They described JQuery Mbile as "A unified, HTML5-based user interface system for all popular mobile device platforms, built on the rock-solid jQuery and jQuery UI foundation. Its lightweight code is built with progressive enhancement, and has a flexible, easily themeable design."

So, just open the version and save in your computer. Then, you can use these in HTML web page. You can learn from demos from JQuery Mobile Site.

http://jquerymobile.com/

ကၽြန္ေတာ္ေရးတဲ့ postေတြက စာဖတ္သူအတြက္ အက်ဳိ္းရွိတယ္ဆုိရင္ commentေပးခဲ့ပါ။ လိုအပ္ခ်က္ေလးမ်ားရွိရင္လည္း အႀကံေပးခဲ့ပါ။


PhoneGap Framework

Recently, I am studying writing Android Apps with PhoneGap which is a framework that allows developers to create Mobile apps using HTML, CSS and JavaScripts. So, it could be more easy for web developers who want to create android apps.

You can simply install phone gap from www.phonegap.com using command line as described or just download the framework. But before you install phone gap, you need to install node.js in your computer. But don't worry, it's also described in phone gap official site.

This can be a good start for those who are unfamiliar with PhoneGap. Here is the Step by Step Tutorial. It is really useful for me. I hope so to you.

http://cleancodedevelopment-qualityseal.blogspot.com/2012/12/first-phonegap-app-with-android-using.html

ကၽြန္ေတာ္ေရးတဲ့ postေတြက စာဖတ္သူအတြက္ အက်ဳိ္းရွိတယ္ဆုိရင္ commentေပးခဲ့ပါ။ လိုအပ္ခ်က္ေလးမ်ားရွိရင္လည္း အႀကံေပးခဲ့ပါ။


Internetအသုံးၿပဳခဲ့မႈအား မွတ္တမ္းတင္ေပးၿပီး ပိုက္ဆံပါတြက္ေပးမည့္ Internet Watch Pro

Internetအသုံးၿပဳခဲ့မႈအား မွတ္တမ္းတင္ေပးမည့္ Internet Watchအား official versionအား ထုတ္လုပ္လိုက္ပါတယ္။ ဒီversionမွာ အသုံးၿပဳခဲ့သည့္ ေန႔စြဲ၊ စတင္သုံးစြဲခ်ိန္၊ အခ်ိန္မည္မွ် သုံးစြဲခဲ့ေၾကာင္း မွတ္တမ္းတင္ထားသလို တစ္ေန႔စာ သုံးခဲ့တဲ့ႀကာခ်ိန္ႏွင့္ စုစုေပါင္း ႀကာခ်ိန္တို႔ကို ေဖာ္ၿပေပးတဲ့အၿပင္ ပိုက္ဆံပါ တြက္ေပးမွာပါ။ Android version 2.2 အထက္ သုံးလို႔ရပါတယ္။




ကၽြန္ေတာ္ေရးတဲ့ postေတြက စာဖတ္သူအတြက္ အက်ဳိ္းရွိတယ္ဆုိရင္ commentေပးခဲ့ပါ။ လိုအပ္ခ်က္ေလးမ်ားရွိရင္လည္း အႀကံေပးခဲ့ပါ။


Percy Jackson and the Lightening Thief

ကၽြန္ေတာ္က စာေရးဆရာ တစ္ေယာက္သိပ္ၿဖစ္ခ်င္ခဲ့ပါတယ္။ စိတ္ကူးယွဥ္ၿပီး ကဗ်ာ၊ ဝတၱဳတိုေတြလည္း ေရးခဲ့ပါတယ္။ စာဂ်ပိုးတစ္ေယာက္လိုပဲ စာအုပ္မ်ိဳးစုံလည္း ဖတ္ရႈေလ့လာခဲ့ပါတယ္။ ဒါေပမဲ့ ႀကိဳးစားအားထုတ္မႈ နည္းလို႔လား မသိဘူး ၿဖစ္ၿဖစ္ေၿမာက္ေၿမာက္ မရွိပါဘူး။ ကိုယ္ပိုင္စိတ္ကူးမေကာင္းတဲ့အတြက္ စာေရးဆရာတစ္ေယာက္ၿဖစ္ဖို႔ အိပ္မက္ကို စြန္႔လႊတ္ခဲ့ပါတယ္။ ဒါေပမဲ့ ကၽြန္ေတာ္ရဲ႕စာကို စြဲစြဲၿမဲၿမဲဖတ္တဲ့အက်င့္ကေတာ့ မေပ်ာက္ခဲ့ပါဘူး။ တခါတေလက်လည္း ဆရာမဂ်ဳးလို ရသဝတၱဳေတြ ဖန္တီးႏုိင္တဲ့ စိတ္ကူးစိတ္သန္းမ်ဳိးမရွိရင္ေတာင္ ဆရာၿမသန္းတင့္တို၊ ေမာင္ၿမင့္ႀကြယ္တို႔လို ဘာသာၿပန္ စာေရးဆရာ လုပ္မယ္ဆုိၿပီး စိတ္ကူးမိၿပန္တယ္။ ကၽြန္ေတာ္ရဲ႕ပါရမီနည္းလို႔လား မသိပါဘူး။ ကၽြန္ေတာ့္အေဖက အဂၤလိပ္စပီကင္ဆရာ ၿဖစ္ေပမဲ့ ကၽြန္ေတာ္က အဂၤလိပ္စာ ညံ့တယ္။ ပင္ကိုယ္က စကားေၿပာေလးတဲ့အတြက္ ၿမန္မာစကားေတာင္ေႏွးတာ အဂၤလိပ္လိုေၿပာမယ္ဆုိရင္ေတာ့ စာဖတ္သူပဲ စဥ္းစားၾကည့္ပါေတာ့။


ကၽြန္ေတာ္ေရးတဲ့ postေတြက စာဖတ္သူအတြက္ အက်ဳိ္းရွိတယ္ဆုိရင္ commentေပးခဲ့ပါ။ လိုအပ္ခ်က္ေလးမ်ားရွိရင္လည္း အႀကံေပးခဲ့ပါ။


 

Myanmar Android Programming Tutorials@ 2013 | designed by Star Tek