adb shell is best...i can use it Linux like... On Mar 17, 11:44 am, Bob Kerns <r...@acm.org> wrote: > I can't really make out what you're doing. > > You have a 'bos.write(myByte);' line that references bos, with no clue > what that is. > > I don't know what myvals or x are intended to be. > > I don't see a filecon.close() anywhere, or a try/finally block to > ensure it's closed (and preferably deleted) in the event of an > exception. > > So I'm afraid I can't offer any insight into your code. > > But I can answer your last question. In non-Eclipse DDMS, you have to > invoke the file manager from the Device/File Manager... menu item to > get the window with the Push and Pull buttons. > > The equivalent in Eclipse is the Android 'File Explorer' view. Go to > Windows/Show View, and choose the File Explorer view. It will have the > little android lower-case 'a' icon next to it. This view has the push/ > pull icons over on the right on its icon bar. > > DDMS shows a subset of the filesystem; you can see the rest if you go > in via 'adb shell'. But it's probably everything you're likely to need > to look at. > > On Mar 16, 10:37 pm, sumit asok <sumita...@gmail.com> wrote: > > > Hi, > > > I'm trying to write a file from an Http post reply to a file on the > > sdcard. Everything works fine until the byte array of data is > > retrieved. > > > I've tried setting WRITE_EXTERNAL_STORAGE permission in the manifest > > and tried many different combinations of tutorials I found on the net. > > > How my app writes file is by using a thread. Specifically, a thread is > > invoked from another thread when a file has to be written, so giving > > an activity object didn't work even though I tried it. > > > The app has come a long way and I cannot change how the app is > > currently written. Please, someone help me? > > > CODE: > > > File file = new File(bgdmanip.savLocation); > > FileOutputStream filecon = null; > > filecon = new FileOutputStream(file); > > > // bgdmanip.savLocation holds the whole files path > > > byte[] myByte; > > myByte = Base64Coder.decode(seReply); > > Log.d("myBytes", String.valueOf(myByte)); > > bos.write(myByte); > > filecon.write(myByte); > > myvals = x * 11024; > > > seReply is a string reply from HttpPost response. the second set of > > code is looped with reference to x. the file is created but remains 0 > > bytes > > > i cannot see the push pull buttons in eclipse DDMS. Is this something > > about why I'm not able to write to file ? I can see the sdcard and > > files in it but no control buttons mentioned above are visible.
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.