0

I have a unique situation while developing my andorid mobile app. I am using some third party libary to get the bluetooth reading within my application. so far i am able to get the reading successfully but when the third party libary takes the reading from bluetooth device and it sends the reading to its own server, after that it passes the reading to my application.

so i want to restric the call made by third party libary , following is the ulr that the libary is using.

https://mobile.XXXX.com/v1/organizations/

is there any way to block the above url by programmaticallyor by declaring some setting in android manifest file

Hunt
  • 8,215
  • 28
  • 116
  • 256

1 Answers1

0

I found a similar article over here

It shows how to block specific URL access and How to create a URL whitelist

I don't have much knowledge of blocking URL's I simply use match cases for a specific website name for example

   if(websiteName.equals("WEBSITE_TO_BLOCK.com")){
        //Do nothing }
rajat singh
  • 165
  • 1
  • 11
  • not a relevant solution at all , the article that you are referring to is `Knox Standard SDK` and not android native. Moreover the code that you have shared is not helpful – Hunt Nov 28 '18 at 08:36
  • @Hunt oh sorry for that as I said I have no experience with Android Network Blocking functionality, I have read several similar questions over stack overflow one of similar question is this [link](https://stackoverflow.com/questions/6839841/blocking-websites-on-android), I think blocking is not allowed on non-rooted devices – rajat singh Nov 28 '18 at 09:17