[android-developers] Re: Dialog windowBackground makes parent window go black

2009-08-22 Thread CraigsRace
BTW: My dialogs were dying because I was opening them outside the onCreateDialog method. Once I moved them in there, everything worked great. Ref: http://developer.android.com/guide/topics/ui/dialogs.html On Aug 13, 10:41 am, CraigsRace craig...@gmail.com wrote: Well, I did it this way.  

[android-developers] Changing color of a drawable used as a marker in an OverlayItem

2009-08-22 Thread -v-
Is there an easy way to change the color of a drawable (which is a png image) ..setColorFilter does not seem to work I tried in following d.setColorFilter(0xffff, Mode.DARKEN); and few more of these modes (which I have no idea what they mean)... before a call to setMarker(d); but it didnt

[android-developers] Re: My emulator is running 100% CPU, it's annoying..

2009-08-22 Thread jiaoni
Hi David, I don't use Linux now, so I have not tries it. Thanks, Jiaoni On Aug 21, 7:35 pm, David Wilson d...@botanicus.net wrote: Are you on Linux? You could try this.. From a terminal:     killall -STOP emulator To pause it while not in use, and:     killall -CONT emulator To

[android-developers] Re: Find long/lat distance X from current location

2009-08-22 Thread Panut Sunyakorn
This will help you. http://www.movable-type.co.uk/scripts/latlong.html 2009/8/22 Mark Murphy mmur...@commonsware.com: alexdonnini wrote: I had already considered using the GCC formula (I did not know the name GCC). Unfortunately, the only lat/lng information I have is mine, none other.

[android-developers] Re: How to build Contacts?

2009-08-22 Thread Tsuyoshi Ozawa
Thank you for replying, Mark. I'll try it. On 8月22日, 午前7:41, Mark Murphy mmur...@commonsware.com wrote: Tsuyoshi Ozawa wrote: Hello, I tried to build the default app Contacts, but I couldn't. What I tried is as follows: 1. Download source code from Android repository. $ git clone

[android-developers] Re: How to build Contacts?

2009-08-22 Thread Tsuyoshi Ozawa
Thank you for replying, Mark. I'll try it ! On 8月22日, 午前7:41, Mark Murphy mmur...@commonsware.com wrote: Tsuyoshi Ozawa wrote: Hello, I tried to build the default app Contacts, but I couldn't. What I tried is as follows: 1. Download source code from Android repository. $ git clone

[android-developers] Re: Writing a Bitmap to a a outputstream

2009-08-22 Thread karthikr
Guys, Any help on the same? Regards, R.Karthik --~--~-~--~~~---~--~~ 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

[android-developers] LocationManager API too limited?

2009-08-22 Thread Michael Elsdörfer
...or maybe I am just missing something? I have a service and would like that service to keep up with the user's current location. I don't have any particular requirements in terms of accuracy etc. So I am looping over the list of all providers, and registering a listener for each. I thought

[android-developers] Re: My emulator is running 100% CPU, it's annoying..

2009-08-22 Thread jiaoni
Hi, Thanks for the replies. Here's my situation: 1. I am running emulator on windows XP; 2. when show top in adb shell console, the system_server process occupies the most cpu; Thanks a lot, Jiaoni On Aug 21, 7:35 pm, David Wilson d...@botanicus.net wrote: Are you on Linux? You could try

[android-developers] adb

2009-08-22 Thread Aanderson144
Is it possible to use adb over wifi with the android developer phone? If not how heavily is adb tied into usb both on the client and server sides? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] Re: Launcher

