What you are doing is not supported in the SDK, so this is not an appropriate place to ask about it, sorry.
On Wed, Mar 21, 2012 at 7:07 PM, A B <[email protected]> wrote: > Thanks for Your Reply See my question properly. i want to to do copy via > native code , i already installed busy-box so i can able to use cp command > on android shell. cp command is working directly on shell but its not > working via system call. > > So i want to know about how can i achieve this goal via system call. > > Thanks > > On 21 March 2012 23:08, A B <[email protected]> wrote: > >> I want to copy file from on directory to another in my native C program. >> I tried using system function but it's not working. >> >> I tried this code in native code of Android >> >> int result = system("cp /mnt/test /Download/"); // It's not working >> >> >> >> This system function returns 256 (error code) integer value. So we can >> say system function is working in Android. I also installed BusyBox so I >> can use the cp command also. >> >> If I execute directly cp /mnt/test /Download/ command then it's working >> fine. >> >> So what is problem here in system function. Have I missed something? >> >> Thanks >> >> Sam Jona >> > > -- > 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<[email protected]> > To unsubscribe from this group, send email to > android-developers+[email protected]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en> > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

