[android-developers] Re: How to create a thread that waits for an answer from a certain port ( from external server ) ?

2008-04-06 Thread Dan U.
I think you mentioned the solution yourself: create a thread. Are you worried about the overhead of creating a thread? On Apr 5, 11:07 pm, E.D.I [EMAIL PROTECTED] wrote: How to create a thread that waits for an answer from a certain port ( from external server ) ? in fact i'm trying to

[android-developers] Is it possible to load to activities in the same screen each for upper or lower part of the screen?

2008-04-06 Thread E.D.I
Is it possible to load to activities in the same screen each for upper or lower part of the screen? both works independentfrom each other ... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: Is it possible to load to activities in the same screen each for upper or lower part of the screen?

2008-04-06 Thread Dan U.
I think ActivityGroup would let you, but I haven't used it before. On Apr 6, 12:02 am, E.D.I [EMAIL PROTECTED] wrote: Is it possible to load to activities in the same screen each for upper or lower part of the screen? both works independentfrom each other ...

[android-developers] Take a screenshot and save as a picture file

2008-04-06 Thread Dexter's Brain
Hello All, From my aplication. I need to take a screenshot and save it as a picture. Is it possible??? Dexter. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Can we play a recorded voice on phone call.

2008-04-06 Thread Abhinav Parashar
Hello, Is that possible to play a recorded voice on a phone call. Like as answering machine does. ??? Can somebody help me ?? Thanks Abhinav Parashar --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] Documentation fpr android.provider.GMail

2008-04-06 Thread Dexter's Brain
Hello All, Where can i find the documentation about this package..Does this work??? I dont want to use any extra jars to be able to send a mail. Please let me know, if this can be done using this package?? Dexter. --~--~-~--~~~---~--~~ You received this message

[android-developers] Will there be a FileOpenDialog in future SDK?

2008-04-06 Thread babyblue
When I load something from a file, I need a dialog that displays all the file listed in certain directory. And I think this dialog should work for all kinds of applications. Will there be a FileOpenDialog in future SDK? There seems to be something like FileOpenDialog in Windows mobile. Thanks

[android-developers] Re: gtalk - error 503 while sending message

2008-04-06 Thread nirdroid
thanks. it was unconnected --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email

[android-developers] Stop in MediaPlayer

2008-04-06 Thread SungSuh Park
Hi, I have a problem using MediaPlayer SDK. ( M5-rc15, Windows ) With this problem I can't test my application without crash...It's critical. I modified Megha Joshi MediaPlayerTest sample code to reproduce the problem . (http://groups.google.com/group/android-developers/files) I added stop

[android-developers] Re: Take a screenshot and save as a picture file

2008-04-06 Thread Dexter's Brain
I am aware of that...but what i want is to do it from within an application...on the press of a button. Dexter. On Apr 6, 2:04 pm, Harsh Jain [EMAIL PROTECTED] wrote: yes, go to DDMS perspective in eclipse, there is a screen capture tool. harsh On Sun, Apr 6, 2008 at 1:41 PM, Dexter's

[android-developers] When to use Activity or View ?

2008-04-06 Thread Derek
Hi, I'm writing an application with two screens. Screen 1: Parameters settings Screen 2: Display info (depending on parameters settings) I've used one Activity and two LinearLayout views to implement it. I switch from screen 1 to 2 with setContentView(...) and it works fine. However, in the

[android-developers] Emulator Reboots

2008-04-06 Thread Harsh Jain
Hi, I have been noticing that my emulator mysteriously reboots once in a while. I want to make sure this is not due to my application. Does this happen to others as well ? Harsh INFO/DEBUG(494): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** INFO/DEBUG(494): pid: 517, tid: 538

[android-developers] Re: Is it possible to load a view from an XML file, but only to store it to a variable?

2008-04-06 Thread NTR
Ah, thanks a lot! Dan U. wrote: I think you should look at the docs for ViewInflate. On Apr 5, 6:25 pm, NTR [EMAIL PROTECTED] wrote: I see there's a Resources.getView-method, but it returns an XmlPullParser, and I have no idea what to do with it. The Views take an AttributeSet and a Map

[android-developers] Styling Button dynamically

2008-04-06 Thread goro
Hi All, I need to add dynamically buttons to a view. The buttons must be small, so I must style them with android:attr/buttonStyleSmall. I know how to do it in xml file, but how can I do it from java? Thanx, George --~--~-~--~~~---~--~~ You received this message

[android-developers] dynamic resource

2008-04-06 Thread Max Binshtok
Is there a mechanism to dynamically obtain a resource? I mean, let's say I want to show some image depending on context out of 5 images I have in drawable dir. So I would expect something like getResourceByName(String s) : int which would take a string that points to the resource and will get

[android-developers] Re: How to correctly unregister GPS notifications?

2008-04-06 Thread Jakob Bjerre Jensen
Hi Dan, From what you explain, I can see, why the problem might arise (still being a bit suspicius about how the firing can happend between the two consecutive calls, but alright, it might occur). However I might disagree with the whole design semantic, unless you can convince me otherwise

[android-developers] Re: Will there be a FileOpenDialog in future SDK?

2008-04-06 Thread babyblue
Thanks for you reply :) On 4月6日, 下午8时31分, David Given [EMAIL PROTECTED] wrote: babyblue wrote: When I load something from a file, I need a dialog that displays all the file listed in certain directory. And I think this dialog should work for all kinds of applications. Will there be a

