com.example.smartphinphone.MainActivity

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Check if android.permission.WRITE_EXTERNAL_STORAGE is in AndroidManifest.xml. Also, add checks in your code to see if the storage is available to write before trying to write. And last: create a folder to put your files inside.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • draw image on canvas and save into sd card
    via Stack Overflow by Manish
    ,
  • touchtracer.apk not working
    via GitHub by ciropom
    ,
    • com.example.smartphinphone.MainActivity at com.example.smartphinphone.test.ActivityTests.test_mockito_mocks_activities(ActivityTests.java:22) at java.lang.reflect.Method.invokeNative(Native Method) at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214) at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176) at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554) at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1701) Caused by: java.io.IOException: open failed: EACCES (Permission denied) at java.io.File.createNewFile(File.java:948) at java.io.File.createTempFile(File.java:1013) at com.google.dexmaker.DexMaker.generateAndLoad(DexMaker.java:374) at com.google.dexmaker.stock.ProxyBuilder.buildProxyClass(ProxyBuilder.java:252) at com.google.dexmaker.mockito.DexmakerMockMaker.createMock(DexmakerMockMaker.java:56) at org.mockito.internal.util.MockUtil.createMock(MockUtil.java:26) at org.mockito.internal.MockitoCore.mock(MockitoCore.java:51) at org.mockito.Mockito.mock(Mockito.java:1243) at org.mockito.Mockito.mock(Mockito.java:1120) ... 8 more Caused by: libcore.io.ErrnoException: open failed: EACCES (Permission denied) at libcore.io.Posix.open(Native Method) at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110) at java.io.File.createNewFile(File.java:941) ... 17 more

    Users with the same issue

    ben.slama.jihed
    1 times, last one,
    justCodeit
    10 times, last one,
    Indri Yunita
    1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    42 more bugmates