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

2011-03-09 Thread Brian Smith
I have recompiled with the above fix to turn off the legacy support
option.  This has solved our issue.  What is the problem with
accepting this change?  We definitely verified that this issue is more
prevalent on our Quad Core boxes than Dual Core.

Do you still need to support 1.0 or 1.1, 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  wrote:
> 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.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[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.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[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
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 the fact that I use the sharedUserId
attribute in my manifest file...

10-07 13:47:30.567: ERROR/AndroidRuntime(619): Uncaught handler:
thread
PackageManager exiting due to uncaught exception
10-07 13:47:30.567: ERROR/AndroidRuntime(619): *** EXCEPTION IN SYSTEM
PROCESS.  System will crash.
10-07 13:47:30.637: ERROR/AndroidRuntime(619):
java.lang.NullPointerException
10-07 13:47:30.637: ERROR/AndroidRuntime(619): at
com.android.server.PackageManagerService
$Settings.updateSharedUserPermsLP(PackageManagerService.java:6051)
10-07 13:47:30.637: ERROR/AndroidRuntime(619): at
com.android.server.PackageManagerService$Settings.access$1700
(PackageManagerService.java:5651)
10-07 13:47:30.637: ERROR/AndroidRuntime(619): at
com.android.server.PackageManagerService.removePackageDataLI
(PackageManagerService.java:4223)
10-07 13:47:30.637: ERROR/AndroidRuntime(619): at
com.android.server.PackageManagerService.deleteInstalledPackageLI
(PackageManagerService.java:4327)
10-07 13:47:30.637: ERROR/AndroidRuntime(619): at
com.android.server.PackageManagerService.deletePackageLI
(PackageManagerService.java:4383)
10-07 13:47:30.637: ERROR/AndroidRuntime(619): at
com.android.server.PackageManagerService.replaceNonSystemPackageLI
(PackageManagerService.java:3591)
10-07 13:47:30.637: ERROR/AndroidRuntime(619): at
com.android.server.PackageManagerService.replacePackageLI
(PackageManagerService.java:3568)
10-07 13:47:30.637: ERROR/AndroidRuntime(619): at
com.android.server.PackageManagerService.installPackageLI
(PackageManagerService.java:3941)
10-07 13:47:30.637: ERROR/AndroidRuntime(619): at
com.android.server.PackageManagerService.access$1500
(PackageManagerService.java:104)
10-07 13:47:30.637: ERROR/AndroidRuntime(619): at
com.android.server.PackageManagerService$5.run
(PackageManagerService.java:3444)
10-07 13:47:30.637: ERROR/AndroidRuntime(619): at
android.os.Handler.handleCallback(Handler.java:587)
10-07 13:47:30.637: ERROR/AndroidRuntime(619): at
android.os.Handler.dispatchMessage(Handler.java:92)
10-07 13:47:30.637: ERROR/AndroidRuntime(619): at
android.os.Looper.loop(Looper.java:123)
10-07 13:47:30.637: ERROR/AndroidRuntime(619): at
android.os.HandlerThread.run(HandlerThread.java:60)

The only workaround that I've found is to uninstall the old version
and install the new one, but that isn't acceptable as it wipes out app
settings and data (it's a database app, so that's kind of important,
and it breaks usability of the Android Market upgrade system).  For
the record, I'm testing with an ADP1, flashed with HTC's 1.6 recovery
image.  The app is currently targeting the 1.1 SDK, but I plan to move
it soon to either 1.5 or 1.6.  There don't seem to be any 1.6
compatibility issues when the app actually runs.

I've submitted it as issue #4165 in the bug tracker, but at this point
I'm starting to wonder if I'm the only one seeing this, and if I've
somehow missed something in my use of the shared user/process name
attributes.
--~--~-~--~~~---~--~~
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 to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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  wrote:
> Hi,
>
> I have a ListView. When I click a row Item (which are just TextView
> instances) I want them to remain hilighted (default orange color). The
> default behavior is that they flash orange.
>
> Strangely, if I use the key pad (arrow up/down) to move between items,
> it has the exact behavior I want. Why is the logic different between
> using the keypad or with finger tapping?
>
> 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@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 advertising/publishing?

I don't know how to do it from code, but the Android SDK does provide
a way to take screenshots from an emulator or connected device.

http://developer.android.com/guide/developing/tools/ddms.html

If you're using Eclipse for Android development, the DDMS functions
are available in the DDMS context (assuming you've installed the
Android plugin).

On Jun 16, 2:28 am, Alan  wrote:
> Hi all,
>
>     When I design a game, I have a problem.
>     How to save the "View" display on the screen to a image file such
> as png,jpg file
>     Whether android API is support to this function?
>
>     If no API support to this save function, how to design my
> program ?
>
>     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@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 your manifest file.  My uses of WebView so far
don't involve any forms where keyboard input would be required, so
I've been able to specify "orientation|keyboardHidden" for that
attribute without having to do anything special with config change
notifications.  The WebView widget handles re-wrapping text and images
based on view size.

On Jun 16, 1:26 pm, Glenn  wrote:
> Hi,
>
> Just started working with the webview. The issue is performance
> following rotation. The WebView has to reload the page, which can be a
> bit tedious.
>
> What's the best of of handling an orientation change without reloading
> the page from source each time?
>
> Thanks
>
> Glenn
--~--~-~--~~~---~--~~
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 to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



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

2009-06-16 Thread Brian Smith

Figured this one out... along with overriding onSearchRequested(), I'm
also overriding startSearch() and inserting the required app data in
the 2 activities where I need it if it's not there and local search is
specified.  It may be redundant but, at the same time, logic suggests
that the default 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  wrote:
> 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 onSearchRequested() method in the activity is never
> called.
>
> Is there any way to include search context info in a type-to-search
> invocation, or am I stuck with only the Search key and menu option?
--~--~-~--~~~---~--~~
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 to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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  wrote:
> I see, you are definitely right Brian. Now it works fine with right ratio.
> Thank you so much! :)

--~--~-~--~~~---~--~~
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 to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 know what will happen with the preview image
if it's smaller than the preview surface (centered, left justified,
etc.), but it is possible to make the preview image have the same
aspect ratio as the final image (read: not stretched) with just a
little bit of math.

