Common operations for Android apps. For Android libraries specific operations, check out Android-library.md
- Open
AndroidManifest.xml
- Add the
<uses-permissions>
tag to the root element (<manifest>
) of the XML file.
E.g.:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.domain.package">
<uses-permission android:name="android.permission.INTERNET" />
<!-- more stuff -->
</manifest>
path = new java.io.File(
Environment.getExternalStorageDirectory().toString()
+ "/Android/path/to/file.txt", "Cartella"
);
if (!path.exists()) {
path.mkdirs();
}
// save File to 'path'