Questions tagged [android-remoteview]
134 questions
0
votes
1 answer
Set image resource to remoteView using volley
I play a music stream from service in android so when the music start playing , a notification appears above and show play/pause button , the title of the music and and a thumbnail to the music cover photo . I initiate the notification inside the…

Omar
- 542
- 1
- 6
- 27
0
votes
0 answers
Create widget using database in android
I am creating widget for my application. i downloaded the LoremWidget project from github. link is here
here one array named items. when i hardcoded the array it will display values in widget correctly. but it does not show any thing when i try to…

user4562919
- 1
- 3
0
votes
0 answers
remoteViews.setInt with opacity & hex-color code?
I'm currently using this code to assign a color and opacity for a widget-textview:
remoteViews.setTextColor(R.id.nextAlarm_textview, Color.parseColor(text_opacity + text_color));
Now I would like to do the same with the widget's background. Is that…

f4bzen
- 301
- 2
- 6
- 17
0
votes
1 answer
Clickable buttons in notification using RemoteViews and service
I'm trying to make a music player that works on api level 8 but has the same notification feature as the standard music player i.e. 3 buttons which control the player.
This is my code, i know it isn't really finished but for now i just want to…

user3808318
- 827
- 1
- 8
- 15
0
votes
2 answers
Hello World For Google Glass
I'm trying to build a simple Hello World GDK program for Google Glass. I've looked up everywhere, but all the samples I could find used "Timeline Manager", which was removed by Google after XE 16.
What I'm trying to do is to create a live card that…

JavaMaMocha
- 70
- 1
- 11
0
votes
1 answer
what is the right way to update List view inside widget after changes made in config file
i would like to know how to refresh listview inside widget .
on my config file i use
Intent intent = new Intent();
intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
setResult(Activity.RESULT_OK, intent);
after you edit the config…

Jesus Dimrix
- 4,378
- 4
- 28
- 62
0
votes
0 answers
Bad Notification Posted with ImageView
I'm trying to build a notification upon Android 2.3.3.
I need a custom layout and I can't use Notification Builder.
This is the layout of the notification:
R.layout.notification_upload

Jumpa
- 4,319
- 11
- 52
- 100
0
votes
2 answers
How to hide the Notification drawer in Android OS 3.0 and above?
I am working on application having notification system that supports
the OS version from 2.3.3 and above. In android OS less than 3 we have
the option to set the content intent. The whole notification area is
single click-able.
But for the OS 3.0…

M Vignesh
- 1,586
- 2
- 18
- 55
0
votes
2 answers
Dynamically remove view from StackView Widget
Haven't found a successful way to remove a view from a StackView Widget. I'm working off of the basic StackView example that comes with the SDK.
Here's what I'm trying to do in the getViewAt(int position) function to a certain view that I do not…

Randy
- 955
- 9
- 16
0
votes
1 answer
Android - Attach a click listener to a RemoteViews
Suppose I have created an instance of RemoteViews and it contains two Buttons. I want when user clicks these buttons a Service (or a BroadcastReceiver or something else ) handles this click. As I know so far, there is two ways for achieve this…

frogatto
- 28,539
- 11
- 83
- 129
0
votes
0 answers
Android Remote Views: Resource not found Exceptions
I am trying my hand at Remote Views in android.
So I created 2 apps.
A -> Sends a bundle containing RemoteView and a string on an AIDL call.
B -> Makes the AIDL call on Button click to fetch the data and immediately launches a activity to display…

yashdosi
- 1,186
- 1
- 18
- 40
-1
votes
3 answers
Update the text of a button contained in a custom notification when clicked in Android
UPDATE
I modified my code by updating the notification as advised by Pawel and Amit K. which I thank both. In the 'alarmNotification' method I create the notification with id1 and, when the button clicks, I pass the variable (string) "on" to the…

user10067214
- 37
- 8
-1
votes
1 answer
Remoteview is not applied in background
I've applied Remoteview to notification. It works when user is in foreground, but when user is in background, notification is not showed as remoteview.
How can I apply remoteview when user is background?
NotificationCompat.Builder…

Philip Kim
- 97
- 10
-1
votes
2 answers
onStartCommand() called only once even when Service is started multiple times
The below service is triggered via button click from some other app (by firing pending Intent). The onStartCommand() creates a Messages and dispatches using send() method. Ideally, I expect onStartCommand to be called everytime button is clicked, as…

Sukumar Gaonkar
- 147
- 2
- 12