วันอาทิตย์ที่ 2 มีนาคม พ.ศ. 2557

Unity3D Game Build to Android



Unity3D Game Build to Android

Original Source Code from Unity Technologies.
https://www.assetstore.unity3d.com/#/content/13866


Getting Started with Android Development

Building games for a device running Android OS. However, the hardware is not completely standardized across all devices. There are some feature differences in the Android version.
Setting up your Android Developer environment
You will need to have your Android developer environment set up before you can test your Unity games on the device. This involves downloading and installing the Android SDK with the different Android platforms and adding your physical device to your system (this is done a bit differently depending on whether you are developing on Windows or Mac). This setup process is explained on the Android developer website, and there may be additional information provided by the manufacturer of your device. Since this is a complex process, we've provided a basic outline of the tasks that must be completed before you can run code on your Android device or in the Android emulator. However, the best thing to do is follow the instructions step-by-step from the Android developer portal.
Access Android Functionality
Unity Android provides scripting APIs to access various input data and settings. You can find out more about the available classes on the Android scripting page.
Exposing Native C, C++ or Java Code to Scripts
Unity Android allows you to call custom functions written in C/C++ directly from C# scripts (Java functions can be called indirectly). To find out how to make functions from native code accessible from Unity, visit the Android plugins page.
Occlusion Culling
Unity includes support for occlusion culling which is a particularly valuable optimization on mobile platforms. More information can be found on the occlusion culling page.
Splash Screen Customization
The splash screen displayed while the game launches can be customized - see this page for further details.
Troubleshooting and Bug Reports
There are many reasons why your application may crash or fail to work as you expected. Our Android troubleshooting guide will help you get to the bottom of bugs as quickly as possible. If, after consulting the guide, you suspect the problem is internal to Unity then you should file a bug report - see this page for details on how to do this.

How Unity Android Differs from Desktop Unity

Strongly Typed JavaScript

For performance reasons, dynamic typing in JavaScript is always turned off in Unity Android, as if #pragma strict were applied automatically to all scripts. This is important to know if you start with a project originally developed for the desktop platforms since you may find you get unexpected compile errors when switching to Android; dynamic typing is the first thing to investigate. These errors are usually easy to fix if you make sure all variables are explicitly typed or use type inference on initialization.

ETC as Recommended Texture Compression

Although Unity Android does support DXT/PVRTC/ATC textures, Unity will decompress the textures into RGB(A) format at runtime if those compression methods are not supported by the particular device in use. This could have an impact on the GPU rendering speed and it is recommended to use the ETC format instead. ETC is the de facto standard compression format on Android, and should be supported on all post 2.0 devices. However, ETC does not support an alpha channel and RGBA 16-bit will sometimes be the best trade-off between size, quality and rendering speed where alpha is required.
It is also possible to create separate android distribution archives (.apk) for each of the DXT/PVRTC/ATC formats, and let the Android Market's filtering system select the correct archives for different devices (see Publishing Builds for Android).

Movie Playback

Movie textures are not supported on Android, but a full-screen streaming playback is provided via scripting functions. To learn about supported file formats and scripting API, consult the movie page or the Android supported media formats page.


Android SDK Setup

There are some steps you must follow before you can build and run any code on your Android device. This is true regardless of whether you use Unity or write Android applications from scratch.

1. Download the Android SDK

Go to the Android Developer SDK webpage. Download and unpack the latest Android SDK.

2. Installing the Android SDK

Follow the instructions under Installing the SDK (although you can freely skip the optional parts relating to Eclipse). In step 4 of Installing the SDK be sure to add at least oneAndroid platform with API level equal to or higher than 9 (Platform 2.3 or greater), the Platform Tools, and the USB drivers if you're using Windows.

3. Get the device recognized by your system

This can be tricky, especially under Windows based systems where drivers tend to be a problem. Also, your device may come with additional information or specific drivers from the manufacturer.
For Windows: If the Android device is automatically recognized by the system you still might need to update the drivers with the ones that came with the Android SDK. This is done through the Windows Device Manager.
If the device is not recognized automatically use the drivers from the Android SDK, or any specific drivers provided by the manufacturer.
Additional info can be found here: USB Drivers for Windows
For Mac: If you're developing on Mac OSX then no additional drivers are usually required.
Note: Don't forget to turn on "USB Debugging" on your device. Go to Settings -> Developer options, then enable USB debugging. As of Android Jelly Bean 4.2 the Developer options are hidden by default. To enable them tap on Settings -> About Phone -> Build Version multiple times. Then you will be able to access the Settings -> Developer options.
If you are unsure whether your device is properly installed on your system, please read the trouble-shooting page for details.

