[android-developers] Re: Android WebView resolving URL occasionally results in multiple hits with different user agents

2014-03-05 Thread IcedNet
Have you logged the strUserAgent to observe the value?

when you say "wrapper" it lends itself to wondering if the device inserts 
its own bit of info...

Other than that, I can only say the WebView is and has always been flaky, 
so nothing surprises me.

On Tuesday, March 4, 2014 10:38:15 AM UTC-5, Richard Norbron wrote:
>
> Hope you guys can offer me some advice.
>
> I'm using a WebView component in a wrapper application. It has been 
> observed that when hitting a certain URL multiple hits are made to the same 
> page in quick succession but passing different user agents.
>
> For example: - LOAD URL TO WEBVIEW
>
>- 
>
>RECEIVE PAGE HIT REQUEST WITH *Dalvik/1.6.0 (Linux; U; Android 4.1.2; 
>GT-S6310N Build/JZO54K) 2014-02-26 10:35:57.523*
>- 
>
>RECEIVE PAGE HIT REQUEST WITH *Mozilla/5.0 (Linux; U; Android 4.1.2; 
>en-gb; GT-S6310N Build/JZO54K) AppleWebKit/534.30 (KHTML, like Gecko) 
>Version/4.0 Mobile Safari/534.30 2014-02-26 10:35:57.603*
>
> It should be noted that I am calling setUserAgentString on WebSettings to 
> supply the user agent string.
>
> final WebSettings mWebSettings = mWebView.getSettings();
> final String strUserAgent = mWebSettings.getUserAgentString();
> if (strUserAgent != null) {
> mWebSettings.setUserAgentString(strUserAgent);}
>
> Is there a rational explanation for why this would only hit the page once 
> most of the time, but occasionally hit it twice with different user agents 
> as in the example provided?
>
> Thanks for any insight you guys can provide.
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [android-developers] Ethernet cables?

2012-10-11 Thread IcedNet
Toshiba Thrive for sure works with USB-Ethernet (Amazon sells a 
USB-ethernet adapter) with other low-draw devices as well on a passive hub 
One issue I've run into thus far is the ConnectivityManager does not inform 
you of loss of connectivity (it will however inform you of getting it)
Also, the when receiving the broadcast intent saying you have connectivity, 
the state is described as ETHERNET, and connected/connected, but 
isAvailable is always false  :(

A bigger issue is that Many apps, including several of Google's do not do a 
generic "is connected" kind of check, they are looking specifically for 
wifi or mobile...  You can tell because they scream across the logs lol

Basically, if you are using a generic(type agnostic) check for connectivity 
before each call to a server, and place a "listener" for connectivity that 
checks at intervals and reports back, you can get by, until the OS supports 
this mode fully (ie breaks your app)

Luckily I only need this solution for a specific app and device.

hope it helps some...

-- 
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

Re: [android-developers] Problem (position 0) is more than necessary Invoked getView · bindView of CursorAdapter When you call a non-UI thread from the thread Handler.post

2012-08-23 Thread IcedNet
Are you having issues "lazy loading" an adapter with images?
Your question is difficult to understand, please try to state the issue in a 
simple way.

Peace,
Dan

-- 
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


Re: [android-developers] ICS USB Host mode -- device permission exists after uninstall

2012-08-12 Thread IcedNet
LOL
Okay, That I will not argue!  ;D

-- 
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

Re: [android-developers] ICS USB Host mode -- device permission exists after uninstall

2012-08-12 Thread IcedNet
Yes and no, it potentially causes failure for dev's (I expct behavior x 
from API and get behavior y) and is a failure for security reasons as 
well...  ;)

Thx again

Peace,
Dan

-- 
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

Re: [android-developers] ICS USB Host mode -- device permission exists after uninstall

2012-08-12 Thread IcedNet
thanks for the reminder, kris -- posted there as well, yea redundancy!

Peace,
Dan

-- 
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: ICS USB Host mode -- device permission exists after uninstall

2012-08-11 Thread IcedNet
Sorry, meant to say A500 and A200  lol

-- 
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] ICS USB Host mode -- device permission exists after uninstall

2012-08-11 Thread IcedNet
Acer Iconia A500 and Acer Iconia A500
Android 4.0.3 
(Lord knows what custom joy layered over that)

I can uninstall (via ADB or the Apps settings) and install the app again, 
the app will show permission is already granted for all connected devices 
(that are part of the app's scope)...
Here's the best part:
I can successfully retrieve devices, endPoints and interfaces -- with one 
of the devices, I can even open the device connection -- but with the 
printer, I consistently return null from UsbManager.openDevice()
Restarting the device (without reinstalling the app) forces the correct 
behavior, ie the system requests permission for all devices and the app 
operates as expected.

I recall this from Honeycomb, and unless I am mistaken, I thought this 
behavior was fixed in ICS.
I suppose I should file a bug, as I searched for one and did not find it, 
but I am in the middle of a project so I figured I would inquire where some 
of the Core Android folks like to hang  ;)

Anyone?

Peace,
Dan

-- 
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] Say Hello to the Menu?

2012-07-25 Thread IcedNet
It's like that in the most basic of elements in Android (both camelCase and 
under_score in the XML attributes), so why not have indecision in the Android 
usage patterns as well?  ;)
We just got a guaranteed "across-platforms" style, so we're moving forward. Now 
if only there were a standard look and feel, maybe my clients would stop 
sending me cut sheets from their iOS designs lol

-- 
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: Need freelancer developer to create PDFViewer with Annotation feature

2011-12-18 Thread IcedNet


On Dec 18, 10:07 am, Mark Murphy  wrote:
> I hope you have a very large pile of money.
>
Man, you got that right..

Peace,
Dan

-- 
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: android 3.0:Text Selection in webview

