Android

java.lang.SecurityException: Permission Denial: Intent android

2 Jul , 2014  

When i deploy into android devices, suddenly it’s not running automatically and i got this:

1
java.lang.SecurityException: Permission Denial: Intent

To solve, please add “android:exported=”true” and make sure no duplicate activity in your Manifest.xml.

1
2
3
4
5
6
<application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/CustomActionBarTheme"
        android:exported="true" >

Android

Generate facebook android key hash

2 Jul , 2014  

Here is snippet to generate facebook android key hash :

1
keytool -exportcert -alias androiddebugkey -keystore %HOMEPATH%\.android\debug.keystore | openssl sha1 -binary | openssl base64