[android-developers] Re: XML Signature

2011-01-10 Thread Miguel Paraz
On Jan 4, 5:46 am, spock michal.mosd...@gmail.com wrote: How is it possible to generate XML signature on Android. In pure JAVA I would probably follow this tutorial: http://java.sun.com/developer/technicalArticles/xml/dig_signature_api/ but I cannot find following packages on android:

[android-developers] WebView pre-executing JavaScript before loading a page

2010-05-26 Thread Miguel Paraz
Hi, I would like to a WebView to run some JavaScript before loading the rest of the page. This JavaScript should run in the same context of the page, just as if extra script content were added before any other script content. This is not possible with addJavascriptInterface() since I want to set

[android-developers] Re: WebView pre-executing JavaScript before loading a page

2010-05-26 Thread Miguel Paraz
On May 26, 9:47 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: This is more a JavaScript question than an Android one. It sounds to me like you could either inline the JavaScript ahead of the page, which would make it execute first, or add an onload function so that it executes

[android-developers] Re: WebView pre-executing JavaScript before loading a page

2010-05-26 Thread Miguel Paraz
Hi Mark, On May 26, 10:23 pm, Mark Murphy mmur...@commonsware.com wrote: Rather than pushing, you could try pulling: webView.addJavascriptInterface(paraz, new TheMiguelParazObject()); webView.loadUrl(file:///android_asset/page.html); TheMiguelParazObject has some method (e.g., initScript())

[android-developers] Re: Is this is possible in Android ?

2010-03-30 Thread Miguel Paraz
On Mar 30, 6:15 am, AJ ajeet.invinci...@gmail.com wrote: Hi Group, As we know the following command is for using Emulator console. telnet localhost console-port But this works only for Emulator. I tried for read android Devices that did not work It says  Connecting To localhost...Could

[android-developers] ServerSocket to wake up a sleeping phone

2010-03-17 Thread Miguel Paraz
Hi, I noticed that if the Android phone is listening on a ServerSocket on the 3G network, and is then put to sleep with the power button, it no longer listens for incoming connections. The incoming TCP connection does not wake up the phone. Is this there a way to enable waking up a sleeping phone

[android-developers] Setting up a 3G connection independent of opening a Socket

2010-03-06 Thread Miguel Paraz
Hi, Is it possible to set up a 3G connection to the network, before opening a Socket? An example use case would be, I want to ensure the network is ready when an app is run, before I actually need to connect. I could not find an SDK API. This is presumably possible with the internal radio APIs.

[android-developers] Re: How to implement SyncML Device management objects in android

2010-01-21 Thread Miguel Paraz
On Jan 21, 5:26 pm, saikiran n saikiran@gmail.com wrote: Bearer- Type of the bearer(I didn't get information about this) TelephonyManager can give you this. Oem-original equipment manufaturer((I didn't get information about this) I don't think there is a method to get the OEM - even the

[android-developers] Import existing project into workspace - Can't see Android Library in Java Build Path

2009-12-14 Thread Miguel Paraz
Hi, In Eclipse, when I Import an existing into workspace (from a Mercurial repository, if it matters), I don't have the Android Library in the Java Build Path. Instead, I get Unable to get system library for the project. The .classpath file does have: classpathentry kind=con

[android-developers] Re: Replacing existing TabHost content

2009-12-10 Thread Miguel Paraz
Since this crashes with NullPointerException in onResume() after a period of time, my solution is to restart the activity instead by starting itself and then finish()ing. On Nov 16, 10:34 pm, Miguel Paraz mpa...@gmail.com wrote: Hi, Since theTabHostAPI does not offer a way to change existing

[android-developers] Exception when clearing tabs and onResume() from different applications

2009-12-09 Thread Miguel Paraz
Hi, In my onResume() I have this, to recreate the tabs every time i run. This is because the tab content changes depending on the program state. tabHost = getTabHost(); tabHost.setCurrentTab(0); tabHost.clearAllTabs(); tabSpec = tabHost.newTabSpec(Label);

[android-developers] Re: custom protocol handler...

2009-11-29 Thread Miguel Paraz
Hi all, I'm having the same problem. On Nov 19, 4:16 am, sdphil phil.pellouch...@gmail.com wrote: ping...  still unanswered and unworking... On Nov 15, 9:48 pm, sdphil phil.pellouch...@gmail.com wrote: ping... On Nov 13, 11:06 am, sdphil phil.pellouch...@gmail.com wrote: okay,

[android-developers] Re: custom protocol handler...

2009-11-29 Thread Miguel Paraz
Hi, I tested this with an embedded WebView, and it works. Not sure why the intent-filter isn't visible to Browser app. On Nov 12, 1:09 am, sdphil phil.pellouch...@gmail.com wrote: i want to do the following thing - when a user navigates to a web page, I want to have a link in there that looks

[android-developers] Re: custom protocol handler...

2009-11-29 Thread Miguel Paraz
On Nov 29, 11:17 pm, Miguel Paraz mpa...@gmail.com wrote: Hi, I tested this with an embedded WebView, and it works. Not sure why the intent-filter isn't visible to Browser app. I got mine working. It only works as a browser link, and not using the Go dialog box. As it turns out, no surprise

[android-developers] Re: Managed dialogs with state changes

2009-11-20 Thread Miguel Paraz
Hi, On Nov 20, 4:24 am, TreKing treking...@gmail.com wrote: You may want to clarify what you're asking, but if you mean you need to dynamically populate the contents of the dialog or set a different click listener based on what the user did to bring up the dialog, then you may want to simply

[android-developers] Re: Managed dialogs with state changes

2009-11-20 Thread Miguel Paraz
Hi, On Nov 20, 4:24 am, TreKing treking...@gmail.com wrote: You may want to clarify what you're asking, but if you mean you need to dynamically populate the contents of the dialog or set a different click listener based on what the user did to bring up the dialog, then you may want to simply

[android-developers] Managed dialogs with state changes

2009-11-19 Thread Miguel Paraz
Hi, I have Dialog code whose actions in onClick() change, depending on a selected item on a ListView. I believe that Dialogs are better when managed, right? But, showDialog() and onPrepareDialog() don't give me a chance to change the dialog state. Does this mean, managed dialogs are meant for

[android-developers] Replacing existing TabHost content

2009-11-16 Thread Miguel Paraz
Hi, Since the TabHost API does not offer a way to change existing views or activities, what is the preferred means to replace an existing tab? I only know of: clearing the tabs and adding them again. Is there an alternative? Or is this really not provided by design? Thanks. -- You received this

[android-developers] Re: onSearchRequested() doesn't call search activity in 1.5

2009-11-16 Thread Miguel Paraz
On Nov 10, 9:13 pm, Miguel Paraz mpa...@gmail.com wrote: Hi, I'm now trying this on a more complicated app. It doesn't work. On the 1.5 emulator, nothing happens when onSearch() is called. On the HTC Magic, the Google Search box appears. The manifest is the same as my test app that works

[android-developers] Re: How to popup a window from service

2009-11-15 Thread Miguel Paraz
On Nov 13, 9:22 am, elf.cheng king...@gmail.com wrote: I am developing an ip phone an android.it may work as a service in background.when a call(or a message) coming in,I need a window(dialog or activity) popup.how to do that? I believe the NotificationManager is the standard way of doing

[android-developers] Re: Inter-activity communication

2009-11-15 Thread Miguel Paraz
On Nov 13, 4:11 pm, abhi rkabhi1...@gmail.com wrote: Currently, I am starting a Child activity from a Parent activity in the following manner: public class Parent extends Activity {        private int message;        public Parent()         {               message = 0;          }      

[android-developers] Re: BAck to Activity after WebView

2009-11-15 Thread Miguel Paraz
Hi, Just to be sure... is the previous Activity still on the task stack? You did not finish() it? On Nov 15, 6:16 am, toby teisentrae...@googlemail.com wrote: Hello, I've been searching and looking for this answer for quite some time now. I want to display a little HTML in a webView. When

[android-developers] Re: Incoming calls

2009-11-12 Thread Miguel Paraz
Hi, It's really not supported, because the Phone app runs in a system process. I also want to do it. On Nov 12, 6:17 pm, Carlos Pérez takut...@gmail.com wrote: It's really important for me and for my app. Then, If someone has another idea about how resolve my problem, I'll be very grateful

[android-developers] Re: Saving Intents to use later (WAY LATER!)

2009-11-12 Thread Miguel Paraz
Hi, I guess that the Uri form of an Intent is stable - something like a Serializable form? I'm thinking of passing it across the network. On Sep 15, 1:12 am, Dianne Hackborn hack...@android.com wrote: Somehow this doesn't seem to be documented, but this is the method you

[android-developers] Re: onSearchRequested() doesn't call search activity in 1.5

2009-11-10 Thread Miguel Paraz
Hi, I'm now trying this on a more complicated app. It doesn't work. On the 1.5 emulator, nothing happens when onSearch() is called. On the HTC Magic, the Google Search box appears. The manifest is the same as my test app that works. On Nov 10, 12:13 am, Miguel Paraz mpa...@gmail.com wrote: Hi

[android-developers] Re: onSearchRequested() doesn't call search activity in 1.5

2009-11-09 Thread Miguel Paraz
...@gmail.com wrote: Any ideas?  I am attempting the same thing right now with 1.5 and am seeing the same behavior. On Oct 8, 6:42 am, Miguel Paraz mpa...@gmail.com wrote: Hi, The 1.5 AVD doesn't seem to follow the documentation in:http://developer.android.com/reference/android/app

[android-developers] Re: Calling a URL from Android phone

2009-11-08 Thread Miguel Paraz
On Oct 26, 2:18 am, David Kebo davidk...@gmail.com wrote: I am calling a URL from the Android phone This URL is supposed to move a camera connected on the same network Here is the code for the URL: url = new URL(http://10.0.1.90/axis-cgi/com/ptz.cgi? camera=1move=home); URLConnection

[android-developers] Uncaught RuntimeExceptions in Services fail silently

2009-11-07 Thread Miguel Paraz
Hi, I spent some time tracking down a database leak that I couldn't figure out, until I decided to log all database open()s and close()s. It turns out that I had a NullPointerException in my code which was preventing the close(). I fixed this by moving the close() to a finally {} block - which

[android-developers] Re: A table-type layout with the contents centered inside

2009-10-29 Thread Miguel Paraz
On Oct 22, 8:05 pm, Mark Murphy mmur...@commonsware.com wrote: MiguelParazwrote: Hi, I would like a table-style layout where the cell sizes are automatically computed, without using AbsoluteLayout to position them. For example, the table has width 320 and height 240. For a 4x4 cell

[android-developers] Looking for Custom Layout/ViewGroup Tutorial

2009-10-29 Thread Miguel Paraz
Hi, Could you recommend a tutorial for custom Layouts / ViewGroups? I couldn't find one. My first project is to move the functionality of a GridView + Adapter to a ViewGroup, to put the enclosed Views in a grid. Thanks! --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Looking for Custom Layout/ViewGroup Tutorial

2009-10-29 Thread Miguel Paraz
On Oct 29, 4:27 pm, Miguel Paraz mpa...@gmail.com wrote: Hi, Could you recommend a tutorial for custom Layouts / ViewGroups? I couldn't find one. My first project is to move the functionality of a GridView + Adapter to a ViewGroup, to put the enclosed Views in a grid. I found some GridView

[android-developers] Re: Android WebView and HTML5

2009-10-29 Thread Miguel Paraz
On Oct 30, 1:30 am, Joe Bowser bows...@gmail.com wrote: Has anyone got the Database going on WebView?  I've gotten it to work on the browser itself on the Emulator (using the Stickies example), but not in the WebView.  I noticed that Google added setDatabaseEnabled and setDatabasePath, but

[android-developers] Re: Android WebView and HTML5

2009-10-28 Thread Miguel Paraz
Hi, On Oct 9, 6:37 pm, Anton Pirker an...@ignaz.at wrote: Hey fellow Androids! I am experimenting with Androids WebView[1] and itsHTML5features. I have written a little webpage with does the features detection like described here:http://diveintohtml5.org/detect.html And now I see (I am on

[android-developers] Re: Real Life Push

2009-10-27 Thread Miguel Paraz
On Oct 27, 6:53 am, Marc Lester Tan mail...@gmail.com wrote: and this might be a good place to start about JAIN SIP on Android although it uses the old 1.0 sdk http://jeanderuelle.blogspot.com/2008/10/jain-sip-is-working-on-top-o... Thanks. This is OK if you're using a SIP-based

[android-developers] Re: How do I build Android project

2009-10-27 Thread Miguel Paraz
On Oct 26, 3:15 pm, braid_pitt ganti.vi...@gmail.com wrote: I am trying to build android source code (specifically the applications such as the alarm clock, calendar) and when I do this using eclipse, there are 1000+ errrors being thrown possibly due to mismatch of class path and other

[android-developers] Re: Real Life Push

2009-10-27 Thread Miguel Paraz
On Oct 28, 3:39 am, jotobjects jotobje...@gmail.com wrote: On Oct 27, 12:54 am,MiguelParazmpa...@gmail.com wrote: And, it also requires that your phone can receive incoming UDP connections. Come to think of it, if your phone can accept incoming TCP connections, you can run a web server

[android-developers] Re: Extending an Already Existing View in android.widget gives me java.lang.VerifyError

2009-10-26 Thread Miguel Paraz
On Oct 26, 2:16 pm, Raman raman86...@gmail.com wrote: Is it not possible to add my own new View-inherited classes in already existing package android.widget I don't know, but the common practice seems to be to copy source code files from the open source tree.

[android-developers] Real Life Push

2009-10-26 Thread Miguel Paraz
Hi, I've tried the following for pushing messages, in experiments: XMPP - using Smack, modified by http://code.google.com/p/jabberoid/ HTTP with Comet/Bayeux - using http://cometd.org/ Are you using these in real projects? Or other push protocols? Thanks!

[android-developers] Re: Chat Application

2009-10-26 Thread Miguel Paraz
On Oct 12, 5:28 am, Silver sunsilverdra...@gmail.com wrote: Is there an online tutorial for how to write a very mundanechat application on the Android platform, over two or more phones? (doesn't have to be anything special, just be able to send messages from one phone to the other in real

[android-developers] Re: Implementing 'push technology' into Android apps

2009-10-26 Thread Miguel Paraz
On Oct 27, 6:01 am, arvchak arvc...@gmail.com wrote: Wat if we use Comet, even i have searching for this stuff not lucky though.Comet is the push technology implemented as an alternative to ajax.The gtalk we see in the gmail uses comet.I suppose we should implement this to make it easier. If

[android-developers] Context.bindService() returns true even when Service.onBind() returns null?

2009-10-25 Thread Miguel Paraz
Hi, I had a bug in my code where Service.onBind() returned null, in a local Service. But, Context.bindService() returned true, though the ServiceConnection was not called back. Isn't this inconsistent with the docs? In onBind(): Return the communication channel to the service. May return null if

[android-developers] Re: ListView with Streaming Content

2009-10-25 Thread Miguel Paraz
On Oct 21, 10:02 pm, Streets Of Boston flyingdutc...@gmail.com wrote: No need to call 'invalidate()' on your list-view. Call 'notifyDatasetChanged()' on your customer adapter instead, whenever you add or delete elements in your ArrayList or change the contents of existing elements in your

[android-developers] Re: ListView with Streaming Content

2009-10-25 Thread Miguel Paraz
Hi, On Oct 25, 10:59 pm, Mark Murphy mmur...@commonsware.com wrote: Replace the current contents of your Runnable with a call to requery() on the underlying Cursor. That will trigger an update of the SimpleCursorAdapter and the corresponding ListView. Thanks! Yes, it pushed the new results

[android-developers] Re: Photo ACTION_PICK intent returning data not set in setType

2009-10-23 Thread Miguel Paraz
Hi, On Oct 23, 3:08 pm, Gyan gnanesh@gmail.com wrote: I'm using the setType to return me images mentioned only of the specific type.         Intent photoPickerIntent = new Intent(Intent.ACTION_PICK);         photoPickerIntent.setType(image/gif);        

[android-developers] A table-type layout with the contents centered inside

2009-10-22 Thread Miguel Paraz
Hi, I would like a table-style layout where the cell sizes are automatically computed, without using AbsoluteLayout to position them. For example, the table has width 320 and height 240. For a 4x4 cell table, each cell is of width 80 and height 60. Inside each cell, I'd like the images centered

[android-developers] Re: A table-type layout with the contents centered inside

2009-10-22 Thread Miguel Paraz
On Oct 22, 8:05 pm, Mark Murphy mmur...@commonsware.com wrote: Miguel Paraz wrote: Hi, I would like a table-style layout where the cell sizes are automatically computed, without using AbsoluteLayout to position them. For example, the table has width 320 and height 240. For a 4x4 cell

[android-developers] How to use Canvas.drawText()

2009-10-21 Thread Miguel Paraz
Hi, I want to use drawText() to draw a small piece of text in a bitmap. This is to overlay the text on an existing resource, as a numeric counter. In this code snippet, the drawColor() and drawCircle() work, but not the drawText(). What am I missing? Thanks!

[android-developers] Re: How to use Canvas.drawText()

2009-10-21 Thread Miguel Paraz
On Oct 21, 5:45 pm, RichardC richard.crit...@googlemail.com wrote: Try drawing the text at 20, 20. I think I had the same problem - not my computer to check right now. If I remember correctly 0,0 is bottom left and the text is drawn off the bottom of the bitmap. Hope this helps It helped!

[android-developers] ListView with Streaming Content

2009-10-21 Thread Miguel Paraz
Hi, I'd like to build a ListView with streaming content. New items are added to the top and old ones are forgotten If I understand correctly, the ListView was not built for this, right? The ListAdapter was meant to provide a fixed set of data. I tried to setAdapter() when new data comes in, but

[android-developers] ArrayAdapter also works with java.util.List (was Re: ListView with Streaming Content)

2009-10-21 Thread Miguel Paraz
(position) on listview. hth, Marc On Wed, Oct 21, 2009 at 7:34 PM, Miguel Paraz mpa...@gmail.com wrote: Hi, I'd like to build a ListView with streaming content. New items are added to the top and old ones are forgotten If I understand correctly, the ListView was not built

[android-developers] Re: Using Webkit/Webview for Android UI instead of native UI

2009-10-21 Thread Miguel Paraz
On Oct 21, 8:41 pm, Hendra Wijaya wijaya.em...@gmail.com wrote: I wonder if it's possible to use webkit/webview for UI instead of using the native UI ( view, layout, activity, etc ). Is there a way to catch/propagate intents to internal app when we use webkit/webview ui (probably through

[android-developers] Re: Making my app scriptable

2009-10-21 Thread Miguel Paraz
On Oct 14, 12:37 pm, Nolan Darilek no...@thewordnerd.info wrote: Cool, thanks for the pointers. I tried posting earlier and it doesn't appear to have gone through, so please accept my apologies if multiple similar messages post. :) I'm experimenting with Rhino and am having more issues.

[android-developers] Re: Implementing 'push technology' into Android apps

2009-10-19 Thread Miguel Paraz
On Oct 19, 12:34 am, Rafael Sanches ra...@users.sourceforge.net wrote: This is not push, but if you want real time you could try: - to use a comet technique. Where you connect to the 80 port of your server and keep the connection open while listening to its stream. - create a XMPP connection

[android-developers] Re: Setting ImageView from the web using URI

2009-10-15 Thread Miguel Paraz
On Oct 13, 10:08 pm, Smelly Eddie ollit...@gmail.com wrote: I need to display an image that is pulled from the web using a url. I tried the following, unsuccessfully;                   boxart.setImageURI(Uri.parse(http://example.com/image.jpg;)); I assume I need to create a local

[android-developers] Properly Disconnecting the Network on the Emulator

2009-10-13 Thread Miguel Paraz
Hi, I'm working on making an app robust in the face of network disconnection. When I test a socket application on the emulator, and disconnect using the Data setting on DDMS, the socket connection does not get cut. Instead, it hangs. Strangely enough, it seems that DDMS and logcat also get

[android-developers] Re: HTC phone for testng?

2009-10-09 Thread Miguel Paraz
On Oct 9, 12:28 pm, ian stilbit...@gmail.com wrote: I am almost ready to begin testing my apps on a real phone. I don't want a G1. If I got an unlocked HTC, can I use that for my testing, or do a need a specialized developer phone from Google\? Hi, You can use any phone to test SDK apps

[android-developers] Re: Can WebView be used inside a Service?

2009-10-09 Thread Miguel Paraz
Hi, I looked into this myself... On Oct 9, 3:00 pm, tomei.ninge...@gmail.com tomei.ninge...@gmail.com wrote: I want to run part of my app logic in a background service. However, much of the app uses JavaScript. Currently I run the JavaScript inside a WebView. Is it possible to have an

[android-developers] Re: Android WebView and HTML5

2009-10-09 Thread Miguel Paraz
Hi, You can see a comparison of the different WebKit implementations here: http://www.quirksmode.org/webkit.html On Oct 9, 8:00 pm, Mark Murphy mmur...@commonsware.com wrote: And now I see (I am on a SDK1.6 Emulator) that the LocalStorage, the WebWorkers and Offline Web Applications are not

[android-developers] Re: HTC phone for testng?

2009-10-09 Thread Miguel Paraz
On Oct 9, 8:51 pm, ian stilbit...@gmail.com wrote: Uh, by standard things do you mean using GPS location and Mapview? Pardon me if it is a silly question. GPS - yes, as long as the hardware supports it. All Android phones to my knowledge do. MapView - the phone needs to have Google Mobile

[android-developers] onSearchRequested() doesn't call search activity in 1.5

2009-10-08 Thread Miguel Paraz
Hi, The 1.5 AVD doesn't seem to follow the documentation in: http://developer.android.com/reference/android/app/SearchManager.html which says it's enough to call onSearchRequested() to call the search activity. I need to call startSearch() to make it work. However, when I check the source code

[android-developers] Re: IP camera

2009-10-04 Thread Miguel Paraz
On Oct 4, 4:41 pm, Rana masud.h...@gmail.com wrote: I want know about IP camera in Android. Please mention details if known to you.. You want to use Android phones as an IP camera, or use Android for an IP camera OS? I think it's not possible since the recorder only saves to files. Or to view

[android-developers] Cursor.moveToPosition(0) is false even with content

2009-10-03 Thread Miguel Paraz
Hi, I'm trying to make my own version of the Contacts application, with only the Contacts tab. I removed the telephony functionality. What I don't understand is: when I want to use the Cursor for the Contacts provider (in the ResourceCursorAdapter), Cursor.moveToPosition (0) is false. The

[android-developers] Re: Extensible Apps with Scripting or Bytecode Downloading

2009-09-30 Thread Miguel Paraz
On Sep 30, 1:51 am, Mark Murphy mmur...@commonsware.com wrote: I would like the runtime to be a Java app itself, like JavaScript using Rhino (and not using a WebView). So, use Rhino. Or Beanshell. With some classes added to Android 1.5, I suspect Rhino will build from source without

[android-developers] Extensible Apps with Scripting or Bytecode Downloading

2009-09-29 Thread Miguel Paraz
Hi, I'm looking into a solution that needs apps to be dynamically extensible. One way could be an extension language or scripting engine. I've seen the Android Scripting Environment, but this needs the actual C scripting engine (Python or Lua) running as a separate process. I would like the

[android-developers] Re: AsyncTask doesn't work with WebView (was Re: long-running loadUrl() JavaScript with a callback)

2009-09-24 Thread Miguel Paraz
I figured this out - I violated the The task instance must be created on the UI thread rule stated in the Reference. On Sep 22, 8:47 pm, Miguel Paraz mpa...@gmail.com wrote: On Sep 21, 6:11 pm, Mark Murphy mmur...@commonsware.com wrote: I made an example that sleeps inside the Runnable

[android-developers] Re: Disable WebKit JavaScript security for XMLHttpRequest

2009-09-21 Thread Miguel Paraz
On Sep 17, 10:23 pm, Maps.Huge.Info (Maps API Guru) cor...@gmail.com wrote: Use JSON instead. No cross domain security with that method. Sorry I don't understand - how can JSON help here? Retrieving JSON data from the remote side would still need a XMLHttpRequest. The bug I filed was rejected

[android-developers] long-running loadUrl() JavaScript with a callback

2009-09-21 Thread Miguel Paraz
Hi, I'm planning to use the JavaScript interface to Java, to connect to Java methods that go to the network (or some other long-running function) and deliver the results via callback. The flow is: 1. User clicks on a link in the WebView, which calls my Java code. 2. My Java code posts a worker

[android-developers] Re: Disable WebKit JavaScript security for XMLHttpRequest

2009-09-17 Thread Miguel Paraz
Hi, I filed a bug. Please star it and comment: http://code.google.com/p/android/issues/detail?id=3930 On Sep 16, 10:05 pm, AJ ajeet.invinci...@gmail.com wrote: I am also looking the answer for this. Thank, AJ On Sep 16, 1:36 pm,MiguelParazmpa...@gmail.com wrote: Hi, Is there any way

[android-developers] Re: WebView : can we select text in Java ?

2009-09-17 Thread Miguel Paraz
On Sep 17, 8:13 pm, Nanard bsegon...@free.fr wrote: Hi, I'd like to use WebView to display some content (from my Java code or local temp file). I need to select some characters (change background color) of the view. Of course I need to change those selected char. using my Java code. How

[android-developers] Disable WebKit JavaScript security for XMLHttpRequest

2009-09-16 Thread Miguel Paraz
Hi, Is there any way to disable the WebKit JavaScript security for XMLHttpRequest? I need an HTML file in the local assets to access remote URLs for AJAX style calls. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Re: I want to know to get browse history on android ?

2009-09-12 Thread Miguel Paraz
I continued with my trial code. This one does not retrieve anything, using the DevPhone on Cupcake. Then, I read the source for the Browser's BrowserProvider which suggests that you need to give something to query. (the commented code below). However, that causes an Exception inside the

[android-developers] Re: I want to know to get browse history on android ?

2009-09-11 Thread Miguel Paraz
On Sep 3, 11:35 am, ni eaindrani...@gmail.com wrote: Hi All, I mean, I want to pull out web histroy from contentprovider for my application. I have some coding. But I got exception so, no running. So, how can I do ?please help me. Here are my coding I tried your code. Are you

[android-developers] HTML5 Schedule

2009-07-22 Thread Miguel Paraz
Hi, What is the schedule for HTML5 support in WebKit? Specifically - offline web applications and storage. --~--~-~--~~~---~--~~ 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] JavaScript-Java bridge - JavaScript objects

2009-07-21 Thread Miguel Paraz
Hi, I'm starting to use the JavaScript to Java bridge for widget development. I'd like to pass the entire JavaScript objects to the native Java functions, witout having to convert them into JSON Strings. Any idea how, or is this impossible? Thanks!

[android-developers] local web content and XmlHttpRequest

2009-07-13 Thread Miguel Paraz
Hi, I want to load local HTML content which makes HTTP calls using XmlHttpRequest. I created a content:// URL which refers to the SD card, using the code here: http://lucabelluccini.blogspot.com/2008/09/android-developers-google-group-focus.html However, when I call the JavaScript function that

[android-developers] Making VideoView play automatically

2009-04-25 Thread Miguel Paraz
Hi, How can I make a VideoView play immediately, without the user having to select the MediaPlayer UI Play button? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

[android-developers] Re: Making VideoView play automatically

2009-04-25 Thread Miguel Paraz
On Apr 25, 2:55 pm, Nithin Varamballi nithi...@gmail.com wrote: HI...           Create one one obect of VideoView          then give objectname .start(); Thanks for the reply! Nothing happens, though. No logcat logs. --~--~-~--~~~---~--~~ You received this

[android-developers] Re: Making VideoView play automatically

2009-04-25 Thread Miguel Paraz
On Apr 25, 4:32 pm, Nithin Varamballi nithi...@gmail.com wrote: Try this code... This code woks for me.. Yes, it works! The key is to start() before attaching the MediaController. Thank you. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Making VideoView play automatically

2009-04-25 Thread Miguel Paraz
On Apr 25, 4:32 pm, Nithin Varamballi nithi...@gmail.com wrote: Try this code... This code woks for me.. Yes, it works! The key is to start() before attaching the MediaController. Thank you. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: Can Android browser load from local server via 802.11 ad hoc?

2009-04-07 Thread Miguel Paraz
Randall Parker wrote: Can one use an Android phone to access basically local (think intranet for example) web servers to view pages? Yes. I ask this question because some cell phones with some phone network appear to use a special server to funnel cell phone requests thru and that the

[android-developers] Re: Passing a 2 dimensional array to an Activity

2009-04-01 Thread Miguel Paraz
On Apr 1, 1:55 pm, Zhubham sahilz...@gmail.com wrote: I need to pass a 2 dimensional array to an ACTIVITY  from a SERVICE. How can I achieve this in minimum number of statements (as in avoiding putExtras for each and every string stored in the array)?? Hi, You could use the JSON en/decoding

[android-developers] Re: Persistent Sockets on ADP 1.1 (was Re: Jetty Comet Library)

2009-03-23 Thread Miguel Paraz
On Mar 21, 5:25 pm, Miguel Paraz mpa...@gmail.com wrote: Hi, I believe the problem is with the ADP1. I retested using the emulator and it's working perfectly. Solved. It's power management. Used WakeLock and WifiLock. --~--~-~--~~~---~--~~ You received

[android-developers] Persistent Sockets on ADP 1.1 (was Re: Jetty Comet Library)

2009-03-21 Thread Miguel Paraz
Hi, I believe the problem is with the ADP1. I retested using the emulator and it's working perfectly. My code is here: http://pastebin.ca/1365243 How can I isolate the problem? Does the hardware driver prevent persistent sockets? On Mar 18, 3:23 pm, Miguel Paraz mpa...@gmail.com wrote: Hi

[android-developers] Jetty Comet Library

2009-03-18 Thread Miguel Paraz
Hi, How are you guys doing with the Jetty+Comet? I'm getting the exception below, consistently. This is on a physical ADP1/1.1, on WiFi. This is using CONNECTOR_SOCKET mode. CONNECTOR_SELECT_CHANNEL mode does not work at all. Another problem is that this exception is in a thread and is not

[android-developers] Re: How to pass a class reference as a parameter to an activity?

2009-03-09 Thread Miguel Paraz
On Mar 9, 4:52 pm, Zhiping Zeng clipse.z...@gmail.com wrote: I want to pass a class reference to an activity, and then the activity will construct the view according to the content of the class. Hi, There's no way to store references in an Intent because it may be passed to other virtual

[android-developers] Re: Adding features to email client

2009-03-09 Thread Miguel Paraz
On Mar 6, 6:39 am, My3 maithri...@gmail.com wrote: I just wanted to know,whether is it possible to Add extra menu items to Standard email client? I know that we can use the email client to compose/forward mails, as well as we can access the content. Was just wondering if we can add extra

[android-developers] Re: Better JavaScript debugging for a WebView

2009-03-08 Thread Miguel Paraz
On Mar 5, 3:29 pm, Mattaku Betsujin mattaku.betsu...@gmail.com wrote: I've never seen errors like undefined line: 0 source: undefined. All my errors usually come with a source name and file name. How do you load the HTML into WebView. Do you do it the following way?          

[android-developers] WebView/Browser Viewport Size

2009-03-06 Thread Miguel Paraz
Hi, Don't you think it would be useful for the WebView or the browser to set the viewport size? This is to show the entire html content on a single page, and disable scrolling. This could be done as a setting on the WebView object, or through Javascript or meta tags in the browser app (as it is

[android-developers] Re: Webview's addjavascriptinterface question

2009-03-04 Thread Miguel Paraz
On Mar 5, 1:17 am, j jac...@gmail.com wrote: Regarding Webview's addjavascriptinterface, is the java-javascript binding global or apply only to my webview? Only yours. You have a private WebKit instance. --~--~-~--~~~---~--~~ You received this message because

[android-developers] Better JavaScript debugging for a WebView

2009-03-04 Thread Miguel Paraz
Hi, I'm debugging a Javascript+HTML app. All the content is in ./assets. The app works fine in Firefox, Safari and iPhone (over the web). But in the WebView, I only get: D/WebCore ( 626): Console: undefined line: 0 source: undefined I need to debug this code. Could I either: - enable more

[android-developers] Re: Better JavaScript debugging for a WebView

2009-03-04 Thread Miguel Paraz
Hi, On Mar 5, 5:23 am, Mattaku Betsujin mattaku.betsu...@gmail.com wrote: I just add a logging function to my JavaScript interface object. Something like class JSInterface {     public void trace(String s) {System.out.println(s);} } Using this allowed me to develop and debug more than

[android-developers] Spreadsheet-like Grid?

2009-03-03 Thread Miguel Paraz
Hi, Is it possible to build a spreadsheet-like grid? I would like to select single cells, or one row at a time,like a database viewer. Or would it need to be implemented at the framework level? I'm thinking of a UI equivalent of something like this AJAX control, which may be opened in the

[android-developers] Re: HTML login form works in Android browser and fails with WebView ?

2009-03-03 Thread Miguel Paraz
On Mar 2, 11:14 pm, Derek cram.de...@gmail.com wrote: Anyone ? Even simple links are not followed. On Mar 1, 9:08 pm, Derek cram.de...@gmail.com wrote: To get the login form, use: String url = http://m.flickr.com/signin/;; On Mar 1, 9:03 pm, Derek cram.de...@gmail.com wrote: Hi

[android-developers] Re: WebView for Form based Local AJAX application

2009-02-25 Thread Miguel Paraz
One problem I found is that I can't disable scrolling in the WebView. I can disable the scrollbars, but the touchscreen can still be used for scrolling. On Feb 19, 9:06 am, Miguel Paraz mpa...@gmail.com wrote: I'm thinking of using WebView as a container for Form based JavaScript+DHTML

[android-developers] Solved: WebView: Passing JSON from Java to JavaScript

2009-02-24 Thread Miguel Paraz
I got the solution by chance. If you make the Javascript VM create a new string, by appending a blank string, then this can now be parsed as JSON. I don't know why. On Feb 25, 12:33 pm, Miguel Paraz mpa...@gmail.com wrote: Hi, I'm trying to pass a JSON structure from my Java code to JavaScript

[android-developers] Re: How to send Email??

2009-02-22 Thread Miguel Paraz
On Feb 22, 1:51 pm, Noam noam.ha...@gmail.com wrote: Hello everyone, I have found this K9 source code, but I'm looking for the actual piece of code that actually sends the email. Hi, the actual SMTP sending is in: ./src/com/android/email/mail/transport/SmtpTransport.java Hope this helps.

[android-developers] WebView for Form based Local AJAX application

2009-02-18 Thread Miguel Paraz
Hi, I'm thinking of using WebView as a container for Form based JavaScript+DHTML applications. This is simple fill-out-forms like you have on the web, but now on mobile - like for note taking, order taking, and the like. This is to allow web developers to build the bulk of the application -

[android-developers] Persisting Intents to Database

2009-02-18 Thread Miguel Paraz
Hi, I would like to persist Intents to the database. The reason is to overcome the limitation of AlarmManager forgetting the scheduled events on poweroff. On poweron, I'd like to load the intents from the database and schedule them again. I have read that the Parcelable system is not suitable as

[android-developers] WebView.addJavascriptInterface - only String and void supported from Java to Javascript?

2009-02-15 Thread Miguel Paraz
Hi, In the object shared between the Java and Javascript code, it appears that only void and String Java return types are supported. Is this correct? I wanted a method that returns a String[] so that my Javascript could loop over it, but it was never called. I also tried an int, and it wasn't

[android-developers] Re: Alarm Manager forgets repeating alarms?

2009-02-15 Thread Miguel Paraz
On Feb 15, 6:29 am, Mariano Kamp mariano.k...@gmail.com wrote:   This question is a bit strange, but does anybody know about a common gotcha when using the AlarmManager? And not knowing it sometimes leads to the AlarmManger forgetting alarms?   I have a repeating task that runs once an hour.

  1   2   >