Forum » Programiranje » [android] shranjevanje slik
[android] shranjevanje slik
messi ::
Imam sicer sledočo napako pri shranjevanju slik imam za shranjevanje dol sledečo kodo, tukaj pa napake, če ima kdo kako idejo, mi sporoči..
09-06 12:17:20.918: D/dalvikvm(2919): WAIT_FOR_CONCURRENT_GC blocked 77ms 09-06 12:17:21.937: I/Choreographer(2919): Skipped 30 frames! The application may be doing too much work on its main thread. 09-06 12:17:29.257: I/Choreographer(2919): Skipped 195 frames! The application may be doing too much work on its main thread. 09-06 12:17:32.007: I/Choreographer(2919): Skipped 30 frames! The application may be doing too much work on its main thread. 09-06 12:17:38.038: E/Panel(2919): FileNotFoundException 09-06 12:17:38.038: E/Panel(2919): java.io.FileNotFoundException: /2012Sep06121737.9.png: open failed: EROFS (Read-only file system) 09-06 12:17:38.038: E/Panel(2919): at libcore.io.IoBridge.open(IoBridge.java:416) 09-06 12:17:38.038: E/Panel(2919): at java.io.FileOutputStream.<init>(FileOutputStream.java:88) 09-06 12:17:38.038: E/Panel(2919): at java.io.FileOutputStream.<init>(FileOutputStream.java:73) 09-06 12:17:38.038: E/Panel(2919): at somitsolutions.training.android.androidpaint.AndroidPaint.onOptionsItemSelected(AndroidPaint.java:387) 09-06 12:17:38.038: E/Panel(2919): at android.app.Activity.onMenuItemSelected(Activity.java:2534) 09-06 12:17:38.038: E/Panel(2919): at com.android.internal.policy.impl.PhoneWindow.onMenuItemSelected(PhoneWindow.java:958) 09-06 12:17:38.038: E/Panel(2919): at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:735) 09-06 12:17:38.038: E/Panel(2919): at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:149) 09-06 12:17:38.038: E/Panel(2919): at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:874) 09-06 12:17:38.038: E/Panel(2919): at com.android.internal.view.menu.IconMenuView.invokeItem(IconMenuView.java:468) 09-06 12:17:38.038: E/Panel(2919): at com.android.internal.view.menu.IconMenuItemView.performClick(IconMenuItemView.java:126) 09-06 12:17:38.038: E/Panel(2919): at android.view.View$PerformClick.run(View.java:16966) 09-06 12:17:38.038: E/Panel(2919): at android.os.Handler.handleCallback(Handler.java:615) 09-06 12:17:38.038: E/Panel(2919): at android.os.Handler.dispatchMessage(Handler.java:92) 09-06 12:17:38.038: E/Panel(2919): at android.os.Looper.loop(Looper.java:137) 09-06 12:17:38.038: E/Panel(2919): at android.app.ActivityThread.main(ActivityThread.java:4745) 09-06 12:17:38.038: E/Panel(2919): at java.lang.reflect.Method.invokeNative(Native Method) 09-06 12:17:38.038: E/Panel(2919): at java.lang.reflect.Method.invoke(Method.java:511) 09-06 12:17:38.038: E/Panel(2919): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786) 09-06 12:17:38.038: E/Panel(2919): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553) 09-06 12:17:38.038: E/Panel(2919): at dalvik.system.NativeStart.main(Native Method) 09-06 12:17:38.038: E/Panel(2919): Caused by: libcore.io.ErrnoException: open failed: EROFS (Read-only file system) 09-06 12:17:38.038: E/Panel(2919): at libcore.io.Posix.open(Native Method) 09-06 12:17:38.038: E/Panel(2919): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110) 09-06 12:17:38.038: E/Panel(2919): at libcore.io.IoBridge.open(IoBridge.java:400) 09-06 12:17:38.038: E/Panel(2919): ... 20 more
case R.id.itemSaveImage: Calendar currentDate = Calendar.getInstance(); SimpleDateFormat formatter= new SimpleDateFormat("yyyyMMMddHmmss"); String dateNow = formatter.format(currentDate.getTime()); file = new File( "/" + dateNow +".9.png"); FileOutputStream fos; try { fos = new FileOutputStream(file); wallPaperBitmap.compress(Bitmap.CompressFormat.PNG, 100, fos); fos.close(); } catch (FileNotFoundException e) { Log.e("Panel", "FileNotFoundException", e); } catch (IOException e) { Log.e("Panel", "IOEception", e); } } return false; }
messi ::
oz še to če ima kdo kako idejo, kako se reče temu meniju če pogledat na tej strani:
https://play.google.com/store/apps/deta...
(pri slikarju če mi pove se mu zahvaljujem.)
https://play.google.com/store/apps/deta...
(pri slikarju če mi pove se mu zahvaljujem.)
Vredno ogleda ...
Tema | Ogledi | Zadnje sporočilo | |
---|---|---|---|
Tema | Ogledi | Zadnje sporočilo | |
» | [Android] SplošnoOddelek: Programiranje | 2016 (1146) | piki12 |
» | Programiranje problem androidOddelek: Programiranje | 1183 (948) | g333kk |
» | android črtaOddelek: Programiranje | 2417 (1688) | g333kk |
» | [android] vstavljanje slikeOddelek: Programiranje | 1251 (1148) | messi |
» | [android] crashOddelek: Programiranje | 1348 (1157) | messi |