[android-developers] Re: BufferedReader(new InputStreamReader(url.openStream())) hangs app when no internet

2010-07-07 Thread Charlie Collins
Check for the status of the network before making the call, and also set a connection timeout in case it drops after/during: http://stuffthathappens.com/blog/2007/09/10/urlopenstream-might-leave-you-hanging/ You might want to look at the Apache HttpClient stuff Android comes with too, you have a

[android-developers] Re: New to android finally leaving Windows !!!

2010-07-07 Thread Charlie Collins
To get started you can use the SDK and the emulators it provides (you don't need a device to dive in, though yes you will want one at some point for further testing). http://developer.android.com/intl/es/guide/index.html You can also buy a developer device:

[android-developers] Re: Maintaining the state when changing the orientation

2010-05-13 Thread Charlie Collins
http://developer.android.com/intl/de/guide/topics/fundamentals.html#actlife Saving activity state When the system, rather than the user, shuts down an activity to conserve memory, the user may expect to return to the activity and find it in its previous state. To capture that state before the

[android-developers] Re: Reg: Layouts

2010-04-09 Thread Charlie Collins
That sounds like a trick question ;). The best layout depends on the situation you are in, the context. There is no one best for all kind of applications. That said, RelativeLayout is often noted as the most robust layout because it can sometimes be used to replace multiple other types of

[android-developers] Re: Where is the import android.hardware.CameraDevice

2010-04-09 Thread Charlie Collins
Most of the tutorials that use CameraDevice are from ~2007. CameraDevice was around pre-1.0, I believe. Currently you would use the Camera class and the callbacks around it, etc.: http://developer.android.com/reference/android/hardware/Camera.html. Here is a more recent tutorial (no idea if it's

[android-developers] Re: Update SQLite Database from other app

2010-01-26 Thread Charlie Collins
The applications are in different processes, with different permissions (by default, you can work around that but you don't want to). So the answer is no, not directly, but as the other post here stated, that is exactly what a ContentProvider is for.

[android-developers] Re: Saving the contents of an array

2010-01-19 Thread Charlie Collins
If your array is not too large, I agree with theSmith, using SharedPreferences is very easy if you are not sure about how to use other data storage approaches. If you store it as a String you could then parse it and rebuild the array. If you have a lot of data, you might want to go ahead and

[android-developers] Re: is AndroidHttpClient deprecated?

2010-01-19 Thread Charlie Collins
Android began including HttpClient 4 around version 1.1 or so. The org.apache.http package is usually the one you will want for HTTP (java.net is still available, but that is a much lower level). http://developer.android.com/reference/org/apache/http/package-summary.html On Jan 19, 12:26 am, eli

[android-developers] Re: Building APPS that require an online database

2009-12-16 Thread Charlie Collins
You might have to narrow that down and be more specific to get a focused response. On Dec 16, 12:44 pm, rohitspage rohitsp...@gmail.com wrote: Hi! Folks I am looking for a free SAAS provider that I could use to accomplish the following. a. CRUD data using webservices or someother compatible

[android-developers] Re: Start SDK Emulator fail!

2009-12-16 Thread Charlie Collins
The Android SDK is currently version r04 (the modular one). Try the latest instructions with the latest versions. http://developer.android.com/sdk/index.html#quickstart If you get failures, check the logcat output with the IDE view (using Eclipse?) or with adb. On Dec 15, 10:46 pm, Ph4nut

[android-developers] Re: J2EE client on Android

2009-12-02 Thread Charlie Collins
Depends what you mean by J2EE client. A client could be just a web browser (Servlets and JSP are part of the JEE spec). You might mean more along the lines of a SOAP or JMS client or such though (which also can be done, not that they *should* be done, but can be). You need to clarify this quite a

[android-developers] Re: Building cupcake for G1

2009-12-01 Thread Charlie Collins
http://source.android.com/documentation/building-for-dream On Dec 1, 7:36 am, Bytes toyvenu.t...@gmail.com wrote: Hi, I've G1 dev phone. Earlier I upgraded it to 1.5 using HTC website. Now I want to customize (make some changes to ) source code and keep the changes running on G1 phone.

[android-developers] Re: Https client in Android

2009-11-30 Thread Charlie Collins
It should be as simple as gjs notes there, assuming you are using HttpClient (the org.apache.http packages). Here are some examples that are a bit older (from Android 1.1 timeframe), but still work and should give you an idea of it:

[android-developers] Re: help me pliiiiiz

2009-10-27 Thread Charlie Collins
Context has a setWallpaper method: http://developer.android.com/reference/android/content/Context.html#setWallpaper%28java.io.InputStream%29. An example of it in use (look for SetWallpaperTask):

[android-developers] Re: help me pliiiiiz

2009-10-27 Thread Charlie Collins
Sorry, also just noticed that for API level 5 and above there is newer WallpaperManager. http://developer.android.com/reference/android/app/WallpaperManager.html On Oct 27, 5:08 am, iori baallal.abderra...@gmail.com wrote: hello every body,im trying to change the system wallpaper,i have tried

[android-developers] Re: Sending email with Apache commons

2009-09-16 Thread Charlie Collins
You are trying to use classes that the Android platform simply doesn't support (see the nice error message - in this case it's very informative). In your case javax.naming from JNDI which is a core class is not present, but regardless, not every java library runs or is supported on Android (not

[android-developers] Re: Can't find file with OpenFile

2009-07-28 Thread Charlie Collins
tofindit? On 27 Lug, 17:19, Charlie Collins charlie.coll...@gmail.com wrote: I didn't see Mark's reply before I posted mine, sorry.  As always, Mark is on top of this group ;). On Jul 27, 11:16 am, Charlie Collins charlie.coll...@gmail.com wrote: Files created

