From http://developer.android.com/reference/android/util/LruCache.html
By default, the cache size is measured in the number of entries. Override sizeOf(K, V) to size the cache in different units.
So you should do something like this:
LruCache<String, MyDataClass> nativelrucache=new LruCache<String, MyDataClass>(iMegabyte*10){
protected int sizeOf(String key, MyDataClass value) {
return value.bytes.length;
};
};