First of all, it is completely possible to start a thread in a child thread, and there is no parent-child relationship between threads, they are equal;
Secondly, for Android development, you can obtain the connection in the thread pool in the Service. The Service runs in the UI thread. You can obtain the Service object wherever there is a Context object, and then uniformly manage the sub-threads through the Service; then call Seven The put() method of the UploadManager object in Niu SDK uploads files;
As for the last question, according to the upload interface documentation provided by Qiniu, you must first obtain the token assigned by the server as a parameter of the put() method before uploading.
First of all, it is completely possible to start a thread in a child thread, and there is no parent-child relationship between threads, they are equal;
Secondly, for Android development, you can obtain the connection in the thread pool in the Service. The Service runs in the UI thread. You can obtain the Service object wherever there is a Context object, and then uniformly manage the sub-threads through the Service; then call Seven The put() method of the UploadManager object in Niu SDK uploads files;
As for the last question, according to the upload interface documentation provided by Qiniu, you must first obtain the token assigned by the server as a parameter of the put() method before uploading.