![]() ![]() There is LocalSocket in java which accepts "string" () #define ADDRESS "/tmp/unix. Our C++ library (using Android NDK) public static String SOCKET_ADDRESS = "" // STRING Please give suggestion if any one have idea over this. Protected static final int MSG_ID = 0x1337 On Clicking Finish MyServer code structure is generated with the necessary Android Packages being imported along with MyServer.java. Use the New Project Wizard and select Android Project Give the respective project name i.e. android-ndk / usr / include / sys / socket.h Go to file Go to file T Go to line L Copy path Copy This commit does not belong to any branch on this. This is a sample program that uses socket class to make a chat application, by this you can create a Server and a Client in two Emulator and chat to write and read data.īasic description of algorithm in step by step form:ġ.) Create Two Projects one for server MyServer and another for client ServerClient.Ģ.) Put the following code snippet in res folder of MyServer project res/layout/main.xml :ģ.) Put the following code snippet in res folder of ServerClient project res/layout/main.xml :Ĥ.) Add the following permissions in AndroidManifest.xml of both project :ġ.) Open Eclipse.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |