Android first line of code

Source: Internet
Author: User

The log files are as follows:
-- on -: +:36.265 17086-17086/stuapplication.pla.edu.cn.fragmentbestpractice w/dalvikvm:vfy:unable to findclassReferencedinchSignature (landroid/os/persistablebundle;) -- on -: +:36.265 17086-17086/stuapplication.pla.edu.cn.fragmentbestpractice I/dalvikvm:could Not Find method Android.support.v7.app.AppCompatActivity.onCreate, referenced fromMethod Stuapplication.pla.edu.cn.fragmentbestpractice.NewsContentActivity.onCreate -- on -: +:36.265 17086-17086/stuapplication.pla.edu.cn.fragmentbestpractice W/dalvikvm:vfy:unable To resolveVirtualMethod9140: landroid/support/v7/app/appcompatactivity;. OnCreate (Landroid/os/bundle; landroid/os/persistablebundle;) V -- on -: +:36.265 17086-17086/stuapplication.pla.edu.cn.fragmentbestpractice d/dalvikvm:vfy:replacing opcode0x6fAt0x0000
                     
Related code:

public class Newstitlefragment extends Fragment implements Adapterview.onitemclicklistener {

.....
  @Override  public  void  Onitemclick (adapterview<?> parent, view view, int  position, Span style= "color: #0000ff;" >long   ID) {News  = news    Newsarraylist.get (position);  if   (Istwopagemodel) {LOG.V ( "    Newstitlefragment "," Sorry, pad screen adapter not complete ");  else   { }}.....}
 public  class  newscontentactivity Span style= "color: #0000ff;" >extends   appcompatactivity { public  static  void   ACTIONStart (context context, string title, string content) {Intent Intent  = new  Intent (context,newscontentactivity.        Class  );        Intent.putextra ( "title" , title);        Intent.putextra ( content ", content);        context.startactivity (intent);     LOG.V ( "newscontentactivity", "startactivity" ); } 
....
}

At the end of execution, the program does not execute the newscontentactivity OnCreate method.

Android first line of code

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.