[android-developers] Re: Nesting an ActivityGroup as atTab content

2009-10-12 Thread Huebi

I almost don't dare to write it but I want to implement iPhone like
navigation behaviour where you can have nested navigation within a
tab. For UI consistency reasons I wanted the tabs to be still visible
as the new screen is specific to the one tab. I think I will leave
that now knowing that Nested ActivityGroups are not supported.

Thanks

On 12 Okt., 02:54, Dianne Hackborn hack...@android.com wrote:
 I'm not sure exactly what you are trying to do, but you can't use one
 ActivityGroup inside of another.  We currently only support one level of
 nesting (one top-level activity, usually containing tabs, with each child
 activity a leaf, not a group).

 On Sun, Oct 11, 2009 at 1:07 PM, Huebi konrad.hueb...@googlemail.comwrote:







  Hi,

  I have a tab bar and within one tab want to implement an activity flow
  (without leaving the tab screen). I tried to get this up with an
  ActivityGroup and it partly works, but certain commands like the
  onCreateOptionsMenu must be dispatched to the ActivityGroup child
  activity manually. The main issue is that showDialog() in my child
  activity of the ActivityGroup fails with the following exception:

  10-11 19:38:26.061: ERROR/AndroidRuntime(1371):
  android.view.WindowManager$BadTokenException: Unable to add window --
  token android.app.localactivitymanager$localactivityrec...@437b19d8 is
  not valid; is your activity running?
  10-11 19:38:26.061: ERROR/AndroidRuntime(1371):     at
  android.view.ViewRoot.setView(ViewRoot.java:456)
  10-11 19:38:26.061: ERROR/AndroidRuntime(1371):     at
  android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177)
  10-11 19:38:26.061: ERROR/AndroidRuntime(1371):     at
  android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
  10-11 19:38:26.061: ERROR/AndroidRuntime(1371):     at
  android.view.Window$LocalWindowManager.addView(Window.java:409)
  10-11 19:38:26.061: ERROR/AndroidRuntime(1371):     at
  android.app.Dialog.show(Dialog.java:238)
  10-11 19:38:26.061: ERROR/AndroidRuntime(1371):     at
  android.app.Activity.showDialog(Activity.java:2413)

  Any idea on how I can get the child activities fully working? I expect
  this to happen with more of the built-in activity methods and there is
  not much documentation for the ActivityGroup.

  Thanks!

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.
--~--~-~--~~~---~--~~
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: Nesting an ActivityGroup as atTab content

2009-10-12 Thread Huebi

True but one is a Map and the other a list and I don't want to
implement all the control code again. Simpler cases can be done
through views for sure

On 12 Okt., 18:43, Mark Murphy mmur...@commonsware.com wrote:
 Huebi wrote:
  I almost don't dare to write it but I want to implement iPhone like
  navigation behaviour where you can have nested navigation within a
  tab. For UI consistency reasons I wanted the tabs to be still visible
  as the new screen is specific to the one tab. I think I will leave
  that now knowing that Nested ActivityGroups are not supported.

 Bear in mind that the contents of tabs do not have to be activities. In
 fact, I *still* don't know a solid reason to use activities for tabs.

 Make the contents of your tabs be views, and update those views as
 needed for your nested navigation.

 --
 Mark Murphy (a Commons 
 Guy)http://commonsware.com|http://twitter.com/commonsguy

 Android Development Wiki:http://wiki.andmob.org
--~--~-~--~~~---~--~~
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: Nesting an ActivityGroup as atTab content

2009-10-12 Thread Huebi

yes, the list activity handling is not that hard to implement - maybe
I do this. I was just wondering why the easy way to plug two existing
activities into an ActivityGroup was not working, but that has been
answered. Thanks :)

On 12 Okt., 19:24, Dianne Hackborn hack...@android.com wrote:
 If you mean implementing ListActivty, what it does is trivial.

 On Mon, Oct 12, 2009 at 10:04 AM, Huebi konrad.hueb...@googlemail.comwrote:







  True but one is a Map and the other a list and I don't want to
  implement all the control code again. Simpler cases can be done
  through views for sure

  On 12 Okt., 18:43, Mark Murphy mmur...@commonsware.com wrote:
   Huebi wrote:
I almost don't dare to write it but I want to implement iPhone like
navigation behaviour where you can have nested navigation within a
tab. For UI consistency reasons I wanted the tabs to be still visible
as the new screen is specific to the one tab. I think I will leave
that now knowing that Nested ActivityGroups are not supported.

   Bear in mind that the contents of tabs do not have to be activities. In
   fact, I *still* don't know a solid reason to use activities for tabs.

   Make the contents of your tabs be views, and update those views as
   needed for your nested navigation.

   --
   Mark Murphy (a Commons Guy)http://commonsware.com|
 http://twitter.com/commonsguy

   Android Development Wiki:http://wiki.andmob.org

 --
 Dianne Hackborn
 Android framework engineer
 hack...@android.com

 Note: please don't send private questions to me, as I don't have time to
 provide private support, and so won't reply to such e-mails.  All such
 questions should be posted on public forums, where I and others can see and
 answer them.
--~--~-~--~~~---~--~~
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] Nesting an ActivityGroup as atTab content

2009-10-11 Thread Huebi

Hi,

I have a tab bar and within one tab want to implement an activity flow
(without leaving the tab screen). I tried to get this up with an
ActivityGroup and it partly works, but certain commands like the
onCreateOptionsMenu must be dispatched to the ActivityGroup child
activity manually. The main issue is that showDialog() in my child
activity of the ActivityGroup fails with the following exception:

10-11 19:38:26.061: ERROR/AndroidRuntime(1371):
android.view.WindowManager$BadTokenException: Unable to add window --
token android.app.localactivitymanager$localactivityrec...@437b19d8 is
not valid; is your activity running?
10-11 19:38:26.061: ERROR/AndroidRuntime(1371): at
android.view.ViewRoot.setView(ViewRoot.java:456)
10-11 19:38:26.061: ERROR/AndroidRuntime(1371): at
android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177)
10-11 19:38:26.061: ERROR/AndroidRuntime(1371): at
android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
10-11 19:38:26.061: ERROR/AndroidRuntime(1371): at
android.view.Window$LocalWindowManager.addView(Window.java:409)
10-11 19:38:26.061: ERROR/AndroidRuntime(1371): at
android.app.Dialog.show(Dialog.java:238)
10-11 19:38:26.061: ERROR/AndroidRuntime(1371): at
android.app.Activity.showDialog(Activity.java:2413)

Any idea on how I can get the child activities fully working? I expect
this to happen with more of the built-in activity methods and there is
not much documentation for the ActivityGroup.

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: Think twice before turning on the Copy Protection option! -- there's a serious bug in Market

2009-04-25 Thread Huebi