2011-11-24 Thread IcedNet
You need to refer to the ClipboardManager class in the 3.0
documentation, first, as you are using a deprecated
class ...text.ClipboardManager, and method (emulateShiftHeld).
Second, I have used the web view extensively in 3.0+, and the standard
Selection actionmode functions fairly well - so long as you are only
trying to pass the data around the system...  It will not create a
JavaScript selection object.

Peace

-- 
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: Urgent help required

2011-11-11 Thread IcedNet
treat the assets folder as /  (root) for your server, put it all in
there...


On Nov 11, 8:43 am, Sunil Mishra  wrote:
> As a workaround i tried storing the image in app_images folder in
> sdcard and trying to provide the url of that path. But still the
> issues exists. Is there any other work around possible??
>
> And do you have any clue
>
> On Nov 11, 5:18 pm, Daniel Drozdzewski 
> wrote:> Sunil,
>
> > You should not have developed your http server, but utilise some OSS
> > project that does that.
> > Your links to images or any other resource are relative to the context
> > of that web page (or web application) running within your web server.
>
> > wwwroot
> >  - websiteA
> >     -images
> >       -topWrapper-bg.jpg
> >       - ...
> >     -css
> >     -javascript
> >  - websiteB
> >  - websiteC
> > -index.html
>
> > To achieve this, your server has to do translation from URL
> > 'images/topWrapper-bg.jpg' to a file path within your storage
> > '/yourstorage/yourwebserver/wwwroot/webisteA/images/topWrapper-bg.jpg'.
>
> > Without this, you are dead in the water.
>
> > Just use ready, mature and testes OSS HTTP server written in Java.
>
> > Here is one option. Just package it into your application. It is only 4kB:
>
> >http://www.jibble.org/miniwebserver/
>
> > Daniel
>
> > On 11 November 2011 11:27, Sunil Mishra  wrote:
>
> > > I tried changing background-image:url('images/css/topBanner.jpg') to
> > > background-image:url(file://android_asset/raw/images/css/
> > > topBanner.jpg' ) but it still not working.
>
> > > On Nov 11, 4:20 pm, Miguel Morales  wrote:
> > >> They sure are.
>
> > >> On Fri, Nov 11, 2011 at 3:14 AM, Sunil Mishra 
> > >> wrote:
>
> > >> > The images are in res->raw->images->css
>
> > >> > On Nov 11, 3:38 pm, Miguel Morales  wrote:
> > >> > > That's better, most likely you'll want to put your html/images in 
> > >> > > the res
> > >> > > folder and then user the following path:
>
> > >> > > file://android_asset/file_path.png
>
> > >> > > If you are downloading these files dynamically, then simply change 
> > >> > > the
> > >> > > file:// path.
>
> > >> > > On Fri, Nov 11, 2011 at 2:30 AM, Sunil Mishra  > >> > >wrote:
>
> > >> > > > home.html
>
> > >> > > >  > >> > > > "http://
> > >> > > >www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>
> > >> > > > http://www.w3.org/1999/xhtml"; xml:lang="en">
> > >> > > >  
> > >> > > >    ODMS
> > >> > > >    
> > >> > > > 
> > >> > > > html {
> > >> > > >        background: #d2d2d2;
> > >> > > >        margin:0 0 0 -1px;
> > >> > > >        padding:0;
> > >> > > >        overflow-Y: scroll;
> > >> > > > }
>
> > >> > > > body {
> > >> > > >        padding:0;
> > >> > > >        margin :0;
> > >> > > >        display:table;
> > >> > > >        width:100%;
> > >> > > > }
>
> > >> > > > body {
> > >> > > >        color:#606060;
> > >> > > >        font-family: 'Trebuchet MS', sans-serif;
> > >> > > >        font-size: 13px;
> > >> > > >        font-style: normal;
> > >> > > >        font-weight: normal;
> > >> > > >        text-transform: normal;
> > >> > > > }
>
> > >> > > > p {
> > >> > > >        letter-spacing: normal;
> > >> > > >        line-height: 1.7em;
> > >> > > > }
>
> > >> > > > h1 {
> > >> > > >        color:#505050;
> > >> > > >        font-size:22px;
> > >> > > >        margin:25px 0 10px 0;
> > >> > > >        clear:both;
> > >> > > > }
>
> > >> > > > h2 {
> > >> > > >        color:#505050;
> > >> > > >        font-size:20px;
> > >> > > >        margin:20px 0 10px 0;
> > >> > > >        clear:both;
> > >> > > > }
>
> > >> > > > h3 {
> > >> > > >        color:#505050;
> > >> > > >        font-size:18px;
> > >> > > >        margin:20px 0 5px 0;
> > >> > > >        clear:both;
> > >> > > > }
>
> > >> > > > a:link, a:visited {
> > >> > > >        color:#9B251B;
> > >> > > >        text-decoration:none;
> > >> > > > }
>
> > >> > > > a:hover {
> > >> > > >        color:#fa720a;
> > >> > > >        text-decoration:underline;
> > >> > > > }
>
> > >> > > > #wrapper {
> > >> > > >        background: transparent url( images/css/page-vbg.jpg ) 
> > >> > > > repeat-y
> > >> > > > scroll 50% 0px;
> > >> > > >        margin:0 auto ;
> > >> > > >        width:100%;
> > >> > > > }
>
> > >> > > > body {
> > >> > > >        background-color:#d2d2d2;
> > >> > > > }
>
> > >> > > > #wrapper {
> > >> > > >        border-top: 1px solid #ff;
> > >> > > > }
>
> > >> > > > #topWrapper {
> > >> > > >        width:100%;
> > >> > > >        height:240px;
> > >> > > >        background-color:${topWrapper.bg.color};
> > >> > > >        background-image:url(images/css/topWrapper-bg.jpg);
> > >> > > >        background-position:center top ;
> > >> > > >        background-repeat:repeat-x;
> > >> > > > }
>
> > >> > > > #topBanner {
> > >> > > >        width:960px;
> > >> > > >        margin:0 auto;
> > >> > > >        height:240px;
> > >> > > >        background-image:url('images/css/topBanner.jpg');
> > >> > > >        background-repeat:no-repeat;
> > >> > > > 

