apple group

by 毓亘丿丕賱乇丨賲賳 禺賷乇丕賱賱賴 » Sat, 12 Feb 2011 06:07:33 GMT


Sponsored Links
 welcome to apple group

https://groups.google.com/group/ap_ple

-- 



Other Threads

1. querying ContactsContract: How can I use smth like GROUP BY?

Hey there!

I'm querying the ContactsContract.Data table like the following:

[...]
       Uri contactsURI = ContactsContract.Data.CONTENT_URI;

          String[] projection = new String[] {
                    ContactsContract.Data._ID,
                    ContactsContract.Data.CONTACT_ID,
                    ContactsContract.Data.MIMETYPE,
                    ContactsContract.Data.DATA1,
                    ContactsContract.Data.DATA2,
                    ContactsContract.Data.DATA3,
                    ContactsContract.Data.DATA4,
                    ContactsContract.Data.DATA5,
                    ContactsContract.Data.DATA_VERSION
          };
          String where =      ContactsContract.Data.MIMETYPE + " = ?
OR " +
                              ContactsContract.Data.MIMETYPE + " = ?
OR " +
                              ContactsContract.Data.MIMETYPE + " = ?
OR " +
                              ContactsContract.Data.MIMETYPE + " = ?";

          String[] whereArgs = new String[] {
 
ContactsContract.CommonDataKinds.Email.CONTENT_ITEM_TYPE,
 
ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE,
 
ContactsContract.CommonDataKinds.StructuredName.CONTENT_ITEM_TYPE,
 
ContactsContract.CommonDataKinds.Im.CONTENT_ITEM_TYPE
          };

          Cursor contactsTable = managedQuery(contactsURI, projection,
where, whereArgs, null);
[...]


The problem is that the result is kind of unsorted. It would be best
if I could get the rows sorted by MIMETYPE (basically I need the
StructuredName to come on top) but grouped for each CONTACT_ID. This
means I'd like to get a person's name, then email/phone/im, etc. Then
the next person's name and their email/phone/im and so on..

So I thought this would best be achieved if I sorted like
Data.MIMETYPE + " DESC" and group by CONTACT_ID. However, there is no
possibility to use a group by parameter in a query() or managedQuery
(). The only database query I found that does take a group by
parameter is the SQLiteQueryBuilder.query(). However, I can't call
this one for the ContactsContract.Data Table since it doesn't take an
URI but an SQLiteDatabase.

How would you handle the sorting of the data? Should I perform a
single query for each CONTACT_ID? Wouldn't that be extremely cost
intensive?

-- 

2. Issue 1151: RFE: Support install of apps on SD cards

HI all,

When i was looking for research project for my MSC i got to know about issue
(Issue 1151:  Support install of apps on SD cards), rather upgrade which is
there for long time. Therefore i would like to know whetherrandiest park
that is someone looking into this currently or that is already fixed.
Actually i'm very glade that anyone of you can help me finding out that and
the feasibility of that upgrade.
http://code.google.com/p/android/issues/detail?id=1151&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars

And also i would like to know whether this is missed part by google or they
didn't implement this on purpose. Please help me to do something here.

Thank You for your help.

-- 
Thanks & Regards,
Thisara.

-- 

3. How to parse html with saxparser (or other solution)

4. cara update firmware ke 1.6 ato 2.0

5. Query on releasing to sony app store

6. Android Nokia N900 Port

7. MapActivity cannot be resolved to a type .