I just hit the same issue and cannot disable copy protection any more.
And the description in the Market is not exactly long enough to
provide all the required information... :(
In my case, the _new_ SQLite Database fails. There has never been one
before in our app and still it breaks:

04-25 00:01:48.860: ERROR/AndroidRuntime(247): Caused by:
android.database.sqlite.SQLiteException: unable to open database file
04-25 00:01:48.860: ERROR/AndroidRuntime(247): at
android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
04-25 00:01:48.860: ERROR/AndroidRuntime(247): at
android.database.sqlite.SQLiteDatabase.init(SQLiteDatabase.java:
1421)
04-25 00:01:48.860: ERROR/AndroidRuntime(247): at
android.database.sqlite.SQLiteDatabase.openDatabase
(SQLiteDatabase.java:537)
04-25 00:01:48.860: ERROR/AndroidRuntime(247): at
android.database.sqlite.SQLiteDatabase.openOrCreateDatabase
(SQLiteDatabase.java:558)
04-25 00:01:48.860: ERROR/AndroidRuntime(247): at
android.database.sqlite.SQLiteDatabase.openOrCreateDatabase
(SQLiteDatabase.java:551)
04-25 00:01:48.860: ERROR/AndroidRuntime(247): at
android.app.ApplicationContext.openOrCreateDatabase
(ApplicationContext.java:427)
04-25 00:01:48.860: ERROR/AndroidRuntime(247): at
android.content.ContextWrapper.openOrCreateDatabase
(ContextWrapper.java:181)
04-25 00:01:48.860: ERROR/AndroidRuntime(247): at
android.database.sqlite.SQLiteOpenHelper.getWritableDatabase
(SQLiteOpenHelper.java:98)
04-25 00:01:48.860: ERROR/AndroidRuntime(247): at
com.cab4me.android.db.Cab4MeDbManager.getFavorites
(Cab4MeDbManager.java:93)
04-25 00:01:48.860: ERROR/AndroidRuntime(247): at
com.cab4me.android.Cab4MeFavActivity.onResume(Cab4MeFavActivity.java:
47)
04-25 00:01:48.860: ERROR/AndroidRuntime(247): at
android.app.Instrumentation.callActivityOnResume(Instrumentation.java:
1224)
04-25 00:01:48.860: ERROR/AndroidRuntime(247): at
android.app.Activity.performResume(Activity.java:3359)
04-25 00:01:48.860: ERROR/AndroidRuntime(247): at
android.app.ActivityThread.performResumeActivity(ActivityThread.java:
2492)


On 2 Mrz., 09:13, csvy sou...@gmail.com wrote:
 I just had the same issue happen to my application.  I decided to
 disable Copy Protection after reading how useless it was, and now
 everyone is getting Force Quit errors on Activities with a WebView!!!
 I have turned Copy Protection back on and added a note to the
 description saying to uninstall then reinstall.  Is this the
 appropriate course of action?  I can't believe this hasn't been fixed
 yet! (or at least put a warning in the Market Developer Console). :(

 On Feb 27, 6:31 am, wayne mcfadden- Red Droid

 waynemcfad...@gmail.com wrote:
  I'm also having this problem. I have a couple of apps using copy
  protection though and this is the first one that has run into this
  problem.  I first tried to upload my app via firefox and forgot that
  that that interface is broken and has been broken for the past 2-3
  weeks. So I switched to Safari and finished the upload from there.
  I'm wondering if this is only a regional problem, the few emails that
  I've gotten are googlemail accounts which are England and Germany I
  think.  Have you found that? Or any work arounds?  Looks like turning
  off copy protection is a bad idea?

  Wayne

  On Feb 26, 12:42 am, mac gr...@czesla.de wrote:

   That will be the same for my application. I startet with copy
   protection in the first version. After some people were not able 
   todownloadthe application (another bug with some APN?) I switched off
   copy protection. Now I get crash reports that I can not understand
   after an upgrade. Uninstall and reinstall works. And I got plenty of 1
   star ratings for that. Arg

   Mirko

   On 23 Feb., 00:50, N4Spd robert.c...@gmail.com wrote:

I'm been tracking down this exact issue with my app and it matches
what focuser describes.
I turned on copy protection on a free app.  People started getting
crashes.

The app starts with a help activity containing a webview.
This web view is now throwing an exception trying to access a sqlite
webview.db database on it's own thread and crashing.
In addition, this help activity only starts up if there are no
settings but even upgrades are getting this activity now.

It problem extends to other android APIs as well because if I avoid
the webview, it still crashes in other APIs.

In summary, if you change copy protection for your app:

1. user preferences will be wiped
2. webview willcrash
3. other APIs willcrash

Removing copy protection does not help because now I've got some users
with and without copy protection and changes in either direction
causes the problem.  Argh...

rob

On Feb 22, 9:55 am, focuser linto...@gmail.com wrote:

 confirmed. If you first install an apk unlocked, and then install a
 locked one, you will get that sqlite exception.  also, the old
 

[android-developers] Re: Can't upload my app in the market ! Market requires the minSdkVersion to be set in AndroidManifest.xml.

2009-04-25 Thread Huebi

which is nice because even the new (I know, it is a pre-release, but
stull) Eclipse plugin does not put this as the first line...
Thanks for those who fought until it worked :)

On 25 Apr., 07:30, 6real xirgon...@gmail.com wrote:
 Yes it works :
 uses-sdk android:minSdkVersion=2 / as first manifest child.

 THX !!!

 On 25 avr, 04:22, clark clarkd...@gmail.com wrote:

  Mark,

  You're right, I was very unclear there.  I apologize as well.

  So it seems the solution so far is to put uses-sdk
  android:minSdkVersion=1 /, or whatever minSdkVersion you need,
  right under 
  manifesthttp://groups.google.com/group/android-developers/browse_frm/thread/9...

  Worked for me.

  ~clark

  On Apr 24, 6:29 pm, Mark Murphy mmur...@commonsware.com wrote:

   clark wrote:
My comment about being kept in the dark was regarding not being told
of the market dependency.  I was well aware of that setting and that
it was suppose to be optional, but looks like the optional part went
out the door along with not being able to directly turn GPS on and off
anymore.

   That wasn't clear from your original message. I apologize for my 
   confusion.

   --
   Mark Murphy (a Commons 
   Guy)http://commonsware.com|http://twitter.com/commonsguy

   Android App Developer Books:http://commonsware.com/books.html
--~--~-~--~~~---~--~~
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: Think twice before turning on the Copy Protection option! -- there's a serious bug in Market

2009-04-25 Thread Huebi

I just hit the same issue and cannot disable copy protection any
more.
And the description in the Market is not exactly long enough to
provide all the required information... :(
In my case, the _new_ SQLite Database fails. There has never been one
before in our app and still it breaks:


04-25 00:01:48.860: ERROR/AndroidRuntime(247): Caused by:
android.database.sqlite.SQLiteException: unable to open database file
04-25 00:01:48.860: ERROR/AndroidRuntime(247): at
android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
04-25 00:01:48.860: ERROR/AndroidRuntime(247): at
android.database.sqlite.SQLiteDatabase.init(SQLiteDatabase.java:
1421)
04-25 00:01:48.860: ERROR/AndroidRuntime(247): at
android.database.sqlite.SQLiteDatabase.openDatabase
(SQLiteDatabase.java:537)
04-25 00:01:48.860: ERROR/AndroidRuntime(247): at
android.database.sqlite.SQLiteDatabase.openOrCreateDatabase
(SQLiteDatabase.java:558)
04-25 00:01:48.860: ERROR/AndroidRuntime(247): at
android.database.sqlite.SQLiteDatabase.openOrCreateDatabase
(SQLiteDatabase.java:551)
04-25 00:01:48.860: ERROR/AndroidRuntime(247): at
android.app.ApplicationContext.openOrCreateDatabase
(ApplicationContext.java:427)
04-25 00:01:48.860: ERROR/AndroidRuntime(247): at
android.content.ContextWrapper.openOrCreateDatabase
(ContextWrapper.java:181)
04-25 00:01:48.860: ERROR/AndroidRuntime(247): at
android.database.sqlite.SQLiteOpenHelper.getWritableDatabase
(SQLiteOpenHelper.java:98)


On 2 Mrz., 09:13, csvy sou...@gmail.com wrote:
 I just had the same issue happen to my application.  I decided to
 disableCopyProtectionafter reading how useless it was, and now
 everyone is getting Force Quit errors on Activities with a WebView!!!
 I have turnedCopyProtectionback on and added a note to the
 description saying to uninstall then reinstall.  Is this the
 appropriate course of action?  I can't believe this hasn't been fixed
 yet! (or at least put a warning in the Market Developer Console). :(

 On Feb 27, 6:31 am, wayne mcfadden- Red Droid

 waynemcfad...@gmail.com wrote:
  I'm also having this problem. I have a couple of apps usingcopy
 protectionthough and this is the first one that has run into this
  problem.  I first tried to upload my app via firefox and forgot that
  that that interface is broken and has been broken for the past 2-3
  weeks. So I switched to Safari and finished the upload from there.
  I'm wondering if this is only a regional problem, the few emails that
  I've gotten are googlemail accounts which are England and Germany I
  think.  Have you found that? Or any work arounds?  Looks like turning
  offcopyprotectionis a bad idea?

  Wayne

  On Feb 26, 12:42 am, mac gr...@czesla.de wrote:

   That will be the same for my application. I startet withcopy
  protectionin the first version. After some people were not able 
  todownloadthe application (another bug with some APN?) I switched off
  copyprotection. Now I get crash reports that I can not understand
   after an upgrade. Uninstall and reinstall works. And I got plenty of 1
   star ratings for that. Arg

   Mirko

   On 23 Feb., 00:50, N4Spd robert.c...@gmail.com wrote:

I'm been tracking down this exact issue with my app and it matches
what focuser describes.
I turned oncopyprotectionon a free app.  People started getting
crashes.

The app starts with a help activity containing a webview.
This web view is now throwing an exception trying to access a sqlite
webview.db database on it's own thread and crashing.
In addition, this help activity only starts up if there are no
settings but even upgrades are getting this activity now.

It problem extends to other android APIs as well because if I avoid
the webview, it still crashes in other APIs.

In summary, if you changecopyprotectionfor your app:

1. user preferences will be wiped
2. webview willcrash
3. other APIs willcrash

Removingcopyprotectiondoes not help because now I've got some users
with and withoutcopyprotectionand changes in either direction
causes the problem.  Argh...

rob

On Feb 22, 9:55 am, focuser linto...@gmail.com wrote:

 confirmed. If you first install an apk unlocked, and then install a
 locked one, you will get that sqlite exception.  also, the old
 preferences seems to be deletedafterthe locked apk is installed.

 Another thing is, even installed locked from scratch (uninstall and
 adb install -l), there are some problems with resources.  Our app
 displays an HTML page when it starts, but now I get Web page not
 available:file:///android_asset/welcome.html   This works fine
 if it's installed unlocked.
 This might explain the resource problem that I had before?

 On Feb 22, 9:18 am, Carter ccjerni...@gmail.com wrote:

  I can confirm that there is a bug with the forward locking on the
  Android Market.  The problem I've experienced is that users 
  

[android-developers] AutoCompleteTextView and Theme.Light

2009-04-23 Thread Huebi

Hi, if I use an AutoCompleteTextView and the Theme.Light, I cannot see
the text in the dropdown-box as the font is changed to white and the
background of the dropdown is white as well. Any help on how to change
the font color of the dropdown list?
--~--~-~--~~~---~--~~
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] Uninstall / Signature problem on G1 device

2009-04-19 Thread Huebi

Hi,

I installed a development version of an app on my G1 with 1.1 firmware
build TMI-RC9 128600 running through adb. I then tried to uninstall it
with adb and install a newer version for which I used a different
signature. This has always worked but now even after uninstalling I
get a signature error when trying to install the app again
(INSTALL_FAILED_UPDATE_INCOMPATIBLE). Does the device store signatures
now somewhere even after uninstall? This would be a bit annoying for
development purposes. Any information on this and how to get rid of
the old installation?

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] Geocoder not returning results in 1.5 preview

2009-04-16 Thread Huebi

I do not get any results from the Geocoder in the 1.5 preview release.
Any information on this? In the maps application it works but my calls
simply return an empty list (no exception, all permissions I know of
(in this case only Internet) are set.

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: Problem with ItemizedOverlay

2009-01-20 Thread Huebi

Thanks, but it is not the populate method(), I call this. The
exception occurs strangely from time to time with the Overlay working
perfectly before.

On 18 Jan., 15:40, Miroslav Slobodnik miroslav.slobod...@gmail.com
wrote:
 I think that you forget to call populate() method. You can call it for
 example in the constructor.

 On Jan 18, 12:08 pm, Huebi konrad.hueb...@googlemail.com wrote:

  Hi,

  I use the ItemizedOverlay to display POIs. From time to time I get the
  following exception:

  01-18 01:53:39.102: ERROR/AndroidRuntime(2348):
  java.lang.ArrayIndexOutOfBoundsException
  01-18 01:53:39.102: ERROR/AndroidRuntime(2348):     at
  com.google.android.maps.ItemizedOverlay.getIndexToDraw
  (ItemizedOverlay.java:203)
  01-18 01:53:39.102: ERROR/AndroidRuntime(2348):     at
  com.google.android.maps.ItemizedOverlay.draw(ItemizedOverlay.java:232)
  01-18 01:53:39.102: ERROR/AndroidRuntime(2348):     at
  com.google.android.maps.Overlay.draw(Overlay.java:175)
  01-18 01:53:39.102: ERROR/AndroidRuntime(2348):     at
  com.google.android.maps.OverlayBundle.draw(OverlayBundle.java:42)
  01-18 01:53:39.102: ERROR/AndroidRuntime(2348):     at
  com.google.android.maps.MapView.onDraw(MapView.java:450)

  As the POIs are reloaded, I have to replace the Overlays. I create a
  new ItemizedOverlay and set it to the overlays List of the MapView
  within a synchronized block. In addition, the getOverlays() method is
  supposed to return a synchronized List. But somehow this still is
  messed up. Any ideas?

  Cheers
  Huebi


--~--~-~--~~~---~--~~
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] Problem with ItemizedOverlay

2009-01-18 Thread Huebi

Hi,

I use the ItemizedOverlay to display POIs. From time to time I get the
following exception:

01-18 01:53:39.102: ERROR/AndroidRuntime(2348):
java.lang.ArrayIndexOutOfBoundsException
01-18 01:53:39.102: ERROR/AndroidRuntime(2348): at
com.google.android.maps.ItemizedOverlay.getIndexToDraw
(ItemizedOverlay.java:203)
01-18 01:53:39.102: ERROR/AndroidRuntime(2348): at
com.google.android.maps.ItemizedOverlay.draw(ItemizedOverlay.java:232)
01-18 01:53:39.102: ERROR/AndroidRuntime(2348): at
com.google.android.maps.Overlay.draw(Overlay.java:175)
01-18 01:53:39.102: ERROR/AndroidRuntime(2348): at
com.google.android.maps.OverlayBundle.draw(OverlayBundle.java:42)
01-18 01:53:39.102: ERROR/AndroidRuntime(2348): at
com.google.android.maps.MapView.onDraw(MapView.java:450)

As the POIs are reloaded, I have to replace the Overlays. I create a
new ItemizedOverlay and set it to the overlays List of the MapView
within a synchronized block. In addition, the getOverlays() method is
supposed to return a synchronized List. But somehow this still is
messed up. Any ideas?

Cheers
Huebi
--~--~-~--~~~---~--~~
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: unknown socket error -1

2008-12-01 Thread Huebi

You need to add the INTERNET permission to your app in the Manifest.
That should solve the issue

On 1 Dez., 15:27, sal [EMAIL PROTECTED] wrote:
 1. Can anyone point me to simple TCP client/server program on
 android ??

 2. Whenever i try to create socket with port and IPaddress i get
 IOException which points to a SocketException which gives a message
 unknown socket error -1 , it would be nice if someone could tell the
 root cause for this problem. i guess this is something to do with TCP
 settings of emulator.

 3. Do we need to have any configuration changes to Emulator or
 androidmanifest.xml file to eliminate this problem ?

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



[android-developers] strange Geocoder response locale

2008-11-28 Thread Huebi

I just had a funny change in behaviour from the Geocoder. So far, I
have used the Geocoder without providing a Locale. I expect it to use
the default system locale, which seemed to be English so far on the
G1. Now, all of a sudden, the results I get when performing a reverse
geocoding request in Munich / Germany, I get monaco di bavaria as
the city name which is Italian. As I am in Germany and the G1 is on
English, I wonder why I get an Italian result...

@ Google: Has anything changed on the server side of the Geocoder
which we are not aware of?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Querys involving more than one table of Contatcs Content Provider

2008-11-24 Thread Huebi

I'd like to get a Cursor for all contacts in the My Contacts group.
I could not figure out how to do this with the ContentProvider. As far
as I understood the table structure, I need to use the GroupMembership
table, the Groups table (to get the ID of the My Contacts group and
the People table to actually retrieve the contact data. Has anyone
successfully solved this task?

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



[android-developers] Why do many data classes not implement Serializable

2008-11-23 Thread Huebi

I was wondering why data classes like Address or GeoPoint do not
implement Serializable but only Parcelable. I'd like to store these
into a file which does not seem to be possible. I can use Preferences
instead, making it a data container, which is surely not what it is
intended to be used for. So any reasons why Serializable is not
implemented?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] how to use TouchDelegate

2008-11-17 Thread Huebi

I have tried to use the TouchDelegate class but couldn't figure out
how to really do it. It is terribly documented. Has anyone succeeded
with it? I want to extend the touchable region of a small button. If
you do it programatically you need bounds but in onCreate and onResume
the position and bounds are not available.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: MapView and SDK 1.0

2008-10-25 Thread Huebi

You need a valid Map API key by now. Read here:
http://android-developers.blogspot.com/2008/10/new-android-maps-api-terms-of-service.html
on how to get it.

On Oct 25, 9:39 am, Nanard [EMAIL PROTECTED] wrote:
 Hi,

 I am learning how to use Google Map in an application.

 I have founded several example with SDK 0.5  0.9, but not with 1.0.
 It seems there where some changes...

 I have a connection error :

 [2008-10-25 09:26:07 - ddmlib]Une connexion établie a été abandonnée
 par un logiciel de votre ordinateur hôte
 java.io.IOException: Une connexion établie a été abandonnée par un
 logiciel de votre ordinateur hôte
         at sun.nio.ch.SocketDispatcher.write0(Native Method)
         at sun.nio.ch.SocketDispatcher.write(Unknown Source)
         at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source)
         at sun.nio.ch.IOUtil.write(Unknown Source)

 Even if I disable (Allow All) my firewall.

 In my Manifest I have added :
         uses-library android:name=com.google.android.maps /
         uses-permission xmlns:android=http://schemas.android.com/apk/
 res/android android:name=android.permission.INTERNET/uses-
 permission
                 uses-permission 
 xmlns:android=http://schemas.android.com/apk/res/
 android android:name=android.permission.ACCESS_COARSE_LOCATION/
 uses-permission

 My screen is :
 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
     android:orientation=vertical
     android:layout_width=fill_parent
     android:layout_height=fill_parent
     

         com.google.android.maps.MapView  android:apiKey=bogus
         android:layout_width=fill_parent
     android:layout_height=fill_parent /

 /LinearLayout

 In My code I only have :
 public class GlocationMap extends MapActivity  implements
 LocationListener {

 ...
  super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
 ...

 Is there somewhere a full  simple working example displaying a Google
 Map with SDK 1.0 ?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: If you have G1, can you check this for me?

2008-10-19 Thread Huebi

The iPhone doesn't ask as always-on internet access is one of the key
features. This is the same for Android so I would not expect any kind
of popup. You probably can allow it to roam or not but that's it. The
emulator control allows you to play with all these settings (data
connection available / not available / roaming etc). Just rely on what
happens in the emulator, that should do it.

On Oct 19, 11:21 am, denismo [EMAIL PROTECTED] wrote:
 Hi,

 I just need to quickly check simple behavior: when connection doesn't
 have GPRS enabled yet (typically, after switching off/on), and you go
 online (open browser and browse google.com), does it show a popup
 dialog asking user if he wants to allow a program to access internet?

 For comparison, typical mobile phone (like Nokia) would ask user
 before initiating so called data connection through GPRS. I'm trying
 to find out whether the same will be with Android phones.

 Thanks.

 Denis
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] screen orientation values in Display class

2008-09-20 Thread Huebi

There are several classes where int values for screen orientations are
available (Configuration, ActivityInfo). Unfortunately, none matches
the values returned from the Display.getOrientation() method and there
is no documentation on the returned values. I can take the ints and
compare to them but using some kind of static variable from the API
would be more secure. Is there a place where the values returned by
this method are defined?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] getFromLocation not returning street names

2008-09-07 Thread Huebi

I am just wondering why the Geocoder does not return street names if I
do reverse geocoding. Will that be added somewhen? Will it be
available in the final version used on the phones?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How do I get the user's phone number?

2008-08-19 Thread Huebi

You need the permission READ_PHONE_STATE, then use
TelephonyManager.getDefault() to get hold of the TelephonyManager. On
the returned instance call mgr.getLine1Number() and there it is :)

Cheers
-Huebi

On 19 Aug., 07:30, j [EMAIL PROTECTED] wrote:
 How do I get the user's phone number in 0.9 beta SDK?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---