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

วันอังคารที่ 22 พฤษภาคม พ.ศ. 2555

Google Play




Introducing Google Play 

For more than a year we’ve been focused on expanding the reach, content, and monetization opportunities of Android Market. We started by extending the store to users on the web and then went on to add books, movies, and music. The number of people who have visited, registered, and downloaded from the store has been amazing. 


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

Today we’re launching Google Play, an integrated destination for apps, books, movies, and music, accessible to users on Android devices and to anyone on the Web. As part of this launch, Google Play replaces and extends Android Market — users everywhere can now find their favorite apps and games in Google Play, with other digital content, all in one place.


วันนี้เรากำลังเปิดตัว Google Play ที่เป็นศูนย์รวม แอปพลิเคชัน, หนังสือ, ภาพยนตร์และเพลงที่สามารถเข้าถึงไปยังผู้ใช้บนอุปกรณ์ Android และเว็บ ในการเปิดตัวนี้ Google Play จะมาแทนที่ของ Android Market – ซึ่งผู้ใช้ทสามารถหาแอปพลิเคชันที่ชื่นชอบและเกมในการเล่นของ Google ที่มีเนื้อหาดิจิตอลอื่น ๆ ทั้งหมดในที่เดียว ในทุกที่ทุกเวลา

We believe that with a strong brand, compelling offerings, and a seamless purchasing and consumption experience, Google Play will drive more traffic and revenue to the entire ecosystem.


เราเชื่อว่าด้วยแบรนด์ที่แข็งแกร่งนี้ การนำเสนอที่น่าสนใจและสั่งซื้ออย่างสะดวกสบาย เป็นที่ชื่นชอบของลูกค้า  Google Play จะเพิ่มผู้เข้าใช้ และรายได้ อย่างมากขึ้น



As we grow and promote Google Play around the world, we’ll be marketing your apps and games at the same time. Our policies have not changed and our goal is still the same — to create a great, open marketplace for distributing Android apps.

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

Google Play is built on the same infrastructure as Android Market, so the transition for users and developers will be seamless. Users can sign into their existing accounts with the same credentials as before and purchase content using the same payment methods. As a developer, there’s no change needed to your published products and you can continue to use the same publishing tools to put your app in front of hundreds of millions of Android users. If your app was in Android Market yesterday, it’s in Google Play today.

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

We’ll be rolling out Google Play to devices in a phased OTA update, starting today and continuing over the days to come. With the update, the Android Market app will upgrade to the Play Store app and the Music, Videos, and Books apps will upgrade to Play Music, Play Movies, and Play Books. This update is for devices running Android 2.2 or higher, and users on other devices will continue to have the same access to your apps as before.

เราจะนำ Google Play ไปอัพเดทกับอุปกรณ์ Android ด้วยวิธี OTA การปรับปรุงที่เริ่มต้นตั้งแต่วันนี้และต่อเนื่องไป ด้วยการปรับปรุง App Android Market จะปรับรุ่นให้เป็น App Play Store ทั้งส่วน เพลงและวิดีโอและหนังสือ จะอัพเกรดทั้งการเล่นเพลง, เล่นภาพยนตร์และหนังสือ การปรับปรุงนี้จะสำหรับอุปกรณ์ที่ใช้ Android 2.2 หรือสูงกว่าและผู้ใช้ในอุปกรณ์อื่น ๆ ในการใช้งานจะยังคงเหมือนเดิม ตามแอปพลิเคชันของคุณ เมื่อได้ลงไปก่อนหน้านี้

You can start sending customers to your products in Google Play right away. Check out the updated “Get it on Google Play” badges and look for an email with more details on the transition. In the meantime, you can check out the Google Play web site at the link below and join the discussion on +Android Developers.

คุณสามารถแจ้งลูกค้าให้กับสินค้าของคุณใน Google Playได้ทันที วันที่ออกอัพเดท "Get it Google Play" จะแจ้งมองรายละเอียดเพิ่มเติมเกี่ยวกับการเปลี่ยนแปลงในอีเมล์  ในขณะเดียวกันคุณสามารถตรวจสอบเว็บไซต์ของ Google Playและเข้าร่วมแสดงความคิดเห็น ที่ +Android Developers.

วันจันทร์ที่ 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