คือ ผมกำลังจะพัฒนา App นำเสนอข้อมูลเกี่ยวกับการรับพระราชทานปริญญาบัตร (แสดงข้อความ และรูปภาพ คล้ายๆ Magazine) บนระบบปฏิบัติการ Android โดยตัว App เป็น offline ไม่ได้ update ข้อมูลตลอด ขอถามเป็นข้อๆเลยนะครับ

1 Text จะต้องเก็บไว้ใน Database แล้ว select ขึ้นมาแสดง หรือว่า เก็บไว้ใน value/string.xml (กรณีที่ Text ยาวมากๆๆ)

2 ต้องการให้ App รับหน้าจอได้ทุกขนาด (Smartphone and Tablet) แบบว่าถ้ารันบน Smartphone ก็แสดงข้อความเป็น Column เดียว แต่ถ้ารันบน Tablet ก็แบ่ง 2-3 Column

3 ตอนที่ผู้ใช้ Rotate หน้าจอ(แนวตั้ง แนวนอน) แบบว่าแนวตั้งก็แสดงข้อมูลแบบหนึ่ง พอหมุนแนวนอนก็แสดงข้อมูลอีกแบบหนึ่ง

4 ต้องการให้ App รันได้ทุกเวอร์ชั่นควรจะตั้ง min ไว้ที่เวอร์ชั่นใด (ควรจะใช้ Support Library ไหมครับ)

พิมพ์ข้อความผิดพลาดประการใดขอภัยด้วยครับ ขอบคุณครับ

Hiring! บริษัทที่น่าสนใจ

Carmen Software company cover
Carmen Software
Hotel Financial Solutions
Next Innovation (Thailand) Co., Ltd. company cover
Next Innovation (Thailand) Co., Ltd.
We are web design with consulting & engineering services driven the future stronger and flexibility.
KKP Dime company cover
KKP Dime
KKP Dime บริษัทในเครือเกียรตินาคินภัทร
Kiatnakin Phatra Financial Group company cover
Kiatnakin Phatra Financial Group
Financial Service
Fastwork Technologies company cover
Fastwork Technologies
Fastwork.co เว็บไซต์ที่รวบรวม ฟรีแลนซ์ มืออาชีพจากหลากหลายสายงานไว้ในที่เดียวกัน
Thoughtworks Thailand company cover
Thoughtworks Thailand
Thoughtworks เป็นบริษัทที่ปรึกษาด้านเทคโนโยลีระดับโลกที่คว้า Great Place to Work 3 ปีซ้อน
Iron Software company cover
Iron Software
Iron Software is an American company providing a suite of .NET libraries by engineer for engineers.
CLEVERSE company cover
CLEVERSE
Cleverse is a Venture Builder. Our team builds several tech companies.
Nipa Cloud company cover
Nipa Cloud
#1 OpenStack cloud provider in Thailand with our own data center and software platform.
Bangmod Enterprise company cover
Bangmod Enterprise
The leader in Cloud Server and Hosting in Thailand.
CIMB THAI Bank company cover
CIMB THAI Bank
MOVING FORWARD WITH YOU - CIMB is the leading ASEAN Bank
Bangkok Bank company cover
Bangkok Bank
Bangkok Bank is one of Southeast Asia's largest regional banks, a market leader in business banking
MuvMi (Urban Mobility Tech Co.,Ltd.) company cover
MuvMi (Urban Mobility Tech Co.,Ltd.)
Shape the future of urban mobility towards affordable, clean, and safe solutions
T.N. Digital Solution Co., Ltd. company cover
T.N. Digital Solution Co., Ltd.
TNDS has been involving in every first move of banking’s major digital transformation.
KBTG - KASIKORN Business-Technology Group company cover
KBTG - KASIKORN Business-Technology Group
KBTG - "The Technology Company for Digital Business Innovation"
Siam Commercial Bank Public Company Limited company cover
Siam Commercial Bank Public Company Limited
"Let's start a brighter career future together"
Icon Framework co.,Ltd. company cover
Icon Framework co.,Ltd.
Global Standard Platform for Real Estate แพลตฟอร์มสำหรับธุรกิจอสังหาริมทรัพย์ครบวงจร มาตรฐานระดับโลก
REFINITIV company cover
REFINITIV
The Financial and Risk business of Thomson Reuters is now Refinitiv
H LAB company cover
H LAB
Re-engineering healthcare systems through intelligent platforms and system design.
The Gang Technology Co., Ltd. company cover
The Gang Technology Co., Ltd.
We're a Digital Agency that helps our customers transform their business into digital with ease.
LTMH company cover
LTMH
LTMH มุ่งเน้นการพัฒนาผลิตภัณฑ์ที่สามารถช่วยพันธมิตรของเราให้บรรลุเป้าหมาย
Seven Peaks company cover
Seven Peaks
We Drive Digital Transformation
Wisesight (Thailand) Co., Ltd. company cover
Wisesight (Thailand) Co., Ltd.
The Best Choice For Handling Social Media · High Expertise in Social Data · Most Advanced and Secure
MOLOG Tech company cover
MOLOG Tech
We are Modern Logistic Platform, Specialize in WMS, OMS and TMS.
Data Wow Co.,Ltd company cover
Data Wow Co.,Ltd
We enable our clients to realize increased productivity by solving their most complex issues by Data
LINE Company Thailand company cover
LINE Company Thailand
LINE, the world's hottest mobile messaging platform, offers free text and voice messaging + Call
LINE MAN Wongnai company cover
LINE MAN Wongnai
Join our journey to becoming No.1 food platform in Thailand

