Android list Content-Resolver Uris - android-contentresolver

In android i can get a contentresolver with:
context.getContentResolver().query(Uri.parse(
Is it possible to list all content-resolver-uris?

The number of available content providers are based on what permissions you have specified in the Android Manifest for your application.
The Uri is made up of several parts. Are you trying to get all authorities or all possible paths for an authority?
You may see the current list of available content providers supplied by Android through android.provider
Please see Content Provider Basics for more information.

Related

Flutter Azure B2C - How can we use custom policies of Azure B2C (other than default signing/signout) in Flutter?

I've tried to use these libraries for use a custom policy (in my case profileManagement).
msal_mobile: ^0.1.4
azure_ad_authentication: ^1.0.4
msal_flutter: ^2.0.1
aad_oauth: ^0.1.6
But all these libraries are using common functionalities such as acquireToken,login,logout,acquireTokenInteractive,acquireTokenSilent,getAccount and so on.
However, I would like to call a custom policy. By using that policy user able to open an embedded web view and load certain things such as 1. change password , 2. update MFA option, 3. Delete account in that browser and can be perform these operations as well.Im attaching the screenshot.
Actually, I can show it in InAppWebBrowser without the help of MSAL library but when successful password change/successful MFA updation , a redirection is happening , that I can not achieve without using MSAL library.
I've checked almost all flutter libraries which supports MSAL, but there I couldn't find any solution to load a policy and resulting to load a browser. I happened to see an native android documentation in below link .
msal - native android documentation.In this doc they are mentioning about How to use Custom Policy. But Can't achieve the same in Flutter.There is no such methods.
Anyone please help me...

Here Flutter SDK (Explorer): How to retrieve details (e.g. contacts, fuelstation, evChargingPool)?

I was trying out the Flutter exmaples for the Here Flutter SDK (explorer). One use case would involve retrieving details about the found places. I checked the Place class and based on the nested details class I expected that I could retrieve detail Information about e.g., evChargingPools and the included charging station. Nevertheless detail information (contact, opening time ..) would also be of interest.
Unfortunately and independend of the type of query (TextQuery, PlaceIdQuery, CategoryQuery) i used, i could only retrieve the categories as part of the details node.
I am currently using the freemium version. I checked the documentation and at least up to my knowledge it does no state under which constraints (well excluded the case, the data does not exist) these detail information are included, or how to retrieve them.
your CategoryQuery has to include the FuelStations Ids.
https://www.developer.here.com/documentation/flutter-sdk-explore/4.13.2.0/dev_guide/topics/search.html#search-for-places-categories
So init a SearchEngine and a CategoryCategory with the area and the PlaceCategory.id(id: 7600)
Source for PlaceCategories: https://developer.here.com/documentation/geocoding-search-api/dev_guide/topics-places/places-category-system-full.html#400---transport
Sorry if i can't provide a SourceCode example (my app is written in Swift so no Flutter), but i can provide you a Postman Request for it :)

How to read `--flavor` parameter value from flutter code?

Flutter run and build commands accept the --flavor parameter. I have found a tutorial on implementing it in Android and iOS projects. And, I also found a way to access the flavor name from the flutter code.
But I still have no idea how to access the flavor name on other platforms. It seems flutter documentation has no information about it.
Is there a way to read the --flavor parameter value from the flutter code on any platform?
The reason for my question in the comments is that you might be looking for using the --dart-define flag when building your app, instead of --flavor.
They serve different purposes, so both might be required depending on your desired outcome.
The value passed via the dart define flag can be accessed in the code via String.fromEnvironment(...)

Missing Document Providers using Intent.ActionCreateDocument

When I use Intent.ActionOpenDocument as the activity the resulting picker shows all available document providers. When I use Intent.ActionCreateDocument the resulting picker shows a limited subset of document providers. Does anyone know of a method to have the Intent.ActionCreateDocument picker show all document providers?
When OneDrive app is installed it support ACTION_OPEN_DOCUMENT Intent (Android Storage Access Framework (SAF)), but unfortunately it does not support ACTION_CREATE_DOCUMENT intent from the same SAF.Thus we can implement work-around: 1st invoke ACTION_SEND and latter ACTION_OPEN_DOCUMENT.
But this means bad user experience for end user when interacting with OneDrive comparing to doing same action with Google Drive (which support both open and create intents.) As result user would need to select file twice using OneDrive and only once if he use GDrive.

VSTS Extension - Release definition data, environment ids

I am developing web extension for VSTS. I am using vss sdk of Microsoft.
I got some issue.
You can see on the image that there is new line - App insights Settings
This pop up appears on clicking on 3 dots near every release definition on page of list of all releases.
This button navigates user to some environment of some specific release.
Example of link:
https://ozcodedev.visualstudio.com/OzCode/_releaseProgress?releaseId=372&_a=release-environment-logs&environmentId=850
The problem that I do not know how to fetch list of releases and environments for building this link.
How can I get them on page All release pipelines.
Through the GUI it is not possible to get all the release ids and the environment ids for each step. However this is possible through the VSTS APIS. You could use the release endpoint to and iterate to obtain your release id
https://{accountName}.vsrm.visualstudio.com/{project}/_apis/release/releases?api-version=4.1-preview.6
Once you have the release id you can use it like so
https://{accountName}.vsrm.visualstudio.com/{project}/_apis/release/releases/{releaseId}?api-version=4.1-preview.6
Within the returned JSON you can follow iterate the path environment[n].id to obtain the environment id.
You can then construct the link using this information.
Hope that helps
Ok. So after working 2 days on this issue I found solution.
1.It is possible to fetch data that I wanted on Client Side. For this I used Microsoft's library vss-web-extension-sdk. Install it - npm install vss-web-extension-sd --save.
2.Add relevant scopes to your vss-extension.json. In my case the problem was - that I needed data that relates to managing of VSTS user releases. So after Including "vso.release_manage" to my scopes array I stopped to got 401 Unauthorized error because access token was changed according to new scopes.
https://learn.microsoft.com/en-us/vsts/extend/develop/manifest?view=vsts#scopes
In this documentation you can check which scope controls which resources that can be accessed by your extension.
You can use our ts/js clients to get whatever you want for your experience.
We have extensive documentation available here. Let me know if you are blocked anywhere.