Android: Disable application for tablet

后端 未结 4 1597
死守一世寂寞
死守一世寂寞 2020-12-02 11:48

I developed an application, Now i want to restrict the application for tablet.

Means the application should not run on any tablets. For that I specify the support-sc

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-02 12:03

    This prevents access on tablets, but allows the new density buckets (xxhdpi and xxxhdpi) and avoids errors on projects that are compiled against lower SDKs. It should be a direct child of the element in AndroidManifest.xml

    
        
        
        
        
        
        
        
    
        
        
        
        
        
        
        
        
    
    

    Update 8.8.2016 Add this line if you want to support Nexus-5x-like devices with 420 density

    
    

提交回复
热议问题