(Intent.flag_activity_clear_when_task_reset); StartActivity (externalactivityintent); } }); }}4. Go to another activity interface, Otheractivity.java: Packagecom.yangyu.myactionbar04;ImportAndroid.app.ActionBar;Importandroid.content.Intent;ImportAndroid.os.Bundle;Importandroid.support.v4.app.FragmentActivity;Importandroid.support.v4.app.NavUtils;ImportAndroid.support.v4.app.TaskStackBuilder;ImportAndroid.view.MenuItem; Public classOtheractivityextendsfragmentactivity { Pu
the connection, while the other end of the connection cannot read the data through the connection)
Shut_rdwr (indicates that the read and write direction of the connection is closed, while the other end of the connection cannot write data and read data through the connection)
This function is more flexible than close in operation and can be seen as an extension of the close function.You crossing, for example of socket communication we are here. I want to know what the following example
(Mainactivity.this, "save", Toast.length_short). Show (); break;default:break;} return super.onoptionsitemselected (item);}}The main layout file can be used without the controlRes/menu/main.xml Defining menusDefine a page for a menu jumpPackage Com.example.menu2;import Android.app.activity;import Android.os.bundle;public class NextActivity extends activity{@Overrideprotected void OnCreate (Bundle savedinstancestate) {//TODO auto-generated method Stubsuper.oncreate (savedinstancestate); Setconte
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.