[android-developers] Re: whats wrong with my EditText to int

2009-05-23 Thread Jack Ha (T-Mobile USA)
Can you provide the logcat output that shows the stack trace? What value did you enter for the et2 field? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・ stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do

[android-developers] Re: Main and three binder threads are running after application close

2009-05-23 Thread olko
Well, this is what I observe when I press the back button: In the main activity: - onPause() is called - onStop() is called - on Destroy() is called In the remote service: - onUnbind() is called (I unbind in onDestroy() of the main activity) - onDestroy() is called After that in the debugger:

[android-developers] Re: whats wrong with my EditText to int

2009-05-23 Thread chen hence
i entered numbers such 545. but there is nothing but exption happened. 2009/5/23 Jack Ha (T-Mobile USA) jack...@t-mobile.com Can you provide the logcat output that shows the stack trace? What value did you enter for the et2 field? -- Jack Ha Open Source Development Center ・T・ ・ ・Mobile・

[android-developers] Re: whats wrong with my EditText to int

2009-05-23 Thread Nithin Varamballi
Hi.. Can you update entire code... Thank You Nithin N V --~--~-~--~~~---~--~~ 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

[android-developers] Re: How run a apk in the app

2009-05-23 Thread Mark Murphy
iou200...@gmail.com wrote: I want to know ,too. On May 6, 9:11 pm, ainilife ainil...@gmail.com wrote: hi all: i want to download aapkfile from my server and run this application in my app. is this possible? if it can , please post some sample code. thank you all. That is not

[android-developers] Re: whats wrong with my EditText to int

