#include<QDebug>intmain(intargc,char*argv[]){qDebug()<<"Hello from service";return0} Last you need to load the server .so file: <service...><!-- ... --><meta-dataandroid:name="android.app.lib_name"android:value="server"/><!-- ... --></service> ...
Now you need to open first.c file sudo gedit first.c add the following lines save and exit the file Firstly compile the code using the following command cc -c first.c that would produce an object file you may need to add to the library. then create an executable using the...