4. Add the Android SDK path to Unity

The first time you build a project for Android (or if Unity later fails to locate the SDK) you will be asked to locate the folder where you installed the Android SDK (you should select the root folder of the SDK installation). The location of the Android SDK can also be changed in the editor by selecting Unity > Preferences from the menu and then clicking on External Tools in the preferences window.








How to Build App to Android  ( Unity 4.3.1 )

First  Android SDK Setup

Use Menu  :  Edit  -  Preferences  Then Select Android SDK Location



Set Google Play Publishing Settings 

Use Menu  :  Edit -  Project Settings - Player

  

Then Show PlayerSettings



Resolution and Presentation
You can set Android Device Screen Orientation.


Icon
show your icon on different screen android devices.


Splash Image
not use.

Other Settings
Set your Android Package , Version Code , Version Name and minimum sdk.



Publishing Settings
You can set keystore. Create New KeyStore or Use Existing KeyStore.



Android App on Google Play.




Space Shooter Game is simple demo 2D game from Unity Asset Store.
Easy Game for kid. Shoot Asteroid and enemy.
Use only one Finger to Play.

Original Source Code from Unity Technologies.
https://www.assetstore.unity3d.com/#/content/13866

How to Play
Use only one Finger to Play.
Touch to shoot lasers.
Touch to Move Left ,Right ,Up Down

เกมยิงยานอวกาศ Space Shooter Game
เกมที่ง่าย ๆ สำหรับเด็ก ยิงดาวเคราะห์น้อยและยานบินศัตรู

เกมนี้ เอา Free Source code มาจาก Unity แล้วมาทำลง Android
https://www.assetstore.unity3d.com/#/content/13866 

วิธีการเล่น
สัมผัสที่จะยิงเลเซอร์
สัมผัสเพื่อย้ายไปทางซ้าย, ขวา, ขึ้น, ลง

More Android App on Google Play.



วันพฤหัสบดีที่ 30 มกราคม พ.ศ. 2557

Arduino Bluetooth Servo Motor Control


Arduino Bluetooth Servo Motor Control

Arduino Bluetooth Servo Motor Control Application is allow you to control Servo Motor position.( 0 - 180 degree )
This App must connect to Arduino Board and Bluetooth Module then control Servo Motor.

The Application Features
  • Control 0 - 180 Degree of Servo Motor position with progress bar , knob and Fixed degree.( PWM Output )
  • Auto Control Function and can adjust timing to control.
  • Show Bluetooth Connection Status and Serial Data monitor. When not connect Arduino Board yet.(User Interface Disable.) When Bluetooth connected already. Then enable UI. and ready to Control.
  • Free Version with Ad.

External Hardware
  1. Arduino Board or compatible Board.
  2. Serial TTL Bluetooth Module
  3. Servo Motor ( We use FUTABA Model S3003 or other)

Wiring Diagram


Arduino Source Code ( same USB Version )
Arduino Code ( You need to program into Arduino Board. ) 


Android App on Google Play.




App Manual.
Enable Bluetooth Setting First.
Then if you are not pairing your bluetooth module yet.
Must pairing in the bluetooth settings.

Open App. Click Connect Bluetooth Button.




When Bluetooth Connected. Show "Connected to : YOUR BLUETOOTH NAME OK"
and Change Connect Bluetooth Button to Knob.



Ready to control your Servo Motor.

  • Use Knob
  • Fixed Position Button
  • Auto Control ON/OFF

Option Menu
  • Setting  ( for future use )
  • Hardware Diagram
  • About Developer
  • Exit



More About Servo Motor Control

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

Android NFC Check-in and Time Stamp


  -->

Android NFC Check-in and Time Attendance

( ลงเวลา และ สถานที่ ด้วย Android NFC )

This App use with NFC Tags.
You can check in and time Attendance in your different places.
You need to create tags for that place in the Write Tags function.

System Diagram


The Application Features
-          Read/Write NFC tag .
-          When read NFC data and stamp time in to database.
-          Write data ( Text ) in to NFC Tag.
-          Save Export Database to text file into SD card.