2009-08-22 Thread Mark Murphy
human android wrote: when I click on launcher it does not show displayed activity log for launcher, it shows it way before during boot up stage. why is this happening? AFAIK, it is because the launcher is part of the home application, which is created at boot time. -- Mark Murphy (a Commons

[android-developers] Launch the WebBrowser with intent with a Button gives NullPointer Exception

2009-08-22 Thread Tobias Eisentraeger
Hello, I have trouble launching the WebBrowser with an Intent with a Button Click. I try doing this in the onCreate Method of my Activity: final Button getTheButtonBtn = (Button) this.findViewById(R.id.ButtonTheButton); getTheButtonBtn.setOnClickListener(new View.OnClickListener() {

[android-developers] Re: Launch the WebBrowser with intent with a Button gives NullPointer Exception

2009-08-22 Thread Mark Murphy
Tobias Eisentraeger wrote: Hello, I have trouble launching the WebBrowser with an Intent with a Button Click. I try doing this in the onCreate Method of my Activity: final Button getTheButtonBtn = (Button) this.findViewById(R.id.ButtonTheButton); getTheButtonBtn.setOnClickListener(new

[android-developers] disable HOME key and right soft key

2009-08-22 Thread Shang Hao
Hi, dis I m making a test application and want to able all keys excluding the back button.. Using below code i am not able to disable HOME key and right soft key. Please suggest what to do. @Override public boolean onKeyDown(int keyCode, KeyEvent event) {

[android-developers] Re: Find long/lat distance X from current location

2009-08-22 Thread Thomas (geomancer)
I had the same problem and found my sources at http://williams.best.vwh.net/avform.htm . Ed Williams goes into detail on great circle navigation. I took his formulas for distance between points and true course and translated them into PHP. Projecting a point is given as well. The translated

[android-developers] Re: disable HOME key and right soft key

2009-08-22 Thread Mark Murphy
Shang Hao wrote: Hi, dis I m making a test application and want to able all keys excluding the back button.. Using below code i am not able to disable HOME key and right soft key. Please suggest what to do. @Override public boolean onKeyDown(int keyCode, KeyEvent

[android-developers] Re: out of memory error getWallpaper

2009-08-22 Thread sameer
Hi Steve, PLease let me know how you fixed the belllow exeption run-time exception the next attempt to use recycled bitmap. I m also getting the same exeption trying to use a recycled bitmap android.graphics.bit...@43750030 Please reply back. Your reply will be highly appreciated. Thanks

[android-developers] Re: out of memory error getWallpaper

2009-08-22 Thread sameer
Hi Nivek, Can you please tell me the solution for the problem attempt to use recycled bitmap Any solution please let me know. Your reply will be highly appreaciated Thanks and Regards Mohammed Sameer On Aug 17, 11:53 pm, Nivek kevin.gau...@gmail.com wrote: When you change the device

[android-developers] XML-RPC

2009-08-22 Thread Wouter
Hey, I am using the android xmlrpc client (http://code.google.com/p/android- xmlrpc/) to consume a xml-rpc webservice. I can call the webservice and get data back but I want to save the received data in own made Objects. For example: I want to get the movieScore: public void getMovieScore()

[android-developers] Re: Writing a Bitmap to a a outputstream

2009-08-22 Thread karthikr
Hi Guys, Im still not able to figure out the problem. When i try to use the Bitmaps compress method for PNG formats there doesnt seems to be any problem. But for JPEG format there is a sever loss of quality even if i give the quality as 100. Any inputs please. Regards, R.Karthik

[android-developers] Re: Writing a Bitmap to a a outputstream

2009-08-22 Thread Mark Murphy
karthikr wrote: Hi Guys, Im still not able to figure out the problem. When i try to use the Bitmaps compress method for PNG formats there doesnt seems to be any problem. But for JPEG format there is a sever loss of quality even if i give the quality as 100. A quick scan of Google

[android-developers] sql connection

2009-08-22 Thread engin
Hi I wrote java code that connects remote sql server. But code does not work in android. Code is as follows: try { DriverManager.registerDriver(new com.microsoft.sqlserver.jdbc.SQLServerDriver()); String url=jdbc:sqlserver://hostname; Connection

[android-developers] Re: sql connection

2009-08-22 Thread Mark Murphy
engin wrote: Hi I wrote java code that connects remote sql server. But code does not work in android. Code is as follows: try { DriverManager.registerDriver(new com.microsoft.sqlserver.jdbc.SQLServerDriver()); String url=jdbc:sqlserver://hostname; Connection

[android-developers] Re: Launch the WebBrowser with intent with a Button gives NullPointer Exception

2009-08-22 Thread Tobias Eisentraeger
Hello Mark, thanks for looking into that with me. The problem is the Button Object which does not get instantiated correctly, i guess this is what null is. i can let it crash now like this: theButtonBtn = (Button) findViewById(R.id.ButtonTheButton); Log.d(EditYourSettings,Before accessing ID);

[android-developers] Re: Launch the WebBrowser with intent with a Button gives NullPointer Exception

2009-08-22 Thread Mark Murphy
Tobias Eisentraeger wrote: Hello Mark, thanks for looking into that with me. The problem is the Button Object which does not get instantiated correctly, i guess this is what null is. i can let it crash now like this: theButtonBtn = (Button) findViewById(R.id.ButtonTheButton);

[android-developers] Re: Simple Java Question

2009-08-22 Thread Mark Murphy
Rud wrote: The is (maybe) a simple Java question but I can't find the anwer searching. The code is: final Formatter f = new Formatter(); for (Sentinel s : Sentinel.mSentinels) { if (s.mIsLive) { pos++; f.format(%4d%5d,

[android-developers] Simple Java Question

2009-08-22 Thread Rud
The is (maybe) a simple Java question but I can't find the anwer searching. The code is: final Formatter f = new Formatter(); for (Sentinel s : Sentinel.mSentinels) { if (s.mIsLive) { pos++; f.format(%4d%5d, s.mPos.x, s.mPos.y);

[android-developers] Is there a way to get icons for apps on the Market?

2009-08-22 Thread craiget
Just wondering if it is possible to get icons for applications on the Android Market? For example, if there is an application called com.mycompany.someapp, is there a way to programmatically grab an image (icon) for that application either through an Android API or by simply downloading it from

[android-developers] Re: Find long/lat distance X from current location

2009-08-22 Thread alexdonnini
Thanks all for the suggestions. Mark, I am well aware that there is an infinite number of points on the circle at distance X from a known location. To start with, for my application, my plan is to find 16-64 of the locations at distance X from my location. That should be sufficient. The problem

[android-developers] Re: out of memory error getWallpaper

2009-08-22 Thread sameer
Hi, I am getting the following logs when i am changing the wallpaper for Homescreen. Even i am recycling the bitmap is done when the wallpaper changes in OnWallpaperChanged(). Still i m getting the bellow error. 03-26 05:02:16.829: INFO/AC(1340): setWallpaper(InputStream 03-26 05:02:16.840:

[android-developers] wifi vs. ota...

2009-08-22 Thread sdphil
when making a connection for streaming content, what is the algorithm for when to use a wifi connection and when to use an ota connection? can you modify that algorithm? can you specify what type of connection to make? tia. --~--~-~--~~~---~--~~ You received

[android-developers] Re: Find long/lat distance X from current location

2009-08-22 Thread Mark Murphy
alexdonnini wrote: Mark, I am well aware that there is an infinite number of points on the circle at distance X from a known location. To start with, for my application, my plan is to find 16-64 of the locations at distance X from my location. That should be sufficient. OK, which 16-64?

[android-developers] RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.bit...@43895170

2009-08-22 Thread sameer
Hi, I am getting the following logs when i am changing the wallpaper for Homescreen. Even i am recycling the bitmap is done when the wallpaper changes in OnWallpaperChanged(). Still i m getting the bellow error. 03-26 05:02:16.829: INFO/AC(1340): setWallpaper(InputStream 03-26 05:02:16.840:

[android-developers] Re: Launch the WebBrowser with intent with a Button gives NullPointer Exception

2009-08-22 Thread Tobias Eisentraeger
Mark, That was it, i called findViewById() before calling setContentView() , thank you so much. Toby On Sat, Aug 22, 2009 at 11:02 AM, Mark Murphy mmur...@commonsware.comwrote: Tobias Eisentraeger wrote: Hello Mark, thanks for looking into that with me. The problem is the Button

[android-developers] Re: Find long/lat distance X from current location

2009-08-22 Thread alexdonnini
Thanks. I think I will use the parametric formulas for calculating the coordinates of points on a circle using increments of 1 degree. If that turns out to be too ambitious (because of the performance hit generated by the additional processing once I have calculated the 360 possible locations), I

[android-developers] Re: Find long/lat distance X from current location

2009-08-22 Thread Maps.Huge.Info (Maps API Guru)
This example using a Google map may be useful: (JavaScript) http://maps.huge.info/dragcircle2.htm -John Coryat --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Gallery thumbnail not updating after change of image

2009-08-22 Thread karthikr
Hi Guys, Im trying to write an application that does some changes to the image. But i can see that even after some changes are made to the image the thumbnail of the picture that is displayed in the gallery has not changed. But on opening the image im able ot see the edited picture. Any

[android-developers] Re: make adt failed with android source coe in unbuntu

2009-08-22 Thread Tejas
Have you downloaded/updated eclipse with pde and jdt ? btw: what source code are using master / cupcake ? On Aug 21, 12:07 am, 何斌斌 hbbs...@gmail.com wrote: hi :    I can make the whole android source code and sdk , but when I make adt, it failed . like this(my os is ubuntu 9.0 ) : ### TEST

[android-developers] Re: My app is getting killed while I launch an external intent

2009-08-22 Thread Dianne Hackborn
That is the normal behavior -- your app is in the background, not relevant to what the user is currently doing, so its process may be killed to use memory elsewhere. You deal with this by implementing onSaveInstanceState() to note anything to need to remember and collecting that from the state

[android-developers] How to ensure only one instance of GLSurfaceView/GLSurfaceView.Renderer?

2009-08-22 Thread Mike
Hello, i am using android.opengl.GLSurfaceView in my game, which is working well expect under one condition: Starting the game a second time after leaving it by pushing the home button, causes the game to flicker, because the rendering thread from the previous instance is still running and

[android-developers] Possible to query ContentResolver for People AND their Addresses?

2009-08-22 Thread bkbonner
I would like to have a view where I show the People and the Location where they are from in the List View. Is this possible? Or do I have to drill into each user to get their details? Brian --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: How to ensure only one instance of GLSurfaceView/GLSurfaceView.Renderer?

2009-08-22 Thread CraigsRace
I thought SurfaceHolder.Callback.surfaceDestroyed would be called. On Aug 23, 6:19 am, Mike internet...@hotmail.com wrote: Hello, i am using android.opengl.GLSurfaceView in my game, which is working well expect under one condition: Starting the game a second time after leaving it by pushing

[android-developers] Re: My emulator is running 100% CPU, it's annoying..

2009-08-22 Thread Dianne Hackborn
Okay, so something in the system itself is running a lot. adb shell top -t might be able to isolate that more (showing individual threads). On Sat, Aug 22, 2009 at 12:22 AM, jiaoni jiaoni5...@gmail.com wrote: Hi, Thanks for the replies. Here's my situation: 1. I am running emulator on

[android-developers] Re: My emulator is running 100% CPU, it's annoying..

2009-08-22 Thread GC
This is a known bug. I reported it back in June. A work around is provided by the Google developer in the bug thread. http://code.google.com/p/android/issues/detail?id=3099 On Aug 21, 2:57 am, jiaoni jiaoni5...@gmail.com wrote: Hi, Many times (not all the times), my emulator is running 100%

[android-developers] AudioEncoder to MP3

2009-08-22 Thread Nelson To
Hi, I just wonder if anyone happen to know how to use MediaRecorder to recorder the voice and save it as MP3 format. I try the following but nothing is working so far. mediarecorder.setAudioSource(MediaRecorder.AudioSource.MIC);

[android-developers] Re: adb

2009-08-22 Thread Roman ( T-Mobile USA)
Everything is possible ... But in the case to use adb over Wifi you have change both the adb toolkit and also the framework code. If you try to work on such complex changes make sure that you think about how to distinguish adb connections and eth1. I assume that you still want that Wifi works

[android-developers] Re: How to place an ImageView to a specific location on the screen ?

2009-08-22 Thread Emre A. Yavuz
Thanks Dan, Do you have any sample code ? Or a link for a tutorial ? Cheers, Emre Date: Fri, 21 Aug 2009 01:33:56 -0400 Subject: [android-developers] Re: How to place an ImageView to a specific location on the screen ? From: impact...@gmail.com To:

[android-developers] Re: How to ensure only one instance of GLSurfaceView/GLSurfaceView.Renderer?

2009-08-22 Thread Mike
Thanks for the hint. The problem was caused by an other thread in the game that did not shut down properly. On 22 Aug., 22:40, CraigsRace craig...@gmail.com wrote: I thought SurfaceHolder.Callback.surfaceDestroyed would be called. On Aug 23, 6:19 am, Mike internet...@hotmail.com wrote:

[android-developers] Screen rotation

2009-08-22 Thread kabir
Hi, I have an activity which I have defined to keep in portrait position. However I would still like to change things (slightly) when the screen is rotated, what is the best way of doing this? I notice onConfigurationChanged is still called, but this still reports portrait mode. I want to keep

[android-developers] catching out of memory errors

2009-08-22 Thread Bob
Hi, I am getting an outofmemory error (java.lang.outofmememoryerror) from a bitmapfactory that doesn't seem to be caught despite the fact that it is in a try{ }catch block. Can I catch this error somehow or is it outofmemory inherently uncatchable? Thanks, Bob

[android-developers] Re: Writing a Bitmap to a a outputstream

2009-08-22 Thread Streets Of Boston
I'm writing an app that needs to save a color-corrected full-sized (6 megapixels == 12MByte) to a file (since it can't be held in memory next to the original non-color-corrected bitmap): 'Original Bitmap' + 'ColorMatrix' -- 'Color-Corrected Bitmap in a file' I use getPixels to get an

[android-developers] Re: catching out of memory errors

2009-08-22 Thread Streets Of Boston
You can catch it. Just catch the OutOfMemoryError (or Throwable). On Aug 22, 7:45 pm, Bob bshumsk...@yahoo.com wrote: Hi, I am getting an outofmemory error (java.lang.outofmememoryerror) from a bitmapfactory that doesn't seem to be caught despite the fact that it is in a try{ }catch block.  

[android-developers] custom events

2009-08-22 Thread Josh
Is it possible to create and dispatch custom events in android? The only examples i have seen extend existing events. I want to be able to dispatch an event anywhere that I deem necesary. Thanks in advance for any help on this. --~--~-~--~~~---~--~~ You received

[android-developers] Re: ADB Emulator not loading

2009-08-22 Thread Jeff
I figured out that the cause of the problem is my ZoneAlarm firewall. Turning off the firewall enables the emulator to start up without any issues. Any ideas on what I need to enable in the firewall to allow the ADB emulator to work correctly? On Aug 18, 9:34 pm, Jeff skatalici...@gmail.com

[android-developers] Re: Simple Java Question

2009-08-22 Thread Rud
Rather wasteful on a platform like Android. Are there any other options other than Formatter? Rud On Aug 22, 10:28 am, Mark Murphy mmur...@commonsware.com wrote: Rud wrote: The is (maybe) a simple Java question but I can't find the anwer searching. The code is:         final

[android-developers] Re: custom events

2009-08-22 Thread Dianne Hackborn
I think first you'll need to define what you mean by an event, since Android doesn't have any such thing per-se. A broadcast? An activity start? A view hierarchy callback? A message receiver? Something else? On Sat, Aug 22, 2009 at 5:13 PM, Josh joshdo...@gmail.com wrote: Is it possible

[android-developers] Re: Screen rotation

2009-08-22 Thread Dianne Hackborn
All you can do is monitor the accelerometer yourself and decide for yourself when you consider the screen to be rotated. On Sat, Aug 22, 2009 at 3:27 PM, kabir kab...@gmail.com wrote: Hi, I have an activity which I have defined to keep in portrait position. However I would still like to

[android-developers] Re: RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.bit...@43895170

2009-08-22 Thread Dianne Hackborn
Since the error is that you are trying to draw a bitmap that has been recycled, then saying that you are even recycling a bitmap is possibly the problem right there. You'll just need to figure out where you are recycling this bitmap while it is still in use. And saying you are recycling the

[android-developers] Re: system privileges on emulator

2009-08-22 Thread Dianne Hackborn
If you are doing this, you are making your own device, so you can build your own system image to run in the emulator that is signed with your own platform cert. On Fri, Aug 21, 2009 at 4:02 AM, Asad Zia asad...@gmail.com wrote: Hi, There seems to be two levels of uses-permission, user level

[android-developers] Re: catching out of memory errors

2009-08-22 Thread Bob
Thanks for quick response. Is an OutOfMemoryError not a normal exception that will be caught by try{}catch(Exception ex){}? On Aug 22, 7:47 pm, Streets Of Boston flyingdutc...@gmail.com wrote: You can catch it. Just catch the OutOfMemoryError (or Throwable). On Aug 22, 7:45 pm, Bob

[android-developers] Re: custom events

2009-08-22 Thread Josh
I want to be able to dispatch an event and have a listener(a fuction) run when the event is fired. Much like the click event of a button. What i want to dospecifically is have a function run everytime the contents of a variable change. On Aug 22, 5:44 pm, Dianne Hackborn hack...@android.com

[android-developers] Re: map with compass like indicator

2009-08-22 Thread sleith
anyone can help? On Aug 21, 11:42 am, sleith raysle...@gmail.com wrote: hi, i'm trying to make a map with showing my location with an arrow that point to the way we are facing. the arraw image is something like this:  ^  0 always pointing north, so i rotate it with sensor orientation

[android-developers] Re: catching out of memory errors

2009-08-22 Thread Streets Of Boston
Nope. :=) If you look at the class-hierarchy, an OutOfMemoryError is an Error, not an Exception. (You can catch a Throwable as well, since a Throwable is the super- class of both Error and Exception) On Aug 22, 8:00 pm, Bob bshumsk...@yahoo.com wrote: Thanks for quick response.  Is an

[android-developers] Re: How to listen # or other

2009-08-22 Thread Balwinder Kaur (T-Mobile USA)
You can override the onKeyDown(int, android.view.KeyEvent) or onKeyUp (..) You can retrieve the KeyCode form the KeyEvent and print it. Balwinder Kaur Open Source Development Center ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in

[android-developers] Re: wifi vs. ota...

2009-08-22 Thread Roman ( T-Mobile USA)
What do you mean exactly with OTA? Current Android devices are supporting Wifi and 2G/3G data connections. When you are in a Wifi connection but lose the connection, your data connectivity is automatically switched to cellular data. When you entering a building with a know Wifi network, your

[android-developers] Re: How to listen # or other

2009-08-22 Thread SIDIBE ALI BROMA
Thinks brotherBut if you can developp small! Please if you can developp smal but i havenot understand 2009/8/23 Balwinder Kaur (T-Mobile USA) balwinder.k...@t-mobile.com You can override the onKeyDown(int, android.view.KeyEvent) or onKeyUp (..) You can retrieve the KeyCode form the

[android-developers] get area name using latitude and longitude

2009-08-22 Thread Honest
Hello, Can some one tell me how can i get area name by passing latitdue and longitude in android? Which api i will have to use. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to