Reputation:
I am planning to restrict my app to tablets but in the sense that I don't want to add compatibility screen etc. options in manifest
. Currently, on app launch my manifest
has a splashscreenactivity
which launches for about 3 seconds then moves on to another fragment.
I already have the code in my app that detects if the device is a tablet or not (say istablet()
) , I was wondering if there is a way I can display black screen with a TextView
on app launch for tablets letting the user know the app is not compatible on tablets rather than splash screen and follow up fragment.
Any ideas?
Can I call the layout in the application class somehow for the black screen and restrict it from routing further for tablets?
Any help would be greatly appreciated :)
Upvotes: 3
Views: 68