[android-developers] Re: ListItems in ListView with visibility set to GONE still take space

2011-10-28 Thread IcedNet
Remove them from the data set and update the adapter...  I'm pretty
sure what you're doing is not a good idea, though I'
ve never tried it...

Peace,
Dan

On Oct 27, 8:13 am, Peter Berkenbosch 
wrote:
>  Hello list,
>
> I must be missing something stupid.. but I a list with items that can be 
> marked as "done". The view also contains a button that has "Hide done items".
>
> in the adapter class I do a check in getView to set some elements on 
> Visibility.GONE when the item on the position has state "done" and the  
> toggleButton is set on "hide done items".
>
> However, the list is still taking up space. What could I do to make this 
> (simple?) toggle visibility work?
>
> Thanks.
>
> --
> Peter Berkenbosch
> Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

-- 
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: RFID card reader

2011-10-17 Thread IcedNet
No links (we did it in house) but you can do it with a USB reader and
an Acer A500 tablet -- best match we found.

Peace,
Dan

On Oct 17, 1:13 pm, Studio LFP  wrote:
> Unless there is a Bluetooth version, you would probably need to use a tablet
> (until ICS) and use the USB functionality in API Version 12 and above:
>
> If the RFID reader acts as an input device (like a barcode scanner), you can
> just plug it in and it should work. I've used USB barcode scanners on my
> Xoom without any problems. You will need a Bluetooth keyboard if you want to
> be able to put other text in. If it works like the barcode scanner, it will
> act as the input device (replace the on-screen keyboard), so the on-screen
> keyboard won't pop up and that's where the Bluetooth keyboard comes into
> play.
>
> If it doesn't act like a standard input device, you will probably have to
> talk to it directly via the USB API:
>
> http://developer.android.com/reference/android/hardware/usb/package-s...
>
> You would need developer documentation for the RFID, so that may be a
> problem. If you have the protocols needed to talk to the RFID reader via
> USB, then you should be able to do it.
>
> Steven
> Studio LFPhttp://www.studio-lfp.com
>
>
>
>
>
>
>
> On Monday, October 17, 2011 4:08:16 AM UTC-5, nageswara rao rajana wrote:
>
> > Hi,
>
> >       I want to develop application which need to read data from external
> > RFID card reader. So, my doubt is it possible to connect external RFID card
> > reader
> >       to android mobile. If so please provide links related to it.
>
> >      Thanking you,
> >       Nagu.

-- 
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: listview adapter. Recycle bitmap

2011-10-16 Thread IcedNet
You should look into Romain Guy's 2009/10 Google I/O presentations on
UI -- he is the whip with ListViews/UI.
If you're looking for what I think you're looking to do -- which is
speed up that list view -- he has a view holder pattern that will do
just that.

Peace,
Dan

On Oct 16, 10:08 pm, Studio LFP  wrote:
> Based on the code there, you wouldn't have the chance to recycle the bitmap
> as you don't keep a handle to it anywhere.
>
> Then again, if the ListView discards that particular row and you aren't
> retaining any handles to the bitmap, then the bitmap should be scheduled for
> collection by the GC. If you did try to retrieve the view that was holding
> the image from the ListView and it did return it to you, there is a good
> chance the ListView still wants to use it and you would not want to release
> the bitmap.
>
> Is there a reason you are wanting to try to recycle the bitmap?
>
> Also, we are talking about the recycle() function on bitmap and not reusing
> the same bitmap, correct?
>
> Steven
> Studio LFPhttp://www.studio-lfp.com
>
>
>
>
>
>
>
> On Sunday, October 16, 2011 4:14:48 AM UTC-5, emanuele wrote:
>
> > Hello guys.. that s my baseAdapter getview implmentation:
>
> > @Override
> > public View getView(int position, View convertView, ViewGroup parent)
> > {
>
> > int type = getItemViewType(position);
> > if (convertView == null) {
> > switch (type) {
> > case TYPE_BIG_NEWS:
> > convertView = mInflater.inflate(R.layout.big_news, null);
> > break;
> > case TYPE_NORMAL_NEWS:
> > convertView = mInflater.inflate(R.layout.normal_news, null);
> > break;
> > default:
> > break;
> > }
> > }
>
> > ImageView thumb = (ImageView)
> > convertView.findViewById(R.id.thumbId);
>
> > File f = null;
> > if (filename != null)
> > f = mFileCache.getFile(i.newsKey, filename);
> > if (f == null) {
> > if (mGetThumbsThread != null && filename != null) {
> > Log.i(TAG, "cache miss");
> > thumbLinks.offer(new ThumbRequest(i.newsKey, i.thumbLink,
> > i.thumbName));
> > mGetThumbsThread.signal();
> > }
> > thumb.setImageResource(placeHolder);
> > } else {
> > Log.i(TAG,
> > "file bitmap cached: " + f.getName() + " size: " + f.length() /
> > 1024);
> > bitmap = BitmapFactory.decodeFile(f.getAbsolutePath());
> > thumb.setImageBitmap(bitmap);
> > }
>
> > return convertView;
> > }
>
> > Every row is compound of text and an ImageView. Is there any chance to
> > recycle the bitmap I use in the getView?

-- 
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: Home Button

2011-10-06 Thread IcedNet
They won't view it as a bug, but yes, I suppose in your case, you
could see it as such.
It's only a bug if the behavior is not what they desire it to be.
We have used a plastic shield to keep fingers away from the System Bar
and disabled the action bar in our kiosk apps, perhaps you can discuss
limitations of the platform with your client
-- Apple won't let you mess with their Big Button, either  ;)

