Skip to main content

How can I listen the Android output (using sniffer)?



I wrote simple application that send some data to my server.





Somehow the data is corrupted and I want to use something like sniffer on the Android cellphone device to look what exactly is the data that my application is sending. When I run with debug - I see the data is right - but on the other side (on the server) I see that the data is corrupted.





Is there some way to use sniffer that will catch the packets that are sent from the Android device?





i using the wireshark on the server side - but its look like something in the android side is making the problem. I need to use sniffer somehow on the android side


Comments

  1. This is something we frequently need to do at work. The method we used to solve it is as follows:


    Set up a PC as a router (We use Linux but anything that can run as a router and supports wireshark will do). It needs TWO network cards
    Connect one network card to your Internet connected network.
    Connect the other network card, on a separate subnet, to a WIFI access point with a unique SSID.
    Connect your phone/tablet etc to the new WIFI network you've created.
    Run wireshark, capturing from the SECOND interface (to elimiate any traffic on your main network).


    This allows one additional feature that we use a lot - You can use the network system of the PC to degrade the network performance (Most Unix's can do this, and it's quite straightforward on Linux) to allow you to test application performance on poor networks such as 3G...

    Hope this helps

    ReplyDelete
  2. If your phone is rooted you can use Shark for Root on the Android Market.

    ReplyDelete

Post a Comment

Popular posts from this blog

[韓日関係] 首相含む大幅な内閣改造の可能性…早ければ来月10日ごろ=韓国

div not scrolling properly with slimScroll plugin

I am using the slimScroll plugin for jQuery by Piotr Rochala Which is a great plugin for nice scrollbars on most browsers but I am stuck because I am using it for a chat box and whenever the user appends new text to the boxit does scroll using the .scrollTop() method however the plugin's scrollbar doesnt scroll with it and when the user wants to look though the chat history it will start scrolling from near the top. I have made a quick demo of my situation http://jsfiddle.net/DY9CT/2/ Does anyone know how to solve this problem?

Why does this javascript based printing cause Safari to refresh the page?

The page I am working on has a javascript function executed to print parts of the page. For some reason, printing in Safari, causes the window to somehow update. I say somehow, because it does not really refresh as in reload the page, but rather it starts the "rendering" of the page from start, i.e. scroll to top, flash animations start from 0, and so forth. The effect is reproduced by this fiddle: http://jsfiddle.net/fYmnB/ Clicking the print button and finishing or cancelling a print in Safari causes the screen to "go white" for a sec, which in my real website manifests itself as something "like" a reload. While running print button with, let's say, Firefox, just opens and closes the print dialogue without affecting the fiddle page in any way. Is there something with my way of calling the browsers print method that causes this, or how can it be explained - and preferably, avoided? P.S.: On my real site the same occurs with Chrome. In the ex