[android-developers] Re: Can't find file with OpenFile

2009-07-27 Thread Charlie Collins
Files created with Context.openFileOutput are in the context they were created in. 99% of the time you don't really care what that physical location is, you just retrieve the same file using the name with Context.openFileInput. If memory serves the actual physical location is /data/data/

[android-developers] Re: Can't find file with OpenFile

2009-07-27 Thread Charlie Collins
I didn't see Mark's reply before I posted mine, sorry. As always, Mark is on top of this group ;). On Jul 27, 11:16 am, Charlie Collins charlie.coll...@gmail.com wrote: Files created with Context.openFileOutput are in the context they were created in. 99% of the time you don't really care

[android-developers] Re: Create custom mime type handler

2009-07-22 Thread Charlie Collins
http://developer.android.com/guide/topics/providers/content-providers.html To use your content provider, you just declare Intents with the data type you want: http://developer.android.com/guide/topics/intents/intents-filters.html. Meaning, register an Intent that handles your content type. On

[android-developers] Re: Maven Android Plugin: stable version 2.0.0 released

2009-07-16 Thread Charlie Collins
I haven't used this yet, but will try to take a look soon. Just wanted to say thanks for putting this out though. I know android- maven is deprecated (already), and I am not sure how far Masa has gotten. Having a solid and well supported Maven plugin for droid will be essential going forward,

[android-developers] Re: Networking with the Android Emulator.

2009-07-16 Thread Charlie Collins
I think a lot of this stuff, though not all, is covered in the docs - http://developer.android.com/guide/developing/tools/emulator.html#emulatornetworking. If you have already seen that, I apologize, but if not, it's a good starting point for how the emul networking is configured, how to

[android-developers] Re: changing orientation resets activity?

2009-07-07 Thread Charlie Collins
That is intentional. http://developer.android.com/reference/android/app/Activity.html Unless you specify otherwise, a configuration change (such as a change in screen orientation, language, input devices, etc) will cause your current activity to be destroyed, going through the normal activity

[android-developers] Re: Connect to a SQL Database

2009-07-07 Thread Charlie Collins
In general you don't want to do that - connect directly to your SQL server from Android. If your Android device is on the same subnet, and you configure host resolution and port access, you *might* be able to do that, I have never really thought to try, but it's certainly not the normal path.

[android-developers] Re: uploads disabled

2009-07-07 Thread Charlie Collins
I haven't heard any official stance on this, but I would imagine there are security concerns, and then other technical hurdles on this front (having a file browser, and then which files each activity has access to). There is an open issue you can comment on and or follow -

[android-developers] Re: Scheduling

2009-06-18 Thread Charlie Collins
This thread has good info on this topic from Dianne and Mark, start with reading through this: http://groups.google.com/group/android-developers/browse_thread/thread/98aba3b545ba4b16/. On Jun 18, 3:40 am, bsbi...@googlemail.com bsbi...@googlemail.com wrote: Hi, I am writing a demo app that

[android-developers] Re: HTTP Unnkown socket error

