how to get the full path of sdcard directory in android phonegap with javascript?

后端 未结 3 809
庸人自扰
庸人自扰 2021-01-19 17:26

I am using PhoneGap 2.8.0 for android app.

Need to get the full path of sdcard using javascript in phonegap, because in my mobile it shows the location as file

3条回答
  •  甜味超标
    2021-01-19 17:57

    Please try this code..

    There is window.appRootDir.fullPath through you get full path but before that you must use dirReady();

    
    
    
        
            
            
                Insert title here
            
            
            
        
    
        
            Download File
        
    
    
    

提交回复
热议问题