On Oct 6, 9:36 am, Ubiracy  wrote:
> I have a native app and i need this :( my tablet only do this ( open
> application on boot and don't close ), but when i use  the progressdialog
> this lock  method  doesn't work.. bugs?!

-- 
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: Android is worst os mobile is this true

2011-10-06 Thread IcedNet
It's an old saying... "All OS's suck."
Pick one that sucks less and use it.
Life is too short for whining.

If you've got better skillz, get off your ass and take the helm of
your own OS, else publish bug reports like the rest of the world and
move on.
Bugs and attitude and all, they're doing one helluva job, for the
price of admission...

Peace,
Dan

On Oct 6, 5:58 am, Latimerius  wrote:
> I wrote a game a year ago that used BT for its network transport.  I
> was using mostly HTC Desire and Samsung Galaxy S for testing (both
> 2.1).
>
> In my experience when a BT connection manages to get past the set-up
> stage it works just fine.
>
> However, connection set-up was a huge PITA.  Never mind that about 1
> in 5 connection attempts failed for some reason although the devices
> were lying on my desk right next to each other.  The most puzzling
> thing was that the connection only succeeded if it was initiated by
> the Galaxy S.  Connections initiated in the opposite direction (by the
> Desire) had success rate less than about 1 in 20 or 30 (which is the
> number of attempts before I gave up and let the Galaxy S to initiate
> the connection).
>
> Now, I'm no BT expert and there might a perfectly good explanation for
> all of that.  However, for the time being I would hesitate to call my
> Android/BT experience perfect.
>
>
>
>
>
>
>
> On Thu, Oct 6, 2011 at 11:38 AM, Vinay Julme  wrote:
> > I can say that Android Blue tooth works perfectly fine on HTC(Wildfire,
> > Desire), Samsung, Devices from Sprint, DELL, Google Nexus. Never had a
> > problem. And the version ranges from 2.1 to 2.3.
>
> > On Thu, Oct 6, 2011 at 6:17 AM, Kristopher Micinski 
> > wrote:
>
> >> On Wed, Oct 5, 2011 at 7:46 PM, Indicator Veritatis 
> >> wrote:
> >> > Why are you so sure Android Bluetooth "works perfectly fine"? Have you
> >> > tested it on a sampling of devices typical of the market? What version
> >> > are you using?
>
> >> > Android 2.2 Bluetooth does NOT work perfectly fine on my phone (HTC
> >> > G2). On the contrary: I have had lots of trouble with it dropping
> >> > packets and/or failing to establish a connection when used with a
> >> > RFCOMM profile on a Belkin Bluetooth dongle for a WinXP PC. I have had
> >> > less trouble using it with earpieces, but even then, it looses the
> >> > connection too easily.
>
> >> > That said, it is a huge improvement over Bluetooth in Android 1.6.
>
> >> I can echo this,  :-).
>
> >> Kris...
>
> >> --
> >> 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
>
> > --
> > 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

-- 
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: Home Button

2011-10-06 Thread IcedNet
Yes, yes it does, but it flies in the face of good Android design ---
in other words, you should not do that to your users -- the lock
screen isn't for that.

Peace,
Dan

On Oct 6, 9:02 am, TreKing  wrote:
> On Thu, Oct 6, 2011 at 7:48 AM, Ubiracy  wrote:
> > This work...
>
> >       @Override
> >       public void onAttachedToWindow()
> >       {
>
> > this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
> >            super.onAttachedToWindow();
> >       }
>
> Doing that prevents the device from going to the Home screen / app when
> pressing the Home key in your app ... ?
>
> --- 
> --
> TreKing  - Chicago
> transit tracking app for Android-powered devices

-- 
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] Where's ICS?

2011-10-04 Thread IcedNet
Well...

-- 
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: Is this a joke??

2011-09-20 Thread IcedNet
Not as funny when you consider

OS_THROWS_SIG_SEGV_REGULARLY  == true

Maybe have fun and fix things instead of making your dev base out to
be fools (see Google I/O 2011 videos on you tube)
 Keep up the good work  ;)

Peace,
Dan


On Sep 20, 6:57 pm, b0b  wrote:
> if(isUserAOneStarRatingIdiot()) {
>   ((Object)null).toString();
>
>
>
> }

-- 
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: android, get screen size in api 3.2

2011-09-14 Thread IcedNet
When are you calling this?
I routinely get the tablets' full screen sizes via this method in
onCreate

Peace,
Dan


On Sep 13, 5:22 pm, avillar  wrote:
> In API 3.2 when you get the screen height, it seems that return value
> is the screen height minus the height menu bar. Here is the code:
> ((WindowManager)mContext.getSystemService(Context.WINDOW_SERVICE)).getDefau 
> ltDisplay().getMetrics(metrics);
> int height=metrics.heightPixels;
>
> For API 3.2 emulator with 1280x800 screen size, the height return is
> 752
>
> I tried to get the height with methods but always return 752
>
> I need to know the real height value because in portrait the menu bar
> don´t have influence in the drawable zone.
>
> Any ideas?

-- 
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 takes up entire screen, I need it to fit in the remaining space of the layout.

2011-09-13 Thread IcedNet
 wrote:
