<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How to maintain one time login in android screenlet app ?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=79759348" />
  <subtitle>How to maintain one time login in android screenlet app ?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=79759348</id>
  <updated>2026-04-04T21:43:34Z</updated>
  <dc:date>2026-04-04T21:43:34Z</dc:date>
  <entry>
    <title>RE: How to maintain one time login in android screenlet app ?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=79860120" />
    <author>
      <name>Javier Gamarra</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=79860120</id>
    <updated>2016-09-22T22:27:23Z</updated>
    <published>2016-09-22T22:27:23Z</published>
    <summary type="html">Thanks to you &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;</summary>
    <dc:creator>Javier Gamarra</dc:creator>
    <dc:date>2016-09-22T22:27:23Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to maintain one time login in android screenlet app ?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=79835812" />
    <author>
      <name>Amit Sinha</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=79835812</id>
    <updated>2016-09-22T14:43:23Z</updated>
    <published>2016-09-22T14:43:23Z</published>
    <summary type="html">Thanks Javier,&lt;br /&gt;with a little modifications in code, the code worked.&lt;br /&gt;User do not have to re login every time.&lt;br /&gt;&lt;br /&gt;some modification required were as below :&lt;br /&gt;&lt;br /&gt;import com.liferay.mobile.screens.context.storage.CredentialsStorageBuilder;&lt;br /&gt;instead of &lt;br /&gt;// import com.liferay.mobile.screens.context.storage.CredentialsStoreBuilder;&lt;br /&gt;&lt;br /&gt;SessionContext.loadStoredCredentials(CredentialsStorageBuilder.StorageType.SHARED_PREFERENCES);&lt;br /&gt;instead of&lt;br /&gt;// SessionContext.loadSessionFromStore(CredentialsStoreBuilder.StorageType.SHARED_PREFERENCES);&lt;br /&gt;&lt;br /&gt;if (SessionContext.isLoggedIn()){}&lt;br /&gt;instead of&lt;br /&gt;// if (SessionContext.hasSession()) {}&lt;br /&gt;&lt;br /&gt;and in activity xml file&lt;br /&gt;&lt;br /&gt;app:credentialsStorage=&amp;#34;shared_preferences&amp;#34;&lt;br /&gt;instead of&lt;br /&gt;&amp;lt;!--  app:credentialsStore=&amp;#34;shared_preferences&amp;#34;  --&amp;gt;&lt;br /&gt;&lt;br /&gt;Once Again Thanks Javier.&lt;br /&gt;&lt;br /&gt;Amit.</summary>
    <dc:creator>Amit Sinha</dc:creator>
    <dc:date>2016-09-22T14:43:23Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to maintain one time login in android screenlet app ?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=79770993" />
    <author>
      <name>Javier Gamarra</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=79770993</id>
    <updated>2016-09-21T15:26:20Z</updated>
    <published>2016-09-21T15:26:20Z</published>
    <summary type="html">I think you are looking for something like this: https://www.youtube.com/watch?v=kEZEahTzuck&lt;br /&gt;&lt;br /&gt;There has been some API changes but the basics are the same, to store the credentials and login before showing a screen to the user.</summary>
    <dc:creator>Javier Gamarra</dc:creator>
    <dc:date>2016-09-21T15:26:20Z</dc:date>
  </entry>
  <entry>
    <title>How to maintain one time login in android screenlet app ?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=79759347" />
    <author>
      <name>Amit Sinha</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=79759347</id>
    <updated>2016-09-21T11:34:39Z</updated>
    <published>2016-09-21T11:34:39Z</published>
    <summary type="html">Hi Everyone,&lt;br /&gt;&lt;br /&gt;I have created an android liferay screenlet app. The app is working fine but there is an annoying issue while using.&lt;br /&gt;If a user install that app, a token for his mobile number is added in pushnotifications device section.&lt;br /&gt;Now everytime this user gets notification, to check his  notification he has to perform authentication&lt;br /&gt;Also user has to authenticate whenever he opens his app first time by clicking its icon on mobile.&lt;br /&gt;&lt;br /&gt;Is there any way that user has to authenticate himself only once. After that whenever his gets notification he can see it without login. Similarly he shouldn&amp;#39;t login to open this app.&lt;br /&gt;Does user name, and token for his mobile should be saved along with his login critential in database.&lt;br /&gt;&lt;br /&gt;Waiting for guidance.&lt;br /&gt;Thanks and Regards,&lt;br /&gt;Amit.</summary>
    <dc:creator>Amit Sinha</dc:creator>
    <dc:date>2016-09-21T11:34:39Z</dc:date>
  </entry>
</feed>
