Get the size of an Android file resource?
Try this:
AssetFileDescriptor sampleFD = getResources().openRawResourceFd(R.raw.video);
long size = sampleFD.getLength()
Try this lines:
InputStream ins = context.getResources().openRawResource (R.raw.video)
int videoSize = ins.available();