[android-developers] Preserve ListView position when using footers

2011-01-20 Thread Kwisatz
This is driving me crazy! I have two applications with this problem, and I'm about to give up. I'm out of ideas. In these applications, I've constructed a pattern for the ListView very similar to the Gmail app. I'm fetching information from the server in small sets, and when a user scrolls down

[android-developers] Re: Preserve ListView position when using footers

2011-01-20 Thread Kwisatz
Thanks for the help, Kostya. The getScrollY() didn't work, but it got me started to find out a way that I could save the pixel offset of the top ListView row. And I got it. It's something like this: @Override protected void onPause() { super.onPause();

[android-developers] Re: Repeating background does not repeat

2010-12-10 Thread Kwisatz
I have exactly the same problem as you. It happens in the emulator and on devices, from 1.6 to 2.2. I was searching the web for a solution, but found nothing so far. But it's nice to know that programmatically we can get an accurate effect. It will get ugly implementing this in the app, but thanks

[android-developers] Intent filter targeting specific SDK version

2010-12-02 Thread Kwisatz
Problem: I have an Activity with an Intent-Filter that must be always active, but only when the application is running on devices above Froyo, Is there a way to: 1. Permanently add Intent-Filters? or 2. Permanently remove Intent-Filters? or 3. Make the intent-filter target specifically an

[android-developers] Re: Intent filter targeting specific SDK version

2010-12-02 Thread Kwisatz
Wow! Thank you so much, Mark. You really guided me to the right place. Here is what I come up with: In the manifest, I have my Activity, let's call it com.test.disable.TargetActivity, and it is set with one or more intent filters. So, during the app execution, somewhere in the code, I can see if

[android-developers] Triangle shape in XML file

2010-10-20 Thread Kwisatz
Is there any way of defining a triangle in a shape item though a XML definition? It seems there is only rectangle, oval, line and ring. Why not a triangle? -- 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] Re: Triangle shape in XML file

2010-10-20 Thread Kwisatz
as well. May be in th future we can have those, but I don't have an answer to your WHY. :) On Wed, Oct 20, 2010 at 8:14 PM, Kwisatz rui.mtd.ro...@gmail.com wrote: Is there any way of defining a triangle in a shape item though a XML definition? It seems there is only rectangle, oval, line

[android-developers] Re: Dealing with password change on the server in a SyncAdapter

2010-08-17 Thread Kwisatz
the activity when clicking in the notification. Now it's working. On Aug 16, 2:20 pm, Kwisatz rui.mtd.ro...@gmail.com wrote: Hope you can help me with this, because I've tried EVERYTHING and the example in the Google sample code doesn't seem to work. Scenario: - An account is created

[android-developers] Dealing with password change on the server in a SyncAdapter

2010-08-16 Thread Kwisatz
Hope you can help me with this, because I've tried EVERYTHING and the example in the Google sample code doesn't seem to work. Scenario: - An account is created in the AccountManager with a valid username and password. - A SyncAdapter is present to deal with server syncs, and successfully

[android-developers] Accessing @hide methods in the Android source code

2010-07-29 Thread Kwisatz
Is there any way we can access methods annotated with a @hide without changing the Android source code? Can we use reflection to do that? -- 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] Re: Accessing @hide methods in the Android source code

2010-07-29 Thread Kwisatz
to replicate them. Not use those methods to some other functionality. I think it's acceptable somehow... no? As I said... we're desperate! :) On Jul 29, 9:04 am, Mark Murphy mmur...@commonsware.com wrote: On Thu, Jul 29, 2010 at 4:01 AM, Kwisatz rui.mtd.ro...@gmail.com wrote: Is there any way

[android-developers] Re: Two way contact sync

2010-07-28 Thread Kwisatz
Be aware that until now (2.2), there is no way to customize the Contact UI for creating and editing your custom contact. So, that pretty much defeats the purpose of synchronizing back to the server since you can't edit the contact on the device. Unless you have your own Contacts application or do

[android-developers] Two-way sync adapter for custom accounts

2010-05-24 Thread Kwisatz
Is there a way to have a sync adapter to synchronize from and to the cloud? In the documentation and samples I can only find the cloud-to-device sync. And is it also possible to edit contacts from a custom account? Any help would be appreciated. Thanks. -- You received this message because you

[android-developers] Re: Emulator DNS/network problems...is there a posted fix?

2010-01-27 Thread Kwisatz
Hello, I also had the same problem and spent an entire day messing with configurations and sugestions found on Google. No luck at all. Until I found a solution that seemed ridiculous, but... it worked! Start the Emulator normally (even from eclipse), and in the GUI go to: Settings Wireless