> Try pressing the MENU button. If you see the options menu from the
> browser app, that's because you're in the browser app, and you are not
> looking at your WebView. That would be because the server issued a
> redirect, which you did not handle in shouldOverrideUrlLoading() of a
> WebViewClient.
>
> If, OTOH, you are sure that you are still in your own app, use
> Hierarchy View to examine your layout and figure out where your rules
> are going haywire.
>
>
>
>
>
>
>
>
>
> On Tue, Sep 13, 2011 at 9:34 AM, MCON Dev  wrote:
> > Hello All,
>
> > I am trying to use Webview in a relative layout with a progress bar
> > and some buttons. But as soon as I run webview.loadUrl("my path"), the
> > webview takes over the entire space. I need the webview to fit in the
> > remaining space of my layout. Please help.
>
> > 
> > 
> > http://schemas.android.com/apk/res/android";
> >        android:layout_width="fill_parent" 
> > android:layout_height="fill_parent">
> >         >                android:layout_alignParentTop="true" 
> > android:layout_height="wrap_content"
> >                android:id="@+id/progressBar"
> > style="@android:style/Widget.ProgressBar.Horizontal" />
> >         >                android:layout_below="@id/progressBarText" 
> > android:layout_width="fill_parent"
> >                android:layout_height="wrap_content" 
> > android:orientation="horizontal">
> >                 > android:id="@+id/search"
> >                        android:layout_height="wrap_content" 
> > android:text="Search"
> >                        android:layout_weight="1" 
> > android:layout_gravity="center_vertical" />
> >                 > android:id="@+id/cancel"
> >                        android:layout_height="wrap_content" 
> > android:text="Cancel"
> >                        android:layout_weight="1" 
> > android:layout_gravity="center_vertical" />
> >        
> >         >                android:background="@android:color/transparent"
> >                android:layout_centerInParent="true" 
> > android:src="@drawable/left"
> >                android:layout_height="wrap_content" 
> > android:layout_width="wrap_content"
> >                android:id="@+id/previous">
> >         >                android:background="@android:color/transparent"
> > android:layout_height="wrap_content"
> >                android:layout_alignParentRight="true" 
> > android:layout_centerInParent="true"
> >                android:src="@drawable/right" 
> > android:id="@+id/next">
> >         >                android:layout_below="@id/searchResultPages"
> >                android:layout_alignParentBottom="true" 
> > android:layout_width="fill_parent"
> >                android:layout_height="wrap_content" />
> > 
> > 
>
> > The AndroidManifest.xml has
> > 
> >  >                        android:screenOrientation="portrait"
> > android:configChanges="orientation|keyboardHidden"
> >                        android:windowSoftInputMode="stateHidden">
> >                        
> > 
>
> > Regards
> > Conny
>
> > --
> > 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
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android Training...At Your Office:http://commonsware.com/training

-- 
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 UTF-8 broken?

2011-09-11 Thread IcedNet
did you try "utf-8" (ie lowercase) ?

Peace,
Dan

On Sep 11, 4:28 pm, bob  wrote:
> I made a simple test to see if the Webview correctly supports UTF-8:
>
> wv.loadData("%E2%80%91", "text/html", "UTF-8");
>
> If it did support UTF-8 correctly, the preceding code should load a
> single long hyphen.  Instead, it loads three weird characters.  Did I
> do this right or am I missing something?

-- 
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 android

2011-09-09 Thread IcedNet
I looked at xui before giving in and writing all the javascript by
hand...

on the other hand, the html5 and css3 are useful, though I haven't
tried the Canvas object.
if you're good with javascript and Canvas works, you might be better
off...  The libraries usually do a lot of the work for you, but the
webview is not a browser, and it has some real issues that the
libraries aren't coding for.

Peace,
Dan

On Sep 9, 3:35 pm, Christian Bianchini
 wrote:
> Yes I enabled the JS, I tried to setup a webclient or a chromeclient but
> nothing is changed.
>
> I don't know why but the native webkit engine isn't so cool than firefox,
> this is a big surprising for me because Chrome is a very good Browser...
>
> There is any library ?
>
>
>
>
>
> On Fri, Sep 9, 2011 at 9:22 PM, IcedNet  wrote:
> > You are enabling JavaScript in the WebView, yes?
>
> > If so, and you still have problems, I would invite you to browse
> > around with Android's "Browser" to the various library sites' demo
> > pages and watch the fail unfold...
> > It has issues with many things, JavaScript included.  It is the public
> > facing version, and actually functions "better" than the API's WebView
> > in many respects.
> > If you are counting on using a JavaScript Library with the internal
> > WebView, count on a world of hurt.
>
> > As for using Firefox's webkit as a webview, that is a project of
> > enormous magnitude, as in porting yet another webkit to Android...
>
> > And I am not snarking, tyvm  ;)
>
> > Peace,
> > Dan
>
> > On Sep 9, 3:07 pm, Jeremy Dagorn  wrote:
> > > Hi,
>
> > > Look at the documentation, there is a simple example about how to load
> > > an URL from a WebView!
> >http://developer.android.com/resources/tutorials/views/hello-webview
>
> > > Best,
>
> > > On Sep 9, 11:53 am, Christian Bianchini  wrote:
>
> > > > I have a problem with webview, I tried to use thehttp://raphaeljs.com/
> > > > library but was working only on my computer. I tried to use the
> > > > browser and doesn't work as well.
> > > > I tried to download Firefox on my phone and it's work!
>
> > > > Anyone can suggest me any idea? I would like to use a webview of
> > > > Firefox but I haven't any idea how to do it.
>
> > --
> > 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
>
> --
> ---
> Web/Mobile Developer
> Luiis Group
> christ...@bianchini.ch 

-- 
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 android

2011-09-09 Thread IcedNet
You are enabling JavaScript in the WebView, yes?

If so, and you still have problems, I would invite you to browse
around with Android's "Browser" to the various library sites' demo
pages and watch the fail unfold...
It has issues with many things, JavaScript included.  It is the public
facing version, and actually functions "better" than the API's WebView
in many respects.
If you are counting on using a JavaScript Library with the internal
WebView, count on a world of hurt.

As for using Firefox's webkit as a webview, that is a project of
enormous magnitude, as in porting yet another webkit to Android...

And I am not snarking, tyvm  ;)

Peace,
Dan

On Sep 9, 3:07 pm, Jeremy Dagorn  wrote:
> Hi,
>
> Look at the documentation, there is a simple example about how to load
> an URL from a 
> WebView!http://developer.android.com/resources/tutorials/views/hello-webview
>
> Best,
>
> On Sep 9, 11:53 am, Christian Bianchini  wrote:
>
>
>
>
>
>
>
> > I have a problem with webview, I tried to use thehttp://raphaeljs.com/
> > library but was working only on my computer. I tried to use the
> > browser and doesn't work as well.
> > I tried to download Firefox on my phone and it's work!
>
> > Anyone can suggest me any idea? I would like to use a webview of
> > Firefox but I haven't any idea how to do it.