Warning!
Pls. enable NFC setting first.
Goto Setting Menu – More -- NFC

Free version
- Limit 50 Records for Database ( after that must Clear all Database )
- Ad on Screen.

Full Version -- Pls. contact amphancm@gmail.com




Save Database to Text File.

  •  Text file in SD Card ( in folder /sdcard/file/Logxxxx-xxxx.text )
  • Format Name File  =  LogYYMMDD-hhmm.txt


Clear All Database
Goto Setting Menu – Apps – NFC Check-in Time Stamp
Then Press Clear data button

Setting Menu then Apps


Find NFC Check-in Time Stamp


Press Clear Data


Then OK 




Download Android NFC Check-in and Time Stamp.





NFC: Near Field Communication

NFC products available since 2005

First NFC Phone - Nokia 3220 NFC

NFC is a type of RFID.
RFID tech is being used increasingly for identification & financial transactions.
As keys to open locks of all kinds.
As the mobile phone has become a “convergence” device for other portable electronics,
so too it may become a universal “keyring” for RFID applications


Relationship to Other Standards

  • Proximity and Vicinity Standards ISO/IEC 14443 Included as a base standard in Digital Protocol and Analogue specifications.
  • ISO/IEC 18092 –NFCIP-1Included as a base standard in Digital Protocol and Analogue specifications.
  • JIS X 6319-4 –FeliCaIncluded as a base standard in Digital Protocol and Analogue specifications
  • ISO/IEC 15693 –VicinityOut of scope of NFC Forum work.
NFC Devices can have 3 modes:
                - tag reader/writer
                - tag emulation
                - peer-to-peer data transfer

Built on existing RFID technology
Multi-part, mime-typed, textual data


NFC Data Exchange Format (NDEF) Common data format for devices and tags


NFC Record Type Definition (RTD) Standard record types used in messages between devices/tags


Smart Poster RTD  For posters with tags with text, audio or other data 

Text RTD For records containing plain text 

Uniform Resource Identifier (URI) RTD For records that refer to an Internet resource


Generic Control RTD Way to request an action


Connection Handover How to establish a connection with other wireless technologies

NFC Tag Types 1-4 Operation Defines R/W operation for NFC tags

Check for updates at : http://www.nfc-forum.org/specs


Android NFC Development











NFC Basics
This document describes how Android handles discovered NFC tags and how it notifies applications of data that is relevant to the application. It also goes over how to work with the NDEF data in your applications and gives an overview of the framework APIs that support the basic NFC feature set of Android.
Advanced NFC
This document goes over the APIs that enable use of the various tag technologies that Android supports. When you are not working with NDEF data, or when you are working with NDEF data that Android cannot fully understand, you have to manually read or write to the tag in raw bytes using your own protocol stack. In these cases, Android provides support to detect certain tag technologies and to open communication with the tag using your own protocol stack.

NFC Basics

This document describes the basic NFC tasks you perform in Android. It explains how to send and receive NFC data in the form of NDEF messages and describes the Android framework APIs that support these features. For more advanced topics, including a discussion of working with non-NDEF data.
There are two major uses cases when working with NDEF data and Android:
  • Reading NDEF data from an NFC tag
  • Beaming NDEF messages from one device to another with Android Beam™
Reading NDEF data from an NFC tag is handled with the tag dispatch system, which analyzes discovered NFC tags, appropriately categorizes the data, and starts an application that is interested in the categorized data. An application that wants to handle the scanned NFC tag can declare an intent filter and request to handle the data.
The Android Beam™ feature allows a device to push an NDEF message onto another device by physically tapping the devices together. This interaction provides an easier way to send data than other wireless technologies like Bluetooth, because with NFC, no manual device discovery or pairing is required. The connection is automatically started when two devices come into range. Android Beam is available through a set of NFC APIs, so any application can transmit information between devices. For example, the Contacts, Browser, and YouTube applications use Android Beam to share contacts, web pages, and videos with other devices.





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

รับสอนเขียนโปรแกรม Android App สอนแบบ online สอนสด ตัวต่อตัว หรือ เป็นกลุ่ม ได้ทั่วประเทศ กำหนดเวลาเรียนได้
การเรียน Android App แบบ online สามารถกำหนดเวลาเรียน เองได้ ตามแต่ตกลงกัน
( รับสอน นอกสถานที่ แบบเป็น กลุ่ม ทั่วประเทศ )

