F Facilauto Juan Member Licensed User Longtime User Sep 17, 2013 #1 Hello there! I have an application that pops up notifications in the notification bar. The problem is that I want the notification to open certain activity, not the main. I have tried using custom notification library, but I can't manage to make it work (it force closes my app). I think that it's because I'm using v17 android.jar, but I want to have the latest one, so... here is my question: How can I make a notification to open a custom activity without external libraries? Thanks for your answers and your time.
Hello there! I have an application that pops up notifications in the notification bar. The problem is that I want the notification to open certain activity, not the main. I have tried using custom notification library, but I can't manage to make it work (it force closes my app). I think that it's because I'm using v17 android.jar, but I want to have the latest one, so... here is my question: How can I make a notification to open a custom activity without external libraries? Thanks for your answers and your time.
barx Well-Known Member Licensed User Longtime User Sep 17, 2013 #2 If you wish to use the default Notification object that is with the b4a ide then you set the activity to be called when you call Code: Copy n.SetInfo("Some title", "Some text", Main) 'Change Main to the required activity. As a side note, the custom notification library has now been deprecates and the Notification Builder library should be used instead. Upvote 0
If you wish to use the default Notification object that is with the b4a ide then you set the activity to be called when you call Code: Copy n.SetInfo("Some title", "Some text", Main) 'Change Main to the required activity. As a side note, the custom notification library has now been deprecates and the Notification Builder library should be used instead.
F Facilauto Juan Member Licensed User Longtime User Sep 18, 2013 #3 That's it! Working! Thanks! Upvote 0
barx Well-Known Member Licensed User Longtime User Sep 18, 2013 #4 Facilauto Juan said: That's it! Working! Thanks! Click to expand... No worries, feel free to click the 'like' button to help future searches Upvote 0
Facilauto Juan said: That's it! Working! Thanks! Click to expand... No worries, feel free to click the 'like' button to help future searches