A good opprtunity to invesment

by anitha raj » Mon, 22 Feb 2010 20:14:38 GMT


Sponsored Links
 Social Networking has been effectively used in reaching the goal of
bringing down the prices of costly items through volume shopping. Go
shopping with   http://www.shoppingreps.com ?SourceId=1243
You can earn online, NO INVESTMENT, NO DEPOSIT, NO MLM and NO JOINING
FEES!!!!!  http://www.shoppingreps.com ?SourceId=1243  DON'T miss this
opportunity, join today for free, and earn more without paying single
rupees...NO SCAM ALL THE BEST

--



Other Threads

1. Adding some nine patch images breaks all of my other images

Help! I'm working to convert some background images to nine patch so
they scale better on different phones.

The problem is that if I have the following resource structure:

drawable-hdpi/background.png
drawable-hdpi/button.png
drawable-mdpi/background.png
drawable-mdpi/button.png
drawable-ldpi/background.png
drawable-ldpi/button.png

...and then I drop a new drawable-hdpi/background.9.png file into the
mix, it breaks button.png during the pre-compile.  The error is "No
resource found that matches the given name (at 'background' with value
'@drawable/button').    main.xml        /test/res/layout        line 71 Android 
AAPT
Problem"

Simply removing that one nine patch file fixes the build.

Should I be able to have some nine patch images and some normal ones,
or to have nine patch only in hdpi but not mdpi or ldpi?

This is Eclipse 3.5.1 with the latest ADT.

Thanks!
-Brooks

-- 

2. Help with content providers and list views

Hey developers, I am getting my feet wet with android and have run
into a snag. I have been trying to query the contacts on my phone in
order to retrieve phone numbers (and other data) but I have not been
able to get it right. My goal at the moment is to create a list view
of contacts, and have it so that when you press on one, the data comes
up. Doesn't seem too hard, but I cannot get it right! At the moment,
everything else does work though. Can anyone aid me in this, and
possibly give a nice explanation of what I should be doing? Also, I
was thinking there should be a way to "bind" the contacts data to the
contact list view, and when the persons name is pressed, their data
would be passed to the next activity (their info page). Not sure if I
am using the correct vocabulary here, but that is what  I essentially
want to do. Thanks!

package com.grey.gui;

import java.util.ArrayList;

import android.app.ListActivity;
import android.content.ContentResolver;
import android.content.Intent;
import android.database.Cursor;
import android.os.Bundle;
import android.provider.ContactsContract;
import android.util.Log;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListAdapter;
import android.widget.ListView;

public class MainPage extends ListActivity {

        private ListAdapter adapter;
        private Cursor c;
        private ArrayList<String> names;
        private ArrayList<String> ids;


        @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        ContentResolver cr = getContentResolver();
        c = cr.query(ContactsContract.Contacts.CONTENT_URI, null,
null, null,null);


         names = new ArrayList<String>();

         while(c.moveToNext()){
                 String id =
c.getString(c.getColumnIndex(ContactsContract.Contacts._ID));
                 String name =
c.getString(c.getColumnIndex(ContactsContract.Contacts.DISPLAY_NAME));
                 String hasNumber =
c.getString(c.getColumnIndex(ContactsContract.Contacts.HAS_PHONE_NUMBER));
//Doesnt work String number =
c.getString(c.getColumnIndex(ContactsContract.CommonDataKinds.Phone.NUMBER));
                 if(hasNumber.equals("0")) continue;
                 Log.v("Number ", number);
                 names.add(name);

         }

        adapter = new ArrayAdapter<String>(this,
                 android.R.layout.simple_list_item_1, names);
        setListAdapter(adapter);
        getListView().setTextFilterEnabled(true);


}
        @Override
        public void onListItemClick(ListView l, View v, int position, long id)
{
                 super.onListItemClick(l, v, position, id);
                 ContentResolver cr = getContentResolver();

                 Intent newIntent = new Intent(Intent.ACTION_MAIN);


                 newIntent.setClass(this, Summary.class);
                 newIntent.putExtra("com.grey.gui.MainPage", "number");
                 startActivity(newIntent);
            }

}


-- 

3. Urgent opening of Android Developer

4. Cannot get selector to display 'disabled' state image

5. Saving ArrayAdpater<File> when rotating?

6. Model Checking Android

7. Subscription Billing - Need clarification ASAP!