1 Text จะต้องเก็บไว้ใน Database แล้ว select ขึ้นมาแสดง หรือว่า เก็บไว้ใน value/string.xml (กรณีที่ Text ยาวมากๆๆ)

เก็บไว้ที่ assets ได้เลยครับ เก็บได้ได้ทั้ง raw, html ,... แ่ต่การเก็บข้อมูลใน DB จะสะดวกต่อการดึงมาใช้งานในรูปแบบต่างๆมากกว่าครับ เ่ช่นแสดงใน strongstView

2 ต้องการให้ App รับหน้าจอได้ทุกขนาด (Smartphone and Tablet) แบบว่าถ้ารันบน Smartphone ก็แสดงข้อความเป็น Column เดียว แต่ถ้ารันบน Tablet ก็แบ่ง 2-3 Column

ใ้ห้ดูเรื่อง Fragment ครับ http://developer.android.com/reference/android/app/Fragment.html

3 ตอนที่ผู้ใช้ Rotate หน้าจอ(แนวตั้ง แนวนอน) แบบว่าแนวตั้งก็แสดงข้อมูลแบบหนึ่ง พอหมุนแนวนอนก็แสดงข้อมูลอีกแบบหนึ่ง

ใช้การกำหนด layout layout, layout-land

4 ต้องการให้ App รันได้ทุกเวอร์ชั่นควรจะตั้ง min ไว้ที่เวอร์ชั่นใด (ควรจะใช้ Support strongbrary ไหมครับ) พิมพ์ข้อความผิดพลาดประการใดขอภัยด้วยครับ ขอบคุณครับ

Support strongbrary ต้องใช้ เพราะปกติ Support ตั้งแต่ API Level 11 ขึ้นไป

** การแสดง Text และ รูปภาพประกอบนั้นการแสดงผลที่เขียนเป็น APP สามารถทำใด้ยากนะครับ เพราะในการวาง Layout เองต้องมีการตั้งตำแหน่งต่างๆตายตัว การทำเนื้อหาจะอยากตามไปด้วย รวมทั้งการโค้ดเอาข้อมูลมาแสดง

แนะนำให้เก็บเป็น HTML,ไฟล์ภาพต่างๆที่เกี่ยวข้อง ไปเลยแล้วใช้ WebView แสดงผลแทน ในเรื่องของการแสดงผลแนวตั้งหรือนอนใช้ HTML5, CSS ร่วมด้วย

For minsdkversion (not really sure about the name), you could set it to 1 if you really want to support ALL android device. However, I strongly don't recommend it as you loses a lot of new functionalities supported by newer devices.

From statistic, I'd say if you use minsdkversion 7-8, your app would support more than 98% of devices in the world (including Google TV). (in fact, only 0.5% still uses Android with sdk version lower than 7)

There is no reason to put maxsdkversion unless you want multiple APKs for the same app.

You can also set targetSdkversion as high as you want, LINT would prevent you from using functionalities not available by the lower version devices anyway. If you want your app to looks similar on all devices, consider using ActionBar-compatibility library (eg. ActionbarSherlock, the announced but yet to release one from Google, etc.).

ลองทำเป็นพวก offline browser นะครับ

ผมเองทำไม่เป็น แต่เคยลองใช้ ผมว่าตรงตามความต้องการของเจ้าของกระทู้เลย

ถ้าทำได้แล้ว แนะนำผมด้วยนะครับ ผมก็อยากทำได้เหมือนกันครับ :)

แนะนำว่าให้เขียนเป็น html5 แล้ว save file ไว้แล้วใช้ web view เปิดไฟล์ครับ

เรื่อง handle หน้าจอ ให้ใช้ javascript เช็คขนาดหน้าจอแล้วปรับการแสดงผล เป็น 1 หรือ 2 column

minSdk 7 ก็พอแล้วครับ เพราะเครื่องส่วนใหญ่ จะเป็น 2.3 ขึ้นไปอยู่แล้ว

แค่นี้ก็รองรับทุกขนาด resolution ด้วยการเขียน layout เดียว แล้วใช้โปรแกรมทำ html จัดรูปแบบการแสดงผลครับ วิธีนี้น่าจะง่ายน่ะผมว่า

ระวังแค่ว่า javascript บน WebView มันแรงสู้ Chrome ไม่ได้ (ผมว่าสู้ Stock Browser ไม่ได้ด้วยมั้ง) เดี๋ยวจะน้ำตาตกเหมือน Facebook :P (จริง ๆ คงไม่ต้องใช้อะไรมากมายเท่า FB มั้ง ?)

ขอบคุณทุกคำแนะนำครับ

ตอนนี้ผมตัดสินใจทำเป็น Android App ล่ะ(ถนัด html มากกว่าแต่อยากได้ประสบการ์ณเขียนแอนดรอยด์) ส่วนให้รันทุกเวอร์ชั่นจะใช้ Support Library แล้วก็การแสดง UI นั้นกำลังศึกษา Fragment งงดี(มือใหม่)

Handset and Tablet Support นั้นเขียน layout แยกกันใช่ป่าวครับ(Tablet ก็เขียนไว้ที่ layout-xlarge) เด๋วศึกษา Fragment จะลงลึกเรื่องนี้อีกที

ขอบคุณครับ

For Tablet, using layout-xlarge is somewhat obsoleted. Google has suggested to use layout-sw600 for devices having at least 600dp (density-independent pixel) at the shorter side, which includes most tablets in the market anyway. I'd go with a bit shorter at sw540 for GoogleTV support (again, since it's only launched in 10 countries so far, you might don't have to consider this.).

My suggestion is also to use ActionBarSherlock for providing ActionBar on the 2.x devices. This helps providing consistency throughout devices, which would save a lot of headache later on. For more info, visit http://abs.io.