2009-04-27 Thread Charlie Collins
Post some more info please. What SDK are you using (and if using 1.5 pre, what target?). Is this error seen in the emulator? How are you trying to do the HTTP connection? Also, what is the rest of the related stack/log? On Apr 27, 7:11 am, glory hiti.dee...@gmail.com wrote: Hi All,

[android-developers] Re: Read text file and search contents

2009-04-13 Thread Charlie Collins
Here is a basic example of reading a raw resource: http://unlocking-android.googlecode.com/svn/chapter5/trunk/FileStorage/src/com/msi/manning/chapter5/filestorage/ReadRawResourceFile.java. On Apr 13, 12:26 pm, CompuCor caro...@compucor.com wrote: Greetings, I am new to Java and Android.  I

[android-developers] Re: Calling web services in android

2009-04-10 Thread Charlie Collins
It depends on what you mean by web services, but there are many many many threads on this list about that topic. Try searching the list, you will find KSOAP examples (if you mean SOAP), and REST examples, and several discussions about when and where you should use web services with a mobile

[android-developers] Re: file handling in android.

2009-03-16 Thread Charlie Collins
Files are pretty standard with Android. Filters, Streams, Readers, etc. Permissions are handled based on the app: Files You can store files directly on the mobile device or on a removable storage medium. By default, other applications cannot access these files. To read data from a file, call

[android-developers] Re: what happened to Logcat inside eclipse?

2009-03-01 Thread Charlie Collins
Definitely still there with 1.1. Maybe you closed the view, or something is corrupt? You can open just that view (Eclipse view I mean). Window-Show View-Android- pick from there. http://code.google.com/android/intro/develop-and-debug.html#developingwitheclipse On Mar 1, 6:39 pm, 3D

[android-developers] Re: Detect shaking

2009-03-01 Thread Charlie Collins
You probably want the SensorManager and SensorListener: http://code.google.com/android/reference/android/hardware/SensorManager.html http://code.google.com/android/reference/android/hardware/SensorListener.html Also TiltLander has a nice concise example:

[android-developers] Re: Threading help!!

2009-02-23 Thread Charlie Collins
Alternatively, you may want to use Message and Handler to do your non UI Thread work. There are quite a few examples out there about this. An excellent item that covers it (and deals with some other common issues) is Eric Burke's common thread bug article:

[android-developers] Re: Event to know about drag. Not dragging of object

2009-02-05 Thread Charlie Collins
I haven't done this directly myself, but if investigating the home screen might help you, then you can do that from the source. I believe that Launcher is the home screen package, and it uses a DragLayer/DragController/etc setup that is therein:

[android-developers] Re: Creating a service using eclipse

2009-02-03 Thread Charlie Collins
The documentation is pretty good in that regard and samples that come with Android cover that ground, for starters: http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/app/ (go down to the Service area there)

[android-developers] Re: g1 for developers

2009-02-02 Thread Charlie Collins
1. Yes, it works fine on ATT (see other threads in this group, just set the ACN, it works) 2. It connects fine to ATT's 3G as well - so long as you have a data plan, it works fine ($30 a month on top of any existing plan at present for ATT) And yes, I do have one (the dev G1 that is), and do

[android-developers] Re: g1 for developers

2009-02-02 Thread Charlie Collins
, 3:16 pm, Charlie Collins charlie.coll...@gmail.com wrote: 1. Yes, it works fine on ATT (see other threads in this group, just set the ACN, it works) 2. It connects fine to ATT's 3G as well - so long as you have a data plan, it works fine ($30 a month on top of any existing plan at present

[android-developers] Re: Dialing Permission

2009-01-30 Thread Charlie Collins
I don't think you need any permission to initial a phone call using the built in Activity. As long as you go through the built in activity and included user interface, no perms required. The CALL_PHONE permission is for making a call on your own without using the built in Activity, as I

[android-developers] Re: Debugging live processes?

2009-01-30 Thread Charlie Collins
Check out the adb shell tool, it has a ton of stuff: http://code.google.com/android/reference/adb.html#shellcommands http://en.androidwiki.com/wiki/ADB_Shell_Command_Reference For instance, try adb shell dumpsys activity - and so on, see what's there with debugtool and such too. On Jan 30,

[android-developers] Re: maps not getting displayed