แต่ละ Course ขึ้นอยู่กับพื้นฐานที่มี นะครับ

Course
1.JAVA Programming สำหรับผู้ที่ยังไม่มีพื้นฐานทางด้าน การเขียนโปรแกรม JAVA
เรียน 3-4 ครั้ง ครั้งละ 2 ชั่วโมง  

2.Beginning Android Development เริ่มต้นการพัฒนาด้วย Android ( ต้องมีพื้นฐาน JAVA แล้ว )
เรียน 5-6 ครั้ง ครั้งละ 2 ชั่วโมง 
เรียนจบคอร์สนี้ ก็สามารถทำ Application ได้แล้ว

3.Android Application สอนตามความต้องการในการเขียนโปรแกรม ใช้งานจริง เช่น โปรแกรมใช้งานด้านต่างๆ
ระยะเวลา และ ค่าเรียน ตามแต่ความยากง่ายของโปรแกรม ซึ่งอาจจะรวมสอน JAVA Programming ด้วยสำหรับผู้เริ่มต้นเลย
ดังนั้น ราคาสอน จะขึ้นอยู่กับ สเปคงาน

โปรแกรมที่ใช้ทำการเรียน Team Viewer  Version ล่าสุด Version 8
Meeting ID จะแจ้งให้ก่อนเรียน ผ่านทาง email sms Line หรือ อื่นๆ ตามสะดวก
ใช้ Tab Meeting ใส่ Meeting ID และใส่ชื่อ
แล้ว Join Meeting

ติดต่อ amphancm@gmail.com


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

Android RFID Time Stamp & Recorder


-->
Android RFID Time Stamp & Recorder
( เครื่องบันทึกลงเวลา ด้วย Android + RFID Reader )
Android RFID Time Stamp & Recorder Application is time recorder for access control. 


No need NFC Android Device.
We use external RFID Reader Hardware.( 125KHz RFID ISO10536 )


!!! IF you don't have RFID Reader yet.
You can use USB Key Board for Use this App.




เครื่องบันทึกลงเวลา บัตร RFID  ด้วย Android 
ไม่จำเป็นต้องใช้เครื่อง Android ที่มี NFC


Diagram




Hardware
-          Android Device with USB OTG support
-          USB  Converter Cable ( Female A to Micro A )
-          USB RFID Reader (125KHz USB-Keyboard emulator reader or similar )
-          125KHz proximity RFID tags


For Android App.

       
   The Application Features
-          Record ID Card ,Status IN/Out ,Time, Date in SQLite Database.
-          Work with USB-Keyboard emulator RFID Reader

Free version
- Limit 50 Records for Database ( after that must Clear all Database )
- Ad on Screen.

Full Version -- Pls. contact amphancm@gmail.com





























Show All Log Data ( show all your database )


















Save Database to Text File
·          Text file in SD Card ( in folder   /sdcard/file/Logxxxx-xxxx.text )
·           Format Name File  =  LogYYMMDD-hhmm.txt

























Browse Text File in File Explorer




















Clear All Database

Goto  Menu Setting – Apps – Android RFID Time Stamp Recorder
Then Press Clear data Button





































Database Clear already.























 Download Android RFID Time Stamp & Recorder on Gooogle Play





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

รับสอนเขียนโปรแกรม Android App สอนแบบ online สอนสด ตัวต่อตัว หรือ เป็นกลุ่ม ได้ทั่วประเทศ กำหนดเวลาเรียนได้
การเรียน Android App แบบ online สามารถกำหนดเวลาเรียน เองได้ ตามแต่ตกลงกัน
( รับสอน นอกสถานที่ แบบเป็น กลุ่ม ทั่วประเทศ )

แต่ละ Course ขึ้นอยู่กับพื้นฐานที่มี นะครับ

Course
1.JAVA Programming สำหรับผู้ที่ยังไม่มีพื้นฐานทางด้าน การเขียนโปรแกรม JAVA
เรียน 3-4 ครั้ง ครั้งละ 2 ชั่วโมง  

