แสดงบทความที่มีป้ายกำกับ Android Application แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ Android Application แสดงบทความทั้งหมด

วันพุธที่ 23 พฤษภาคม พ.ศ. 2555

Publishing on Google Play เผยแพร่ App

-->
Publishing on Google Play
เผยแพร่ผลงาน บน Google Play
One of the most effective ways to get your application into users' hands is to publish it on an application marketplace like Google Play. Publishing on Google Play is a straightforward process that you can do in just a few simple steps—register, configure, upload, and publish. Registration takes only a few minutes and needs to be done only once. The configuration and publishing steps can all be done through the Google Play Android Developer Console after you register as a Google Play developer.

วิธีที่มีประสิทธิภาพในการเข้า Apps ของผู้ใช้ มากที่สุด คือการเผยแพร่บนตลาดแอพลิเคชัน เช่น Google Play การเผยแพร่บน Google Play เป็นกระบวนการที่ง่ายๆ คุณสามารถทำได้ในเวลาเพียงนาน ด้วย ขั้นตอนลงทะเบียนกำหนดค่าอัพโหลดและเผยแพร่ ลงทะเบียนใช้เวลาเพียงไม่กี่นาที และ ทำการลงทะเบียนเพียงครั้งเดียว ขั้นตอนการกำหนดค่าและการเผยแพร่ทั้งหมดสามารถทำได้ผ่านทาง Google Play Android Developer Console หลังจากที่คุณลงทะเบียนเป็นนักพัฒนา Google Play แล้ว

To start publishing on Google Play, first read this topic and then go to the Google Play Android Developer Console and register as a Google Play developer.

การเผยแพร่ผลงาน บน Google Play ควรเริ่มต้นจากการอ่าน the Google Play Android Developer Console และลงทะเบียนเป็นนักพัฒนา














About Google Play
Google Play is a robust publishing platform that helps you publicize, sell, and distribute your Android applications to users around the world. When you release your applications through Google Play you have access to a suite of developer tools that let you analyze your sales, identify market trends, and control who your applications are being distributed to. You also have access to several revenue-enhancing features, such as in-app billing and application licensing.

Google Play เป็นการเผยแพร่ผลงานที่ยอดเยี่ยม จะช่วยให้คุณประชาสัมพันธ์ขายและแจกจ่ายโปรแกรม Android ของคุณไปยังผู้ใช้ทั่วโลก เมื่อคุณใช้งานของคุณผ่านทาง Google Play คุณสามารถเข้าถึงชุดเครื่องมือพัฒนาที่ช่วยให้คุณวิเคราะห์การขายของคุณระบุแนวโน้มของตลาดและควบคุมผู้ที่ใช้งาน นอกจากนี้คุณยังสามารถเข้าถึงคุณลักษณะหลายรายได้เพิ่มเช่นการเรียกเก็บเงินใน app  (in-app billing) และการออกใบอนุญาตการประยุกต์ใช้ application licensing

Before you can publish applications on Google Play, you need to register as a Google Play developer. During the registration process you will need to create a developer profile, pay a registration fee, and agree to the Google Play Developer Distribution Agreement. After you register you can access the Developer Console, where you can upload applications, configure publishing options, and monitor publishing data. If you want to sell your applications or use the in-app billing feature, you will also need to set up a Google Checkout merchant account. For more information about the registration process, see Developer Registration.

ก่อนที่คุณจะสามารถเผยแพร่ผลงานบน Google Play คุณจำเป็นต้องลงทะเบียนเป็นนักพัฒนา Google Play ในระหว่างขั้นตอนการลงทะเบียนคุณจะต้องสร้างรายละเอียดนักพัฒนาต้องจ่ายค่าลงทะเบียนและตกลง ข้อตกลงการจัดจำหน่ายของ Google Google Play Developer Distribution Agreement
หลังจากที่คุณลงทะเบียนคุณสามารถเข้าถึงคอนโซลนักพัฒนาซึ่งคุณสามารถอัปโหลดการใช้งานกำหนดค่าตัวเลือกการเผยแพร่และตรวจสอบข้อมูลการเผยแพร่ ถ้าคุณต้องการที่จะขายโปรแกรมของคุณหรือใช้ใน app คุณลักษณะการเรียกเก็บเงิน คุณจะต้องตั้งค่าบัญชีผู้ใช้ Google Checkout ผู้ประกอบการค้า
สำหรับข้อมูลเพิ่มเติมเกี่ยวกับขั้นตอนการลงทะเบียนให้ดูที่การลงทะเบียนนักพัฒนา Developer Registration

Publishing Apps on Google Play