[android-developers] Plz Help!!

2008-04-06 Thread areslp
Boolean t = flags.get(position); Log.e( + position, getView_flag: + t.booleanValue()); if (t.booleanValue()==true) { Log.e(postion:true + position, );

[android-developers] Android Emulator Keeps Dying

2008-04-06 Thread sasperilla
I keep getting this error in my console when I try to startup the emulator. I've restarted Eclipse, but it keeps croaking with this error. Also the emulator easily takes 5 minutes to startup before finally getting a application not responding on googleapps. Any ideas on what I should do? I'm

[android-developers] Registering content types with the web browser?

2008-04-06 Thread sasperilla
If I try and download a file type with the web browser that's not supported. I get a message saying Unable to download file as content type is not supported. Is there a way I can register my application as a supporter of a particular content type or mime type? Charlie

[android-developers] Re: Registering content types with the web browser?

2008-04-06 Thread David Given
sasperilla wrote: If I try and download a file type with the web browser that's not supported. I get a message saying Unable to download file as content type is not supported. Is there a way I can register my application as a supporter of a particular content type or mime type? AFAIK, you

[android-developers] Re: Plz Help!!

2008-04-06 Thread Dan U.
I guess you might not know this, but you don't need to be using a Boolean. You should change it to lowercase boolean and get rid of all the messy t.booleanValue() calls. But, the reason you don't see logging output is the way you are using Log. You are actually trying to print an empty message

[android-developers] Re: How to correctly unregister GPS notifications?

2008-04-06 Thread Dan U.
The firing between those calls is a race condition. If you notice, the location manager updates in the emulator get fired off in rapid succession if you give a small interval value. There is enough time between an unregisterReceiver call and a removeUpdates call for this to happen. In terms of

[android-developers] Re: Eclipse 19% BUG

2008-04-06 Thread ThursdayMorning
I'm having the same 19% problem, and moving the mylyn files didn't do anything. I tried moving the mylar files as well, and that didn't do anything either. Opening the emulator in debug mode *does* seem to help, but that creates finicky problems of it's own as well. TM

[android-developers] Re: When to use Activity or View ?

2008-04-06 Thread Dan U.
Well, my rule of thumb (being a web developer) is to think of it in terms of how many web pages I'd want == how many Activities I should break it up into. To me, seeing setContentView called multiple times in an Activity is a bit bothersome. I can't quite explain why I feel that. I guess because

[android-developers] Re: Styling Button dynamically

2008-04-06 Thread Dan U.
Will this work: Button b = new Button(this, null, null, android.R.attr.buttonStyleSmall); On Apr 6, 6:04 am, goro [EMAIL PROTECTED] wrote: Hi All, I need to add dynamically buttons to a view. The buttons must be small, so I must style them with android:attr/buttonStyleSmall. I know how to

[android-developers] Re: When to use Activity or View ?

2008-04-06 Thread [EMAIL PROTECTED]
You could put everything in one Activity. You could also put your complete application in a single class, and both are a bad idea for the same reason. On Apr 6, 2:35 pm, Derek [EMAIL PROTECTED] wrote: Hi, I'm writing an application with two screens. Screen 1: Parameters settings Screen 2:

[android-developers] Re: Plz Help!!

2008-04-06 Thread [EMAIL PROTECTED]
Woaw, this must be one of the worst pieces of code i have recently seen. On Apr 6, 4:21 pm, areslp [EMAIL PROTECTED] wrote:                         Boolean t = flags.get(position);                         Log.e( + position, getView_flag: + t.booleanValue());                         if

[android-developers] architecture question relating to network use

2008-04-06 Thread colintheprep
Hi all, I'm looking for suggestions on how to architect something: My application consists of a number of activities, most of which talk to the network (through tcp sockets). I.e. - one activity connects to the network, sends and receives some stuff, launches another activity, which also sends

[android-developers] Re: architecture question relating to network use

2008-04-06 Thread Dan U.
Well, actually you can pass a lot more than just Strings to a Activity onCreate, but that's not what you should do here. I think I would write a Service to provide server communication. Any of your activities could then access this service. On Apr 6, 1:09 pm, colintheprep [EMAIL PROTECTED]

[android-developers] android:text=#... bug?

2008-04-06 Thread Nixarn
Might have found a bug. So I thought I'd post about it. Doing: android:text=#... will give an error. The # makes it try to parse the text as a color, but android:text should not be parsed as a color? Niklas --~--~-~--~~~---~--~~ You received this message

[android-developers] Emulator intermittent failure to connect to internet

2008-04-06 Thread Craig
Is there a known issue with the emulator for m3rc37a that results in intermittent failures to connect to the internet? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group,

[android-developers] Resource ID Range?

2008-04-06 Thread jml307
I was curious what the range was for the integers assigned to resources? Specifically will -1 ever be a valid value for a resource? In my code, I am passing a resource ID into a method and sometimes I don't have that ID so I want to provide a value that I can check against and know not to use.

[android-developers] Re: Error Receiving Broadcast Null in [IntentReceiver] (Very Easy)

2008-04-06 Thread [EMAIL PROTECTED]
Awesome! I don't see the error anymore! Thanks, Noam. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe

[android-developers] Radio buttons' and checkboxes' text goes behind the buttons themselves?

2008-04-06 Thread NTR
When I have the contents of the Activity on a 9-patch background with background padding, the texts in the radio buttons and checkboxes go behind the buttons. Has anyone else experienced this? Is the only workaround to create a separate TextView for each of those? See the screenshot:

[android-developers] First mouse click in the emulator not taken in account

2008-04-06 Thread NTR
When I reload a package from the Eclipse IDE to run in the emulator, the first mouse click is always discarted when I click the emulator screen, even if the emulator window is already selected. Has anyone else noticed this? Maybe if so, it's not just my computer :P

[android-developers] Re: Radio buttons' and checkboxes' text goes behind the buttons themselves?

2008-04-06 Thread NTR
Also, some views like the MapView and WebView seem to disregard the background padding if they don't have any padding themselves. If they do have padding, their own padding is disregarded, but the background padding works. And, if I have a horizontal LinearLayout and put an element in the middle

[android-developers] Re: How notification for inserts and deletes works without ContentProvider

2008-04-06 Thread vl
Finally decided to test NotesList application (which is based on ContentProviders) and found that it has the same error. I would say it's an error of Android platform and from my point a serious one. --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Retrieving the location provider gps causes a NullPointerException in LocationManager.createProvider

2008-04-06 Thread NTR
When I try using the gps provider, I get the following: ERROR/AndroidRuntime(3253): Caused by: java.lang.NullPointerException ERROR/AndroidRuntime(3253): at android.location.LocationManager.createProvider(LocationManager.java: 61) ERROR/AndroidRuntime(3253): at

[android-developers] Re: Retrieving the location provider gps causes a NullPointerException in LocationManager.createProvider

2008-04-06 Thread NTR
I even tried running emulator -wipe-data again, but it didn't help... NTR wrote: When I try using the gps provider, I get the following: ERROR/AndroidRuntime(3253): Caused by: java.lang.NullPointerException ERROR/AndroidRuntime(3253): at

[android-developers] Re: android:text=#... bug?

2008-04-06 Thread xingye
try \#... On 4月7日, 上午4时43分, Nixarn [EMAIL PROTECTED] wrote: Might have found a bug. So I thought I'd post about it. Doing: android:text=#... will give an error. The # makes it try to parse the text as a color, but android:text should not be parsed as a color? Niklas

[android-developers] Re: Radio buttons' and checkboxes' text goes behind the buttons themselves?

2008-04-06 Thread Romain Guy
And, if I have a horizontal LinearLayout and put an element in the middle of it, with horizontal FILL_PARENT, the elements on the right of it won't be shown. For workaround, I've set the horizontal span to WRAP_CONTENT, but weight to 1.0f. It's not a workaround, it is how it is supposed

[android-developers] how to receive a phone call?? what do you need in manifest??

2008-04-06 Thread franw
hi, i want my program to start if the phone rings, so i want to receive that action but cannot find what you need in the manifest to get this intent to start - please help! ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android;

[android-developers] Re: Is it safe to share a View among several layouts?

2008-04-06 Thread Anil
Dell Dimension 8400. 3GHz. 2Gb RAM. On Apr 5, 11:02 pm, Dan U. [EMAIL PROTECTED] wrote: It should be a lot faster than that, but knowing the emulator is a resource-hog, my first question is what kind of computer are you using for dev work? On Apr 5, 8:49 pm, Anil [EMAIL PROTECTED] wrote:

[android-developers] How to develop a top application(window) which is on top of any window else?Like the Tencent's QQ.

2008-04-06 Thread pig_knight
How to develop a top application(window) which is on top of any window else?Like the Tencent's QQ. By the modification to the Android,can we implement a top application? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: How notification for inserts and deletes works without ContentProvider

2008-04-06 Thread vl
I don't know what error you are talking about. If you create a listactivity and use a correctly implemented contentprovider (for example the Contacts content provider) the data in the list will updated automatically when records are added, deleted or changed. The error is related to notion

[android-developers] Re: Is it safe to share a View among several layouts?

2008-04-06 Thread Dan U.
Should be a fast enough machine. Is your main concern that the actual devices will be slow doing this? I've heard the development hardware out there is faster than the emulator. Not sure if that accurately reflects production hardware though. On Apr 6, 7:02 pm, Anil [EMAIL PROTECTED] wrote:

[android-developers] Amount of Zoom from Distance in Maps (Very Easy)

2008-04-06 Thread [EMAIL PROTECTED]
Hello everyone, I want to get the zoom number from a distance. For instance, int distance = 999; Now, how could I calculate the amount of zoom needed so I can see all of these 999 miles on the map? Ex. int distance = 999; MapView mMapView = new MapView(this); MapController mc =

[android-developers] Serial Port Programming

2008-04-06 Thread Joe
I want to read data from a COM port. Is there any way to read data from COM port by using Android? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Listview and List Selector(Urgent)

2008-04-06 Thread Greg
Hello Android Champs 1 what i want is i want to give a margin or distance between the listview items Like A B A B 2 secondly i want to show the white textcolor on selection of an item of listview .. i have successfully changed the background color but unable to change the textcolor please

[android-developers] Length of text drawn in pixel?

2008-04-06 Thread Joa
Is there a way to find out the length of text drawn to a Canvas (using drawText()) in pixel? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to