What are intent-filters in Android?

后端 未结 10 2227
渐次进展
渐次进展 2020-12-01 02:34

In my android app, I wanted to start an activity \'B\' from initial activity \'A\'. I have created classes for both of these. However when using following code to start B, I

10条回答
  •  再見小時候
    2020-12-01 03:06

    The Activity which you want it to be the very first screen if your app is opened, then mention it as LAUNCHER in the intent category and remaining activities mention Default in intent category.

    For example :- There is 2 activity A and B
    The activity A is LAUNCHER so make it as LAUNCHER in the intent Category and B is child for Activity A so make it as DEFAULT.

    
        
            
                
                
            
        
        
            
                
                
            
        
    
    

提交回复
热议问题