How android system establish a data connection

by Amit » Wed, 09 Mar 2011 19:53:35 GMT


Sponsored Links
 Hi All,

How android system try to establish a data connection at the time of
power up or when we set up an apn.

 As I checked the framework code, DataConnection.java is a state
machine which interacts with RIL in order to activate/deactivate a
data connection. But when I put up any debug log in the
DataConnection.java ,it never gets hit either in success or failure
case.

When this file is used ?

Thanks,
Amit

-- 



Other Threads

1. BufferedReader.readLine hangs after HTTP connection has ended

I found my application run differently on G1 from Android emulator.

I used Ethereal to capture HTTP messages. I saw in both cases that the
server ended HTTP connection in 3 seconds after it finished sending
data.

Here is the related code snippet in my Android  application:

                        InputStreamReader  br=new BufferedReader(new 
InputStreamReader
(sock.getInputStream()));
                        String line;
                        while ((line=br.readLine())!=null)
                        {
                        ...code to process each line
                        }

When the code runs on Android emulator, the while loop exits almost
immediately after HTTP connection terminates.

However, when it runs on G1 phone, the while loop does not exit until
60+ seconds after TTP connection terminates.

Using G1,  have you experienced similar problem??? If you have, how
did you work around the problem?

Thanks in advance for any advice!!!


--~--~---------~--~----~------------~-------~--~----~

2. Is an std::vector implementation available on android?

Hi,
      Is an std::vector implementation available for me to use in an
android JNI native library?

Elvis
--~--~---------~--~----~------------~-------~--~----~

3. How to set HorizontalScrollView's initial offset?

4. How Settings application launch the "clear data" function?

5. Unlock my dev phone

6. Where are files created in the simulator stored?

7. Orientation Sensor problems.