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