I have an activity that requires SDK but still want to make the rest of the app available for lower SDK versions. Is there a way of reading the users SDK to a string so I can place in an if statement please?
            Asked
            
        
        
            Active
            
        
            Viewed 121 times
        
    -2
            
            
        - 
                    1http://stackoverflow.com/questions/3423754/retrieving-android-api-version-programmatically Apologies, just found this – AesculusMaximus Sep 24 '16 at 13:58
1 Answers
2
            
            
        Do you mean something like this?
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
    ... do stuff ...
    }
 
    
    
        Vladimir Marton
        
- 569
- 4
- 31