On Jun 11, 7:29 pm, jia liu  wrote:
> Thanks for all your hints. :) It is very helpful! I already tried to use
> android:screenOrientation="landscape" in the activity tab and the rotation
> problem solved but still stretched. Now I am looking for a way to make it
> not stretched.

--~--~-~--~~~---~--~~
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 to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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  element supports the
attribute android:screenOrientation.
--~--~-~--~~~---~--~~
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 to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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  wrote:
> btw Brian the code in that book is REALLY good I just embedded the
> compass.. I wish I had the book to understand what are those two
> spheres animating in the center..

--~--~-~--~~~---~--~~
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 to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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:
http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/apis/os/Sensors.html

If you're looking for a compass display, a good example of that is in
the Professional Android Application Development book from Wrox.  It
has both simple and complex compass examples to get ideas from.  I
don't think Android has any stock widgets for that kind of thing.

--~--~-~--~~~---~--~~
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 to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



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

2009-06-05 Thread Brian Smith

It's still a 2-step process, using classes from 2 completely different
packages.

1) android.location.Location to compute distance and angle from start
to end point... unless you want to implement the math yourself

2) SensorManager and SensorListener (in android.hardware) to determine
current orientation of phone

You will also want to use android.hardware.GeomagneticField to find
the magnetic declination for the user's current location (or at least
a point that's close to it).  The orientation sensor uses magnetic
north, as far as I know, and I believe the math in Location probably
uses true north.  The difference can be a lot or a little depending on
where you are.

On Jun 5, 11:02 am, Georgy  wrote:
> yeah I need to bring up the compass to tell the user where EXACTLY is
> the destination when the user is close.

--~--~-~--~~~---~--~~
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 to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 values.  It doesn't deal with GeoPoint objects, but
converting the coordinates is very easy.

On Jun 5, 9:42 am, Georgy  wrote:
> how can I implement the Compass function having 2 geopoints (start and
> destination)?

--~--~-~--~~~---~--~~
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 to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 gives you methods that you can override for
drawing and handling touch events, and you can get a Projection object
from the map view in your version of draw() in order to translate lat/
lon to screen coords for the current view.

