| How to build and run a native c application on android emulator |
|
|
|
|
* to start emulator * to transfer a file to emulator; this is stored in emulator's * to copy a file or a directory recursively to emulator * to copy a file or a directory recursively from emulator * emulator can run native ARM Linux code.
* to get a shell on the emulator * to run a console app on Android emulator * to connect to emulator console for specific commands BUILDING AND RUNNING A NATIVE C APP ON ANDROID EMULATOR
References Native C "Hello World" working in emulator Native C Applications for Android Steps * create C/C++ code. see below for sample code. * build app without dynamic libraries using GNU/ARM Linux toolchain * start emulator in Windows by double clicking on $SDK_ROOT/tools/ * in a Windows Command window, use "adb" to xfer executable to * make your app executable; do not use chmod ugo+x * run your app in a console on the emulator EXAMPLE HELLO WORLD CODE #include <iostream> class MyName private:
};
void MyName::getname( void ) { cout << "What is your name? "; cin >> name;
}
void MyName::sayhello( void ) { cout << "Welcome " << name << " to the world of Android" << endl;
}
MyName name; int main( int argc, char *argv[] )
}
Source: android google group |
Subscribe to this Feed


How to use custom de...
lets say i change this app to days to...
How to display a JPG...
Is that posible to zoom in and drag p...
Making a custom Andr...
Cool - I will use it carefully i promise
How to display a JPG...
problem in image loading - i have exe...
Introducing Calculon...
Thank You for your contribution - Hi,...