Publishing your application on Google Play is a simple process that involves three basic tasks (see figure 1):
  • Creating various graphical assets that accompany your app on Google Play.
  • Using the Google Play Developer Console to configure publishing options, specify listing details, and upload your app and graphical assets to Google Play.
  • Reviewing your publishing settings and changing the release status of your app from Unpublished to Published.

การเผยแพร่แอปพลิเคชันของคุณบน Google Play มี 3 ขั้นตอน (ดูรูปที่ 1):
  • สร้างข้อมูลภาพกราฟฟิค แสดงผลงานของคุณ
  • ใช้ Developer Console เพื่อกำหนดค่าตัวเลือก ชื่อ รายละเอียดและอัปโหลด app และข้อมูลภาพกราฟฟิคไปยัง Google Play
  • ตรวจทานการตั้งค่าต่างๆของคุณและเปลี่ยนสถานะ ให้เป็นการเผยแพร่ของ App ของคุณ ( จากที่สถานะ ยังไม่ได้เผยแพร่ )

Important: You must prepare your application for release before you can publish it on Google Play. When you prepare your application for release you configure it for release and build it in release mode. Building in release mode signs your application's .apk file with your private release key. You cannot publish an application on Google Play unless it is signed with your own private release key.

ข้อสำคัญ: คุณต้องเตรียมข้อมูลการเผยแพร่ ก่อนที่คุณจะเผยแพร่บน Google Play เมื่อคุณเตรียมการเผยแพร่ และกำหนดค่า ในโหมดการเผยแพร่ release mode  การทำงานโหมดนี้จะเริ่มเผยแพร่ App ของคุณในไฟล์ APK พร้อมกับ คีย์ private release key ซึ่งคุณต้องทำการสร้างคีย์นี้เรียบร้อยแล้ว

Preparing promotional materials
To fully leverage the marketing and publicity capabilities of Google Play, you need to create several graphical assets that accompany your app on Google Play, such as screenshots, videos, promotional graphics, and promotional text. At a minimum you must provide two screenshots of your application and a high resolution application icon. The screenshots are displayed on the details page for your application on Google Play, and the high resolution application icon is displayed in various locations throughout Google Play. The high resolution icon does not replace the launcher icon for your application, rather, it serves as a supplemental icon and should look the same as your launcher icon. Promotional video, graphics, and text are optional, although we strongly recommended that you prepare these for your app. For more information about the graphic assets that accompany your application, see Graphic Assets for your Application.

เพื่อยกระดับความสามารถด้านการตลาดและการประชาสัมพันธ์ของ Google Play, คุณจำเป็นต้องสร้างภาพกราฟิกแสดงผลงาน มาพร้อมกับ app ของคุณบน Google Play เช่นภาพหน้าจอ, วิดีโอ, กราฟิกส่งเสริมการขายและข้อความส่งเสริมการขาย อย่างน้อยที่สุด สัก 2 ภาพหน้าจอ และ ภาพไอคอนที่มีความละเอียดสูง  หน้าจอจะปรากฏบนหน้ารายละเอียด App ของคุณบน Google Play และมีไอคอนแสดงอยู่   ไอคอนความละเอียดสูงจะไม่ได้ไปเปลี่ยนไอคอนใน App ของคุณ  แต่เพื่อทำหน้าที่เป็นไอคอนเสริมและควรมีลักษณะเช่นเดียวกับไอคอนใน App ของคุณ  วิดีโอโปรโมชั่นกราฟิกและข้อความที่เป็นตัวเลือกเพิ่มเติมในการโปรโมท เราจึงขอแนะนำให้คุณเตรียมความพร้อมเหล่านี้สำหรับ app ของคุณ
สำหรับข้อมูลเพิ่มเติม Graphic Assets for your Application

-->

Configuring options and uploading assets


Google Play lets you target your application to a worldwide pool of users and devices. To reach these users you can use the Developer Console to configure various publishing options and listing details for your app. For example, you can choose the countries you want to reach, the listing languages you want to use, and the price you want to charge in each country. You can also configure listing details such as the application type, category, and content rating. In addition, if you want to sell items within your app using the in-app billing feature, you can use the Developer Console to create a product list and control which items are available for purchase in your app.

When you are finished setting publishing options and listing details, you can upload your assets and your application to Google Play. You can also upload your application as a draft (unpublished) application, which lets you do final testing before you publish it for final release.

To learn more about Google Play publishing settings, see the following resources:


การกำหนดค่าตัวเลือกในการอัปโหลด

