문제

When I download a file on my Android phone from my webserver it save it as

 downloadfile.apk

The file is saved on my server as MyApp.apk

Do you know how to make the file appear as MyApp.apk in the downloaded files list on Android?

I should also mention that to get the file to download and be understood by the phone I modified the .htaccess file on the server to be

 AddType application/vnd.android.package-archive apk
 DirectoryIndex MyApp.apk
도움이 되었습니까?

해결책

I got it to work on my server by adding this to my .htaccess

AddType application/vnd.android.package-archive apk

You shouldn't have put the 2nd line in yours. Also, make sure you have a line break at the very end, I have had issues before when missing that.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top