से एक गतिविधि शुरू करने मैं अपने अनुप्रयोग के लिए स्थिति पट्टी में एक सूचना मिली है:एक अधिसूचना
Notification notification = new Notification(R.drawable.icon, null, System.currentTimeMillis());
Intent notificationIntent = new Intent(this.parent, MainActivity.class);
PendingIntent contentIntent = PendingIntent.getActivity(this.parent, 0, notificationIntent, 0);
...
notification.flags = Notification.FLAG_ONGOING_EVENT;
mNotificationManager.notify(NOTIFICATION_ID, notification);
इस के साथ समस्या यह है कि जब आप अनुप्रयोग से घर बटन दबाएँ (वह पृष्ठभूमि में धकेलने) है फिर स्टेटस बार से प्राप्त सूची में अधिसूचना पर दबाएं, यह गतिविधि की एक नई प्रतिलिपि शुरू करता है। मैं बस इतना करना चाहता हूं कि ऐप फिर से शुरू करें (जैसे कि जब आप होम बटन को दबाते हैं और ऐप के आइकन पर दबाते हैं)। क्या ऐसा करने का इरादा बनाने का कोई तरीका है?
जाँच करें: http://stackoverflow.com/questions/3305088/how-to-make-notification-intent-resume-rather-than-making-a- नया इरादा/3 9 482464 # 39482464 – TharakaNirmana