سؤال

I am developing an android application which generates a report then I would like to transfer this report to a remote server using SFTP. I found some examples using the JSch's API and tried them but every time I try to send the report the app stops.

Is there any other options which I can use to send a file from android device to a server using SFTP?

هل كانت مفيدة؟

المحلول

I solved it. Had to put the code in a Thread.

Thread connectionThread = new Thread(new Runnable() { public void run() {} });

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top