4

I need to send URI for Deep Link from Android manifest to the server - is it possible to get URL scheme programmatically?

Or may be change Android manifest programmatically and add new scheme after app start.

Thanks!

Enuviel
  • 316
  • 2
  • 7
  • "I need to send scheme from Android manifest" -- what do you mean by "scheme"? "is it possible to get it programmatically?" -- what is "it" in the phrase "get it"? "Or may be change Android manifest programmatically" -- that is not possible. The closest you can come is to enable and disable components (e.g., activities, services) via `PackageManager` and `setComponentEnabledSetting()`. – CommonsWare Dec 20 '16 at 19:10
  • By "scheme" I mean scheme for Deep Links like this . – Enuviel Dec 20 '16 at 19:25
  • setComponentEnabledSetting() not works for me, thanks! By "get it" I mean get android:scheme, sorry for my English. May be you know, is it possible to get all data from Manifest? – Enuviel Dec 20 '16 at 20:42
  • I do not know of a good way to get at data in `` elements, sorry. – CommonsWare Dec 20 '16 at 20:44
  • Basically it is not possible. See http://stackoverflow.com/questions/9814989/programmatically-list-intent-filters/9815172#9815172 Unfortunately, this does not work as documented. :-( See https://code.google.com/p/android/issues/detail?id=3217 – David Wasser Dec 21 '16 at 10:25
  • yep, this is sad:( .... I will try get all content from manifest.. – Enuviel Dec 21 '16 at 15:17
  • Get AndroidManifest file: [ http://stackoverflow.com/questions/2097813/how-to-parse-the-androidmanifest-xml-file-inside-an-apk-package](http://stackoverflow.com/questions/2097813/how-to-parse-the-androidmanifest-xml-file-inside-an-apk-package) then convert to xml and parse xml. – Enuviel Jan 14 '17 at 06:20

0 Answers0