2011-10-25 37 views

回答

18
Intent intent = new Intent(getApplicationContext(), ActivityToLaunch.class); 
intent.putExtra(<oneOfThePutExtraFunctions>); 
PendingIntent pi = PendingIntent.getActivity(this, 0, intent, 0); 

您可以通過使用各種Intent.PutExtra的一個()位於函數添加額外的數據到一個意圖:http://developer.android.com/reference/android/content/Intent.html

然後,當您準備啓動你的PendingIntent,使用Send之一()功能位於:http://developer.android.com/reference/android/app/PendingIntent.html