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 [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

Reply via email to