On Jun 4, 4:55 pm, Alexander Davis  wrote:
> Yup, thats the maps API, not what im looking for. What i'm talking
> about is successfully implemented in Locale; I know its possible.
> Thats a mapview, right? Must be, right?

--~--~-~--~~~---~--~~
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 to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 rumored set-top box) is going to have a camera and
microphone and try to use them?

In the case of the camera, it would seem that Camera.open() returning
null would indicate the lack of hardware.  I don't know if that
assumption is valid or not, though, considering it isn't documented as
such.

In the case of the microphone, though, I don't see anything that could
possibly be checked.  The same goes for the camera if you're wanting
to do video with the MediaRecorder class.
--~--~-~--~~~---~--~~
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 to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 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 to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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:
Resources res = getResources();
mCacheSym = res.getDrawable(R.drawable.symb_cache);
mFoundSym = res.getDrawable(R.drawable.symb_found);
mWptSym = res.getDrawable(R.drawable.symb_wpt);

(the m*Sym variables are all Drawable type)

The getDrawable calls seem to successfully return a BitmapDrawable,
but it's an empty bitmap... the height and width in the object are -1
and all 4 numbers in the bounds rectangle are 0.  The images are all
28x28 8-bit PNG, but I don't think that's the issue as I tried
replacing one of the IDs with an image I'm already using for a menu
item and it did the same thing.

Any ideas?
--~--~-~--~~~---~--~~
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 to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 onSearchRequested() method in the activity is never
called.

Is there any way to include search context info in a type-to-search
invocation, or am I stuck with only the Search key and menu option?
--~--~-~--~~~---~--~~
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 to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 flag to 0 for all records
- Set export flag to 1 for records matching export selection criteria
- SQLite trigger (also added during setup) sets export flag to 2 for
related records
- Export query selects those records with a non-zero export flag

If the user opts to not export related records, I simply skip the
whole updating of the export flag and use the original export
selection criteria in the export query.
--~--~-~--~~~---~--~~
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 to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 provider to
abstract the database part of that.  In the case of exporting, a query
is made against a special data transfer URI, and the resulting SQL
query takes the desired fields from the plugin and selection criteria
based on user settings in the app to build the SQL statement.
Normally, I could just do the query and return the SQLiteCursor object
that I get, but I also want to implement an option to export records
that may not be included in the selection criteria but are related to
those that are.  In the Windows Mobile version of the app, I built an
export list before actually running the export plugin, but in the
interest of efficiency I'm trying to do that as part of the database
abstraction here.

I don't know SQL well enough to know if there is a way to do all of
that in the one SQL statement, so I started thinking of a way to use
AbstractWindowedCursor with an internal SQLiteCursor to handle it...
the only way I could really do it that way would be to enforce moving
through the cursor only from start to finish, but since this mechanism
is intended for exporting to files it didn't sound like that would be
unreasonable.  Since the SQLiteCursor class is built on top of AWC,
and seems to merely move things around using CursorWindow objects and
that base code, it seems like that would work.

I could try it when I get to that point, but if it doesn't work I'll
have to scrap quite a bit of work and go back to the drawing board.
If someone else has already done it and it works as a cross-platform
cursor, or if it doesn't, then finding that out early would be a lot
easier.

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@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 "single" gives you
radio buttons.  Yes, I know the documentation says that setting that
attribute to "all" gives you that behavior, but it appears to be
backwards... according to testing with the emulator in SDK 1.1r1 and
firmware 1.0 on the dev phone, "single" gives radio buttons and "all"
gives checkboxes.

