Forum Discussion
How to open specific Screen of Microsoft SharePoint App from my custom Android App?
I want to open frequent sites or other Screen of Microsoft SharePoint Android App from another Android App ( Kotlin / Java).
Any leads would be highly appreciated.
1 Reply
- KaranvaghelaBrass Contributor
Please follow below steps for SharePoint app
*Identify the SharePoint URL
Determine the specific URL or content path you want to open in SharePoint.
For example
Site: https://yourcompany.sharepoint.com/sites/SiteName
Document Library: https://yourcompany.sharepoint.com/sites/SiteName/Shared Documents
Specific File: https://yourcompany.sharepoint.com/sites/SiteName/Shared Documents/filename.docx
*Use Intent in AndroidSharePoint app supports opening specific URLs. You can use an Intent in your Android app to launch the SharePoint app or the browser
*Fallback to Browser
If the SharePoint app is not installed, you can open the URL in the device’s default web browser
*Test Deep Links:- Ensure that the URL works correctly when opened directly in a browser.
- Test the behavior when the SharePoint app is installed and when it’s not installed.
*Check Microsoft Graph API (Optional)
If you need to dynamically generate URLs or access SharePoint data programmatically, use the Microsoft Graph API. You can retrieve the necessary URLs using the API and then pass them to the intent.