diff --git a/docs/examples/android/app/src/main/AndroidManifest.xml b/docs/examples/android/app/src/main/AndroidManifest.xml index 881171d0f..f749563ec 100644 --- a/docs/examples/android/app/src/main/AndroidManifest.xml +++ b/docs/examples/android/app/src/main/AndroidManifest.xml @@ -10,26 +10,26 @@ android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" + android:extractNativeLibs="true" android:theme="@style/AppTheme"> + + - + android:exported="true"> - + + - - - - - + + diff --git a/docs/examples/android/app/src/main/java/com/cossacklabs/themis/android/example/MainActivitySecureCell.kt b/docs/examples/android/app/src/main/java/com/cossacklabs/themis/android/example/MainActivitySecureCell.kt index e6be58225..a19b860cc 100644 --- a/docs/examples/android/app/src/main/java/com/cossacklabs/themis/android/example/MainActivitySecureCell.kt +++ b/docs/examples/android/app/src/main/java/com/cossacklabs/themis/android/example/MainActivitySecureCell.kt @@ -1,5 +1,6 @@ package com.cossacklabs.themis.android.example +import android.content.Intent import android.os.Bundle import android.util.Base64 import android.util.Log @@ -18,6 +19,9 @@ class MainActivitySecureCell : AppCompatActivity() { } catch (e: Exception) { e.printStackTrace() } + + // Call the second activity + openSecondActivity() } private fun encryptDataForStoring() { @@ -33,4 +37,9 @@ class MainActivitySecureCell : AppCompatActivity() { val decryptedData = String(unprotected, charset) Log.d("SMC", "decrypted data = $decryptedData") } + + private fun openSecondActivity() { + val intent = Intent(this, MainActivitySecureMessage::class.java) + startActivity(intent) + } }