Code example for Instrumentation

Methods: startActivitySync

0
	/** 
	 * Start the current target Intent activity 
	 */ 
	public void startTargetIntent() { 
		checkConfiguration(); 
		mInstrumentation.startActivitySync(mIntent);
	} 
	 
	public Message responseMessage(Message responseMsg, Message incomingMsg) {
		responseMsg.setMessageId(incomingMsg.getMessageId());
		 Log.d(TAG, "Server replied message");
		 Log.d(TAG, "MessageType: " + responseMsg.getMessageHeader());
		 Log.d(TAG, "MessageType: " + responseMsg.toString());
		return responseMsg;
	} 
 
}