2009-05-23 Thread chen hence
public void menu_add(){ // setContentView(R.layout.add); Button btnadd=(Button)findViewById(R.id.addtips); Button btnreturn=(Button)findViewById(R.id.return_menu_record); //点击添加备注 btnadd.setOnClickListener(new View.OnClickListener(){ public void onClick(View v) { // TODO Auto-generated method

[android-developers] Re: Android G1 - Streaming WMV

2009-05-23 Thread Emil
Ok. Thanks. I would like to stream video comes from my video capture card located on my PC through WI-FI into my Android G1 device. Do you have any suggestions regarding how to set stream the right video format so the G1 device will be able to play it? Emil On May 22, 9:23 pm, Dave Sparks

[android-developers] Re: Unable to remove default launching of an application.

2009-05-23 Thread Guillaume Perrot
I have the same bug for all non standard applications, whatever the phone I tested. What's going on with this feature ? On 6 mai, 15:40, Guillaume Perrot guillaume.p...@gmail.com wrote: I go to the application settings, but the clear defaults button is always enabled - I meant always disabled.

[android-developers] Re: Unable to remove default launching of an application.

2009-05-23 Thread Guillaume Perrot
I have the same bug for all non standard applications, whatever the phone I tested. What's going on with this feature ? On 6 mai, 15:40, Guillaume Perrot guillaume.p...@gmail.com wrote: I go to the application settings, but the clear defaults button is always enabled - I meant always disabled.

[android-developers] Re: Unable to remove default launching of an application.

2009-05-23 Thread Mark Murphy
I have the same bug for all non standard applications, whatever the phone I tested. What's going on with this feature ? It is difficult to answer this question, since you have not really said what the feature is you are curious about. I check the box, it tells me that I can clear the

[android-developers] How can I use my own color instead of default orange color for selection

2009-05-23 Thread manoj
Hi, 1. I want to use my own color for selecting ui views. By default, android shows the selected view with background as orange. I want to show the view background color as red. 2. In the same way, I want the same behaviour should be applied to whole application. How can I achieve this? Can

[android-developers] Re: Unable to remove default launching of an application.

2009-05-23 Thread Guillaume Perrot
For a quick example, download Astro File Manager, click on a image file, you should see 2 actions: * ASTRO Image Viewer * View Picture (standard) And a check box Use by default for this action, I choosed View Picture. If you check it, a text explains (ok it does not tell, don't play on words...) :

[android-developers] SyncFailedException writing to sdcard

2009-05-23 Thread vellanova
Some users of my program are randomly experiencing a java.io.SyncFailedException on a call to java.io.FileDescriptor.sync() for a file held on an sdcard. Other than being out of space on the sdcard (which is a definite possiblity for at least some of the occurences, and definitely not for

[android-developers] Re: Unable to remove default launching of an application.

2009-05-23 Thread Mark Murphy
But my second question remains unsolved: there is an interesting flag in the Manifest: android:allowClearUserDataWhether or not users are given the option to remove user data — true if they are, and false if not. If the value is true, as it is by default, the application manager includes

[android-developers] Putting the device to sleep?

2009-05-23 Thread GiladH
Hey, My app seldom needs to put the device (or screen) to sleep. That is - programmatically imitate user pressing on red stop-call button. According to docs PowerManager.goToSleep() does just that, but requires android.permission.DEVICE_POWER, which is never granted to apps! (A) What on earth

[android-developers] Re: Unable to remove default launching of an application.

2009-05-23 Thread Guillaume Perrot
Thanks. According to me, it would be useful to have both the uninstall and the clear data button. Thus the documentation is quite confusing with this flag. 2009/5/23 Mark Murphy mmur...@commonsware.com But my second question remains unsolved: there is an interesting flag in the Manifest:

[android-developers] Intent Selected_alternative

2009-05-23 Thread arnouf
Hi, I created an Activity that I would like call when user wants display a picture. I found a lot of source code as below activity android:name=.TestActivity !-- My Activity -- intent-filter android:label=Mon Test action android:name=android.intent.action.VIEW /

[android-developers] Re: How to cancle a dialog when touch it?

2009-05-23 Thread arnouf
User AlertDialogBuilder to add your buttons...It's simplier On May 23, 4:47 am, hencechen...@gmail.com hencechen...@gmail.com wrote: i have my code                         Dialog dlg=new Dialog(android01.this);                         dlg.setContentView(R.layout.error);                      

[android-developers] Re: Intent Selected_alternative

2009-05-23 Thread Mark Murphy
arnouf wrote: But when I open Gallery and try opening a picture my application is not proposed. What's wrong? Does Gallery suggest any other third-party applications? In other words, does Gallery support the feature (adding third-party items into option menus) that you are seeking? --

[android-developers] Re: Intent Selected_alternative

2009-05-23 Thread arnouf
Hi, 1 point for your Mark (plus the others!)... The problem is maybe this... I'll try another thing to demonstrate this Intent possibility... Rgds On May 23, 3:25 pm, Mark Murphy mmur...@commonsware.com wrote: arnouf wrote: But when I open Gallery and try opening a picture my application is

[android-developers] Re: Putting the device to sleep?

2009-05-23 Thread Mark Murphy
GiladH wrote: My app seldom needs to put the device (or screen) to sleep. I suspect the Android model says that the user controls when the device goes to sleep, either by the power button or via the user-selected inactivity timer. According to docs PowerManager.goToSleep() does just that, but

[android-developers] Re: Unable to remove default launching of an application.

2009-05-23 Thread Mark Murphy
Guillaume Perrot wrote: According to me, it would be useful to have both the uninstall and the clear data button. Thus the documentation is quite confusing with this flag. Agreed. If you want, visit http://b.android.com and file a bug against the documentation. -- Mark Murphy (a Commons

[android-developers] get color from ImageView (x/y)?

2009-05-23 Thread guruk
Hi, i have a ImageView with a Picture in it. When I touch the Picture through the TouchScreen, how can i get the ColorCode (eg. 0xff0033933) from the x/y Coordinate I clicked? Something like: onTouch.GetColorCode (from the pixel bellow my finger) Any Idea? Thanks Yours Chris

[android-developers] Re: AsyncTask posting mulitple parameters

2009-05-23 Thread avrono
Thanks Romain, Just to clarify, are you suggesting to pass an object containing the data ? ie Object, void, void or similar, where object has attributes = parameters I want to pass ? On May 23, 2:24 am, Romain Guy romain...@google.com wrote: Just use the type Object for the parameters and you

[android-developers] Re: Intent Selected_alternative

2009-05-23 Thread arnouf
It's fixed thanks On May 23, 3:31 pm, arnouf arnaud.far...@gmail.com wrote: Hi, 1 point for your Mark (plus the others!)... The problem is maybe this... I'll try another thing to demonstrate this Intent possibility... Rgds On May 23, 3:25 pm, Mark Murphy mmur...@commonsware.com wrote:

[android-developers] Bug detected VideoView/ImageView

2009-05-23 Thread arnouf
I think that I found a problem with Android SDK in a relative form, try to add An ImageView and A VideoView In an activity, retrieve your VideoView and try to retrieve his SurfaceHolderYour application have to crash with a real big tracelog in LogCat

[android-developers] Re: How to cancle a dialog when touch it?

2009-05-23 Thread chen hence
i found the problem...its function add(); Thank you for your help. 2009/5/23 arnouf arnaud.far...@gmail.com User AlertDialogBuilder to add your buttons...It's simplier On May 23, 4:47 am, hencechen...@gmail.com hencechen...@gmail.com wrote: i have my code Dialog

[android-developers] Re: Main and three binder threads are running after application close

2009-05-23 Thread Dianne Hackborn
This is the intended behavior. See the docs starting here: http://developer.android.com/guide/topics/fundamentals.html#procthread On Fri, May 22, 2009 at 11:54 PM, olko y.olkho...@gmail.com wrote: Well, this is what I observe when I press the back button: In the main activity: -

[android-developers] Widget process lifetime: Why not stop the service?

2009-05-23 Thread Michael Elsdörfer
I'm writing a widget that needs to update rather infrequently (say multiple hours). Following the source examples out there, it seems the common solution is to use a service to prepare the updates. However, after I am done, my process is still running on service level, it looks like it's not

[android-developers] Re: Find whether any audio is currently playing

2009-05-23 Thread Marco Nelissen
On Fri, May 22, 2009 at 9:57 PM, iDeveloper ideveloper...@gmail.com wrote: Thanks. And how do I stop the audio from playing if isMusicActive() returns true? Do I have to use the MediaPlayer instance? But the instance won't be in memory any longer as the activity has been exited once and a new

[android-developers] Re: Bug detected VideoView/ImageView

2009-05-23 Thread Marco Nelissen
On Sat, May 23, 2009 at 8:46 AM, arnouf arnaud.far...@gmail.com wrote: I think that I found a problem with Android SDK in a relative form, try to add An ImageView and A VideoView In an activity, retrieve your VideoView and try to retrieve his SurfaceHolderYour application have to crash

[android-developers] NinePatchDrawable strange rendering

2009-05-23 Thread skink
hi, i'd like to draw on Canvas semitransparent NinePatchDrawable with color filter in SRC_IN mode: npd.setColorFilter(0x8080, Mode.SRC_IN); npd.draw(c); and it seems that central patch is drawn with different color than the others. without setting color filter everything is ok. is it a

[android-developers] NinePatchDrawable strange rendering

2009-05-23 Thread skink
hi, i'd like to draw on Canvas semitransparent NinePatchDrawable with color filter in SRC_IN mode: npd.setColorFilter(0x8080, Mode.SRC_IN); npd.draw(c); and it seems that central patch is drawn with different color than the others. without setting color filter everything is ok. is it a

[android-developers] Re: Camera application 1.5 on emulator does nothing

2009-05-23 Thread gymshoe
You probably have thought of this, but when you created the AVD did you enable camera support (the default is disabled)? see: http://developer.android.com/guide/developing/tools/avd.html cheers On May 22, 8:02 am, arnouf arnaud.far...@gmail.com wrote: Ok so you did the test that I would

[android-developers] Ruuning a unix command from my application

2009-05-23 Thread karthikr
Hi Guys, Im trying to run an unix command from my application, Basically I want to extract a tar file, but Im getting an I/O exception while running the below code. Can you please tell me as to how this has to be done executeCommand(tar, - xvf,

[android-developers] Re: UnknownHostException on 1.5 emulator

2009-05-23 Thread Dmitry
Yes, I have the same problem. Sometimes it happens very soon after launch-( On May 21, 10:11 pm, Peter Jeffe pje...@gmail.com wrote: If I leave the 1.5 emulator running for a while (overnight, maybe less) it starts getting unknown host errors like this: 05-21 18:03:23.618  2663  2683 I

[android-developers] Re: NinePatchDrawable strange rendering

2009-05-23 Thread skink
On 23 Maj, 16:52, skink psk...@gmail.com wrote: npd.setColorFilter(0x8080, Mode.SRC_IN); npd.draw(c); it seems that 0x8080 is to dark to see it use 0x instead. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[android-developers] Re: Ruuning a unix command from my application

2009-05-23 Thread Mark Murphy
karthikr wrote: Im trying to run an unix command from my application, I am uncertain if the commands available in Android, few as they are, are part of the public API, and as such perhaps should not be relied upon. Of course, based upon your code, you've apparently decided that sticking to

[android-developers] Re: Ruuning a unix command from my application

2009-05-23 Thread Dianne Hackborn
On Sat, May 23, 2009 at 11:29 AM, Mark Murphy mmur...@commonsware.comwrote: I am uncertain if the commands available in Android, few as they are, are part of the public API, and as such perhaps should not be relied upon. They are definitely not part of the supported API. Do you have any

[android-developers] Re: Widget process lifetime: Why not stop the service?

2009-05-23 Thread Dianne Hackborn
Don't use a service; use the alarm manager to schedule your wakeup/work. On Sat, May 23, 2009 at 9:38 AM, Michael Elsdörfer mich...@elsdoerfer.infowrote: I'm writing a widget that needs to update rather infrequently (say multiple hours). Following the source examples out there, it seems the

[android-developers] Re: Widget process lifetime: Why not stop the service?

2009-05-23 Thread Michael Elsdörfer
Don't use a service; use the alarm manager to schedule your wakeup/work. Currently I'm actually using the widget framework's update mechanism. From what I understand, a service must be used in any case to avoid ANR when processing the request might take a bit longer. The widget example

[android-developers] Re: conversion to dalvik format failed with error 1

2009-05-23 Thread n5r11
This is my strange scenario.. maybe it will help someone: 1. On Project/Build Automatically checked I'm not getting any errors. 2. When I uncheck Project/Build Automatically and build, I'm not getting any errors. 3. When I clean and build (with Project/Build Automatically unchecked) i get: no

[android-developers] Re: Airtell calling card - receipt

2009-05-23 Thread Disconnect
You might want to change that. On Sat, May 23, 2009 at 12:10 PM, Anil Sasidharan anil...@gmail.com wrote: Airtel calling card --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: Android G1 - Streaming WMV

2009-05-23 Thread Emil
Hello Dave, When you wrote HTTP progressive and RTSP for 3GPP/MPEG-4 streams did you mean also that G1 device supports H.264 video streaming? Thanks, Emil On May 23, 1:09 pm, Emil semil...@gmail.com wrote: Ok. Thanks. I would like to stream video comes from my video capture card located on

[android-developers] Re: get color from ImageView (x/y)?

2009-05-23 Thread Jack Ha (T-Mobile USA)
You can do something like this: public class MyImageView extends ImageView { . . . public boolean onTouchEvent(MotionEvent ev) { BitmapDrawable bd = (BitmapDrawable)getDrawable(); Bitmap bitmap = bd.getBitmap();

[android-developers] Android Loading listview items from service results in hang

2009-05-23 Thread Isaac Waller
Hello, In my Android application, I have a ListActivity. This ListActivity uses a SimpleAdapter that I fill with items from my service. So, in my code, I do: MySuperCoolService.Binder serviceBinder = null; private ServiceConnection serviceConnection = new ServiceConnection() { public

[android-developers] Re: Android Loading listview items from service results in hang

2009-05-23 Thread Mark Murphy
Isaac Waller wrote: In my Android application, I have a ListActivity. This ListActivity uses a SimpleAdapter that I fill with items from my service. So, in my code, I do: MySuperCoolService.Binder serviceBinder = null; private ServiceConnection serviceConnection = new ServiceConnection()

[android-developers] Re: whats wrong with my EditText to int

2009-05-23 Thread chen hence
i found the problem...its function add(); Thank you for your help. 2009/5/23 chen hence hencechen...@gmail.com public void menu_add(){ // setContentView(R.layout.add); Button btnadd=(Button)findViewById(R.id.addtips); Button btnreturn=(Button)findViewById(R.id.return_menu_record);

[android-developers] Re: Android Loading listview items from service results in hang

2009-05-23 Thread Isaac Waller
Move the now retrieve from service using binder and set list adapter into onServiceConnected() and get rid of the sleep() infinite loop. If I do this, then I lose the benefits of running it in the UI thread. I want to hang my application until it gets these items, because if not, my view with

[android-developers] Re: How should I call an application from another application?

2009-05-23 Thread Peli
Using intents. http://developer.android.com/reference/android/content/Intent.html You can browse through a few examples here: http://www.openintents.org/en/applications Peli www.openintents.org On 23 Mai, 06:30, iou200...@gmail.com iou200...@gmail.com wrote: As the subject ,I want to know How

[android-developers] Re: Android Loading listview items from service results in hang

2009-05-23 Thread Marco Nelissen
On Sat, May 23, 2009 at 5:51 PM, Isaac Waller ad...@isaacwaller.com wrote: Move the now retrieve from service using binder and set list adapter into onServiceConnected() and get rid of the sleep() infinite loop. If I do this, then I lose the benefits of running it in the UI thread. I want

[android-developers] Android Loading listview items from service results in hang

2009-05-23 Thread Jason Proctor
If I do this, then I lose the benefits of running it in the UI thread. I want to hang my application until it gets these items, because if not, my view with id=android:empty shows up for a second, and that looks ugly. So put in another view, one that's not ugly. how about some kind of progress

[android-developers] Re: Android Loading listview items from service results in hang

2009-05-23 Thread Isaac Waller
Even if I changed that, I would lose the saved list scroll position and selected item. I do not want to make some hack around running it in the UI thread - I want to hang the UI thread. On May 23, 8:06 pm, Jason Proctor ja...@particularplace.com wrote: If I do this, then I lose the benefits of

[android-developers] Re: Android Loading listview items from service results in hang

2009-05-23 Thread Marco Nelissen
hanging the UI thread is the hack. I suggest you do it the right way instead. On Sat, May 23, 2009 at 8:09 PM, Isaac Waller ad...@isaacwaller.com wrote: Even if I changed that, I would lose the saved list scroll position and selected item. I do not want to make some hack around running it in

[android-developers] Re: Android Loading listview items from service results in hang

2009-05-23 Thread Isaac Waller
No, what you are supposed to do, is not return from onCreate until you are ready to show your GUI. I am not ready without these items. If it took, say, 2 or 3 seconds to load these items, maybe, but it takes a fraction of a second - the screen flashes 'LOADING' and then shows the items. It looks

[android-developers] Re: Installing the USB driver for HTC Magic on Vista

2009-05-23 Thread Raphael
2009/5/22 Cédric Berger cedric.berge...@gmail.com: 2009/5/21 Cédric Berger cedric.berge...@gmail.com took me a LOT of trials before it worked ! I finally have this rule and it is OK (did not have to edit user groups on my system): SYSFS{idVendor}==0bb4, SYSFS{idProduct}==0c02,

[android-developers] Re: Android Loading listview items from service results in hang

2009-05-23 Thread Marco Nelissen
On Sat, May 23, 2009 at 8:27 PM, Isaac Waller ad...@isaacwaller.com wrote: No, what you are supposed to do, is not return from onCreate until you are ready to show your GUI. I am not ready without these items. If it took, say, 2 or 3 seconds to load these items, maybe, but it takes a

[android-developers] Re: Problem installing application onto HTC Magic

2009-05-23 Thread Raphael
On Thu, May 21, 2009 at 6:20 AM, Android Users androidmai...@gmail.com wrote: Any help on this as this is stopping our work. Searched in all android forums, but no luck.. You need to ask your carrier to provide the maps binaries in their system images (or did you create your own system

[android-developers] Re: How to solve G1/HTC Magic not recognized by ADB under Windows

2009-05-23 Thread Raphael
2009/5/21 Cédric Berger cedric.berge...@gmail.com: I had asked HTC if they had drivers... their answer :-( : You recently wrote us about an issue that you have encountered with your htc To clarify your issue, you stated that: you would like to install usb driver in Google android SDK 1.5.

[android-developers] More FaceBook, My Space, Youtube, Google News Online at this

2009-05-23 Thread DonyChandra
http://free-belajaronline.blogspot.com/2009/05/myspace-is-in-real-trouble-if-these.html MySpace Is In Real Trouble If These Page View Decl... http://free-belajaronline.blogspot.com/2009/05/hip-hop-star-murdered-just-two-hours.html Hip Hop Star Murdered Just Two Hours After His Fir...