Some questions about

by david » Fri, 09 May 2008 14:42:37 GMT

Sponsored Links
 1. Basically the ApiDemo activity just calls itself recursively, is it
counter-intuitive to efficient running on mobile device?

2. The following code in getData():
        PackageManager pm = getPackageManager();
        List<ResolveInfo> list = pm.queryIntentActivities(mainIntent,

        if (null == list)
            return myData;
Can it be moved to somewhere for efficency purpose? Since it gets
called again and again but just gets same results.

3. Consider the code in getDate():
        Map<String, Boolean> entries = new HashMap<String, Boolean>();
Why use Hashmap? isn't it overskilled?

Again, since it is the demo code provided by Google, I think it is
worthy to study it in detail.

Other Threads

1. Database Pattern - What's your method?

Hi All,

I was wondering if you could shed any light on the pattern you use for your
database connections.

I have a class;

public class FilterDBHelper extends SQLiteOpenHelper{...}

With a method;

public Cursor getFilterNodes(int _id) {...}

That returns a cursor.

The activity then takes care of closing the cursor but how is it that I
close the database at the appropriate time? I presume I must wait until
after the cursor has been closed to close the database.

Do you close a database after each query? Do you close the cursor inside a
method 'close()' of FilterDBHelper that also closes the cursor?

Any advice or links to source would be greatly appreciated.

Kind regards,



2. How to get just updated screen data instead of reading all data from framebuffer?

hello my friend how are u
latest summer fashion hot fashion videos
visit my website


3. How to get just updated screen data instead of reading all data from framebuffer?

4. Detect Physical Keyboard Layout (ex: QWERTY vs QWERTZ)

5. build cupcake with PRODUCT_POLICY := android.policy_mid

6. Key down events on answer and end call not working anymore in cupcake

7. Radio's Colorthon Tutorial Now Available on YouTube