83547

Creating a Password when installing an android apps

Question:

I want to create an application that prompts the user to create a password before the application is installed and also before the application can be uninstalled the password must be entered. I have ran out of ideas on how to go about the code. Please can anyone give me a code and an insight on how to go about this_ I would appreciate a lot.

Answer1:

You can use shared preference/db to have default value and see if there is a default value you can prompt dialog

Answer2:

<blockquote>

I want to create an application that prompts the user to create a password before the application is installed

</blockquote>

To be clear you said BEFORE the app is installed. This might be Possible. But "dirty". In the user journey your user downloads and installs the APK from the market or where ever. None of your app code has run yet so there's nothing to leverage.

A possible work around, which I have heard others use but not tried myself so no guarantees, is to write a login app that when installed prompts for password creation and on success downloads the actual app.

I would probably say - why? What it the motive behind doing this? Lots of apps work fine installing the whole app (Spotify comes to mind).

Answer3:

I don't think this is possible the android market takes downloads and installs or user installs some other way and the user uninstall via manage application in the settings, all of these things happen outside of the scope of an app

Answer4:

See <a href="http://developer.android.com/guide/topics/admin/device-admin.html#code" rel="nofollow">Device Administrations API</a>

Recommend

  • Daywise search from the datepicker
  • Why is this method returning null even though the underlying controller is mocked using Spocks'
  • How do I make msbuild find .Net assemblies when using a custom task (UsingTask)>
  • Dagger2 difference between modules and dependincies
  • Excel - How to create button upon Workbook_Open event
  • PHP SwiftMailer or PEAR Mail
  • Compressing “n”-time object member call
  • TimePickerDialog widget in landscape mode (PreferenceScreen)
  • Setting up Redis on Azure cloud service worker role
  • How to use output buffering inside PHPUnit test?
  • Warning: ldap_start_tls() [function.ldap-start-tls]: Unable to start TLS: Server is unavailable
  • Which reference source does include Microsoft.VisualBasic?
  • Geo Fix not working in Android SDK 2.2
  • Installing PAR::Packer on Windows, dmake error 255
  • mysql table locked after php crashes
  • SIP Makefile fail (gnuwin and mingw)
  • What is Closure Compiler?
  • dismiss Progress Dialog in another Activity … Android
  • How to remove all of a jQuery UI dialog when it is closed
  • ASP.NET windows authentication should always ask for credentials
  • Regex for Specific Tag
  • Less Conflicting Session Manager for Zope 2
  • Changing Jupyter Notebook start up folder by modifying “start in” not working any more
  • How can we prepend rows to a react native list-view?
  • How to pass a value from ASP.NET MVC controller to ASP.NET webforms control inside MVC View?
  • Ubuntu and bcrypt
  • What's the purpose of QString?
  • How can I extract results of aggregate queries in slick?
  • Visual Studio 2010 debugger build correctly - compiler pdb and linker pdb not in synch?
  • Needing to do .toArray() to get output of mongodb .find() on key name not value
  • Jackson Parser: ignore deserializing for type mismatch
  • Alert pop up with LWUIT
  • MongoDB in PHP using aggregate to group by _id is null not working
  • How do I change content of ComboFieldEditor?
  • Why HTML5 Canvas with a larger size stretch a drawn line?
  • Spray.io: When (not) to use non-blocking route handling?
  • Modifying destination and filename of gulp-svg-sprite
  • GridView Sorting works once only
  • Angular 2 constructor injection vs direct access
  • Turn off referential integrity in Derby? is it possible?