In my android app, I'm using 3rd party libraries like fresco and okhttp3. I want to trace the response of every request made through these libraries. And i want to do it globally
I'm using react-native also in my app, and i wants to trace the response of each api call made from react-native code like firebase performance monitoring tool.
Any idea how firebase is doing this?
In okhttp3 i can add interceptor to track these, but request made through fresco and react-native I'm not able to track like this
#JM India
Please check Android Snooper library. If I understand you problem correctly this is what you are looking for.
Hope this helps you.
You can use Charles . This tool is powerful to trace all request and response. It works for all platform.
In development, you can use Stetho to trace any calls via a Network Intereceptor.
There will be different ways to get the active OkHttp instance for different frameworks e.g. ReactNative.
https://blogs.msdn.microsoft.com/jpsanders/2013/04/03/configuring-fiddler-to-be-a-proxy-for-android-emulators-in-eclipse/
here's how I used to do it. All you have to do is set up a proxy using fiddler and configure your emulator to use it
Related
I need to know that whether we can use same database or URL for ios as well as android.
For example I am logged in with android so in the section where we use the URL , can we use the same URL for android which we use for ios. Actually I want to make an app for ios and android both.
But I want to make only one database for both that is android and ios.
I have tried using one URL in my login activity which was working on ios..but its not working.can somebody guide me?
Yes. It is very possible. It depends on the method youu are using to retrieve/send data to the database. The most popular ways to do the same is use of REST or SOAP to do client-server communication. Both work fine, but you will need to learn about doing the same. I would recomment REST for android since it is the most commonly used and is also easy to understand and use.For Ios i would recommend the AFNetworking library, speed is recommendable. You can download the library using this link:
https://github.com/AFNetworking/AFNetworking
I need to integrate a simple Web API in my Android application, and I was looking for a way to do that.
I was told I should use a service, but other peoples told be about Robospice, AsyncTasks, and Java Threads.
What should I use ? Is there some ressources out there ?
This goes through integrating a Web API into an Android app step by step, using AsyncTask.
http://blog.strikeiron.com/bid/73189/Integrate-a-REST-API-into-Android-Application-in-less-than-15-minutes
For more improved and fast response use Android Asynchronous Http Client with Gson library : You will find a complete tutorial here
I have android WebRTC Android demo app code running with https://apprtc.appspot.com/ server.
But what i want to archive is, I want to replace the server https://apprtc.appspot.com/ with my own server, i want to also modify/remove the part of the code where it communicants with the server as my server communicates differently.
I want to keep the WebRTC related API calls as it is, and only replace the part of the source code which is communicating with the https://apprtc.appspot.com/ server.
So basically i want to know, what are the WebRTC APIs that i must call for allowing AV calls using my server, I have STUN/TURN and registration servers.
I just want to reuse the core WebRTC functionality only and write app on top of it.
Can someone please guide me on this!
Thanks in advance.
you can achive android webrtc app by two ways.. both are working perfectly..
1.
Follow this example, i have tried it and work success fully.
Only need to make one change is the link provided in this example for gclient config command is older one. Follow your link gclient config http://webrtc.googlecode.com/svn/trunk
Also make sure that you have oracle jdk-6, other version creates issues while following the steps to get the native code.
2 .
You can use Frozen mountain library, which provides you variety of apis for developing webrtc app..
Hope this will help you..
check here
I have also created 1 demo project where I set my turn and stun server. There is a site http://sipml5.org which provide good detailing example.
You can download their code and set your own configuration or you can take reference in your application. Created demo project link is http://telzy.webuildapps.co, reference taken from http://sipml5.org/call.htm .
Hope this will help you.
I have an android app, and I would like to allow my users to chat with each other.
Searching google, I found a tutorial on android socket programming, but it looks quite complicated and requires me to take care of the server side too.
Is there an easier solution that doesn't require me to basically write it all myself?
I would suggest using one of the free SDK like Scringo (www.scringo.com).
It is very easy to add - basically all you need is to call
Scringo.init(this);
at the end of your Activity's onCreate() method.
No need for server side programming at all.
Here's a screenshot of Scringo in action:
i would suggest using a WebView and using a node.js / now.js chat!
It's very simple to setup!
Another viable solution is to check xmpp protocol and asmack library . I gave it a try a while ago and managed to make it work with gtalk. You can also setup an xmpp server by yourself using their openfire server.
Still better than reinvent the wheel.
i am new on this issue so please let me down easy :)
I am trying to develop a android application and i am trying to work with Google Tasks Api.
When i created the project (in eclipse) i chose the Google Api, but im not sure if that means i have access to other libraries like Tasks or only android related classes. Just in case i downloaded the Tasks Api jar file ad import it into my project.
Now my issue is how to i make a http call to get back some json/data from this api, or any other google api, i believe they should be similar.
i believe the steps i need to take is:
1. import the Google Tasks Api into a java class
2. grab permissions from user to access the api
3. make a http request and get the data back
4. style the data
So, with these in mind i need a small crash course to at least point me in the right direction, because at the end of the day i need to know what i don't know to get more informed :)
Thanks.
This looks like a good tutorial - http://code.google.com/apis/tasks/articles/oauth-and-tasks-on-android.html
Here is some more example code - http://code.google.com/p/google-api-java-client/source/browse/tasks-android-sample/src/main/java/com/google/api/services/samples/tasks/android/TasksSample.java?repo=samples