android.content.ActivityNotFoundException:

前端 未结 24 2180
一生所求
一生所求 2020-11-22 10:38

I am getting this exception while I am trying to call an activity from another one. The complete exception is

android.content.ActivityNotFoundExcept

24条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-22 11:16

    Activity you're calling sholdn't contain "sheme" and contain intent-filter:

    
            
                   
                   
            
    
    

    so in calling code:

    Intent intent=new Intent("com.example.sj.myapplication.SecondActivity");
    startActivity(intent);
    

提交回复
热议问题