1
我试图编写一个将图像保存在磁盘上的类。Android - getFilesDir()不工作(在Android Studio中为红色)
内部类我有方法public static String saveToSdCard(Bitmap bitmap, String filename)
并在其中我试图通过使用File path = new File(getFilesDir(), "myfolder");
来获取文件夹的引用,但我不能因为IDE标记为红色。
我在做什么错?
请先阅读http://developer.android.com/intl/es/training/basics/data-storage/files.html! – manolodewiner