nanopi serial port error

fulljob
hi 
i use nanopi2 
i need to use serial port 
when i open demo program the eclipse has error that the file *.r is missing


when i create new project with same code that copy from sample 

when i click on "connect" button it show error that "fail to open
dev/ttyama2"

what can i do to solve my problem 

please help me

davef
In your terminal program navigate to /dev on the target and

   ls -la ttyama2 

what do you see?

davef
Never seen a ttyama2.

> when i create new project with same code that copy from sample 

is the *.r file error message NOT seen?

fulljob
thanks for reply 

> is the *.r file error message NOT seen? 


there is no SerialPortDataProcessView.r file 
and eclipse need this file to compile.



 >ls -la ttyama2   
i will check this and will tell you the result


but when test serial port with "Itest" app  every thing is OK 

maybe serial port need permission ??

or maybe i cant import  "libfriendlyarm-hardware.so" lib properply.


can you explain about permission and "libfriendlyarm-hardware.so" lib .

davef
Sorry, I didn't realise this was an Android-related question.  I know
nothing about Android.

fulljob
it's solved 

problem was about android 5.1.1 

i run kitkat android on nanopi and problem solved 


thank you