I guys. I have a little problem in my application when I try get an
active activity.
 Im using:

                try{
                        nManager = 
(NotificationManager)getSystemService(nService);
                        Notification notification = new
Notification(R.drawable.ic_launcher,"CF",System.currentTimeMillis());
                        notification.tickerText = "Compuforte";
                        //PackageManager pManager = getPackageManager();
                        //pManager.getActivityInfo(new 
ComponentName("compu.mobile",
mainmenu.class.getName()), PackageManager.GET_META_DATA);
                        //PackageInfo pInfo = 
pManager.getPackageInfo("compu.mobile",
PackageManager.GET_ACTIVITIES);
                        Intent intent = new Intent(this,MainActivity.class);
                        PendingIntent pintent = PendingIntent.getActivity(this, 
0, intent,
0);
                        notification.setLatestEventInfo(getApplicationContext(),
"Compuforte", "Compuforte Sistemas" , pintent);
                        nManager.notify(0 , notification);

                }catch(Exception ex){
                        Log.e("CompuService", ex.getMessage());
                }

 someone can help me plz.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to