[android-developers] Re: ContentProviders and Security of SQL Snippets

2008-10-19 Thread Anm
Actually.. this was the real point of my message: Anm wrote: I'm wondering if anything exists in the APIs or automatically behind the scenes to sanitize the strings coming into a ContentProvider. In other words, I recognize there are ways around it. I'm wonder if solutions already exist so

[android-developers] Re: Droid Fonts License: does it allows to redistribute them?

2008-10-19 Thread yaker
see http://www.ascendercorp.com/pdf/droid_fonts.pdf page2 it seems to be Apache Open source license. On Aug 26, 5:12 pm, Peter [EMAIL PROTECTED] wrote: Hello. Android SDK contains fonts which are really nice by themselves. But what license are they covered by? Is it possible for us to use in

[android-developers] Re: [android-internals] Location Providers

2008-10-19 Thread Dianne Hackborn
They are implemented in the platform code, which hasn't yet been released. I believe subclassing by apps is only for development on the emulator to generate fake location information. On Sat, Oct 18, 2008 at 1:49 PM, Bradley Kite [EMAIL PROTECTED]wrote: Hi all, The LocationProvider class

[android-developers] If you have G1, can you check this for me?

2008-10-19 Thread denismo
Hi, I just need to quickly check simple behavior: when connection doesn't have GPRS enabled yet (typically, after switching off/on), and you go online (open browser and browse google.com), does it show a popup dialog asking user if he wants to allow a program to access internet? For comparison,

[android-developers] Re: If you have G1, can you check this for me?

