I need to get external storage location path, for that have in android Environment.getExternalStorageDirectory()
but how can i use this in phonegap with javascript?
Asked
Active
Viewed 517 times
0

Dhamu
- 1,694
- 5
- 22
- 47
1 Answers
0
For use java classes in PhoneGap
you should take a look over here : Communication between Android Java and Phonegap Javascript, it will definitely hep you

Community
- 1
- 1

Harish Godara
- 2,388
- 1
- 14
- 28
-
public class storage { String state = Environment.getExternalStorageState(); return state; } but error like this syntax error on token return invalid type.. – Dhamu Sep 20 '13 at 10:41
-
This is not the way to write class in java, please check link again and follow procedure accordingly – Harish Godara Sep 20 '13 at 11:11
-
Environment.getExternalStorageDirectory() working for me, but its returns internal sdcard path, but i need to get external sdcard path – Dhamu Sep 20 '13 at 12:30