-- 
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: Honeycomb -- Activity.getIntent().getExtras().getString() encountering race condition?

2011-09-07 Thread IcedNet
I noticed I forgot to mention, I do not actually use those lines of
code for anything, I just placed them ahead of the original code
because I had a hunch about it being a race condition...
I never use that String, I left the original code in place  :D

Peace,
Dan

On Sep 7, 9:58 am, IcedNet  wrote:
> Yet, the three lines of code alleviates the issue on every run
> (Keeping that build around for the eventual Log.wtf factor)
> :)
>
> Thanks for the input, Mark, and keep those eBooks coming, man,
> priceless!
>
> Peace,
> Dan
>
> On Sep 6, 10:04 pm, Mark Murphy  wrote:
>
>
>
>
>
>
>
> > On Tue, Sep 6, 2011 at 9:57 PM, IcedNet  wrote:
> > > Activity two starts and calls an internal AsyncTask which uses
> > > `Activity.this.getIntent().getExtras().getString()` as a
> > > parameter for an object
>
> > Grab this value in the AsyncTask constructor or onPreExecute(). Do not
> > refer to an Activity in doInBackground(), as with configuration
> > changes, it might not be the right activity anymore.
>
> > > I decided to place those three lines of code in onCreate and use a
> > > String field instead of accessing the Activity's Intent within
> > > doInBackground and have yet to encounter the issue since doing so.
>
> > Sounds like a plan.
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> > _The Busy Coder's Guide to Android Development_ Version 3.6 Available!

-- 
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: Honeycomb -- Activity.getIntent().getExtras().getString() encountering race condition?

2011-09-07 Thread IcedNet
Yet, the three lines of code alleviates the issue on every run
(Keeping that build around for the eventual Log.wtf factor)
:)

Thanks for the input, Mark, and keep those eBooks coming, man,
priceless!

Peace,
Dan

On Sep 6, 10:04 pm, Mark Murphy  wrote:
> On Tue, Sep 6, 2011 at 9:57 PM, IcedNet  wrote:
> > Activity two starts and calls an internal AsyncTask which uses
> > `Activity.this.getIntent().getExtras().getString()` as a
> > parameter for an object
>
> Grab this value in the AsyncTask constructor or onPreExecute(). Do not
> refer to an Activity in doInBackground(), as with configuration
> changes, it might not be the right activity anymore.
>
> > I decided to place those three lines of code in onCreate and use a
> > String field instead of accessing the Activity's Intent within
> > doInBackground and have yet to encounter the issue since doing so.
>
> Sounds like a plan.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> _The Busy Coder's Guide to Android Development_ Version 3.6 Available!

-- 
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] Honeycomb -- Activity.getIntent().getExtras().getString() encountering race condition?

2011-09-06 Thread IcedNet
More just feeling out the community/wondering if anyone has seen this
than concerned about our issue, our fix works and has yet to fail.
I may file a bug -- but why at this point, whither goest thou, oh
Honeycomb?  ;)
Actually, I am just too busy to write a simple case and try to
reproduce this atm

Situation:
Activity One sends a non-null String via Intent and
startActivityForResult() (won't execute/send if it's null -- we
verified this)

Activity two starts and calls an internal AsyncTask which uses
`Activity.this.getIntent().getExtras().getString()` as a
parameter for an object

This fails intermittently (sometimes yes, sometimes no)

Insert these three lines of code above the Object instantiation :
Intent i = Activity.this.getIntent();
Bundle b = i.getExtras();
String filename = b.getString();

And it has yet to receive null.
I decided to place those three lines of code in onCreate and use a
String field instead of accessing the Activity's Intent within
doInBackground and have yet to encounter the issue since doing so.

Anyone encountered this particular situation?

Peace,
Dan

-- 
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: EditText box doesn't work the same way in PopupWindow as in AlertDialog

2011-08-26 Thread IcedNet
http://developer.android.com/reference/android/widget/PopupWindow.html

Depending on how it is instantiated, it may be non-focusable by
default...

Peace,
Dan


On Aug 26, 1:09 pm, Frank  wrote:
> Dear All,
>
> I am having some difficulty getting an EditText widget work properly
> in a PopupWindow class.
>
> When it is used in a PopupWindow and double clicked/long pressed,
> nothing happens. However, when it is put in an AlertDialog, double
> click selects the text in it and brings up a built-in text tool bar at
> the top. Does anyone know the cause of this? Thank you very much.
>
> Regards,
> Frank

-- 
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: Android development is very bad

2011-08-22 Thread IcedNet
You will get more snark than help here, both because of the language
barrier, your attitude and because, most likely, no one here can help
you...
The majority of Android apps do not push the envelope, nor do the
majority of android devs...  If you enjoy the "xcode gives me
everything" environment, stick with it.  Android requires you to start
from scratch for the most part (that's why the quick app dev contests
typically go to Apple) and to understand the framework which you are
employing very thoroughly for projects like the one it sounds like you
are involved in.
Snarkiness aside, you are just in the wrong place to get an answer for
this question.
As has been mentioned, if you bring $$$  Google will support you, if
you bring "I hate Android" you will not find answers...

Peace,
Dan

