New Intent (String Action,uri Uri) constructor description

Source: Internet
Author: User

This is mydiary under this project mainactivity protected void Onlistitemclick (ListView l, View v, int position, long id) {} method,

The new Intent (String Action,uri Uri) constructor is specified as follows,

1 protected voidOnlistitemclick (ListView L, View V,intPositionLongID) {2         //Important3         //returns:a New URI with the given ID appended to the end of the path4Uri uri =Contenturis.withappendedid (Getintent (). GetData (), id);5         /*6 * New Intent.intent (String action, URI URI) This usage is not quite familiar.7 * The system will find the corresponding activity in the manifest file according to the first parameter (action), if it corresponds to more than one activity,8 * This will bring up a Dailog select activity9          */TenStartActivity (NewIntent (Mydiaryedit.edit_text_action, Uri)); One  A}

New Intent (String Action,uri Uri) constructor description

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.