tags:

views:

37

answers:

0

hi, I have read that package manager can be used to get details of the android application. I have a .java of Android applciation in which I am using this to get the details of that file . I am getting the foolowng error :

Logs.log("OnClick(hiello)", "my Activity not found ",LogType.Debug, 
   myfile.this.getPackageManager().getApplicationInfo(getPackageName(), 0));

In the above stmt myfile is simple .java file with one function composetotal()

void composetotal(Activity acty,int m1,int m2,int m3)
{
   Logs.log("OnClick(hiello)", "my Activity not found ",LogType.Debug,
      myfile.this.getPackageManager().getApplicationInfo(getPackageName(), 0));    
}


I am getting error at this.getPackageManager(). Help me in solving this issue. Also give me one sample program for this getPackageManager()