[android-developers] Android 2.3.3 and NFC Modes

2011-03-16 Thread hansamann
Hi all, just exploring NFC, got a few tags from smartcardfocus.com and now try to discover as much as I can. What "modes" are currently supported? There are three modes the nfc forum defined: - card emulation - peer to peer - card/tag reading/writing The latter one is clearly supported, then p

[android-developers] Re: NDEF intent filters

2011-03-10 Thread hansamann
I don't think you can filter by well known type, you'll probably have to filter by tech and then the user would get a intent chooser. I am also experimenting with Android NFC and was able to write a NFC Tag with a NdefMessage including a TNF of TNF_MIME_MEDIA, a type of "application/json" and some

[android-developers] Beginner's TableLayout question

2010-06-30 Thread hansamann
Hi all, I have a simple tablelayout with an imageView and textView as children. The textView contains a relatively long text and when I was using it as a child of a LinearLayout, is showed several lines of text. Now as part of the TableLayout it shows only one line and cuts the rest. Question: Ho

[android-developers] Re: Orientation and Webview

2010-06-15 Thread hansamann
Sorry, no answer, but you just helped me a lot by letting me know that android:configChanges="orientation" stops the webview reloading!!! Sven On Jun 15, 2:16 pm, nikhil wrote: > I have a webview and I am using > android:configChanges="orientation" to restrain the webview from > reloading ever

[android-developers] Using sessionStorage in a webview

2010-06-15 Thread hansamann
Hi all, I am trying to set a flag for the current session in the webview. I enabled the DOM storage API: mWebView.getSettings().setDomStorageEnabled(true); In my HTML page, loaded from the assets directory, I then execute a small piece of javascript like this: if (!sessi

[android-developers] Writing to the /assets directory

2010-06-08 Thread hansamann
Hi, is there a way to write to the /assets direcory and save arbitrary files to it? I am intending to download a HTML page which should be updated from time to time. If no network connection is available it should be taken out of the assets directory. I know I can reference fils in here using the

[android-developers] Re: Intercepting WebKitView resource requests, serving from classpath

2010-06-07 Thread hansamann
Another question I have with regards to this: how can I load a HMTL file including resources from the package/classpath? On Jun 7, 8:03 pm, hansamann wrote: > Hi all, > > I'd like to create dynamic HTML in my app that will also include > referecences to a few images. The ima

[android-developers] Intercepting WebKitView resource requests, serving from classpath

2010-06-07 Thread hansamann
Hi all, I'd like to create dynamic HTML in my app that will also include referecences to a few images. The images should not be resolved / requested by the internet, but instead I would like to somehow intercept these calls and then respond will classpath resources to those requests. I think this

[android-developers] Re: Android 2.1 WebKit and applicationCache

2010-05-13 Thread hansamann
Hi, is there anyone who could answer this question or tell me where to best post this? It's an important issue for me right now... Thanx, Sven On May 12, 8:40 pm, hansamann wrote: > Hi all, > > I am trying to use the Android 2.1 WebKit applicationCache but I > notice several d

[android-developers] Android 2.1 WebKit and applicationCache

2010-05-12 Thread hansamann
Hi all, I am trying to use the Android 2.1 WebKit applicationCache but I notice several differences to the iPhone 3/4(beta) implementation. Can anyone tell me what the current status is and if it is in a usable state? Here are my observations that I can share: - initial caching works, but inste

[android-developers] Does webkit's toDataURL() for the HTML5 Canvas work on Android 2.1?

2010-04-19 Thread hansamann
Hi all, I am writing a tutorial about the HTML5 Canvas for mobile and did some basic tests. While I can call the getDataURL() Method on an iPhone's HTML5 Canvas Element, it does not seem to return the data URL on Android 2.1 (Google Nexus One) and it's webkit-based default browser. Here is the sam