2008-10-19 Thread Huebi
The iPhone doesn't ask as always-on internet access is one of the key features. This is the same for Android so I would not expect any kind of popup. You probably can allow it to roam or not but that's it. The emulator control allows you to play with all these settings (data connection available

[android-developers] how import org.apache.commons.httpclient ?

2008-10-19 Thread jphdsn
Anyone has imported the package org.apache.commons.httpclient? Is there a special mnipulation? If someone could give me a response it will be fine. thank's --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Implementing collision detection (Game)

2008-10-19 Thread mscwd01
I am fairly new to android, although I have been using Java for a while. I am creating a 2d maze based game which consists of a bunch of walls and a rotating player piece (which rotates 360 degrees), while trying to get from the entrance to the exit of the maze - without touching the walls. My

[android-developers] Re: Default the Spinner Selection

2008-10-19 Thread humanoid
I have the same problem. I want to pre-set the selection based on an _id that is not the same as the position. I display a set of codes in the spinner i.e. _id display 4 blue 5 green i want when I have an _id of 4 to set the position to 0. I populate the spinner

[android-developers] Issue in LinearLayout,Button

2008-10-19 Thread JavaAndroid
Hi All, I tried quite a few applications present in web.. I was making a custom view using Button and LinearLayout public class SingleWeatherInfoView extends LinearLayout { public SingleWeatherInfoView(Context context) { super(context); }

[android-developers] Re: Populating a Spinner from SQLite

2008-10-19 Thread humanoid
Thanks GUS! I actually figured it out myself. Now my next problem is how to set the spinner to show the position based on the _id when I go back to a page. On Oct 18, 4:38 pm, GUS [EMAIL PROTECTED] wrote: Well, I have an application that does that, but its for version m5. The code was

[android-developers] How can I get help on /system/bin ash commands?

2008-10-19 Thread [EMAIL PROTECTED]
I have tried # man # help # ? # ls -help and searched far and wide. I am also wondering if find and grep are supported on the device? Thanks again Satya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Populating a Spinner from SQLite

2008-10-19 Thread GUS
As far as I remember you can use the method setSelection(int position). On 19 out, 10:11, humanoid [EMAIL PROTECTED] wrote: Thanks GUS! I actually figured it out myself. Now my next problem is how to set the spinner to show the position based on the _id when I go back to a page. On

[android-developers] Is there a way to mount the emulator or the device as a hard drive on your local machine?

2008-10-19 Thread [EMAIL PROTECTED]
This would let me examine the files etc with the tools that are on the local os. is that possible? If not the entire device, what about a specific directory root? Thanks Satya --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Wiring emulator services to PC's

2008-10-19 Thread humanoid
All: Is it possible to use a laptop's bluetooth (wireless connection, WiFi, etc.) to wire them to the android emulator so that they can be used/ tested from within code as if the application was running on the real thing. Regards ... --~--~-~--~~~---~--~~ You

[android-developers] Re: How to distinguish between dialing and active call states?

2008-10-19 Thread legerb
Anyone with some Telephony layer knowledge? On Oct 5, 1:34 pm, legerb [EMAIL PROTECTED] wrote: I would like to catch the moment when an outgoing dialing call becomes active, that is accepted at the other side. according to the documentation the CALL_STATE_OFFHOOK : Device call state:

[android-developers] Re: How can the app icon be changed at runtime

2008-10-19 Thread parth
Hello Friend ! In mainfeast file there is one @drawable/icon it chang with any other icon which stored in res/dra file Thanks Pravin Gajera On Oct 18, 8:10 pm, omni [EMAIL PROTECTED] wrote: I'd like to be able to change the application icon at runtime; either by providing a completely new

[android-developers] Re: How can the app icon be changed at runtime

2008-10-19 Thread hackbod
Sorry, application icons can't be changed dynamically in 1.0. On Oct 18, 8:10 am, omni [EMAIL PROTECTED] wrote: I'd like to be able to change the application icon at runtime; either by providing a completely new image, or by applying badgest to the existing icon. Can't seem to find a way to

[android-developers] Re: ContentHandler.startElement(..) and ContentHandler.endElement(..) won't be called in 1.0 rc1

2008-10-19 Thread thrusty
I am having a similar problem. It looks like the startElement and endElement methods of our ContentHandler are never called. I'm guessing this is related to the Xml Pull Parser changes introduced in 1.0rc1 On Sep 29, 7:08 am, Chris Cicc [EMAIL PROTECTED] wrote: Hello, I am also having a

[android-developers] Re: ContentHandler.startElement(..) and ContentHandler.endElement(..) won't be called in 1.0 rc1

2008-10-19 Thread thrusty
I went ahead and filed a bug (#975) on this-- it looks like the upgrade from 0.9 to 1.0rc1 broke SAX xml parsing. http://code.google.com/p/android/issues/detail?id=975 On Oct 19, 11:02 am, thrusty [EMAIL PROTECTED] wrote: I am having a similar problem. It looks like the startElement and

[android-developers] Re: MapView and Zoom Control in 0.9 SDK

2008-10-19 Thread Matthias
that's still way too much code just to enable map zoom IMHO... a map.showZoomControls(true) should be all that's needed, but thanks for sharing, appreciated :-) On Oct 17, 5:06 pm, shailesh prakash [EMAIL PROTECTED] wrote: Guys let me end the discussion with this,                

[android-developers] Re: how import org.apache.commons.httpclient ?

2008-10-19 Thread Jason Proctor
for reasons which i hope were good, the package names were changed to live off org.apache.http. the name change has served to confuse everything a good deal, especially if like me you use the http client in both Android and non-Android environments. you can find them in android.jar in the SDK

[android-developers] Re: possible to lock device?

2008-10-19 Thread hackbod
Whoops, I just looked and this permission is not available to applications. Sorry, it isn't possible for apps to do this. On Oct 18, 1:43 pm, Mast3rpyr0 [EMAIL PROTECTED] wrote: i added device_power but doesnt seem to do anything. On Oct 18, 8:01 am, e [EMAIL PROTECTED] wrote: im have

[android-developers] Re: MAC address?

2008-10-19 Thread Tauno T
Just a note - this string is null in emulator and any application can change the value of the string if it wants to (provided they have the WRITE_SETTINGS permission). Tauno On Oct 18, 1:36 pm, Mark Murphy [EMAIL PROTECTED] wrote: Al Sutton wrote: Just by looking at the docs, what about

[android-developers] ImageButton layout issues

2008-10-19 Thread Alvin Yates
I am having a problem with how my images display. For some reason, my layout weights are being ignored and my set of ImageButtons in the center of the screen are extending to the bottom of the screen, completely removing the button beneath. Basically, android:scaleType is making the images fit

[android-developers] Re: how import org.apache.commons.httpclient ?

2008-10-19 Thread De San Nicolas Jean Philippe
thank's, I just have a look at the different classes and package, I don't recognize lot of thing... 2008/10/19 Jason Proctor [EMAIL PROTECTED] for reasons which i hope were good, the package names were changed to live off org.apache.http. the name change has served to confuse everything a

[android-developers] ad2p

2008-10-19 Thread stevenhaensgen
I and many others are waiting with baited breath if stereo bluetooth will be added to the g1. while we all know the htc- dream is hardware capable, we are hoping that we all don't fall down the iphone pitfall that is ad2p. that phone is not enabled but fully capable. please big google in the sky

[android-developers] NIO Buffer position problem?

2008-10-19 Thread mbarbeaux
Hello, I'm currently trying to port a Java JRE6 program into Google Android platform. This program uses NIO buffers to read data from a binary file. It needs to read byte and short from the file. With standard JRE6, I could navigate throught the memory mapped data using thoses kind of code :

[android-developers] Re: Implementing collision detection (Game)

2008-10-19 Thread Robert Green
How did you express your walls programmatically? Did you use tiles or did you draw lines? If you used tiles, the collision detection is very easy. If the next move will cause the player to enter the tile, game over. If you drew the walls on a full coordinate system, you have to keep the

[android-developers] How do I 'convert' web apps into Java apps that don't need to access the net?

2008-10-19 Thread William D. Volk
I understand that I can replace the main view in an Eclipse generated application with a WebView, and point it to my content, enable javascript and then have a web based (javascript) application that can be treated as a Java app (App Market etc...). My question is simply this, how can I

[android-developers] Permission denial when i try to modify system settings

2008-10-19 Thread Selmi
hi, i don't know if it wasn't answered many times already but i didn't had luck to find solution my manifest looks like this: ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=com.android.gx5.ringtoneshuffler

[android-developers] Re: Permission denial when i try to modify system settings

2008-10-19 Thread Jason Parekh
I believe your issue is the uses-permission tag needs to be a direct child of the manifest tag, not the application tag. jason On Sun, Oct 19, 2008 at 3:45 PM, Selmi [EMAIL PROTECTED] wrote: hi, i don't know if it wasn't answered many times already but i didn't had luck to find solution my

[android-developers] Re: Implementing collision detection (Game)

2008-10-19 Thread mscwd01
Thanks for your reply, So just to recap... I draw the main maze png background image and then have another image I draw on top of this which is fully transparent apart from lines of non transparent pixels which represent the maze walls. That sounds nice and easy. To make this work I'd need to

[android-developers] Re: List View Issue

2008-10-19 Thread gymshoe
(I assume you are using the Eclipse IDE with android.) I am a novice too, so of limited help. But I do know that your Log.w() statements don't print in the console view, they print in the LogCat view within the DDMS perspective. (Console is also a view within the DDMS perspective.) To see the

[android-developers] Updating Existing Contact Phone Number

2008-10-19 Thread blim
I've had no problem inserting a phone number but I have not been able to update an existing phone number -- and I get no exceptions thrown either. Can somebody please help me? I can update their name, e-mail, etc. but not their phone number.

[android-developers] Re: If you have G1, can you check this for me?

2008-10-19 Thread denismo
Thanks, I'll look for emulator settings (didn't see them before though, but now that I know they must be somewhere there...), and rely on the behavior. Denis On Oct 19, 8:56 pm, Huebi [EMAIL PROTECTED] wrote: The iPhone doesn't ask as always-on internet access is one of the key features. This

[android-developers] this.finish() did the activity totally exist??

2008-10-19 Thread Wesley Sagittarius
hi, I don't know is it a issue or not??? when I this.finish() method was call... logically, it will exist the process and remove in the process list right??? but when I got to check the process in the devices... my program seem that still there wo is it normal??? any one have any idea on

[android-developers] Inflate Exception... how to diagnose?

2008-10-19 Thread DulcetTone
I have an XML file that causes an inflate exception with no discernible detail to help me diagnose what went wrong What is the best way to get Android to offer details on what was objectionable? tone FYI, here was the XML: ?xml version=1.0 encoding=utf-8? RelativeLayout

[android-developers] Re: this.finish() did the activity totally exist??

2008-10-19 Thread Romain Guy
It is normal. finish() does not necessarily destroy the process. Android manages processes automatically and destroy processes whenever more resources are need. Just don't worry about it :) On Sun, Oct 19, 2008 at 7:33 PM, Wesley Sagittarius [EMAIL PROTECTED] wrote: hi, I don't know is it a

[android-developers] Re: this.finish() did the activity totally exist??

2008-10-19 Thread Wesley
oic... because I afraid if some of my thread still running at the background... and I can't manage to allocate it... if this is the case... I think I should move on... thanks Romain... have a nice day... Wesley. On Mon, Oct 20, 2008 at 10:37 AM, Romain Guy [EMAIL PROTECTED] wrote: It is

[android-developers] Re: this.finish() did the activity totally exist??

2008-10-19 Thread Wesley
hi, how to terminate a threads??? any example??? how to free all resources??? do u mind give me some example a simple one will do... thanks... wesley. On Mon, Oct 20, 2008 at 10:51 AM, Romain Guy [EMAIL PROTECTED] wrote: You should free all resources and terminate all your threads

[android-developers] Re: this.finish() did the activity totally exist??

2008-10-19 Thread Romain Guy
You should free all resources and terminate all your threads when you Activity stops or is destroyed (in onDestroy().) On Sun, Oct 19, 2008 at 7:50 PM, Wesley [EMAIL PROTECTED] wrote: oic... because I afraid if some of my thread still running at the background... and I can't manage to allocate

[android-developers] Re: Inflate Exception... how to diagnose?

2008-10-19 Thread Romain Guy
In the Logcat view of Eclipse (or from a shell, type adb logcat), you will see the full stack trace with the explanation of what's wrong. On Sun, Oct 19, 2008 at 7:34 PM, DulcetTone [EMAIL PROTECTED] wrote: I have an XML file that causes an inflate exception with no discernible detail to help

[android-developers] Examples vs. Docs vs. Reality

2008-10-19 Thread ScottG
Folks, there is a serious disconnect between the examples that are provided, what the documentation says, and what the Version 1.0 SDK actually implements. For openers, it'd be of great help to get rid of examples posted on this forum and in Android docs that only work on m5. I gotta believe

[android-developers] Re: Tips for Orientation

2008-10-19 Thread hackbod
Use the android:screenOrientation attribute when declaring your manifest: http://code.google.com/android/reference/android/R.styleable.html#AndroidManifestActivity http://code.google.com/android/reference/android/R.styleable.html#AndroidManifestActivity_screenOrientation On Oct 19, 3:23 pm,

[android-developers] Re: file that is wriiten on an SDCard not visible

2008-10-19 Thread for android
Thanks Mega for looking into this I am seeing the sdcard from the emulator..When i start the emulator i have given the option in eclipse of the location of the sdcard.So after i download the file I want to view this file in the SDcard.I only see this the file in the DDMS mode,so the file has