[android-developers] 2 Android WebViews on top of each other on OnTouch event

2012-02-06 Thread Ori Harel


I have 2 webviews in a relative layout. I'm doing so because I need an HTML 
on a fixed position while HTML list beneath it is scrolling (basically a 
header that floats on a scrolling list).

I want both webviews be in the same size so my HTML developer can control 
the size of the header dynamically.

For this purpose, I need the OnTouch event to propagate between the 2 
WebViews. but in my debugging, it doesn't.

If I use View's instead - it propagates.

Anybody knows of the WebView not propagating the OnTouch events to lower 
hierarchy views?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: WebView ignore Javascript that invokes PUT/DELETE Http method

2012-01-17 Thread Ori Harel
Those are not part of Android, but the problem exist only in Android 
WebView.
Anyway, I solved it by forcing the WebView to ignore the cache by:


$.ajax({
type: methode,
url: 'some_url?d' + new Date().getTime(),
data: JSON.stringify(req),
  });

As you can see I added a new Date() object creation in order to overcome 
that caching mechanism.

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: WebView ignore Javascript that invokes PUT/DELETE Http method

2012-01-17 Thread Ori Harel
Also, here's the JS code inside the WebView:

var req = new Backbone.Model(auth);

$.ajax({
type: PUT,
url: 'some_url',
data: JSON.stringify(req)
});

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: WebView ignore Javascript that invokes PUT/DELETE Http method

2012-01-17 Thread Ori Harel
I just tested on ICS emulator and it works there. why is it not working on 
earlier versions?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] WebView ignore Javascript that invokes PUT/DELETE Http method

2012-01-15 Thread Ori Harel


I have a web view that in it's HTML/Javascript makes an Http call with 
Put/Delete methods. those calls seems to be ignored (I test them on chrome 
and they work fine).

Any idea?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Android Out of memory exception and ContentResolver.registerContentObserver

2011-10-06 Thread Ori Harel
In my activity, I have about 10 ContentObservers registered to the 
ContentResolver (registerContentObserver). I do it in the onCreate().

When changing between landscape and portrait, the onCreate() is called over 
and over again (and I want it that way - need to change layouts), but after 
few tries the app runs out of memory and crashes.

Those observers are not class members so they live in the scope of 
onCreate().

Any idea anyone?

(When I comment all registrations, I don't have any crashes).

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] WebView, WebViewClient and links

2011-09-15 Thread Ori Harel
Do I need to implement my own WebViewClient in order for my WebView to 
handle common links like geo:, tel: and mailto:?

Can't the WebView handle it on it's own?

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Do not sign up for the ShoppyBag mail!

2010-12-13 Thread Ori Harel
it's a spam. report as spam/phishing and delete!

sorry...

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Am I being banned

2010-10-06 Thread Ori Harel
I can't see my posts for the last month or so.
am I being banned?

Ori

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en