android-notifications
How to disable Home button without using the TYPE_KEYGUARD?
i create a lockscreen application and i need to disable a home button, so if that phone is stolen, that phone can\'t be accessed.. my lockscreen is a fullscreen activity.. im use this code to disable[详细]
2023-04-09 15:14 分类:问答How to play an audiofile after the user pressed a notification?
I am trying to download a song from the internet with the help of a app. I coded it to show a notification when the download is complete but the problem is i dont know what to do when the notification[详细]
2023-04-06 07:26 分类:问答Activity order from notification
I have a question regarding Android Notification and activity order. I have following scenario: I have Activity_Main as my first activity, which performs some task. When BACK button is pressed It ge[详细]
2023-04-04 17:16 分类:问答Android notification after an application was closed
I\'ve been looking around and I can\'t find any way to get a notification when an application was closed by the user in Android. I know, you\'ll say onPause() or onStop(), but what if I can\'t touch t[详细]
2023-04-04 10:38 分类:问答Notification passes old Intent Extras
i am creating a notification inside a BroadcastReceiver via this code: String ns = Context.NOTIFICATION_SERVICE;[详细]
2023-04-04 02:44 分类:问答Android: Control which activity is shown when clicking notification
In an Android app, I have two activities; lets call them A and B. A is the main activity, and it contains a button that calls startActivity() to display B. In short:[详细]
2023-04-03 17:30 分类:问答Restart Application on Notification Received
I have developed an application which has the functionality of receiving notifications from server. The problem is, when I click on a notification that I have received, it opens a new instance of my[详细]
2023-04-03 06:04 分类:问答Window already focused, ignoring focus gain of: com.android.internal.view
Unfortunately, I was unable to find a resolution to this issue in other StackOverflow posts so I apologize in advance for re-posting this question.Essentially, I have an AppWidget that creates a Notif[详细]
2023-04-03 02:11 分类:问答How to add a button into notification?
I do it like this: RemoteViews views = new RemoteViews(..); views.setOnClickPendi开发者_C百科ngIntent(R.id.button1,pd);[详细]
2023-04-02 20:35 分类:问答Honeycomb notifications - How to set largeIcon to the right size?
I find myself curious why the setLargeIcon method on Notification.Builder only accepts a Bitmap, wi开发者_如何学Cth no overload to provide a resource id. Perhaps it was done for performance reasons, b[详细]
2023-03-31 20:06 分类:问答