Anyone experienced the Graph API returning only a set number of results
every time when JSON is used (limit is not being implemented)
The exact problem is that 57 results are coming up and then one is coming
up only partially, before this error is thrown.
09-05 10:09:56.911:
Might be helpful for people to see the code.
The preference (change as appropriate. My coding style is to have classes
named with a lower first letter, so that has been changed from the link
above):
http://pastebin.com/1EkdJNnE
Preference code:
http://pastebin.com/r5LYfF2r
Doing set colour
Hi all.
I've a quick question pertaining to remote views.
Is it safe to keep and maintain a copy of the last RemoteViews that was used
for updating the appwidget? I have a status message that is updated
regularily (more so than the rest of the widget). Suppose I have something
like...
See. The problem is that I generate a table (with nested ListViews) and
display it on the appwidget, and the elements of the table (as well as the
buttons) have on intents tied to them when a user presses on a place of the
table. And if the orientation of the phone changes (which isn't beyond
I should explain better.
A user presses a refresh button (or an alarm service triggers the same
effect) on the appwidget. I want to tell the user that the system is
refreshing so they know the widget's doing something. But I want to tell the
user that it's happening immediately. So I need to
Oh wait. Do you mean that I have the thing like:
RemoteViews updateAppwidgetViews( ... ) {
RemoteViews remoteViews = new RemoteViews( ... );
// Set status message
remoteViews.setTextViewText( id, refreshing );
appWidgetManager.updateAppWidget( ..., remoteViews );
// Do the rest
Remember, I want to notify the user about the fact that I'm updating the
status of the table. So I need to first change the status message *and* then
update the table with the new data that I parse from a website. Which
requires two appWidgetManager.updateAppWidget calls.
All I'm thinking is
Or does it really make much of a difference?
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
Thanks for your thoughts and time.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
I'm afraid it might take ten seconds. It depends on the connection to the
Internet.
Thanks for your thought, though. I used have it like that. But I migrated
the updating to an AsyncTask because when it updated I couldn't do anything
else I ordinarily could do (enter preferences, click on
It's ColorPickerView. I changed it because I had something named very close
to that. I decided it would be safest to rename it completely lest I get
confused.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send
Hey,
I have an appwidget that works fine most of the time.
Sometimes though, the buttons don't respond. When I press on them nothing
happens. If I swipe to the left and back to the right it seems to sometimes
fix it. Nothing gets put in logcat so I'm out of ideas about what might be
Hi all,
The reason I want these two things is because some people who use my
appwidget have asked that I implement them.
I'd like to do two things. I'd like to set the background colour of my
appwidget. Is the only way of doing this to have a number of main widget
layouts all of different
Ahh. That's probably it so. I was doing it with Eclair. Cool. Thanks :)
As you pointed out, String. Problem loading widget.
Thanks very much. I may be back later, but I think this should do me.
--
You received this message because you are subscribed to the Google
Groups Android Developers
Ahh. That's probably it so. I was doing it with Eclair. Cool. Thanks :)
As you pointed out, String. Problem loading widget.
Thanks very much. I may be back later, but I think this should do me. I
assume you can use rgba for the setBackgroundColor, right?
--
You received this message
Worked perfectly. Thanks very much.
I lifted this color picker http://code.google.com/p/color-picker-view/ and
wrapped it in a custom preference and it works delightfully :)
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this
Does what you suggested mean that all the brunt work is performed by the
service, and that this merely passes a RemoteViews to the appwidget for
displaying etc?
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send
I think I understand you... but I'm not sure that I do completely.
Having not used services for updating (or for managing updates) let me first
ask what you mean by pushing updates so I don't misunderstand.
Does that mean that in a service I instantiate an appWidgetManager, and then
call its
Thanks for taking the time to explain. I think I understand it much better
now. And I think it also makes sense, which is nice too :)
I may come back here if I have more questions, but I think not.
--
You received this message because you are subscribed to the Google
Groups Android
Just another quick question. I want to keep track of update-to-update
changes. So I have a ListListint variable containting my data (which
I've parsed from the net). At the end of updating I copy this value to
another variable. I need to keep track of these variables. Does it make more
sense
Suppose I have a status notification TextView on my appwidget. During my big
update function (that returns the single RemoteViews object) would be be OK
to call a method that'd update the value of the text? Like:
void updateStatus( String str ) {
// update the status text R.id.statusUpdate
Hey all,
I have an appwidget that appears to break when the screen is rotated (it has
been reported to me, and I can't test it). When I test the orientation on
the emulator the orientation seems to work well enough...
I have no idea how to debug this or how to figure out what to do. Does
Found this that suggests creating an activity that detects the orientation
change. Is that the best way to get around it?
http://stackoverflow.com/questions/3503114/after-orientation-change-buttons-on-a-widget-are-not-responding
--
You received this message because you are subscribed to the
Ok. I was wrong in my first post about the error not being displayed. The
appwidget did indeed just default to the initial value.
I solved the issue (I think) by doing the following:
public static class orientationDetectionService extends Service {
@Override public void onStart( Intent
I just looked at the logcat of my app and noticed a warning I hadn't noticed
before.
W/ResponseProcessCookies( 575): Invalid cookie header: Set-Cookie:
USERNAME=user; expires=Mon, 02-May-2011 12:54:51 GMT; path=/;
domain=domain.com. Unable to parse expires attribute: Mon
Not sure what that
Thanks a lot. Got it working now.
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
Hi all,
I have been trying to write a widget that connects to the Internet, parses
data and displays it. I have all the background functionality working, but I
don't appear to be able to get the cookies that are needed to log into the
website that provides the data to... persevere between
I got a solution... I think.
My widget layout is defined in a file called main.xml. In this I put in a
vertically orientated LinearLayout ID'd as tableRowContainer.
I then added a row.xml layout definition. This only contains another linear
layout, ID'd as tableColContainer.
I furthermore
Hi all,
I have an android widget that scraps information from a website. I
want to display the data that I have gotten in a table form that's
shown on my widget, but I don't know how. I have tried the following
(but they don't appear to work)...
First I tried adding in a table in my widget, but
Hi all,
I'm making a widget and on it want to display some data in an NxM table or
some sort.
Eclipse (or rather limitations of the widget?) doesn't permit me to have a
table layout on my widget.xml file (gives a problem loading widget) on my
emulator.
Are there any alternatives/workarounds
I have a widget with a few buttons.
I want one button to open preferences, and the second to start an
AlarmManager according to the preferences that have been set.
A click of either button on the widget will go the same activity, but I wish
to distinguish between the clicks via extra
Thanks for the quick replies, you two!
I got it working :)
Kostya's solution seemed quickest to use so I tried that.
I think it was the setting of the different values of the second parameter
to getActivity that did it. Does this make sense? I had two
pendingIntent.getActivity( context, 0,
It's been a while since I've looked at the android API, but the
javax.sound.sampled package in the latest release appears to be
missing. What happened?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android
33 matches
Mail list logo