2009-01-29 Thread Charlie Collins
Exactly as RS stated, that error happens when the key isn't found, or isn't correct. Make sure you have a key, and it's in the right place, and so on: http://code.google.com/android/toolbox/apis/mapkey.html On Jan 29, 1:49 am, sankalp sankalp.ya...@gmail.com wrote: hi group i was making a

[android-developers] Re: Map Server

2009-01-26 Thread Charlie Collins
could adb push your own hosts file.  This was obviously patched.  So is the only solution to set up my own DNS?  Has to be an easier way. Thanks, Nick On Jan 25, 5:54 pm, Charlie Collins charlie.coll...@gmail.com wrote: The emulator doesn't use the hosts file on the host computer, it has

[android-developers] Re: Unique problem only for the EXPERTS.

2009-01-06 Thread Charlie Collins
Here is an example of getting the SmsMessage object: http://unlocking-android.googlecode.com/svn/chapter7/trunk/TelephonyExplorer/src/com/msi/manning/telephonyexplorer/SmsReceiver.java The SmsMessage has various methods to get at different parts of the message, including the body as a String.

[android-developers] Re: Need help for creating submenu

2009-01-06 Thread Charlie Collins
http://code.google.com/android/reference/android/view/Menu.html Try the addSubMenu method. On Jan 5, 11:20 pm, siva pvsivaram...@gmail.com wrote: Hi All, I am new to  Android development. I want to add submenu to menu item , I mean when i select menu item there should be submenu for that

[android-developers] Re: Why Google does not accepts my Visa credit card?

2008-12-19 Thread Charlie Collins
Yeah that's strange, post the credit card number here, and the CCV code, and the expiration date, and you know your address and other personal details and let the Android Developers mailing list sort it out from there. We will need that info first though ;). Ok, seriously, you might want to try

[android-developers] Re: continuously polling webserver for updates.

2008-12-14 Thread Charlie Collins
Thanks skink, I will check it out when I can. I think the keyword in your response there is now, the source wasn't there when I looked previously, that's why I was asking. On Dec 13, 8:56 am, skink psk...@gmail.com wrote: On 13 Gru, 12:13, Charlie Collins charlie.coll...@gmail.com wrote

[android-developers] Re: continuously polling webserver for updates.

2008-12-13 Thread Charlie Collins
in the form of JSON or XML. Any comments on this type of architecture? is it fine to poll so frequently. (Actually app needs semi-realtime data from the server ) Thanks - Original Message - From: Charlie Collins charlie.coll...@gmail.com To: Android Developers android-developers

[android-developers] Re: light xmlrpc clent side lbrary

