[android-developers] Facebook SDK - only returning 57 results using JSON

2012-09-05 Thread Niall Paterson
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:

[android-developers] Re: Appwidget set background and set background transparency/alpha

2011-05-20 Thread Niall
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

[android-developers] Appwidget RemoteViews copy

2011-05-20 Thread Niall
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...

Re: [android-developers] Appwidget RemoteViews copy

2011-05-20 Thread Niall
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

Re: [android-developers] Appwidget RemoteViews copy

2011-05-20 Thread Niall
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

Re: [android-developers] Appwidget RemoteViews copy

2011-05-20 Thread Niall
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

Re: [android-developers] Appwidget RemoteViews copy

2011-05-20 Thread Niall
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

Re: [android-developers] Appwidget RemoteViews copy

2011-05-20 Thread Niall
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

Re: [android-developers] Appwidget RemoteViews copy

2011-05-20 Thread Niall
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

Re: [android-developers] Appwidget RemoteViews copy

2011-05-20 Thread Niall
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

[android-developers] Re: Appwidget set background and set background transparency/alpha

2011-05-20 Thread Niall
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

[android-developers] Random appwidget unresponsiveness

2011-05-19 Thread Niall
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

[android-developers] Appwidget set background and set background transparency/alpha

2011-05-18 Thread Niall
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

Re: [android-developers] Appwidget set background and set background transparency/alpha

2011-05-18 Thread Niall
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

Re: [android-developers] Appwidget set background and set background transparency/alpha

2011-05-18 Thread Niall
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

Re: [android-developers] Appwidget set background and set background transparency/alpha

2011-05-18 Thread Niall
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

Re: [android-developers] Re: Appwidget and orientation

2011-05-05 Thread Niall
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

Re: [android-developers] Re: Appwidget and orientation

2011-05-05 Thread Niall
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

Re: [android-developers] Re: Appwidget and orientation

2011-05-05 Thread Niall
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

Re: [android-developers] Re: Appwidget and orientation

2011-05-05 Thread Niall
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

Re: [android-developers] Re: Appwidget and orientation

2011-05-05 Thread Niall
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

[android-developers] Appwidget and orientation

2011-05-04 Thread Niall
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

[android-developers] Re: Appwidget and orientation

2011-05-04 Thread Niall
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

[android-developers] Re: Appwidget and orientation

2011-05-04 Thread Niall
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

[android-developers] Re: Cookies

2011-05-02 Thread Niall
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

Re: [android-developers] Re: Cookies

2011-05-02 Thread Niall
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

[android-developers] Cookies

2011-05-01 Thread Niall
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

[android-developers] Re: Widget tables

2011-04-28 Thread Niall
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

[android-developers] Android widget--table display

2011-04-28 Thread Niall
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

[android-developers] Widget tables

2011-04-28 Thread Niall
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

[android-developers] Activities from widget

2011-04-28 Thread Niall
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

Re: [android-developers] Activities from widget

2011-04-28 Thread Niall
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,

[android-developers] SourceDataLine

2008-10-17 Thread Niall
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