--~--~-~--~~~---~--~~
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 to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[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 and a connected WiFi interface. My
network is behind a router at 192.168.1.1, which provides DNS to
machines on my network, according to the settings given to it by my
ISP. I am not overriding anything in my hosts file.

I have tried specifying "-dns-server 192.168.1.1" to the emulator, but
it complains that it cannot resolve that hostname and will use the
default.

I have tried specifying a DNS server on the Internet via "-dns-server
tasty.cornbread.com". The emulator again complained that it could not
resolve the DNS server.

I have tried disabling my unconnected NICs. This did not help.

I have tried specifying -verbose to the emulator to see what it is
using for DNS, but I didn't see anything in its output regarding DNS
(except the suspicious ndns=1).

No other application that I use on this machine has any problems with
DNS. I have run out of ideas.

Thanks for any help you may have.
-brian

Here is the output of my configurations:
C:\export\android-sdk-windows-1.0_r2\tools>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : ODIN
Primary Dns Suffix  . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter Wireless Network Connection:

Connection-specific DNS Suffix  . :
Description . . . . . . . . . . . : Intel(R) PRO/Wireless
3945ABG Networ
k Connection
Physical Address. . . . . . . . . : 00-13-02-47-A8-74
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 192.168.1.3
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DHCP Server . . . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.1
Lease Obtained. . . . . . . . . . : Thursday, February 12,
2009 4:15:38
PM
Lease Expires . . . . . . . . . . : Friday, February 13, 2009
4:15:38 PM


Ethernet adapter Local Area Connection:

Media State . . . . . . . . . . . : Media disconnected
Description . . . . . . . . . . . : Broadcom 440x 10/100
Integrated Cont
roller
Physical Address. . . . . . . . . : 00-15-60-C2-D5-16

C:\export\android-sdk-windows-1.0_r2\tools>emulator -verbose
emulator: autoconfig: -system C:\export\android-sdk-
windows-1.0_r2\tools/lib/ima
ges/
emulator: autoconfig: -datadir C:\Documents and Settings\brian\Local
Settings\Ap
plication Data\Android\SDK-1.0
emulator: autoconfig: -kernel C:\export\android-sdk-
windows-1.0_r2\tools/lib/ima
ges/\kernel-qemu
emulator: autoconfig: -ramdisk C:\export\android-sdk-
windows-1.0_r2\tools/lib/im
ages/\ramdisk.img
emulator: autoconfig: -image C:\export\android-sdk-
windows-1.0_r2\tools/lib/imag
es/\system.img
emulator: autoconfig: -initdata C:\export\android-sdk-
windows-1.0_r2\tools/lib/i
mages/\userdata.img
emulator: autoconfig: -skindir C:\export\android-sdk-
windows-1.0_r2\tools/lib/im
ages/\skins
emulator: autoconfig: -sdcard C:\Documents and Settings\brian\Local
Settings\App
lication Data\Android\SDK-1.0\sdcard.img
emulator: autoconfig: -data C:\Documents and Settings\brian\Local
Settings\Appli
cation Data\Android\SDK-1.0\userdata.img
emulator: autoconfig: -data C:\Documents and Settings\brian\Local
Settings\Appli
cation Data\Android\SDK-1.0\userdata-qemu.img
emulator: parsing built-in skin layout file (size=7714)
emulator: skin network speed: 'full'
emulator: skin network delay: 'none'
emulator: argv[00] = "emulator"
emulator: argv[01] = "-kernel"
emulator: argv[02] = "C:\export\android-sdk-windows-1.0_r2\tools/lib/
images/\ker
nel-qemu"
emulator: argv[03] = "-initrd"
emulator: argv[04] = "C:\export\android-sdk-windows-1.0_r2\tools/lib/
images/\ram
disk.img"
emulator: argv[05] = "-nand"
emulator: argv[06] = "system,size=0x420,initfile=C:\export\android-
sdk-windo
ws-1.0_r2\tools/lib/images/\system.img"
emulator: argv[07] = "-nand"
emulator: argv[08] = "userdata,size=0x420,file=C:\Documents and
Settings\bri
an\Local Settings\Application Data\Android\SDK-1.0\userdata-qemu.img"
emulator: argv[09] = "-nand"
emulator: argv[10] = "cache,size=0x420"
emulator: argv[11] = "-serial"
emulator: argv[12] = "android-kmsg"
emulator: argv[13] = "-serial"
emulator: argv[14] = "android-qemud"
emulator: argv[15] = "-append"
emulator: argv[16] = "qemu=1 console=ttyS0 android.checkjni=1
android.qemud=ttyS
1 android.ndns=1"
emulator: mapping 'system' NAND image to C:\DOCUME~1\brian
\LOCALS~1\Temp\\Androi
dEmulator\TMP3B.tmp
emulator: mapping 'cache' NAND image to C:\DOCUME~1\brian\LOCALS~1\Temp
\\And