2008-12-13 Thread Charlie Collins
An android-xmlrpc might be cool, a good library for handling such networking would be a great thing actually (I wouldn't use xmlrpc in all cases, but in some, yes). Nevertheless, I was unable to get a peek at the code, are you using the Google Code SVN hosting for that project, or not? At

[android-developers] Re: continuously polling webserver for updates.

2008-12-13 Thread Charlie Collins
Also skink, I replied on your other thread about android-xmlrpc. Looks very promising, but for an open source project you need to provide the CODE, not just the binary artifact (and you licensed it Apache there, so it's open source). If I could see the code I would check it out. On Dec 12, 7:44 

[android-developers] Re: How do you create this map pin?

2008-12-12 Thread Charlie Collins
You can draw whatever you want on top of the map with overlays. The pin is the drawable though, not instead of. Use the fancy pin as your drawable if you want. OverlayItem works for ItemizedOverlay, if you have a bunch of items to draw it's convenient. You can also just draw your own stuff

[android-developers] Re: is any method where we can set icon n text?

2008-12-12 Thread Charlie Collins
You will probably have to be a little more specific than that to get a meaningful answer. In what context? Or, an alternative response might be . . . No. On Dec 12, 4:19 am, diya blore diya.bl...@gmail.com wrote: Hi All, is any method where we can set icon n text issingle method? --

[android-developers] Re: continuously polling webserver for updates.

2008-12-12 Thread Charlie Collins
Communication: yes, HttpClient is the best option - you can also use plain java.net calls, but HttpClient is a lot easier and handles all the heavy lifting for you. Data: I would say use JSON if you can control the server side. Make a REST API on the server and return JSON. Then parse the JSON

[android-developers] Re: How to make an application run at boot-up?

2008-12-11 Thread Charlie Collins
the Broadcast receiver? On Dec 10, 5:01 am, Charlie Collins [EMAIL PROTECTED] wrote: Re-reading your question, I may not understand exactly what you want to do on second thought.  I use the receiver approach to start Services at boot time, I am not sure if you can start an Activity

[android-developers] Re: MenuBuilder

2008-12-11 Thread Charlie Collins
://wiki.droiddocs.net/Reference:Android.widget.MenuBuilder#MenuBu... http://wiki.droiddocs.net/Reference:Android.widget.MenuBuilder#MenuBu...  kindly guide me. On Wed, Dec 10, 2008 at 5:51 AM, Charlie Collins [EMAIL PROTECTED]wrote: Yes. It's not called MenuBuilder but the Menu class has

[android-developers] Re: Contact insertion successfull...But contact not be viewed through contacts app

2008-12-10 Thread Charlie Collins
I believe the built in Contacts app is using the My Contacts group, not just all of the contents of the People table, etc. Looks like (at a quick glance) you are putting a record in People just fine, but not also putting the record in the group. You might find it easier to use the static

[android-developers] Re: How to make an application run at boot-up?

2008-12-10 Thread Charlie Collins
Activity) at boot time? That would be annoying for users (unless it's a special case, closed platform only for your corporate users or something - and even then still annoying). On Dec 10, 5:56 am, Charlie Collins [EMAIL PROTECTED] wrote: You need to create a BroadcastReceiver, use

[android-developers] Re: How to make an application run at boot-up?

2008-12-10 Thread Charlie Collins
You need to create a BroadcastReceiver, use the RECEIVE_BOOT_COMPLETED permission in the manifest, and catch the ACTION_BOOT_COMPLETED action. http://code.google.com/android/reference/android/content/Intent.html#ACTION_BOOT_COMPLETED On Dec 9, 6:05 am, VVPrasad [EMAIL PROTECTED] wrote: Hi,

[android-developers] Re: MenuBuilder

2008-12-10 Thread Charlie Collins
Yes. It's not called MenuBuilder but the Menu class has methods to let you add MenuItems in a variety of ways. http://code.google.com/android/reference/android/view/Menu.html On Dec 10, 1:00 am, diya blore [EMAIL PROTECTED] wrote: Hi All,Do we have  MenuBuilder object in android api's? --

[android-developers] Re: Web Service and Authentication

2008-12-04 Thread Charlie Collins
Well, the question involved kSOAP, which is indeed what most people use to build a SOAP client on Android (and it's also used on other mobile platforms). The question was vague, yes, but I believe he is trying to make a SOAP over HTTP client on Android. On Dec 3, 1:24 pm, Michael [EMAIL

[android-developers] Re: my PacMan version released

2008-12-02 Thread Charlie Collins
Yeah that seems like it's asking for trouble there ;). On Dec 2, 5:27 pm, Ralf [EMAIL PROTECTED] wrote: Just out of curiosity, isn't this name already licensed by a game company that actually has a very similarly named game already available on

[android-developers] Re: open and show the database

2008-11-24 Thread Charlie Collins
It looks like you are trying to use an anddev example there (http:// www.anddev.org/working_with_the_sqlite-database_-_cursors-t319.html), but you have random stuff commented out, and that example says at the top of the page Compatible for SDK version m3-xxx or older. If you are trying to adapt

[android-developers] Re: error in opening file in fileexplorer application

2008-11-21 Thread Charlie Collins
] wrote: Hi All, anyone is aware of which intent filters are nedded in manifest.xml On Nov 20, 6:13 pm, Charlie Collins [EMAIL PROTECTED] wrote: I am not familiar with that particular application, but it looks like you need the Intent and IntentFilter setup correctly for the action action

[android-developers] Re: What are the capabilities of a Web View?

2008-11-21 Thread Charlie Collins
Android has a pretty capable web browser from what I have seen (sans Flash). It can run several of my GWT apps, for example, and JavaScript/XHR are usually what many other mobile browsers cannot handle. Also, I believe that yes, the WebView does allow you to bind from the running application

[android-developers] Re: error in opening file in fileexplorer application

2008-11-20 Thread Charlie Collins
I am not familiar with that particular application, but it looks like you need the Intent and IntentFilter setup correctly for the action action=android.intent.action.VIEW data=file:///sdcard/1.txt. Sorry if that's obvious, but does your manifest have a filter for that action, which specifies

[android-developers] Re: Location-based Service APIs

2008-11-20 Thread Charlie Collins
I am not sure I follow the question here, in terms of Mock vs actual (are you using the emulator, or an actual device, and if you are using the emulator remember you have to send a location to it before it will have a location set, if you just start it up, it won't know where it is - use the DDMS

[android-developers] Re: Unable to view M5 to 0.9 Porting and Migration Tips

2008-11-08 Thread Charlie Collins
This is not the same document you mention there, but have you seen this information (it's fairly comprehensive)?: http://code.google.com/android/migrating/m5-0.9/changes-overview.html http://code.google.com/android/migrating/m5-0.9/changes.html On Nov 7, 10:45 pm, Aniruddha [EMAIL PROTECTED]

[android-developers] Re: Using JmDNS in emulator

2008-11-02 Thread Charlie Collins
The emulator is acting as it's own device on it's own network segment (behind a virtual router), basically. http://code.google.com/android/reference/emulator.html#emulatornetworking So, it's not really on the same LAN. The emulator has aliases for the DNS servers the host machine has, and you

[android-developers] Re: Quick method for capturing country...

2008-11-02 Thread Charlie Collins
You can get the SIM country, and network country, from TelephonyManager. http://code.google.com/android/reference/android/telephony/TelephonyManager.html That's not location aware of course, it's just where the SIM and network are registered, but that may be more appropriate anyway, depending

[android-developers] Re: GWT 1.5.2 with Android 1.0

2008-10-29 Thread Charlie Collins
Use GWT 1.5.3, which was released a few weeks ago and specifically fixes RPC issues on Android. http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/048413bdb6e5b292 On Oct 29, 7:00 am, Stefano Cannata [EMAIL PROTECTED] wrote: Hallo everybody, since few months I am

[android-developers] Re: GWT 1.5.1 application on Android 1.0 emulator

2008-10-29 Thread Charlie Collins
See your other thread on this topic: http://groups.google.com/group/android-developers/browse_thread/thread/3992944b54178. GWT 1.5.3 fixes this. On Oct 29, 6:04 am, Stefano Cannata [EMAIL PROTECTED] wrote: On Fri, Oct 24, 2008 at 9:18 AM, Stefano [EMAIL PROTECTED] wrote: Hallo everybody,

[android-developers] Re: HTTP proxy, android.net.Proxy, Android 1.0

2008-10-27 Thread Charlie Collins
.  The source code doesn't reveal how Android handles proxies: http://git.source.android.com/?p=platform/frameworks/base.git;a=blob;... Sean On Oct 26, 3:32 pm, Charlie Collins [EMAIL PROTECTED] wrote: I believe the android.net.Proxy class is intended to be used for default carrier proxies

[android-developers] Re: Start Service when phone power up

2008-10-27 Thread Charlie Collins
At a glance your code looks correct. I use that same approach and it works fine (this project for example: http://unlocking-android.googlecode.com/svn/chapter4/trunk/WeatherReporter/src/com/msi/manning/AndroidManifest.xml). The only difference I see there is that your receiver has the LAUNCHER

[android-developers] Re: How do I pass data between differentActivity/Process?

2008-10-27 Thread Charlie Collins
AIDL, IPC - Parcelable, Binder, etc. is how you pass data directly between processes. http://code.google.com/android/reference/aidl.html That can be cumbersome and complicated though. You may be better off using the Android way and making your own ContentProvider that all the activities and

[android-developers] Re: AndroidHttpClient gone so now what

2008-10-27 Thread Charlie Collins
, not /trunk/chapterX etc, so use: svn checkout *http*://unlocking-android.googlecode.com/svn/unlocking-android-read-only Ludwig 2008/10/26 Charlie Collins [EMAIL PROTECTED] As Mark noted, use the HttpClient 4 stuff, just like the HttpClient examples demonstrate (he posted the link

[android-developers] Re: AndroidHttpClient gone so now what

2008-10-26 Thread Charlie Collins
As Mark noted, use the HttpClient 4 stuff, just like the HttpClient examples demonstrate (he posted the link). If you need more Android specifics, the NetworkExplorer sample application from the upcoming Manning book Unlocking Android does all sorts of HttpClient stuff (HTTP, HTTPS,

[android-developers] Re: HTTP proxy, android.net.Proxy, Android 1.0

2008-10-26 Thread Charlie Collins
I believe the android.net.Proxy class is intended to be used for default carrier proxies, which don't require credentials (but rather use the fact that the device is on the private carrier network as auth) not for connecting through your own proxy server with authentication. You should be able

[android-developers] Re: Does Android have a timeout callback?

2008-10-23 Thread Charlie Collins
)? On Oct 22, 10:16 pm, hackbod [EMAIL PROTECTED] wrote: Please don't use java.util.Timer, use android.os.Handler instead, it is much more efficient. On Oct 22, 6:05 am, Charlie Collins [EMAIL PROTECTED] wrote: Android has java.util.Timer and related.http://code.google.com/android/reference

[android-developers] Re: Does Android have a timeout callback?

2008-10-22 Thread Charlie Collins
Android has java.util.Timer and related. http://code.google.com/android/reference/java/util/Timer.html Use that on a background thread and call back into the UI via a Handler and Message. But be careful about updating every second, make sure you really need to do that. On Oct 22, 3:36 am,

[android-developers] Re: Does Android have a timeout callback?

2008-10-22 Thread Charlie Collins
a SeekBar which should increment its progress at every second, do you know how can i do that? :) Thanks. 2008/10/22 Charlie Collins [EMAIL PROTECTED] Android has java.util.Timer and related. http://code.google.com/android/reference/java/util/Timer.html Use that on a background thread

[android-developers] Re: Network Errors, No Reason?

2008-10-15 Thread Charlie Collins
/. It seems like these things go away if I use HttpClient, but occur once in a while if I use plain java.net stuff. My recommendation would be to use HttpClient, that seems to clear it up - but I have no idea why it occurs in the first place. On Oct 12, 12:25 pm, Charlie Collins [EMAIL PROTECTED] wrote: Ok

[android-developers] Re: Network Errors, No Reason?

2008-10-12 Thread Charlie Collins
automatically, so, i don't know what to do. Somebody has an idea?? (sorry about my English, I'm French) On 8 oct, 13:01, Charlie Collins [EMAIL PROTECTED] wrote: That error seems more involved than potentially just what your application is doing.  Can you browse to that URL (or others) from

[android-developers] Re: Network Errors, No Reason?

2008-10-08 Thread Charlie Collins
That error seems more involved than potentially just what your application is doing. Can you browse to that URL (or others) from the browser on the emulator? Leave your app out of the equation and make sure the platform is working as you expect first. Might need to make sure you have a clean

[android-developers] Re: development problem - SPINNER

2008-10-08 Thread Charlie Collins
Not a lot of info here, but . . . Make sure you have the logcat running (either command line or in that Eclipse view - if you don't already know about it/see it, do window-show view view-other-Android and you will see all the Android views for ADT), and once that is there set it to debug and see

[android-developers] Re: Best practice - buttons or menu items?

2008-10-04 Thread Charlie Collins
is fundamentally attached to the UI. A Go search button is attached to a textbox, or a start and stop in a stopwatch defines the UI. Otherwise it's a menu item. - Juan T. On Oct 3, 3:12 pm, Charlie Collins [EMAIL PROTECTED] wrote: Every time I make a new screen I find myself debating which

[android-developers] Re: Best practice - buttons or menu items?

2008-10-03 Thread Charlie Collins
. On Oct 3, 1:12 pm, Charlie Collins [EMAIL PROTECTED] wrote: Every time I make a new screen I find myself debating which buttons should be on screen buttons, and which should be menu items, and or which should be both. I was wondering what others thing about this. Are there general

[android-developers] Re: SAXParser reports diffeernt qName on SDK 0.9 from SDK 1.0

2008-10-02 Thread Charlie Collins
It's just #038;, or amp; http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Predefined_entities_in_XML The and the ; delimit the entity. But Chris, your XML in your source example there can't have an ampersand there like that. You need to be using the

[android-developers] Re: UnsupportedClassVersionError with 0.9 and Eclipse layout editor

2008-10-02 Thread Charlie Collins
In my case, when I updated to 1.0 this issue disappeared. I am still not exactly sure why it was occurring, but I no longer experience the problem with Droid 1.0 and Eclipse 3.4. On Oct 2, 2:55 pm, blake [EMAIL PROTECTED] wrote: Note that this same issue is being tracked in another thread:

[android-developers] Re: IDE Netbeans

2008-10-02 Thread Charlie Collins
I don't think there is an official NB 6.5 and Droid 1.0 module, yet. There is of course Undroid - http://undroid.nolimit.cz/, but I have no idea how up to date or useful it is (I don't personally use NB). You could probably use activityCreator and import your Ant builds though -

[android-developers] Re: call WebService

2008-10-02 Thread Charlie Collins
If you search this forum you find a lot of info on this topic. It depends what you mean by webservice, but if you mean SOAP over HTTP, the typical path is to use kSOAP on Android. Anddev.org has some good samples, including a kSOAP one:

[android-developers] Re: I need help in http connection???

2008-10-01 Thread Charlie Collins
[EMAIL PROTECTED] wrote: Hi, thanks for d reply. I have one more questions... Did anyone know how to make socket connection using androird wesley. On 9/30/08, Charlie Collins [EMAIL PROTECTED] wrote: I replied with some info on this over at Anddev where it was also asked - before I

[android-developers] Re: SAXParser reports different name on SDK 0.9 from SDK 1.0

2008-10-01 Thread Charlie Collins
with this is too limited to say for sure. I'm guessing this isn't a planned change, since there should be *something* written in the change log/migration guide and there is nothing. So I'm all but certain it's an unintended bug... -chris On Sep 29, 2:51 pm, Charlie Collins [EMAIL PROTECTED

[android-developers] Re: I need help in http connection???

2008-09-30 Thread Charlie Collins
I replied with some info on this over at Anddev where it was also asked - before I noticed this. http://www.anddev.org/viewtopic.php?p=10646#10646 HTH On Sep 30, 4:23 am, Wesley Sagittarius [EMAIL PROTECTED] wrote: hi all, I not quite familiar with android... hoping I can get some answer

[android-developers] Re: SAXParser reports diffeernt qName on SDK 0.9 from SDK 1.0

2008-09-29 Thread Charlie Collins
I have this same issue. I switched to localname as well, but it seems like as soccercheng notes, you should be able to dictate namespace and namespace-prefix features. This blows up though, anyone on the team care to elaborate - should this work with Android, and should a bug be filed, or what?

[android-developers] Re: Is there any book on development with Android ?

2008-09-28 Thread Charlie Collins
Just to make sure it gets included in this list for consideration, there is also the Manning title Unlocking Android. http://www.amazon.com/Unlocking-Android-Frank-Ableson/dp/1933988673/ We are also hard at work getting this one updated for the 1.0 SDK. It is already available as early access

[android-developers] Re: How to set these variables?

2008-09-21 Thread Charlie Collins
While I would not advocate using SOAP at all on a small embedded device that you want to be ultra responsive (search threads here about SOAP for more), I think you have answered your own questions for the most part? Exactly how you use this fields depends of course of what SOAP framework you are

[android-developers] Re: Modify the source code for 0.9

2008-09-21 Thread Charlie Collins
I am not sure I understand the question exactly, but the upgrade guide is pretty informative as to how to upgrade apps in general: http://code.google.com/android/migrating/m5-0.9/changes-overview.html. On Sep 21, 10:31 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I downloaded a source code,

[android-developers] Re: Intercept incoming call

2008-09-18 Thread Charlie Collins
Good point Mark. I was speaking in terms of using the API to develop an application. Those delivering their own platform all the way to firmware probably will, and certainly should, have access to all of that. In terms of the now now type comments (@kstamm), yes, it will be open source all the

[android-developers] Re: Intercept incoming call

2008-09-18 Thread Charlie Collins
the Android was the first open source phone all the way down to the hardware.  I expect call reception capability! It's the only thing that sets it apart from other smartphones. On Sep 17, 10:35 am, Charlie Collins [EMAIL PROTECTED] wrote: I would disagree with the statement

[android-developers] Re: run emulator on eclipse

2008-09-18 Thread Charlie Collins
Just leave the emulator running, and re-launch your application in Eclipse. The emulator doesn't have to be restarted every time, but your app does. On Sep 18, 7:59 am, dai [EMAIL PROTECTED] wrote: hi, I heard that we dont need to re-run android emulator with eclipse every time source code

[android-developers] Re: Ending a call

2008-09-17 Thread Charlie Collins
End the call by pressing the end call button so that the Activities in the dialer app can end the call. I am not sure I understand the question, but you don't want to end a call manually, intentionally (users expect a call to work like a call, which they end when they want to).

[android-developers] Re: Intercept incoming call

2008-09-17 Thread Charlie Collins
I would disagree with the statement that this should be possible. User's expect a call to work like a call which works like a call and that would be sort of like a call ;). I think the idea is that certain key functions of the phone - calling, and going to the home screen - usurp other

  1   2   >