Simple Question about Res folders

by B Woods » Fri, 02 Jul 2010 22:37:31 GMT


Sponsored Links
 What are the differences between drawable-hdpi, drawable-ldpi, and
drawable-mdpi? Do I need to place my graphics in each of these folders?

--



Simple Question about Res folders

by Kostya Vasilyev » Fri, 02 Jul 2010 22:45:56 GMT


 02.07.2010 18:37, B Woods :
What are the differences between drawable-hdpi, drawable-ldpi, and drawable-mdpi? Do I need to place my graphics in each of these folders?
They are versions of the same graphics files for different screen resolutions. If you don't provide hdpi and ldpi versions, Android loads the default version from drawable and scales it as necessary. Sometimes this looks ugly, so you need to provide alternative versions yourself. This can be done individually for each graphics file used in your app's UI. http://developer.android.com/guide/practices/screens_support.html -- Kostya Vasilev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com --


Sponsored Links


Simple Question about Res folders

by Phil » Sat, 03 Jul 2010 08:53:09 GMT


 They are there to allow your app to display icons, etc of different
sizes, for different devices.

For example, H.D. icons are 72x72, MD are 48x48 and LD are 36x36.




--



Simple Question about Res folders

by Al Sutton » Sat, 03 Jul 2010 15:27:01 GMT


 They are *not* for resolutions. They are for screen densities (i.e.
the number of pixels per inch on the screen).

To illustrate this point, the Nexus One and the Dell Streak both have
screens with a resolution of 800x480 pixels, but because the Nexus One
has a smaler physical screen it has a hight pixel density, so the
Nexus One uses assets from drawable-hdpi and the Dell Streak uses
assets from drawable-mdpi.

Al.




--



Other Threads

1. When Parsing the Soap response problem...

HI

I want to Consume the SOAP Web Services in Android

i downloaded KSOAP2 Library

i have done some thing like this ......

private static final String SOAP_ACTION = "getRating";
private static final String METHOD_NAME = "getRating";
private static final String NAMESPACE = "http://www.w3.org/2001/12/
soap-envelope";
private static final String URL = "http://www.galatta.com/iphone/
isizzle/isizzle.php";
private ContextWrapper context;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle icicle)
{
super.onCreate(icicle);
setContentView(R.layout.list);

//CALL the web service method
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope
(SoapEnvelope.VER11);

envelope.setOutputSoapObject(request);

AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport
(URL);

try
{

androidHttpTransport.call(SOAP_ACTION, envelope);


// Get the SAOP Envelope back and the extract the body
SoapObject resultsRequestSOAP = (SoapObject) envelope.bodyIn;

}

i am getting the response from the server like this ......not know
what is this type...


getRatingResponse{return=ContestInfo{item=anyType{name=Ankitha;
totalimages=2; rating=2.5; }; item=anyType{name=Anushka;
totalimages=4; rating=9.5; }; item=anyType{name=Apsara; totalimages=1;
rating=0; };

how can i parse this response.....


can any body help me regarding this .....

it urgent .......

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

2. unable to get xml from Soap Web services .....

HI

I am consuming SOAP web service in android.

like this ....


 //CALL the web service method
        SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
        SoapSerializationEnvelope envelope = new
SoapSerializationEnvelope(SoapEnvelope.VER11);

        envelope.setOutputSoapObject(request);

        AndroidHttpTransport androidHttpTransport = new
AndroidHttpTransport(URL);
//        androidHttpTransport.setXmlVersionTag("<?xml version=\"1.0\"
encoding=\"UTF-8\"?>");

        try
          {

           androidHttpTransport.call(SOAP_ACTION, envelope);

  //          Log.i(TAG, "Raw request to server: \n" +
androidHttpTransport.requestDump);
           // Get the SAOP Envelope back and the extract the body
        Object resultsRequestSOAP =   (Object) envelope.getResponse();


           Log.d("isizzle",resultsRequestSOAP.toString());

          }


i am getting the response in different (Unknown ) format

this is the response i got form the server ..

getRatingResponse
{
return=ContestInfo{item=anyType{name=Ankitha; totalimages=2;
rating=2.5; }; item=anyType{name=Anushka; totalimages=4; rating=9.5;
};

regarding this any body help me how to parse this response.....


thanks in advance

its urgent  plzz.........

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

3. GPRS Data rate

4. List View not properly updated from AsyncTask

5. 3GP file plays on hardware, not on emulator

6. ustl-1.2 STL library for android

7. Tab Background Issue