Skip to content

Instantly share code, notes, and snippets.

@vovkab
Last active June 12, 2017 09:46
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vovkab/4a2ebfec67c58996b034 to your computer and use it in GitHub Desktop.
Save vovkab/4a2ebfec67c58996b034 to your computer and use it in GitHub Desktop.
Android device memory class
ActivityManager manager = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
int memoryClass = manager.getMemoryClass();
48 - Samsung Nexus S
64 - Samsung Galaxy Nexus
Samsung S2
Samsung S3
128 - Samsung S4
HTC One
192 - Nexus 5
Nexus 7 (2013)
256 - Nexus 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment