Impossible to test contact groups in Android 2.0 with-out a physical phone?

by pistol » Wed, 03 Mar 2010 17:53:21 GMT


Sponsored Links
 Just got the invitation to be seeded with a new phone - that would
solve the problem for me - thanks Google.




--



Other Threads

1. problem in Http Get method..can any one tell me pls...

Can anyone tell what is the problem in the given code to retrieve

 the data from the local server by using Http Get method......pls give some

example code......i tried but if i give the url the result i m getting same
url

in the text view...shall any one point out wat the error in the code........


pls point out the errors...

With regards,
Raghav.S



package req.http1;


import java.io.IOException;
import java.io.InputStream;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpRequestBase;
import org.apache.http.impl.client.DefaultHttpClient;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

public class reqhttp extends Activity {
    TextView text;
     EditText edt;
     Button btn;
     String n=null;
     String contentOfMyInputStream1;
     String output = null;


    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        edt=(EditText)findViewById(R.id.edt);
        text=(TextView)findViewById(R.id.text);
        btn=(Button)findViewById(R.id.btn);




        btn.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
            text.setText("");
            // Thread thread = new Thread();
             String st1;

             st1=edt.getText().toString();
            //thread.start();


            try {
                 output ="http://localhost:8080/Serv1/servlet/Servlet1?st1=
"+st1;
                downloadUrl(output);
            } catch (IOException e) {
                // TODO Auto-generated catch block
                e.printStackTrace();
            }
            if (output != null)
            {
                text.setText(output);
            }


            }
            });


    }

    public String downloadUrl(String url) throws  IOException{
        HttpClient httpclient = new DefaultHttpClient();
        HttpRequestBase httpRequest = null;
        HttpResponse httpResponse = null;
        InputStream inputStream = null;
        String response = "";
        StringBuffer buffer = new StringBuffer();

        httpRequest = new HttpGet(url);

        httpResponse = httpclient.execute(httpRequest);
        inputStream = httpResponse.getEntity().getContent();
        int contentLength = (int)
httpResponse.getEntity().getContentLength();
        if (contentLength < 0){
           // Log.e(TAG, "The HTTP response is too long.");
        }
        byte[] data = new byte[256];
        int len = 0;
        while (-1 != (len = inputStream.read(data)) )
        {
            buffer.append(new String(data, 0, len));
        }

        inputStream.close();

        response = buffer.toString();

        return response;

    }


}

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

2. can one cmulator control controls two emulators in the same computor at the same time ?

You can control using ddms.....Two emulators will be in view in same
computer by using command prompts and the process status of the two
emulators will be on ddms also.U can sent lat long from that same ddms
by selecting which emulator will be in use..

Nur Al Hasan
New Delhi, India




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

3. What is DISABLE_DEXPREOPT ?

4. ADC II Package Rename & Content Providers

5. Date Picker

6. ANR - when using google-json library to serailize.

7. It's not working on USB for Android system building