Android Question como poner licencia o caducidad a mi app?

Discussion in 'Android Questions' started by beristain1234, May 31, 2019.

Similar threads

B4A Question Unparseable date
B4A Library UsageStatsManager
B4A Question GetWeekOfYear(DateTime.DateParse... Wrong
B4A Question Where is the error?
B4A Question Unparseable Date
  1. beristain1234

    beristain1234 New Member

    Necesito que mi aplicación tenga una caducidad o un trial de 30 días, hice una comparación de fechas con la fecha del dispositivo. El problema es si el dispositivo cambia la fecha, la aplicacion seguira funcionando...
    como se podria hacer para que esto no sucediera?

    Sub Activity_Create (FirstTime As Boolean)
    Activity.LoadLayout ("INICIO")
    Dim ahora, hoy, caduca, plazo tan largo
    'Atención es: mm / dd / aaaa
    caduca = DateTime.DateParse ("22/03/2019")
    hoy = DateTime.DateParse (DateTime.date (ahora))
    plazo = caduca - hoy
    Si plazo <= 0 entonces
    Msgbox ("El programa ha caducado.", "Caducidad")
    Actividad.Finalizar
    Terminara si
    End Sub
     
  2. DonManfred

    DonManfred Expert Licensed User

    1. This is the english part of the forum. Write english here. You can use the spanish/portuguese forum to ask your question in this language.
    2. Please use [CODE]code here...[/CODE] tags when posting code.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice