[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. T

[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] Re: Is this is possible in Android ?

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

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

[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 wrote: > Hi, >

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

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

2009-04-01 Thread Miguel Paraz
On Apr 1, 1:55 pm, Zhubham 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 functions. You can

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

2009-04-06 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] Making VideoView play automatically

2009-04-24 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 gro

[android-developers] Re: Making VideoView play automatically

2009-04-25 Thread Miguel Paraz
On Apr 25, 2:55 pm, Nithin Varamballi 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 message because

[android-developers] Re: Making VideoView play automatically

2009-04-25 Thread Miguel Paraz
On Apr 25, 4:32 pm, Nithin Varamballi 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 subscribed to the Go

[android-developers] Re: Making VideoView play automatically

2009-04-25 Thread Miguel Paraz
On Apr 25, 4:32 pm, Nithin Varamballi 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 subscribed to the Go

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

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

2009-11-08 Thread Miguel Paraz
On Oct 26, 2:18 am, David Kebo 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=1&move=home"); > URLConnection cameraConnection

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

2009-11-09 Thread Miguel Paraz
Hi, Found. I missed the intent receiver in the activity definition: On Oct 18, 11:22 am, junker37 wrote: > Any ideas?  I am attempting the same thing right now with 1.5 and am > seeing the same behavior. > > On Oct 8, 6:4

[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 wrote: > H

[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 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 > > On 11 nov, 18:3

[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 wrote: > Somehow this doesn't seem to be documented, but this is the method you > want:http://developer.android.com/refere

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

2009-11-15 Thread Miguel Paraz
On Nov 13, 9:22 am, "elf.cheng" 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 this, to avoid di

[android-developers] Re: Inter-activity communication

2009-11-15 Thread Miguel Paraz
On Nov 13, 4:11 pm, abhi 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; >          } > >         @Overr

[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 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 the User read the HTML,

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

[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 non-c

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

2009-11-20 Thread Miguel Paraz
Hi, On Nov 20, 4:24 am, TreKing 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 call Activity.remo

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

2009-11-20 Thread Miguel Paraz
Hi, On Nov 20, 4:24 am, TreKing 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 call Activity.remo

[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 wrote: > ping...  still unanswered and unworking... > > On Nov 15, 9:48 pm, sdphil wrote: > > > > > ping... > > > On Nov 13, 11:06 am, sdphil wrote: > > > > okay, tried adding the ? mark.  same thing. > > > > i gotta believe someon

[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 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 like this: > >     Cli

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

2009-11-29 Thread Miguel Paraz
On Nov 29, 11:17 pm, Miguel Paraz 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 o

[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 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 referring to: 09-12 1

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

2009-09-11 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 BrowserPr

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

[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 wrote: > I am also looking the answer for this. > > Thank, > AJ > > On Sep 16, 1:36 pm,MiguelParaz wrote: > > > > > Hi, > > Is there any way to disable the WebKit JavaScr

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

2009-09-17 Thread Miguel Paraz
On Sep 17, 8:13 pm, Nanard 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 can it

[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)" 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 for security r

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

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

2009-09-22 Thread Miguel Paraz
On Sep 21, 6:11 pm, "Mark Murphy" wrote: > > I made an example that sleeps inside the Runnable. The entire WebView > > becomes unresponsive! What is the proper way (if any) of implementing > > a long-running JavaScript call? > > Everything is fine except for sleeping in the Runnable. The Runnable

[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 wrote: > On Sep 21, 6:11 pm, "Mark Murphy" wrote: > > > > I made an example that sleeps inside the Runnabl

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

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

2009-09-30 Thread Miguel Paraz
On Sep 30, 1:51 am, Mark Murphy 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 issues. Beanshe

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

[android-developers] Re: IP camera

2009-10-04 Thread Miguel Paraz
On Oct 4, 4:41 pm, Rana 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 IP cameras? Yes it

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

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

2009-10-08 Thread Miguel Paraz
On Oct 9, 12:28 pm, ian 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 that only do stan

[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" 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 invisible WebView while

[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 wrote: > >> And now I see (I am on a SDK1.6 Emulator) that the LocalStorage, the > >> WebWorkers and Offline Web Applications are not supported! > > Loc

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

2009-10-09 Thread Miguel Paraz
On Oct 9, 8:51 pm, ian 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 Services. Some may shi

[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 hung.

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

2009-10-15 Thread Miguel Paraz
On Oct 13, 10:08 pm, Smelly Eddie 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 drawable and ret

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

2009-10-19 Thread Miguel Paraz
On Oct 19, 12:34 am, Rafael Sanches 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 Hi, I have tried the

[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! final

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

2009-10-21 Thread Miguel Paraz
On Oct 21, 5:45 pm, RichardC 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! Thanks! I got it to wo

[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
rently selected > > > index, push your new data to arraylist, call invalidate on your listview > > > then call setSelection(position) on listview. > > > > hth, > > > Marc > > > > On Wed, Oct 21, 2009 at 7:34 PM, Miguel Paraz wrote: > > > > &

[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 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 javascript) ? > > The a

[android-developers] Re: Making my app scriptable

2009-10-21 Thread Miguel Paraz
On Oct 14, 12:37 pm, Nolan Darilek 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. Specifically, > I have

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

[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 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"); >         photoPickerIntent.setType("image/jpeg"); >    

[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 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 ArrayList. Hi, I'm now

[android-developers] Re: ListView with Streaming Content

2009-10-25 Thread Miguel Paraz
Hi, On Oct 25, 10:59 pm, "Mark Murphy" 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 to the UI layer eve

[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 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 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 time) this code is prett

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

2009-10-26 Thread Miguel Paraz
On Oct 27, 6:01 am, arvchak 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 someone is goo

[android-developers] Re: Real Life Push

2009-10-27 Thread Miguel Paraz
On Oct 27, 6:53 am, Marc Lester Tan 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 infrastructure. And, it al

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

2009-10-27 Thread Miguel Paraz
On Oct 26, 3:15 pm, braid_pitt 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 environmental settings.

[android-developers] Re: Real Life Push

2009-10-27 Thread Miguel Paraz
On Oct 28, 3:39 am, jotobjects wrote: > On Oct 27, 12:54 am,MiguelParaz 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 like Jetty to receive inc

[android-developers] Re: Android WebView and HTML5

2009-10-28 Thread Miguel Paraz
Hi, On Oct 9, 6:37 pm, Anton Pirker 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 a SDK1.

[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 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 > > table, eac

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

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

2009-10-29 Thread Miguel Paraz
On Oct 29, 4:27 pm, Miguel Paraz 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

[android-developers] Re: Android WebView and HTML5

2009-10-29 Thread Miguel Paraz
On Oct 30, 1:30 am, Joe Bowser 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 there's no examp

[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: 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 wrote: > Hi, > Since theTabHostAPI does not offer a way to change existing vi

[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: and the other projects in the

[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 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 phone doesn't know! --

[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] 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] 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 t

[android-developers] Content Provider for Drafts

2009-01-15 Thread Miguel Paraz
Hi, On the G1, do the SMS and email inbox make draft messages accessible through a content provider? I would like to write an app to review the drafts for resending. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[android-developers] AutoCompleteTextView for contacts

2009-01-16 Thread Miguel Paraz
Hi, How can I have a AutoCompleteTextView which autocompletes from the Contacts, the way the Messaging app does? It's possible to read the contacts from the Contacts provider, and use this for the AutoCompleteTextView's adapter. But, how does the Messaging app show two lines with the contact name

[android-developers] MIME type for ACTION_PICK email Contacts

2009-01-16 Thread Miguel Paraz
Hi, To pick phone number contacts, I can startActivity for ACTION_PICK for data content://contacts/people, I can use the MIME type vnd.android.cursor.dir/phone. What MIME type is used for email addresses? Thanks! --~--~-~--~~~---~--~~ You received this message bec

[android-developers] Re: AutoCompleteTextView for contacts

2009-01-19 Thread Miguel Paraz
Hi, This one worked for phone numbers, thanks! On Jan 17, 1:19 am, Odessa Silverberg wrote: > Well instead of using > > try >                SimpleCursorAdaptersAdapter = newSimpleCursorAdapter > (this, >                                 R.layout.menulist_complexitem, >                          

[android-developers] CONTENT_URI to ACTION_PICK for Email

2009-01-21 Thread Miguel Paraz
On Jan 16, 9:12 pm, Miguel Paraz wrote: > Hi, > To pick phone number contacts, I can startActivity forACTION_PICKfor > data content://contacts/people, I can use the MIME type > vnd.android.cursor.dir/phone. > > What MIME type is used for email addresses? Specifically: I

[android-developers] Re: CONTENT_URI to ACTION_PICK for Email

2009-01-22 Thread Miguel Paraz
On Jan 22, 1:21 pm, Miguel Paraz wrote: > On Jan 16, 9:12 pm,MiguelParaz wrote: > > > Hi, > > To pick phone number contacts, I can startActivity forACTION_PICKfor > > data content://contacts/people, I can use the MIME type > > vnd.android.cursor.dir/phone. > >

[android-developers] Loading a large list of contacts into a ListAdapter - making it responsive

2009-01-23 Thread Miguel Paraz
Hi, I need to load Contacts.Phones.CONTENT_URI and Contacts.ContactMethods.CONTENT_EMAIL_URI into a ListActivity. Since these are separate Content URIs, I have two separate cursors and can't construct a SimpleCursorAdapter for use in the ListActivity. The problem is that I have more than a thous

[android-developers] Re: persistent socket connection

2008-10-21 Thread Miguel Paraz
On Oct 9, 3:25 am, j <[EMAIL PROTECTED]> wrote: > Thanks for the reply but polling is not an option in my case because > my server will be sending extremely time sensitive messages.  Even if > it arrives 5 seconds late, it's useless. I hope Android has a solution to compete against the BlackBerry

[android-developers] com.google.wireless.* Google APIs and how to login to Google

2008-11-03 Thread Miguel Paraz
Hi, How can I use the com.google.wireless.* APIs with source in source code? I found the AndroidGDataClient. I would like to use for Spreadsheets. But, I see it uses com.google.android.googlelogin.* which has no source. Is this a separate product? Thanks. --~--~-~--~~~--

[android-developers] Re: Hidden Contacts

2009-01-27 Thread Miguel Paraz
On Dec 9 2008, 8:22 am, Paul wrote: > bklik's question seemed to indicate that he was dumping the contact > list programactically via his own activity.  I was just wondering if > thecontactsAPI was returning allcontactsand the activity needed to > do the filtering. I have the same situation. I u

[android-developers] Asynchronously populating a ListAdapter

2009-01-27 Thread Miguel Paraz
Originally Re: Loading a large list of contacts into a ListAdapter - making it responsive On Jan 24, 12:14 am, Romain Guy wrote: > You have to do the query in a background thread yourself. ListActivity > doesn't do any heavy work, only what's needed to fill the screen with > data. Is there a fr

[android-developers] Context Menus on ListView onListItemClick()

2009-02-09 Thread Miguel Paraz
Hi, How could I capture an onListItemClick() and pass it to onCreateContextMenu() ? In my ListActivity, I don't need regular clicks, so I'd like everything to go to the context menu. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribe

[android-developers] Sending SMS using Messaging app - with filled in To: field

2009-02-12 Thread Miguel Paraz
Hi, With this code: http://jtribe.blogspot.com/2008/12/sending-sms-using-android-intents.html I tried setting an Uri of sms:number, and changing the action to ACTION_SENDTO. But, it's not filled up. I guess it's not supported? This is on both the dev phone (original firmware) and the emulator of

[android-developers] Re: how to create the object of intentfilter

2009-02-13 Thread Miguel Paraz
On Jan 24, 1:50 am, Dianne Hackborn wrote: > There are lots of examples of using the AlarmManager in ApiDemos, including > ones that use .  I suggest looking there. > > Fwiw, using registerReceiver() with the alarm manager is generally pretty > pointless, since the main use of the alarm manager i

[android-developers] Re: Context Menus on ListView onListItemClick()

2009-02-13 Thread Miguel Paraz
On Feb 9, 9:44 pm, Odessa Silverberg wrote: > By simply calling theonCreateContextMenuitself inside the > onListItemClick. i.e. > > onCreateContextMenu(null, v, null); (where v ist the reference of the > list view passed by the onListItemClick). Dunno if you need to pass > the references of menu/

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

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

2009-02-15 Thread Miguel Paraz
On Feb 15, 6:29 am, Mariano Kamp 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. Some nights it ru

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

[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

  1   2   >