[android-developers] Re: Emulator problem with GSM network

2011-03-09 Thread Brian Smith
Any movement on this? I am experiencing this exact same problem using Android 2.2 SDK rel 10. Setup is 64-bit quad core Ubuntu .recompiling Android with the above suggested fix now -- You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Re: Emulator problem with GSM network

2011-03-09 Thread Brian Smith
, especially as more development environments will become faster and running into this issue and fewer devices will need the 1.0/1.1 support? On Mar 8, 4:16 pm, Brian Smith unobri...@gmail.com wrote: Any movement on this?  I am experiencing this exact same problem using Android 2.2 SDK rel 10.  Setup

[android-developers] Re: Package installer crash in version 1.6

2009-10-09 Thread Brian Smith
No one else has published an update since the 1.6 release, then, that uses the sharedUserId manifest attribute? From the stack trace, that seems to be what triggered the bug. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] Package installer crash in version 1.6

2009-10-08 Thread Brian Smith
Is anyone else seeing a system crash and reboot when attempting to install an update for (aka re-install) an application in Android 1.6? I have an application that is triggering just that symptom and, according to the following exception trace recorded just before the crash, it seems related to

[android-developers] Re: ListView - keep item selected

2009-06-19 Thread Brian Smith
I could rattle off an explanation, but the folks at Google have already explained it better than I ever could... http://android-developers.blogspot.com/2008/12/touch-mode.html On Jun 19, 12:01 pm, Mark Wyszomierski mar...@gmail.com wrote: Hi, I have a ListView. When I click a row Item (which

[android-developers] Re: Search context with type-to-search?

2009-06-16 Thread Brian Smith
key handler in android.app.Activity should call onSearchRequested() in the first place for local searching, in case it's overridden. Oops :-) On May 1, 7:27 pm, Brian Smith avalo...@caerleon.us wrote: When implementing search in my application, I'm including some search context info depending

[android-developers] Re: Android WebView - handling orientation changes

2009-06-16 Thread Brian Smith
It has to reload the page every time, by default, because the default action for an activity dealing with a configuration (including orientation) change is for it to be destroyed and restarted. That can be overridden, though, by specifying an android:configChange attribute for the activity in

[android-developers] Re: How to save the view to image file ?

2009-06-16 Thread Brian Smith
Two questions... 1) (out of curiosity) What does the ability to take snapshots have to do with the ability to design a game for Android? Games usually put things on the screen, not the other way around. 2) Are you wanting to do this from your code, or just to have screenshots for

[android-developers] Re: weird rotation in CameraPreview

2009-06-11 Thread Brian Smith
That's what I'm seeing as well. There's an easy workaround, though... do the same thing that the Android Camera app does, and force the activity which contains the preview surface to landscape orientation. Hint: In the manifest file, the activity element supports the attribute

[android-developers] Re: weird rotation in CameraPreview

2009-06-11 Thread Brian Smith
You can get the final picture size and set the preview size using the Camera.Parameters object (getParameters/setParameters on the Camera object). If you implement the SurfaceHolder.Callback interface, as done in the API demo code, then you have the size of the preview surface as well. I don't

[android-developers] Re: weird rotation in CameraPreview

2009-06-11 Thread Brian Smith
No problem :-) Out of curiosity, how was the preview image oriented on the preview surface? Was it centered, or anchored to the left or right side? On Jun 11, 9:12 pm, jia liu jpokeco...@gmail.com wrote: I see, you are definitely right Brian. Now it works fine with right ratio. Thank you so

[android-developers] Re: How to Implement the Compass function to my application?

2009-06-08 Thread Brian Smith
Indeed :-) It's come in very handy for me as far as getting a grasp on Android's architecture, as well as getting ideas for doing certain things with it. On Jun 8, 11:46 am, Georgy georgearna...@gmail.com wrote: btw Brian the code in that book is REALLY good I just embedded the compass.. I

[android-developers] Re: How to Implement the Compass function to my application?

2009-06-05 Thread Brian Smith
You're trying to get the distance and bearing from the start point to the end point? If so, then you don't need to work with the compass hardware... unless you later want to use it to help the user navigate to the point. The Location class (in android.location) can be used compute those two

[android-developers] Re: Detecting hardware capabilities

2009-06-05 Thread Brian Smith
I'm guessing I'm not the only one who's stumped by this? That's comforting. --~--~-~--~~~---~--~~ 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] Re: How to Implement the Compass function to my application?

2009-06-05 Thread Brian Smith
It's an object method, not a standalone function, so it would look like this (assuming start and end are Location objects): float res = start.distanceTo(end); As for an example of using SensorManager and SensorListener, I don't have anything handy, but there is an example in the API demos:

[android-developers] Re: MapView Draggable Objects

2009-06-04 Thread Brian Smith
It looks like it, yes. It also looks like a custom overlay that the developer wrote in order to make that work. Looking at the docs for the maps library, I don't see any overlay classes for doing that sort of thing, but you can always extend the base Overlay class and roll your own. That class

[android-developers] Detecting hardware capabilities

2009-06-03 Thread Brian Smith
There are return values and such that allow handling if SensorManager sensors and location providers aren't available, but what about the camera and microphone for audio recording? Is there a way to detect those in software, or are we just to assume that every device running Android (even the

[android-developers] Resources.getDrawable() returning empty bitmap

2009-05-24 Thread Brian Smith
I'm working on adding a map view to an app of mine, and so far I've successfully gotten the MapView itself to work. I'm trying to add an overlay now, and I'm having problems loading the bitmap resources to do that. Here is the code snippet that does the loading, in the activity's onCreate:

[android-developers] Re: Resources.getDrawable() returning empty bitmap

2009-05-24 Thread Brian Smith
I stand corrected. It's not Resources.getDrawable() that's broken, regardless of the deceptive object properties in the debugger. What's broken is Overlay.drawAt(). That one, at least, I can live without. --~--~-~--~~~---~--~~ You received this message because

[android-developers] Search context with type-to-search?

2009-05-01 Thread Brian Smith
When implementing search in my application, I'm including some search context info depending on the activity where search is invoked. In one of those, I'd like to implement type-to-search as well, but the standard method of adding search context info doesn't work in that case... the

[android-developers] Re: Cross process cursor using AbstractWindowedCursor

2009-04-25 Thread Brian Smith
Never mind... I found a way to do it that 1) avoids messing around with custom cursors across process boundaries and 2) is likely more efficient anyway for large numbers of exported records. Setup: - Add export flag to table containing potentially exported records At export time: - Set export

[android-developers] Cross process cursor using AbstractWindowedCursor

2009-04-22 Thread Brian Smith
I know that the MatrixCursor and SQLiteCursor classes work across processes, but has anyone tried implementing a cross-process cursor based directly on AbstractWindowedCursor? The situation is that I'm working on an app with pluggable import/ export functions for its database, using a content

[android-developers] Re: How to add radiobuttons in menu structure

2009-03-28 Thread Brian Smith
The key is to use group/item elements, not RadioGroup/RadioButton, as documented here: http://developer.android.com/guide/topics/resources/available-resources.html#menus Wrapping the radio button menu items in a group, giving that group an ID, and setting its checkableBehavior attribute to

[android-developers] another round of emulator DNS problems

2009-02-12 Thread Brian Smith
Greetings, I cannot get the android emulator v1.7 on Windows XP to resolve DNS hostnames I know this is an oft-visited topic on these forums, but after reading the threads I have not found resolution. I am running the emulator on Windows XP, on a notebook with a disconnected ethernet interface