How to control GPIO outputs via Android, i mean situation when i use android as my os of Udoo board ?
I was thinking about this board: http://shop.udoo.org/eu/quad-dual/udoo-dual.html I just need few pins that can be controlled via android to blink some leds.
You can use this introduction: http://falsinsoft.blogspot.nl/2012/11/access-gpio-from-linux-user-space.html?m=1 The gpio instructions for the Udoo dual can be found here: http://www.udoo.org/docs/Hardware_&_Accessories/GPIO_Pinout.html If you want more performance then you could use the Arduino Due part on the dual but for just switching some LEDs that does not seems needed.
At sites you posted there is only description how to acces GPIO from Linux. Could i do the same via android terminal ? Im not android developer, so is there posibility to acces GPIO from android app code ?
Core of android is Linux, hence you can access GPIO, I2C, etc from sysfs (/sys/class/gpio/). Now, that you have access to sysfs and underlines buses, you can implement applications as you like: -script in python, etc -native driver as part of linux kernel -use NDK to write library for your APP.
I found also sth like this: http://www.udoo.org/tutorial/android-arduino-udoo-simple-hello-world-tutorial/ Why such approach ? Is this better, faster or what ?
The Udoo Dual ( and all other Udoos) has 2 sets of gpio: 1 set controlled by the OS (Linux, Android) processor and 1 set controlled by a special Arduino processor. This set is meant for real time, high speed gpio processing not influenced by the load of the main processor. For controlling some LEDs gpio controlled by the main processor is good enough. For other applications like controlling and monitoring large amounts of LEDs, sensors, actuators, motors you need a processor that is designed for this. And an Arduino is. That is why I asked this questions to you before. The video from Udoo is about controlling Gpio by Arduino and have the 2 processors communicate with each other.