2.Beginning Android Development เริ่มต้นการพัฒนาด้วย Android ( ต้องมีพื้นฐาน JAVA แล้ว )
เรียน 5-6 ครั้ง ครั้งละ 2 ชั่วโมง 
เรียนจบคอร์สนี้ ก็สามารถทำ Application ได้แล้ว

3.Android Application สอนตามความต้องการในการเขียนโปรแกรม ใช้งานจริง เช่น โปรแกรมใช้งานด้านต่างๆ
ระยะเวลา และ ค่าเรียน ตามแต่ความยากง่ายของโปรแกรม ซึ่งอาจจะรวมสอน JAVA Programming ด้วยสำหรับผู้เริ่มต้นเลย
ดังนั้น ราคาสอน จะขึ้นอยู่กับ สเปคงาน

โปรแกรมที่ใช้ทำการเรียน Team Viewer  Version ล่าสุด Version 8
Meeting ID จะแจ้งให้ก่อนเรียน ผ่านทาง email sms Line หรือ อื่นๆ ตามสะดวก
ใช้ Tab Meeting ใส่ Meeting ID และใส่ชื่อ
แล้ว Join Meeting

ติดต่อ amphancm@gmail.com

วันพฤหัสบดีที่ 14 มีนาคม พ.ศ. 2556

Android IOIO Sensor Alert


-->


Android IOIO Sensor Alarm

( ตรวจจับ เตือนภัย ด้วย IOIO Board )

Android IOIO Sensor Alarm Application is to allow you to get input sensor status and sent status of sensors ( gas sensor, motion detector sensor or other ) to you by SMS or email for Alarm System. When the status is changes so this app sent SMS or email ( or both ) to you.

The Application Features

-          6 channel input Sensors. and show realtime voltage status each input channel.
-          Can set phone number to sent SMS.
-          Can set email to sent email.
-          Function for Test sent SMS or Sent email.
-     Alarm when logic “0” to “1” ( Active High )
-          Connect ioio board with Bluetooth or USB cable.
-          App run on Service ( when mobile phone sleep or  change screen to other app. This App still running)


Hardware

-          IOIO Board. ( with USB cable or Bluetooth USB Dongle )
-          Sensors ( up to 6 sensors )





Thai Language
ระบบเตือนภัย ด้วย Android สามารถแจ้งเตือน ผ่าน SMS และ email




WARNING !!!
Your Mobile Phone must work with IOIO Board. ( HTC may not work )

IOIO Board over Bluetooth




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

รับสอนเขียนโปรแกรม Android App สอนแบบ online สอนสด ตัวต่อตัว หรือ เป็นกลุ่ม ได้ทั่วประเทศ กำหนดเวลาเรียนได้
การเรียน Android App แบบ online สามารถกำหนดเวลาเรียน เองได้ ตามแต่ตกลงกัน
( รับสอน นอกสถานที่ แบบเป็น กลุ่ม ทั่วประเทศ )

แต่ละ Course ขึ้นอยู่กับพื้นฐานที่มี นะครับ

Course
1.JAVA Programming สำหรับผู้ที่ยังไม่มีพื้นฐานทางด้าน การเขียนโปรแกรม JAVA
เรียน 3-4 ครั้ง ครั้งละ 2 ชั่วโมง  

2.Beginning Android Development เริ่มต้นการพัฒนาด้วย Android ( ต้องมีพื้นฐาน JAVA แล้ว )
เรียน 5-6 ครั้ง ครั้งละ 2 ชั่วโมง 
เรียนจบคอร์สนี้ ก็สามารถทำ Application ได้แล้ว

3.Android Application สอนตามความต้องการในการเขียนโปรแกรม ใช้งานจริง เช่น โปรแกรมใช้งานด้านต่างๆ
ระยะเวลา และ ค่าเรียน ตามแต่ความยากง่ายของโปรแกรม ซึ่งอาจจะรวมสอน JAVA Programming ด้วยสำหรับผู้เริ่มต้นเลย
ดังนั้น ราคาสอน จะขึ้นอยู่กับ สเปคงาน

โปรแกรมที่ใช้ทำการเรียน Team Viewer  Version ล่าสุด Version 8
Meeting ID จะแจ้งให้ก่อนเรียน ผ่านทาง email sms Line หรือ อื่นๆ ตามสะดวก
ใช้ Tab Meeting ใส่ Meeting ID และใส่ชื่อ
แล้ว Join Meeting

ติดต่อ amphancm@gmail.com