Google Play ช่วยให้ App ของคุณไปยังเป้าหมายได้ทั่วโลก  ในการใช้เหล่านี้คุณสามารถใช้คอนโซลการพัฒนา ( Developer Console ) ในการกำหนดค่าตัวเลือกต่าง ๆ และรายละเอียดในรายการใน App ของคุณ ตัวอย่างเช่นคุณสามารถเลือกประเทศเป้าหมายที่คุณต้องการ ภาษาที่คุณต้องการใช้ และราคาขายแต่ละประเทศได้ นอกจากนี้คุณยังสามารถกำหนดชนิดของแอพลิเคชันประเภทและระดับของเนื้อหา ส่วนเพิ่มเติมถ้าคุณต้องการที่จะขายสินค้าภายใน App ของคุณโดยใช้ใน App คุณลักษณะการเรียกเก็บเงินที่คุณสามารถใช้คอนโซลการพัฒนาเพื่อสร้างรายการสินค้าและการควบคุมซึ่งรายการที่มีการซื้อใน App ของคุณได้ด้วย

หากต้องการเรียนรู้เพิ่มเติมเกี่ยวกับ การเผยแพร่แอปใน Google Play ให้ดูแหล่งข้อมูลต่อไปนี้:

  • Upload Applications สรุปของการตั้งค่าต่างๆที่คุณสามารถกำหนดค่าสำหรับ App
  • Selling Your Apps ให้คำแนะนำเกี่ยวกับการกำหนดราคาเป็นสกุลเงินที่สนับสนุน อัตราภาษีและเรื่องอื่น ๆ ที่เกี่ยวข้องกับการขายแอปพลิเคชัน

  • Selling Apps in Multiple Currencies ให้รายละเอียดของวิธีการกำหนดราคาอัตราจ่ายเงินและอัตราการแลกเปลี่ยน


Publishing your application

When you are satisfied that your publishing settings are correctly configured and your uploaded application is ready to be released to the public, you can simply click Publish in the Developer Console to make your app available for download around the world. Keep in mind, it can take several hours for your app to appear on Google Play after you click Publish in the Developer Console.

เผยแพร่แอปลิเคชั่นของคุณ
เมื่อคุณตั้งค่าต่างๆได้อย่างถูกต้องแล้ว
App ของคุณที่อัปโหลดแล้ว ก็พร้อมที่จะถูกเผยแพร่ออกไปสู่ผู้ใช้ ให้โดยคลิกที่เผยแพร่ ( Publish ) ใน Developer Console จะทำให้ App ของคุณพร้อมใช้ผ็ใช้สามารถดาวน์โหลดได้ทั่วโลก อาจจะใช้เวลาหลายชั่วโมงสำหรับ App ของคุณจะปรากฏบน Google Play หลังจากที่คุณคลิกเผยแพร่ ไปแล้ว


Android example code ตัวอย่าง  Android Code

Android Control ควบคุมอุปกรณ์ต่างๆ ด้วย Android

สอนเขียน Android  สอนเขียนโปรแกรม Android



วันจันทร์ที่ 21 พฤษภาคม พ.ศ. 2555

Android Development เขียนโปรแกรมบนแอนดรอย



-->


Android Development เขียนโปรแกรมบนแอนดรอย ( ภาษาไทย ด้านล่าง )

Android applications are written in the Java programming language. The Android SDK tools compile the code—along with any data and resource files—into an Android package, an archive file with an .apk suffix. All the code in a single .apk file is considered to be one application and is the file that Android-powered devices use to install the application.
Once installed on a device, each Android application lives in its own security sandbox:
  • The Android operating system is a multi-user Linux system in which each application is a different user.
  • By default, the system assigns each application a unique Linux user ID (the ID is used only by the system and is unknown to the application). The system sets permissions for all the files in an application so that only the user ID assigned to that application can access them.
  • Each process has its own virtual machine (VM), so an application's code runs in isolation from other applications.
  • By default, every application runs in its own Linux process. Android starts the process when any of the application's components need to be executed, then shuts down the process when it's no longer needed or when the system must recover memory for other applications.
In this way, the Android system implements the principle of least privilege. That is, each application, by default, has access only to the components that it requires to do its work and no more. This creates a very secure environment in which an application cannot access parts of the system for which it is not given permission.
However, there are ways for an application to share data with other applications and for an application to access system services:
  • It's possible to arrange for two applications to share the same Linux user ID, in which case they are able to access each other's files. To conserve system resources, applications with the same user ID can also arrange to run in the same Linux process and share the same VM (the applications must also be signed with the same certificate).
  • An application can request permission to access device data such as the user's contacts, SMS messages, the mountable storage (SD card), camera, Bluetooth, and more. All application permissions must be granted by the user at install time.