On Aug 22, 9:20 am, NaveenShrivastva 
wrote:
> Thanks all ,
>
> i am trying but not getting success.
>
>
>
>
>
>
>
>
>
> On Mon, Aug 22, 2011 at 6:46 PM, nexbug  wrote:
> > Yep, you are probably right. It's a good idea then for you to stick
> > with what you like then. Some peope (me personally) like developing
> > without being spoonfed or hand-held.
> > Not everyones cup of tea ;-)
>
> > Either ways, I doubt if complaining here is going to help. Good luck.
>
> > On Aug 21, 11:22 pm, Naveen  wrote:
> > > i think android development is very bad for android developer compare
> > > to xcode.
>
> > > xcode giving framework for each and every ap implementation.
>
> > > here i want to generate a codec interface facing issue, post to
> > > android community but not getting any response back by him.
>
> > > Thanks,
>
> > --
> > 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
>
> --

-- 
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 text selection and persistent highlighting dilemma

2011-08-19 Thread IcedNet
Nevermind, got it
http://stackoverflow.com/questions/6948447/android-3-0-webview-text-selection-javascript

Answered my own question, and sry I can't give t3h c0d3z (NDA), but I
have a brief outline based on the solution...  Let's hope they think
about this for ICS...  It's not that difficult a problem to solve
IMHO.
Peace,
Dan

On Jul 28, 10:52 am, IcedNet  wrote:
> Hello All,
>
> I am working on a non-trivial epub format book reader project in 3.1+,
> implementing it within aWebView.
>
> I am stymied at thetextselection/highlight phase (luckily ? I have
> many more operations to polish up and implement).
>
> I can , of course highlighttextand use the Clipboard manager in it's
> intended role (copy/paste, et al).
> The problem is twofold when I attempt to enable persistenttext
> highlighting within theWebViewitself:
>
> 1) the ClipboardManager does not (currently) seem well-suited for this
> -- I have implemented the OnPrimaryClipChangedListener to capture the
> clipboardtextand process it within myWebView,  but, being that I
> cannot override the System Clipboard ActionBar menu, I receive thetextas 
> would any app, only upon clicking "Copy" etc...  and the menu,
> though nice, is not "ours".  I have seen the results of polling the
> ClipboardManager.hasPrimaryClip() for it'stextas well so I believe
> that path is doom-laden  :)
>
> 2) I have attempted to use the ActionMode pattern, but overriding
> onDragEvent() within myWebViewis non-responsive (as in it never
> fires) and gives me the dreaded "Miss a drag as we are waiting for
> WebCore's response for touch down." -- as I am trying to control page
> turning/navigation within theWebView(javascriptdisables ontouch
> events) for the obvious reason that it is a book reader, not a
> webpage.
>
> As an aside, I notice that Google's flagship "Books" app, though
> pretty, also does not allow highlighting/textselection... with the
> splitting of images between pages, we were thinking it might be 
> aWebViewimplementation as well  -- just a slight beg for source
> code...  only slight, really  :)
>
> If it is not clear from the above, I am wondering how to get control
> of the ClipboardManager, or barring that (which I assume I cannot do
> as it is a System service), maybe someone can point me in the
> direction of a workaround for webcore so cruelly denying Java the
> ability to control the world.  I am open to taking complete control of
> motion events if need be, but that is so demanding for such a
> seemingly simple task as this...  I mean, really, Amazon does what we
> want to do in Kindle for Droid...  :)
>
> Thanks for your time!
>
> Peace,
> Dan

-- 
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: how to enable the dragging option in android browser?

2011-08-16 Thread IcedNet
AFAIK, the browser and WebView are Very limited and Very Different
beasts -- Text selection (as in creating a Selection object in the
underlying DOM) and Drag/Drop are not implemented/implementable
through the API's given us, although I have seen window.getSelection()
give spurious and odd results with broken Selection objects being
returned.
Browser has a Number of issues with JavaScript in the wild (try to use
the browser on jQuery/YUI/XUI etc sample pages for a taste of what I
mean...  It even balks at standard JS fairly regularly)

Silence has been the only answer I have seen regarding this, both in
bug reports and around the various forums... I believe they are more
than aware, but it is a long road to fix such a complex set of
interactions -- maybe ICS  :)

Peace,
Dan

On Aug 12, 4:32 am, Duygu Kahraman  wrote:
> i check in device.Dragging option doesnt work too.
>
> Duygu Kahramanhttp://tr.linkedin.com/in/duygukahramann
>
> 2011/8/12 simi 
>
>
>
>
>
>
>
> > i want to run the site "http://html5demos.com/drag"; .. actually this
> > site is opening in android browser(1e,in android emulator).but can not
> > do the drag option.. what should do for dragging the texts in
> > emulator Is there any workaround possible for working
> > the HTML5 drag and drop example in emulator browser?
>
> > --
> > 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

-- 
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: Java script to Native Bindings & reverse

2011-08-15 Thread IcedNet
You can pass simple data types (String, int), objects will not
translate. -- JSON should be fine as (key, value) or multiple comma
separated values
for example, I pass xpath and offset info regularly like so:
String startXPath,endXPath,uniqueID,highlightStyle;
int startOffset, endOffset;
final String paramString = "'" + startXPath + " ', "
+ startOffset + ", ' " + endXPath + " ', " + endOffset + ", ' "
+ uniqueID+ " ', ' "+ highlightStyle + " ' ";
_webView.loadUrl(JAVASCRIPT_HOOK + "GLOBAL.performHighlight (" +
paramString + ")");

where JAVASCRIPT_HOOK = "javascript:"

