This was the code i was using but it didn't work as i couldn't find any folder created.
File myDir = new File(getCacheDir(), "123");
myDir.mkdir();
The next code also wasn't working.
File mydir = context.getDir("users", Context.MODE_PRIVATE);
if(!mydir.exists)
{
mydir.mkdirs();
}