Write file to location other than SDcard using Android NDK?

You can always access the directory in which your app is placed. This directory is usually : data/data/<Your_package_name_usually com.android.appName>/files/<your_filename> but better use getFilesDir() to ensure valid filepath with future version changes of android. If you wanna use external storage instead, make sure you place this line of code in your app manifest to gain permission. … Read more

Query Available iOS Disk Space with Swift

iOS 11 Update The answers given below no longer provide accurate results under iOS 11. There are new volume capacity keys that can be passed to URL.resourceValues(forKeys:) that provide values that match what is available in device settings. static let volumeAvailableCapacityKey: URLResourceKey Key for the volume’s available capacity in bytes (read-only). static let volumeAvailableCapacityForImportantUsageKey: URLResourceKey … Read more

Taking screenshot programmatically doesnt capture the contents of surfaceVIew

I finally solved this . Below i give some code for anyone who wants to know how to take screenshots of a layout ,pictures from the camera without intent, screenshots(sort of) of the content of a surfaceView and save the screen shot in a folder : public class Cam_View extends Activity implements SurfaceHolder.Callback { protected … Read more