I'm pretty new to Android development and I'd like to know whether Android supports the above mentioned features which are there in C.
Thanks in advance.
I'm pretty new to Android development and I'd like to know whether Android supports the above mentioned features which are there in C.
Thanks in advance.
These functions are available when coding in native C via the Android NDK. The NDK has a standard C library which includes these functions.
If you prefer to remain in the Android Java environment, you will find that there is no concept of current working directory, so chdir() and getcwd() are obsoleted. Instead, the system makes available a set of functions for discovering internal and external storage paths (see http://developer.android.com/guide/topics/data/data-storage.html). Also typical uses of setjmp()/longjmp() can be generally covered by Java exceptions or other mechanisms.
Not sure whether it has those integrated into the language, but if you really need to access any Native C methods, you could use JNI (Java Native Interface), which will allow you to run Native C code.
Also, take a look at the Exception and File classes - they may give you similar functionality.
You shouldn't need them. Apps for Android are generally done in Java. setjmp/longjmp is a C/C++ thing (yes, I programmed in it for a while and still hate it :-)