I want to make an activity that when called appears as a small popup on top of any current app (or home screen) kinda like google assistant usually does when called. It is intended to ask for a fingerprint input for 3 seconds or hide if user touches outside its window.
Asked
Active
Viewed 136 times
-1
-
Try this :- https://stackoverflow.com/questions/36016369/system-alert-window-how-to-get-this-permission-automatically-on-android-6-0-an – Santanu Sur Jun 25 '19 at 04:32
-
is this you are looking for https://www.androidauthority.com/add-fingerprint-authentication-app-biometricprompt-943784/ – Basi Jun 25 '19 at 04:36
1 Answers
0
Google assistant is service not any popup activity.
you can do popup activity but, it will only work for when app in foreground like google assistant need background service.
you can use theme
android:theme="@android:style/Theme.Holo.Light.Dialog.MinWidth"
for activity make like pop dialog. for this theme require activity instead of appcompatactivity.
if you want exclude from recent use in manifest android:excludeFromRecents="true"
<activity
android:name=".ActivityName"
android:excludeFromRecents="true"
android:label="@string/app_name" />

Brijesh Lukhi
- 15
- 1
- 1
- 9