Is there any RDP library available for Android?

468 views
Skip to first unread message

PP

unread,
Feb 7, 2011, 12:24:18 PM2/7/11
to AndroidRemote
I want to write simple remote PC connect software using Android. Is
there any RDP library available for Android? I checked "proper Java",
but it seems like it is for Java and we may need to make lot of code
changes to make it work for Android. Any pointers would be useful?
Thanks,

Walter Wang

unread,
Feb 9, 2011, 11:15:04 AM2/9/11
to androi...@googlegroups.com
Hi,

You can use Remote RDP in you application. Please check following code for reference:

public class RemoteTest extends Activity {
// parameters for Remote RDP
public static final String REMOTE_SERVER = "server";
public static final String REMOTE_PORT = "port";
public static final String REMOTE_DOMAIN = "domain";
public static final String REMOTE_USER = "user";
public static final String REMOTE_PASSWORD = "password";
public static final String REMOTE_WIDTH = "width";
public static final String REMOTE_HEIGHT = "height";
public static final String REMOTE_OPTIONS = "options";
public static final String REMOTE_PROGRAM = "program";
public static final String REMOTE_COLOR = "color";
public static final String REMOTE_AS_HOST = "as_host"; //the client computer name

// option values for REMOTE_OPTIONS
public static final int OPTION_CONSOLE = 0x00000001;//connet to console session
public static final int OPTION_CLIPBOARD = 0x00000002;//clipbaord copy/paste
public static final int OPTION_SDCARD = 0x00000004; //mount sdcard
public static final int OPTION_SOUND = 0x00000008; //audio playback
public static final int OPTION_LEAVE_SOUND = 0x00000010; //leave sound in remote computer
public static final int OPTION_BEST_EFFECT = 0x00000020;//best display effect
public static final int OPTION_RECORD_AUDIO = 0x00000040;//audio recording

public static String LOG = "WALTER_RDP_TEST";

public static String walter_rdp_uri = "com.toremote.serversmanager";

public static String HOST = "64.203.39.11";

public static String USER = "ywang";

public static String PORT = "3389";

public static String PWD = "password";

public static String DOMAIN = "";



Button button;

/** Called when the activity is first created. */

@Override
public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.main);

Log.v(LOG, "Application Started");

button = (Button) findViewById(R.id.Button01);

button.setOnClickListener(new View.OnClickListener() {

@Override
public void onClick(View v) {

walterRdpIntent();

}

});

}

/**
* test funtion that sends an Intent object to Walter's ToRemote application
*/

public void walterRdpIntent()

{

Log.v(LOG, "sending an intent to walter App");

Intent intent = new Intent(Intent.ACTION_VIEW);

// Uri m_uri = Uri.parse(walter_rdp_uri);

// for enterprise version
intent.setComponent(new ComponentName("com.toremote.serversmanager",
"com.toremote.RemoteActivity"));
//for standard version
//intent.setComponent(new ComponentName("org.toremote.serversmanager",
// "com.toremote.RemoteActivity"));
//for lite version
//intent.setComponent(new ComponentName("org.toremote.rdpdemo",
// "com.toremote.RemoteActivity"));

intent.putExtra(REMOTE_SERVER, HOST);

intent.putExtra(REMOTE_PORT, PORT);

// following are optional:

intent.putExtra(REMOTE_USER, USER);

intent.putExtra(REMOTE_PASSWORD, PWD);

intent.putExtra(REMOTE_DOMAIN, DOMAIN);

intent.putExtra(REMOTE_WIDTH, "800");//"0" means "fit Device screen"

intent.putExtra(REMOTE_HEIGHT, "600");//"0" means "fit Device screen"
intent.putExtra(REMOTE_COLOR, 16);//16 bit color

intent.putExtra(REMOTE_OPTIONS, OPTION_CLIPBOARD | OPTION_SOUND
| OPTION_SDCARD | OPTION_RECORD_AUDIO | OPTION_CONSOLE
| OPTION_BEST_EFFECT);

startActivity(intent);

}
}


--
You received this message because you are subscribed to the Google Groups "AndroidRemote" group.
To post to this group, send email to androi...@googlegroups.com.
To unsubscribe from this group, send email to androidremot...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/androidremote?hl=en.




--
RDP/VNC Clients for Google Android
http://www.toremote.com
http://groups.google.com/group/androidremote

This communication is intended ONLY for the use of the person or entity named above and may contain information that is confidential or legally privileged. If you are not the intended recipient named above or a person responsible for delivering messages or communications to the intended recipient, YOU ARE HEREBY NOTIFIED that any use, distribution, or copying of this communication or any of the information contained in it is strictly prohibited. If you have received this communication in error, please notify us immediately by email and then destroy or delete this communication, or return it to us by mail if requested by us.

Amit Nargund

unread,
Dec 18, 2020, 2:38:35 AM12/18/20
to AndroidRemote
What did you end up using for your project?
Reply all
Reply to author
Forward
0 new messages