Forum Xamarin.Android

how to find ram size of android device ?

Mega39Mega39 PKMember
edited September 2013 in Xamarin.Android

hi
i want to find ram size of android device

i tried but failed !

        ActivityManager.MemoryInfo mem_size = new ActivityManager.MemoryInfo();
        ram.Text = mem_size.TotalMem.ToString();

so please help ???

Posts

  • CortezCortez USMember ✭✭✭

    Java.IO.RandomAccessFile reader = new Java.IO.RandomAccessFile("/proc/meminfo", "r"); string memory = reader.ReadLine();

  • CortezCortez USMember ✭✭✭

    Java.IO.RandomAccessFile reader = new Java.IO.RandomAccessFile("/proc/meminfo", "r"); string memory = reader.ReadLine();

Sign In or Register to comment.