if you are passing int primitives, use no quotes (hopefully the
formatting of the web post isn't screwing up the code above too much),
for Strings, be certain to include single quotes in your call from
Java

Coming back from JavaScript, you only receive String values, so pipe
or comma-delimiting is the way to go (ie  "primitive0|primitive1|
primitive3" etc)

Peace,
Dan

On Aug 15, 12:29 pm, Mark Murphy  wrote:
> On Mon, Aug 15, 2011 at 12:26 PM, Android Developer
>
>  wrote:
> > But need little more clarity, if I need to pass objects or data with
> > complicated data types from Java to java script as arguments in
> > callback. Would JSON suffice the purpose or is there any other
> > solution ?
>
> > Checked Bookmarklets, we can call JS callbacks but that doesn't throw
> > light on argument data types issue.
>
> It has to be valid JavaScript source code. There is nothing more to it
> than that.
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
>
> Android App Developer Books:http://commonsware.com/books

-- 
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 TextSelection + JavaScript issue in 3.1+ - solution opinions?

2011-08-04 Thread IcedNet
Hello All,

Problem domain: WebView based ePub format reader
need text highlights which are accessible via JavaScript methods (ie
turn em on, turn em off, save them email them, etc)

Anyone in the know, please correct me if I'm wrong:
During text selection on a WebView --
Basically we are handed a TextView overlay (WebTextView) which is IN
NO WAY attached to the underlying html other than visually (nice job
on lining it all up and making it seamless, btw), on which we perform
the TextSelectionActionMode and the ClipboardManager is supplied with
the results...

So in order to make this behavior work in 3.1+, I have two possible
plans going forward to implement my own selection on a WebView  --
this is the part where I'm wondering if I cannot see out of my
corner :) --
1) capture MOTION_DOWN of the long click which initiates selection
mode, override the built in TextSelection ActionMode( to provde the
clients branding -- the way I found to do so is so hackish it hurts)
watch the drag, capture MOTION_UP position, map these coords onto the
WebView, and make my selection based on the coords (while comparing
the text to that captured by the ClipboardManager)
2) create my own "WebTextView" (whole lotta work lol) and not-so-
hackishly create my own ActionMode and do all of the above

These are the options I see, hopefully my proximity and frustration
with this have blinded me to a simpler (read that as built-in)
solution or two.
Thanks again for your time.

Peace,
Dan

-- 
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 text selection and persistent highlighting dilemma

2011-07-29 Thread IcedNet

Oh yeah, I forgot to mention, our team created the iPad version of
this which is creating a buzz in the education world, and this is not
feeling ready for prime time -- as a platform in general...  :(

-- 
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 text selection and persistent highlighting dilemma

2011-07-28 Thread IcedNet
Hello All,

I am working on a non-trivial epub format book reader project in 3.1+,
implementing it within a WebView.

I am stymied at the text selection/highlight phase (luckily ? I have
many more operations to polish up and implement).

I can , of course highlight text and use the Clipboard manager in it's
intended role (copy/paste, et al).
The problem is twofold when I attempt to enable persistent text
highlighting within the WebView itself:

1) the ClipboardManager does not (currently) seem well-suited for this
-- I have implemented the OnPrimaryClipChangedListener to capture the
clipboard text and process it within my WebView,  but, being that I
cannot override the System Clipboard ActionBar menu, I receive the
text as would any app, only upon clicking "Copy" etc...  and the menu,
though nice, is not "ours".  I have seen the results of polling the
ClipboardManager.hasPrimaryClip() for it's text as well so I believe
that path is doom-laden  :)

2) I have attempted to use the ActionMode pattern, but overriding
onDragEvent() within my WebView is non-responsive (as in it never
fires) and gives me the dreaded "Miss a drag as we are waiting for
WebCore's response for touch down." -- as I am trying to control page
turning/navigation within the WebView (javascript disables ontouch
events) for the obvious reason that it is a book reader, not a
webpage.

As an aside, I notice that Google's flagship "Books" app, though
pretty, also does not allow highlighting/text selection... with the
splitting of images between pages, we were thinking it might be a
WebView implementation as well  -- just a slight beg for source
code...  only slight, really  :)

If it is not clear from the above, I am wondering how to get control
of the ClipboardManager, or barring that (which I assume I cannot do
as it is a System service), maybe someone can point me in the
direction of a workaround for webcore so cruelly denying Java the
ability to control the world.  I am open to taking complete control of
motion events if need be, but that is so demanding for such a
seemingly simple task as this...  I mean, really, Amazon does what we
want to do in Kindle for Droid...  :)

Thanks for your time!

Peace,
Dan

-- 
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: Can't find my posts :(

2010-09-17 Thread IcedNet
Check your profile...?

On Sep 16, 4:47 pm, Moto  wrote:
> I have had this problem a couple times where I post something and I
> can never find it again... One time I lucked out because my post was
> still open on my other computers browser...
>
> Anyone have this issues?  I'm a bit frustrated... :(
>
> -Moto

-- 
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: Driving directions in Google map view

2010-08-16 Thread IcedNet
http://csie-tw.blogspot.com/2009/06/android-driving-direction-route-path.html

This is a roll-your-own that allows you to parse the KML return from
Google...

Better late than never?  :)

Peace,
Dan

On Aug 11, 5:25 am, tushar  wrote:
> Hi,
>
> I am working on an app (not browser-based) that shows restaurants
> around my current GPS fix. I would like to show drivingdirectionsto
> the store selected by the user on themapview.
>
> The GoogleDirectionswebservice provides direction waypoints given
> two geo locations. Is there some support available in Android MapView
> for output (XML/JSON) spitted by this web service or do I have to roll
> out my own parser and some kind ofmapoverlay to display the
> waypoints?
>
> Thx

-- 
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: How to quit the app?

2010-08-05 Thread IcedNet
I believe what they are getting at is that "quitting an app" in
Android is not usually necessary (if ever).
My favorite link for this subject (quoted words from Herself):

http://android-developers.blogspot.com/2010/04/multitasking-android-way.html

It is a different world from the way Some OS's behave (no finger
pointing)...  trust the OS to do it's job, and write good code...
Simple, right?

Peace,
Dan

On Aug 4, 1:12 pm, Frank Weiss  wrote:
> On Wed, Aug 4, 2010 at 9:54 AM, ls02  wrote:
> > I want to terminate the Linux process, the same way Pandora app does.
>
> I'm not being cheeky, but just want to understand your thinking. If
> the Android app's host linux process is NOT terminated, what is the
> consequence, if any?

-- 
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