how to use a hyperlink in android application - hyperlink

I want to give a forgot password hyperlink on my login page and when it is clicked another page should be opened and not a web page in my android application.What should I use for dat and wot code needs to be written and where ??

Related

Firebase Dynamic Link Page Not Opening In App (iOS)

I am implementing passwordless sign in with Firebase using dynamic links. When a user clicks on the sign in link in their email, the default behavior is to open the link in the app. However, if a user long presses on the link, they have the option to open the link in Safari.
This is the page in Safari. When the 'Open' button is clicked to open the link in the app, the website is opened instead of the app. This makes no sense considering the default behavior opens the link in the app. Any thoughts on what the problem could be?
Here is the dynamic link format (With the API key removed, so it does not work):
https://campuscosmo.page.link/?link=https://hippocampus-b50aa.firebaseapp.com/__/auth/action?apiKey%XXXXXXXXXXXXXXXXXXXXXcontinueUrl%3Dhttps://campuscosmo.com/openOnMobile.html%26lang%3Den&ibi=com.Stakeup.hippocampus.HippoCampus&ifl=https://hippocampus-b50aa.firebaseapp.com/__/auth/action?apiKey%XXXXXXXXXXXXXXXXXXXXX%26mode%3DsignIn%26oobCode%3DSS_k-J6W2i4OMXjcYqr-dyh7LEufGpFMTJejP9De9FIAAAF2lYCqkQ%26continueUrl%3Dhttps://campuscosmo.com/openOnMobile.html%26lang%3Den

Open iOS FB app with URL Schema

I am investigating ways to open the FB app using a URL Schema. I want to open my app directly to the Search Page and automatically fill the search bar. I am not seeing the search page covered in the URL Schemas:
URL Scheme to open a post in facebook app
Currently, my app is able to go to the search page by creating a custom hyperlink through code and launching Safari. However, most people are not logged into FB through Safari so this causes me issues.
Any thoughts?

Build web page request in Objective C

I'm building a native application. The app has an embedded webview (UIWebView) pointing to a social website. To be able to use the website inside the app, user has to log in by the webview (username/password) and then he can continue use the site with saved cookies. Normally, the cookies expire after two days. After that, the user has to re-login by the webview.
Now suppose I know username and password of the user and I would like to make the user login automatically with this account when the cookie expires. How can I do that?
I tried to simulate the Login action when I click on Login button on web page, but not successful.By using "Inspect Element" of Chrome, I can see Chrome makes a "Post" request to an URL with some parameters. However, the request doesn't get successful (I use REST client for testing).
Finally I found out the solution. I didn't build requests anymore. I used javascript to set text fields and make "click" action on the webview. Done.

logout does not work properly in struts2

i am developing a struts project.
In login page action stored username and password in session.
In logout action class using session.invalid and removed that session details and redirected to index page.
But i click back button in browser it goes to the previous page.
Now i need sample code for if i am clicking back button after logging out it will show the error message or it display index page like yahoo mail.
need sample for that in struts2
As I know, very hard to do JS side. because back button belong to web browser. Our project do below way:
When logout, close currently window and open new window. that will help you clear history.

Facebook Application and URLs

I developed a Facebook application using Ruby on Rails but I have a slightly annoying problem.
When I click any URL inside the application the application redirects to the correct view and everything is working just fine but the URL on the browser is not updating accordingly. The problem is that if I click refresh on the page I will be redirected to the home page of the directory ( that's correct because the URL in the browser is the home URL ) instead of the page that I was.
Example:
App URL:
https://apps.facebook.com/example
Clicking the books link is showing the page correctly but not modifying the browser's URL to:
https://apps.facebook.com/example/books
So next time that I will hit refresh I will be redirected to the home page because the browser link is still:
https://apps.facebook.com/example
Any suggestions?
you need to be aware that your app is an iframe app(i assume you didnt use FBML), that means it is contained in a iframe. So when you create your links, add a target=_top will change the url.
When You create a link You must define target with _parent like:
link

Resources