question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a way to access http requests in app

See original GitHub issue

⚠️ Is your feature request related to a problem? Please describe

I am developing an Android TV app and use Chucker to view requests. Because TV doesn’t have split screen, we have to fully switch activities for view the list.

💡 Describe the solution you’d like

There are a few possible solutions for this:

  • A view provided for use in app
  • Expose the TransactionListFragment for use in app
  • Expose a livedata/flow of HttpTransactionTuple from RepositoryProvider

📄 Additional context

A key use case for us would be on our video player fragments. We use ExoPlayer with OkHttp (same instance used for rest of app). We sometimes need to verify headers, params, etc for playback. Currently, we have a button on the remote launch the Chucker activity, but it would be much nicer to have inline.

🙋 Do you want to develop this feature yourself?

  • Yes
  • No Absolutely, wanted to get some feedback on the best way(s) to implement this

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
cortinicocommented, Apr 28, 2020

Random idea I just had, what about exposing a FragmentDialog?

Maybe I’m biased on this, but exposing a FragmentDialog feels like opening the pandora box to me. Like once we offer a non structured way to access the data, someone will necessarily ask for a more powerful API to do some filtering or querying of that data.

So to me having a FragmentDialog would solve your specific scenario, but it’s not really a general purpose solution (at least from my point of view).

0reactions
djrauschcommented, Apr 30, 2020

Sounds good! Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sending and Managing Network Requests - CodePath Cliffnotes
Sending an HTTP Request (The "Hard" Way) · Declare a URL Connection · Open InputStream to connection · Download and decode based on...
Read more >
Making HTTP Requests and Android Setup - YouTube
OkHTTP https://square.github.io/okhttp/
Read more >
How to Make an HTTP Request with Android? - GeeksforGeeks
We will use the Volley Library for handling HTTP requests. ... Navigate to app > manifests > AndroidManifest.xml and add the piece of...
Read more >
5 ways to make HTTP requests in Java - Twilio
If you use other ones, that's great! Let me know about it. In this post I'll cover: Core Java: HttpURLConnection; HttpClient. Popular Libraries:....
Read more >
Make an HTTP request with android - Stack Overflow
First of all, request a permission to access network, add following to your manifest: <uses-permission android:name="android.permission.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found