hi,anybody know the OMTP Application Security Framework and android compliance

by guillaume leterrier (Teleca Germany) » Wed, 01 Apr 2009 16:49:20 GMT


Sponsored Links
 Well, it would be difficult to achieve an OMTP compliancy because the
application certification scheme doesn t follow the same security
model. there is no central certificate authority that certify the
trustworthiness of an application in Android.



> thanks a lot



Other Threads

1. Retrieving PackName from RecentTaskInfo

I'm  trying to the the application and icons for Recent Tasks, but I
can't seem to get the appInfo using the RecentTaskInfo.  The
getApplicationInfo call is what is failing due to the getPackageName()
returning null.


 ActivityManager manager =
(ActivityManager)getSystemService(Context.ACTIVITY_SERVICE);
 List<RecentTaskInfo> tasks = manager.getRecentTasks(50, 1);
        for (int counter = 0; counter < tasks.size(); counter++)
        {
                RecentTaskInfo task =  tasks.get(counter);
                PackageManager pm = this.getPackageManager();

try {

                        ApplicationInfo appInfo  =
pm.getApplicationInfo(task.origActivity.getPackageName(),0);
                       String applicationName =
getPackageManager().getApplicationLabel(appInfo).toString();
                       Drawable icon = appInfo.loadIcon(pm);
.....

I've also tried:

ApplicationInfo appInfo  =
pm.getApplicationInfo(task.baseIntent.getPackage(),0);

In which getPackage() is returning null.. maybe I'm going about this
the wrong way and was hoping for some tips?

-- 

2. Hard to describe ... How to quickly scan through all rows?! How to pass a cursor between two activities?!

Hi,

  I have an app that has a list view of messages and a detail view. If you
click on a message in the list view the detail view is opened for the
message in the row you clicked on.
In the detail view you also can go back and forth to other messages. So I
pass in the position of the row the user clicked on and the criteria I need
to rebuild the cursor like I did for the list. Then I use
Cursor.moveToPosition() to get to the selected row.

  So far so good. There is only one issue, when an import is running in the
background that inserts new (or deletes aged) messages then between the time
of the click and the time the detail view queries the database again it
maybe that the position is not valid anymore.

  Any idea how to deal with that?

  I tried to pass in a key instead and then go through all rows until I find
the one that has the same key, but this takes a real long time and doesn't
seem feasable at all. But maybe I am doing it wrong. It looks something like
this:

while (contentCursor.moveToNext()) {
   if (42 == contentCursor.getLong(0))
      break;
}

  Any better way to do that in general?

  I could try what happens when I pass in the position also and start from
there. Usually that should work and when it doesn't then I could scan all
messages?! The problem is, scanning all say 1,000 articles may take more
than 5 seconds on a G1.

Cheers,
Mariano

-- 

3. Beda new radio dan old radio pada Magic

4. AsyncTask : java.util.concurrent.RejectedExecutionException

5. combining 1.5 and 1.6

6. Calling close() on a Cursor that's backing a ListView

7. Send email in background