<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>https Archives - Creatronix</title>
	<atom:link href="https://creatronix.de/tag/https/feed/" rel="self" type="application/rss+xml" />
	<link>https://creatronix.de/tag/https/</link>
	<description>My adventures in code &#38; business</description>
	<lastBuildDate>Mon, 20 Oct 2025 06:57:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Features and Permissions in Android</title>
		<link>https://creatronix.de/features-permissions-in-android/</link>
		
		<dc:creator><![CDATA[Jörn]]></dc:creator>
		<pubDate>Tue, 28 May 2019 07:41:26 +0000</pubDate>
				<category><![CDATA[Android & iOS development]]></category>
		<category><![CDATA[Android]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[https]]></category>
		<category><![CDATA[internet access]]></category>
		<category><![CDATA[permission]]></category>
		<category><![CDATA[tls]]></category>
		<category><![CDATA[usesCleartextTraffic]]></category>
		<guid isPermaLink="false">http://creatronix.de/?p=2675</guid>

					<description><![CDATA[<p>Features and Permissions A permission is something an app is allowed to do 🙂 E.g. using the camera, reading location or accessing your contacts. &#60;uses-permission android:name="android.permission.CAMERA" /&#62; &#60;uses-feature android:name="android.hardware.camera" android:required="true" /&#62; Internet Access If your app uses e.g. web-APIs you need internet access. This can be achieved by adding android.permission.INTERNET to your manifest. In this&#8230;</p>
<p>The post <a href="https://creatronix.de/features-permissions-in-android/">Features and Permissions in Android</a> appeared first on <a href="https://creatronix.de">Creatronix</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h2>Features and Permissions</h2>
<p>A permission is something an app is allowed to do 🙂</p>
<p>E.g. using the camera, reading location or accessing your contacts.</p>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-html" data-lang="XML"><code>&lt;uses-permission android:name="android.permission.CAMERA" /&gt; 
&lt;uses-feature android:name="android.hardware.camera" android:required="true" /&gt;</code></pre>
</div>
<h2>Internet Access</h2>
<p>If your app uses e.g. web-APIs you need internet access. This can be achieved by adding android.permission.INTERNET to your manifest. In this case you need the uses-permission tag.</p>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-html" data-lang="XML"><code>&lt;manifest package="de.creatronix.sample_app" xmlns:android="http://schemas.android.com/apk/res/android"&gt; 
&lt;uses-permission android:name="android.permission.INTERNET"/&gt; 
&lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/&gt;</code></pre>
</div>
<p><code dir="ltr" translate="no"><a href="https://developer.android.com/reference/android/Manifest.permission#INTERNET">INTERNET</a></code></p>
<p>Allows applications to open network sockets.</p>
<p><code dir="ltr" translate="no"><a href="https://developer.android.com/reference/android/Manifest.permission#ACCESS_NETWORK_STATE">ACCESS_<wbr />NETWORK_<wbr />STATE</a></code></p>
<p>Allows applications to access information about networks.</p>
<h2>Non-TLS APIs</h2>
<p>When You have resources which do not use TLS (https but just http) you have to add</p>
<div class="hcb_wrap">
<pre class="prism line-numbers lang-html" data-lang="XML"><code>&lt;application 
... 
android:usesCleartextTraffic="true"&gt; 
&lt;/application&gt;</code></pre>
</div>
<p>&nbsp;</p>
<p>Permissions in Services</p>
<p>Checking Permission</p>
<pre><span style="color: #004000;">import android.content.pm.PackageManager;
int uid = getCallingUid(); 
int pid = getCallingPid(); 
Log.d(LOGTAG, "Message from PID " + pid + " UID " + uid);
int perm = mContext.checkPermission("de.creatronix.my_service.MY_PERM", pid, uid); 
if (perm == PackageManager.PERMISSION_GRANTED) 
    Log.d(LOGTAG, "Granted"); 
else 
    Log.d(LOGTAG, "Denied");
</span></pre>
<p>Enforcing Permissions</p>
<pre><span style="color: #004000;">mContext.enforceCallingPermission("de.creatronix.my_service.MY_PERM", "echoString permission not granted"); </span></pre>
<p>More about permissions:<br />
<a href="https://developer.android.com/reference/android/Manifest.permission.html">https://developer.android.com/reference/android/Manifest.permission.html</a></p>
<p>The post <a href="https://creatronix.de/features-permissions-in-android/">Features and Permissions in Android</a> appeared first on <a href="https://creatronix.de">Creatronix</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