That covers the basics regarding how an Android application exists within the system. The rest of this document introduces you to:
  • The core framework components that define your application.
  • The manifest file in which you declare components and required device features for your application.
  • Resources that are separate from the application code and allow your application to gracefully optimize its behavior for a variety of device configurations. 



 In Thai Language ภาษาไทย



โปรแกรม Android เขียนโดยภาษา Java โดยใช้เครื่องมือที่เรียกว่า Android SDK ทำการรวมโค้ดพร้อมกับข้อมูลต่างๆ และไฟล์ข้อมูล ลงเป็นแพคเกจ  ที่เป็นไฟล์นามสกุล APK ไฟล์ .APK จะเป็นตัวแอพลิเคชัน ใช้ในการติดตั้งโปรแกรม
เมื่อติดตั้งโปรแกรม Android ด้วย .APK จะมีระบบรักษาความปลอดภัย แบบ sandbox ของตัวเอง

  • ระบบปฏิบัติการ Android เป็นระบบ Linux แบบ multi-user ซึ่งในแต่ละโปรแกรมสามารถมีผู้ใช้ที่แตกต่างกันได้
  • โดยค่าเริ่มต้นจากระบบ จะกำหนดแอพลิเคชันที่ไม่ซ้ำกันในแต่ละรหัสผู้ใช้ลินุกซ์ (ID ถูกใช้โดยระบบและ ถูกใช้งานโดยโปรแกรม Application) ระบบกำหนดสิทธิ์สำหรับไฟล์ทั้งหมดในแต่ละ โปรแกรม Application เพื่อให้เฉพาะผู้ใช้ ID ที่กำหนดเท่านั้น ที่สามารถเข้าใช้โปรแกรมได้
  •  แต่ละการทำงาน ( Process )ก็จะมีแต่ละ Virtual Machine (VM) ของตัวเอง ดังนั้นรหัสของโปรแกรมที่ทำงานในการแยกจากโปรแกรมอื่น ๆ

โดยค่าเริ่มต้นทุกโปรแกรมทำงาน จะทำงานในระบบลินุกซ์ของตัวเอง โปรแกรม Android เริ่มเปิดกระทำงานใช้งานหน่วยความจำ และ จะปิดทำงานโปรแกรมไม่ได้ถูกใช้ หรือเมื่อระบบต้องการหน่วยความจำสำหรับโปรแกรมอื่น ๆ

ด้วยวิธีนี้ระบบ Android จะมีการใช้กระบวนการที่น้อย คือแต่ละโปรแกรมตามค่าเริ่มต้น จะมีการเข้าถึงโดยเฉพาะ ส่วน ( Component )ที่จะต้องใช้ในการทำงาน และไม่มีการต้องสร้างระบบความปลอดภัยเพิ่มเติม เพราะไม่สามารถเข้าถึงบางส่วนของระบบที่ยังไม่ได้รับอนุญาต ( permission )

แต่ก็มีวิธีที่จะใช้ข้อมูลร่วมกับโปรแกรมอื่น ๆ ได้ และสำหรับ โปรแกรม Application ที่ต้องการใช้งานข้อมูลระบบบริการ ( System Services ) มีดังนี้:

  •  สามารถที่จะจัดให้มีการใช้งาน 2 โปรแกรม Application ที่ใช้ Linux User ID เดียวกัน กรณีที่ ต่างฝ่ายก็สามารถเข้าถึงไฟล์ของแต่กันและกันได้  เพื่อเป็นการประหยัดทรัพยากรในระบบโปรแกรมApplication ที่มีผู้ใช้ ID เดียวกันยังสามารถจัดให้ทำงานในกระบวนการลินุกซ์เดียวกันและแบ่งปัน virtual machine VM เดียวกัน (การใช้งานจะต้องใช้ด้วยใบรับรองเดียวกัน)
  • แอพลิเคชันสามารถขออนุญาตในการเข้าถึงข้อมูลของอุปกรณ์ต่างๆ ได้ เช่น รายชื่อของผู้ใช้, ข้อความ SMS, การจัดเก็บข้อมูล (SD card), กล้อง, Bluetooth และอื่น ๆ สิทธิ์การใช้ทั้งหมดต้องได้รับ โดยผู้ใช้ยินยอม ในตอนติดตั้งโปรแกรม
Android example code ตัวอย่าง  Android Code
http://androidcodeexample.blogspot.com/

Android Control ควบคุมอุปกรณ์ต่างๆ ด้วย Android
http://androidcontrol.blogspot.com





สอนเขียน Android  สอนเขียนโปรแกรม Android
http://androidcontrol.blogspot.com/2012/01/beginning-android-training-android.html