Scarlett Johansson Shirt Ri

2008-09-08 Thread edaleysummerton

I hope that wasn't a new shirt!
http://realvideo.freehostia.com?id=32742
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cam 
Couples group.
To post to this group, send email to Cam-Couples@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/Cam-Couples
-~--~~~~--~~--~--~---



[android-developers] Change color of RatingBar stars

2008-09-08 Thread Christian Wiesbauer
Hello, 
 
is it possible to change the color of the stars of a RatingBar? I also want
to change the style of the borders if it’s possible.
 
Thanks,
Christian Wiesbauer 
 

--~--~-~--~~~---~--~~
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: Downloading any file using browser.

2008-09-08 Thread otiasj

Hello,
Does anyone know how to actually download the file?

If I do what you say, I can launch an activity when I click on a
certain link in the browser,
but the file does not start downloading in the download manager.
I can get the url through getIntent().getData(), but I wonder if there
is anyway to get the file from the download manager. (maybe using a
contentProvider?)

Thank you

On 4 sep, 18:12, szeldon [EMAIL PROTECTED] wrote:
 Hi,

 Currently I'm working on a program that needs to download files using
 defaultbrowser, saving them somewhere (it may be a mobile/emulator or
 SD card on one of them) and then using my program with them. It would
 be great if my program could react on specific filetype opened by abrowser, 
 but if that's not possible, I'd at least like save to them.
 Opening could be done in my application.

--~--~-~--~~~---~--~~
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: Downloading any file using browser.

2008-09-08 Thread otiasj

Hello,

Does anyone now how to actually download the file?

Right now when I click on the file of a certain type, my activity
launches correctly
and I get the url using getIntent().getData()
But is there a way to use the download manager? (through a
contentProvider for example)

Thank you



On 4 sep, 21:29, szeldon [EMAIL PROTECTED] wrote:
 Thanks. It really works. Knowledge +1

 On Sep 4, 1:28 pm, Peli [EMAIL PROTECTED] wrote:

  You could write an intent filter in the following way:

         activity android:name=.MyActivity android:label=@string/
  app_name
              intent-filter
                  action android:name=android.intent.action.VIEW /
                  category
  android:name=android.intent.category.DEFAULT /
                  category
  android:name=android.intent.category.BROWSABLE /
                  data android:scheme=http /
                  data android:mimeType=?/
             /intent-filter
          /activity

  Here you have to replace ? by the mime-type you intend to
  handle. Then your activity will be called by thebrowser, and you can
  use getIntent() 
  (http://code.google.com/android/reference/android/app/Activity.html#ge...()
  ) to get more information about the intent.

  Peliwww.openintents.org

  On Sep 4, 11:12 am, szeldon [EMAIL PROTECTED] wrote:

   Hi,

   Currently I'm working on a program that needs to download files using
   defaultbrowser, saving them somewhere (it may be a mobile/emulator or
   SD card on one of them) and then using my program with them. It would
   be great if my program could react on specific filetype opened by a
  browser, but if that's not possible, I'd at least like save to them.
   Opening could be done in my application.

--~--~-~--~~~---~--~~
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: Problem with sensors

2008-09-08 Thread max

Thanks very much, but I won't need the SensorSimulator.

I just wanted to check if I did anything wrong or this is actually a
design change: The sensors in the emulator used to return default
values, which was more useful in some cases.

On Sep 7, 11:42 pm, Peli [EMAIL PROTECTED] wrote:
 The Android emulator is currently set up so that it returns that no
 sensors are available.
 (you can check this with the SensorsManager method getSensors() which
 returns 0).

 One way to simulate sensors on Android is to use the OpenIntents
 SensorSimulator:

 http://www.openintents.org/en/node/6http://www.openintents.org/en/download

 This can simulate orientation, accelerometer, and compass sensors,
 (even the temperature sensor), through the same API that Android uses.
 One only needs to replace the system's SensorManager by the
 OpenIntents SensorManager. Please have a look at the samples provided
 with the download there (OpenGLSensors and ApiDemosSensors) to see how
 to set things up.

 Let me know if you have further questions.

 Peliwww.openintents.org

 On 7 Sep., 15:30, max [EMAIL PROTECTED] wrote:

  I'm trying to access the sensors under the new 0.9 SDK. But I just
  don't get it to work. I distilled the essential code from the API
  demos, but registerListener() always returns false and I get this on
  logcat: W/SensorService(   46): could not enable sensor 1. This is
  the code:

  public class TestActivity extends Activity {

      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          mSensorManager =
  (SensorManager)getSystemService(Context.SENSOR_SERVICE);
          setContentView(R.layout.main);
      }

      @Override
      protected void onResume()
      {
          super.onResume();
          mSensorManager.registerListener(mListener,
  SensorManager.SENSOR_ORIENTATION, SensorManager.SENSOR_DELAY_GAME);
      }

      @Override
      protected void onStop()
      {
          mSensorManager.unregisterListener(mListener);
          super.onStop();
      }

      private SensorManager mSensorManager;
      private final SensorListener mListener = new SensorListener() {
          public void onSensorChanged(int sensor, float[] values) {
                  Log.i(*,SENSOR CHANGED);
          }
      };

  }- Zitierten Text ausblenden -

  - Zitierten Text anzeigen -
--~--~-~--~~~---~--~~
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: Problem with sensors

2008-09-08 Thread Peli

 Thanks very much, but I won't need the SensorSimulator.

Shhh... even if you won't need it, in this public forum you should
say: Wow! This SensorSimulator looks so cool! I have to try it
out! :-)

Peli
www.openintents.org


 I just wanted to check if I did anything wrong or this is actually a
 design change: The sensors in the emulator used to return default
 values, which was more useful in some cases.

 On Sep 7, 11:42 pm, Peli [EMAIL PROTECTED] wrote:



  The Android emulator is currently set up so that it returns that no
  sensors are available.
  (you can check this with the SensorsManager method getSensors() which
  returns 0).

  One way to simulate sensors on Android is to use the OpenIntents
  SensorSimulator:

 http://www.openintents.org/en/node/6http://www.openintents.org/en/dow...

  This can simulate orientation, accelerometer, and compass sensors,
  (even the temperature sensor), through the same API that Android uses.
  One only needs to replace the system's SensorManager by the
  OpenIntents SensorManager. Please have a look at the samples provided
  with the download there (OpenGLSensors and ApiDemosSensors) to see how
  to set things up.

  Let me know if you have further questions.

  Peliwww.openintents.org

  On 7 Sep., 15:30, max [EMAIL PROTECTED] wrote:

   I'm trying to access the sensors under the new 0.9 SDK. But I just
   don't get it to work. I distilled the essential code from the API
   demos, but registerListener() always returns false and I get this on
   logcat: W/SensorService(   46): could not enable sensor 1. This is
   the code:

   public class TestActivity extends Activity {

       @Override
       public void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
           mSensorManager =
   (SensorManager)getSystemService(Context.SENSOR_SERVICE);
           setContentView(R.layout.main);
       }

       @Override
       protected void onResume()
       {
           super.onResume();
           mSensorManager.registerListener(mListener,
   SensorManager.SENSOR_ORIENTATION, SensorManager.SENSOR_DELAY_GAME);
       }

       @Override
       protected void onStop()
       {
           mSensorManager.unregisterListener(mListener);
           super.onStop();
       }

       private SensorManager mSensorManager;
       private final SensorListener mListener = new SensorListener() {
           public void onSensorChanged(int sensor, float[] values) {
                   Log.i(*,SENSOR CHANGED);
           }
       };

   }- Zitierten Text ausblenden -

   - Zitierten Text anzeigen -- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -
--~--~-~--~~~---~--~~
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] Open Browser from application with POST data attached.

2008-09-08 Thread Baran

Hi,

Any idea about how we can open a web browser through our android
appoication with POST data attached to the requested uri.

I am able to open a web page on the browser from the application using
the Intent feature, but now I am wondering if this is possible to have
POST data attached to the requested uri.

Thanks in advance!!
--~--~-~--~~~---~--~~
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: Android SoftKeyboard Released(Both English and Chinese Input) !

2008-09-08 Thread Wesley
hi Mr Power,

isit open sources

:)

have a nice day...

Wesley...

On Mon, Sep 8, 2008 at 10:28 AM, PowerGUI [EMAIL PROTECTED] wrote:


 I have not handwriting recognition code in hand,that needs third party
 support.
 If somebody has such library,I can integrated it with the
 softkeyboard.

 Best Regards
 PowerGUI
 --
 Android DotPhone Team
 http://www.dotphone.org/english/
 http://groups.google.com/group/android-dotphone

 On 9月7日, 上午3时23分, Eric [EMAIL PROTECTED] wrote:
  Nice work.
  Going to support character recognition next?
 
  Eric
  Portable Electronics Ltdwww.hdmp4.com
 
  On Sep 7, 1:09 am, PowerGUI [EMAIL PROTECTED] wrote:
 
   Dear Androiders,
 I am glad to release the Android SoftKeyboard,support both
   English and Chinese input use SoftKeyboard. If you have android
   dotphone development evaluation or other android hardware which
   supports touchscreen, it is also for you.   :D
 here is the steps:
1)please download the TestSoftKeyboard.tgz and SoftKey.apk
2)adb install SoftKey.apk
3)extract the TestSoftKeyboard.tgz,you can compile it.then
   generate
   TestSoftKeyboard.apk (or TestSoftKeyboad-debug.apk)
4)adb install TestSoftKeyboard.apk (a compiled
   TestSoftkeyboard.apk is ready,please checkt it)
5)when the window of TestSoftKeyboard.apk appears,then click the
   edittext area(need click two times,bugs in android?), popup the
   SoftKeyboard windows,input anythings as you like.
6)click ok or cancel to return your window
7)TestSoftKeyboard is just a samples,you can use the same rule to
   make your program to support input method.
 
 the screenshot ,related program and TestSoftKeyboard Source code
   is avaiable at:
 1)http://www.dotphone.org/english
 2)http://groups.google.com/group/android-dotphone
 
   Any feedbacks is appreciate.
 
   Best Regards
   Android DotPhone Teamhttp://www.dotphone.org/english/
 


--~--~-~--~~~---~--~~
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: MediaRecord Audio - working example? / raw data stream onPictureTaken()? / Bug in Pictures application?

2008-09-08 Thread code_android_festival_way

I got a problem with the audio recording. I am able to record audio
and play the recorded file with the music app.

This looks like this:

http://img.skitch.com/20080908-m5yaiyqh7jugcub5p5pmmna2ee.jpg

You can see that the meta information is available. But the only point
where the audio file shows up is in the recently added music playlist.
In the artist or album section I cant find anything.

Now I'm restarting the emulator and get the following result in the
music app:

http://img.skitch.com/20080908-825exr6mcqt82dm2idkwpwa7xh.jpg

You can see that the recorded file is showing up now in the Artist
column but without the meta information. I am able to play the file
which looks like this:

http://img.skitch.com/20080908-jsgf8yghnkdg8241rsqyweje78.jpg

But even there the meta information is lost.

Here is my code for adding the values:

http://paste.pocoo.org/show/fMHzaLRCwEG49qAkpvYh/

Here is my code for recording:

http://paste.pocoo.org/show/P6UWFE2rtj0qIB1dh9vQ/

So I dont really know what I'm doing wrong here.

I'm really looking forward getting some kind of help from you.

Regards!



09-08 11:09:29.035: ERROR/MediaPlayerService(25): Couldn't open fd for
content://media/external/audio/media/33

On 2 Sep., 22:35, code_android_festival_way
[EMAIL PROTECTED] wrote:
 Thank you very much for offering the sample code.

 On 2 Sep., 22:16, Megha Joshi [EMAIL PROTECTED] wrote:

   Please refer to theaudioRecording sample code at the link below:
   http://groups.google.com/group/android-developers/files

  2008/8/31 code_android_festival_way [EMAIL PROTECTED]

   Did you get theAudiorecording managed right now?

   I'm getting the same error again after adding all the fields. It would
   be pretty nice to have a working example. Because from the docs I
   can't decide which fields are required and which are just optional.

   Regards!

   On 28 Aug., 07:16, Reto Meier [EMAIL PROTECTED] wrote:
Hi Justin,
  I've tried explicitly including the display name (and artist and
album) into the new ContentValue but still end up with exactly the
same error on the ContentResolver.insert call.

On Aug 27, 10:56 pm, Justin (Google Employee) [EMAIL PROTECTED]
wrote:

  Error:

  08-24 19:27:18.675: ERROR/Database(178): Error inserting
   title=Content
  Creation No.5 date_added=1219598838 _display_name= album_id=2
  title_key=  -  E  C  O  1  C  O     -
  K  1  )  O  9  E  C     C  E  „   artist_id=3 using INSERT INTO
  audio_meta(title, date_added, _display_name, album_id, title_key,
  artist_id) VALUES(?, ?, ?, ?, ?, ?);

 From the error it jumps out at me that you're not setting
 MediaStore.Audio.Media.DISPLAY_NAME, which seems like its required.
 Also, are you setting the ALBUM_ID and ARTIST_ID somehow or are they
 encoded in the URI you're using?

 Cheers,
 Justin
 Android Team @ Google

 On Aug 24, 3:20 pm, code_android_festival_way

 [EMAIL PROTECTED] wrote:
  I've got two questions.

  1)
  Is there a working example for recordingaudiowith the
   MediaRecorder?
  At the moment I'm using the following setup but it doesnt work:

 http://paste.pocoo.org/show/83242/

  Error:

  08-24 19:27:18.675: ERROR/Database(178): Error inserting
   title=Content
  Creation No.5 date_added=1219598838 _display_name= album_id=2
  title_key=  -  E  C  O  1  C  O     -
  K  1  )  O  9  E  C     C  E  „   artist_id=3 using INSERT INTO
  audio_meta(title, date_added, _display_name, album_id, title_key,
  artist_id) VALUES(?, ?, ?, ?, ?, ?);

  I've tried the example provided in the docs (Media API) but that
  doesn't work at all. It would be nice if someone could provide a
  working example.

  2)
  Is it normal that the raw data stream returned by 
  onPictureTaken(...)
  is null?

  3)

  I'm taking pictures as above mentioned. After that I'm saving the
  available jpeg stream into the image ContentProvider which works
   fine.
  Now I'm leaving my app and try to start the Pictures application
  from the home screen. And now I get the following error message:

 http://img.skitch.com/20080824-mrbc7yuhfh7an5ynndj9hm6twp.jpg

  Here is the error from the logs:

  08-25 00:15:34.007: ERROR/AndroidRuntime(220):
  java.lang.RuntimeException: Unable to resume activity
  {com.android.camera/com.android.camera.GalleryPicker}:
  java.lang.NullPointerException

  I can savely say that I'm calling camera.stopPreview() and
  camera.release() so there shouldn't be a problem with the camera.
   What
  else could be wrong?

  Here is the part where I'm saving my jpeg byte[] into the
  ContentProvider:

 http://paste.pocoo.org/show/83246/

  Regards!


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post

[android-developers] Re: Downloading any file using browser.

2008-09-08 Thread hackbod

The download manager was already used for you, to download the content
and had it to you.  You can now open the file, read it, and copy it to
wherever you want.  (Files stored in the download provider are only
temporary.)

On Sep 7, 10:40 pm, otiasj [EMAIL PROTECTED] wrote:
 Hello,

 Does anyone now how to actually download the file?

 Right now when I click on the file of a certain type, my activity
 launches correctly
 and I get the url using getIntent().getData()
 But is there a way to use the download manager? (through a
 contentProvider for example)

 Thank you

 On 4 sep, 21:29, szeldon [EMAIL PROTECTED] wrote:

  Thanks. It really works. Knowledge +1

  On Sep 4, 1:28 pm, Peli [EMAIL PROTECTED] wrote:

   You could write an intent filter in the following way:

          activity android:name=.MyActivity android:label=@string/
   app_name
               intent-filter
                   action android:name=android.intent.action.VIEW /
                   category
   android:name=android.intent.category.DEFAULT /
                   category
   android:name=android.intent.category.BROWSABLE /
                   data android:scheme=http /
                   data android:mimeType=?/
              /intent-filter
           /activity

   Here you have to replace ? by the mime-type you intend to
   handle. Then your activity will be called by thebrowser, and you can
   use getIntent() 
   (http://code.google.com/android/reference/android/app/Activity.html#ge...()
   ) to get more information about the intent.

   Peliwww.openintents.org

   On Sep 4, 11:12 am, szeldon [EMAIL PROTECTED] wrote:

Hi,

Currently I'm working on a program that needs to download files using
defaultbrowser, saving them somewhere (it may be a mobile/emulator or
SD card on one of them) and then using my program with them. It would
be great if my program could react on specific filetype opened by a
   browser, but if that's not possible, I'd at least like save to them.
Opening could be done in my application.
--~--~-~--~~~---~--~~
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: Problem with sensors

2008-09-08 Thread max

It's probably really cool from what I've heard. We use a similar
application of our own, so I haven't tried yours yet. But it looks
like you did a great job there.

On Sep 8, 9:44 am, Peli [EMAIL PROTECTED] wrote:
  Thanks very much, but I won't need the SensorSimulator.

 Shhh... even if you won't need it, in this public forum you should
 say: Wow! This SensorSimulator looks so cool! I have to try it
 out! :-)

 Peliwww.openintents.org



  I just wanted to check if I did anything wrong or this is actually a
  design change: The sensors in the emulator used to return default
  values, which was more useful in some cases.

  On Sep 7, 11:42 pm, Peli [EMAIL PROTECTED] wrote:

   The Android emulator is currently set up so that it returns that no
   sensors are available.
   (you can check this with the SensorsManager method getSensors() which
   returns 0).

   One way to simulate sensors on Android is to use the OpenIntents
   SensorSimulator:

  http://www.openintents.org/en/node/6http://www.openintents.org/en/dow...

   This can simulate orientation, accelerometer, and compass sensors,
   (even the temperature sensor), through the same API that Android uses.
   One only needs to replace the system's SensorManager by the
   OpenIntents SensorManager. Please have a look at the samples provided
   with the download there (OpenGLSensors and ApiDemosSensors) to see how
   to set things up.

   Let me know if you have further questions.

   Peliwww.openintents.org

   On 7 Sep., 15:30, max [EMAIL PROTECTED] wrote:

I'm trying to access the sensors under the new 0.9 SDK. But I just
don't get it to work. I distilled the essential code from the API
demos, but registerListener() always returns false and I get this on
logcat: W/SensorService(   46): could not enable sensor 1. This is
the code:

public class TestActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        mSensorManager =
(SensorManager)getSystemService(Context.SENSOR_SERVICE);
        setContentView(R.layout.main);
    }

    @Override
    protected void onResume()
    {
        super.onResume();
        mSensorManager.registerListener(mListener,
SensorManager.SENSOR_ORIENTATION, SensorManager.SENSOR_DELAY_GAME);
    }

    @Override
    protected void onStop()
    {
        mSensorManager.unregisterListener(mListener);
        super.onStop();
    }

    private SensorManager mSensorManager;
    private final SensorListener mListener = new SensorListener() {
        public void onSensorChanged(int sensor, float[] values) {
                Log.i(*,SENSOR CHANGED);
        }
    };

}- Zitierten Text ausblenden -

- Zitierten Text anzeigen -- Zitierten Text ausblenden -

  - Zitierten Text anzeigen -
--~--~-~--~~~---~--~~
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] logcat issue

2008-09-08 Thread sudheer

Hello
I am trying to develop an application which will try to extract the
logs generated by system when it is executed. I try to use the exec
command to start logcat at the start of my program and later want to
collect the log messages generated during the application execution.
when I tried using the command 'logcat -d -f filepath',  an empty file
is created in the specified filepath . Is there any way for me to
redirect the logs generated by application into a file in the android
file system?
how should I go about this?

Thanks in advance,
Sudheer

--~--~-~--~~~---~--~~
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] Context menu in MapView in android 0.9

2008-09-08 Thread [EMAIL PROTECTED]

Hello,

I would like to handle touch events in the MapView and to show a
context menu when the user keeps clicking on the map for a long time.
I am not able to show the context menu. Moreover the only listener
that gets called is the OnTouchListener, I am writing a
LongClickListener but it never gets called.
I have just used the standard MapView without extending it.
I also

Strange thing is that isLongClickable() method returns true but the
long click seems not to be called.

Am I missing something? Do I need to extends the MapView to catch the
OnLongClick event?

Please help!

Thanks a lot

Stefano


--~--~-~--~~~---~--~~
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: logcat issue

2008-09-08 Thread hackbod

You must hold the DUMP permission to read the logs:

http://code.google.com/android/reference/android/Manifest.permission.html#DUMP

On Sep 8, 2:13 am, sudheer [EMAIL PROTECTED] wrote:
 Hello
 I am trying to develop an application which will try to extract the
 logs generated by system when it is executed. I try to use the exec
 command to start logcat at the start of my program and later want to
 collect the log messages generated during the application execution.
 when I tried using the command 'logcat -d -f filepath',  an empty file
 is created in the specified filepath . Is there any way for me to
 redirect the logs generated by application into a file in the android
 file system?
 how should I go about this?

 Thanks in advance,
 Sudheer
--~--~-~--~~~---~--~~
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 to display a local file in the browser?

2008-09-08 Thread friedger

I am also confused.
Megha mentioned ContentResolver.openContentURI. That API function
doesn't seem to exist in 0.9

So could someone please enlight us and give a short example or eplain
what to do in order to load a file via content provider?

Thanks,
Friedger

On 7 Sep., 16:38, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Nothing to do.
 I wrote a ContentProvider returning a cursor pointing to a database
 record having '_id' and '_data' columns filled (the last one contains
 a full path to the file, as remarked on the documentation, in case of
 binary data).
 Passing url 'content://polito.mailandroid/1' to WebView method
 loadUrl, it notifies that there's no supported file.
--~--~-~--~~~---~--~~
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] Form with background translucent or transparent, how???

2008-09-08 Thread Wesley Sagittarius

Hi,
How to make the form background be translucent or transparent???
Anyone can help me???
have a nice day...

wesley.
--~--~-~--~~~---~--~~
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] Anyone needs android developers?

2008-09-08 Thread [EMAIL PROTECTED]

Anyone needs Android developers? please email me on [EMAIL PROTECTED]

--~--~-~--~~~---~--~~
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: Android SoftKeyboard Released(Both English and Chinese Input) !

2008-09-08 Thread Yin

It's really A GREAT JOB!

On Sep 6, 11:09 pm, PowerGUI [EMAIL PROTECTED] wrote:
 Dear Androiders,
       I am glad to release the Android SoftKeyboard,support both
 English and Chinese input use SoftKeyboard. If you have android
 dotphone development evaluation or other android hardware which
 supports touchscreen, it is also for you.   :D
       here is the steps:
      1)please download the TestSoftKeyboard.tgz and SoftKey.apk
      2)adb install SoftKey.apk
      3)extract the TestSoftKeyboard.tgz,you can compile it.then
 generate
 TestSoftKeyboard.apk (or TestSoftKeyboad-debug.apk)
      4)adb install TestSoftKeyboard.apk (a compiled
 TestSoftkeyboard.apk is ready,please checkt it)
      5)when the window of TestSoftKeyboard.apk appears,then click the
 edittext area(need click two times,bugs in android?), popup the
 SoftKeyboard windows,input anythings as you like.
      6)click ok or cancel to return your window
      7)TestSoftKeyboard is just a samples,you can use the same rule to
 make your program to support input method.

       the screenshot ,related program and TestSoftKeyboard Source code
 is avaiable at:
       1)http://www.dotphone.org/english
       2)http://groups.google.com/group/android-dotphone

 Any feedbacks is appreciate.

 Best Regards
 Android DotPhone Teamhttp://www.dotphone.org/english/

--~--~-~--~~~---~--~~
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: Downloading any file using browser.

2008-09-08 Thread otiasj

I am sorry I don't understand...
how can I access the download provider?
the data in the intent is an url like http://distantserver/
myfile.arg (and there is no extras)
to access a contentProvider I would need a local uri right?

Thank you for your time!


On 8 sep, 18:05, hackbod [EMAIL PROTECTED] wrote:
 Thedownloadmanager was already used for you, todownloadthe content
 and had it to you.  You can now open the file, read it, and copy it to
 wherever you want.  (Files stored in thedownloadprovider are only
 temporary.)

 On Sep 7, 10:40 pm, otiasj [EMAIL PROTECTED] wrote:

  Hello,

  Does anyone now how to actuallydownloadthe file?

  Right now when I click on the file of a certain type, my activity
  launches correctly
  and I get the url using getIntent().getData()
  But is there a way to use thedownloadmanager? (through a
  contentProvider for example)

  Thank you

  On 4 sep, 21:29, szeldon [EMAIL PROTECTED] wrote:

   Thanks. It really works. Knowledge +1

   On Sep 4, 1:28 pm, Peli [EMAIL PROTECTED] wrote:

You could write an intent filter in the following way:

       activity android:name=.MyActivity android:label=@string/
app_name
            intent-filter
                action android:name=android.intent.action.VIEW /
                category
android:name=android.intent.category.DEFAULT /
                category
android:name=android.intent.category.BROWSABLE /
                data android:scheme=http /
                data android:mimeType=?/
           /intent-filter
        /activity

Here you have to replace ? by the mime-type you intend to
handle. Then your activity will be called by thebrowser, and you can
use getIntent() 
(http://code.google.com/android/reference/android/app/Activity.html#ge...()
) to get more information about the intent.

Peliwww.openintents.org

On Sep 4, 11:12 am, szeldon [EMAIL PROTECTED] wrote:

 Hi,

 Currently I'm working on a program that needs todownloadfiles using
 defaultbrowser, saving them somewhere (it may be a mobile/emulator or
 SD card on one of them) and then using my program with them. It would
 be great if my program could react on specific filetype opened by a
browser, but if that's not possible, I'd at least like save to them.
 Opening could be done in my application.

--~--~-~--~~~---~--~~
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] Incomming Call

2008-09-08 Thread Jose María González

I want to make an application which recognices an incomming call and
displays a CallerID and some usefull information.
But haven't been able to find an intet-filter action which will call
the correspond BroadCastReciver.
Is it possible to intercept an incomming call from an application?
I already have done it with SMS and it works.

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] Alert Dialog never displayed in when call in the run() method of a separate process.

2008-09-08 Thread CG

Hello,

I am facing a strange issue. I suppose it is due to my bad
understanding of processes and compatibilities with processes.

So here is the behavior I'd like to have :
When I open my map, actions are done in background.
So I use a progress dialog. For that I need an separate thread.
But if an error occurs, I'd like to display a warning pop up. This
popup show request is done inside the run method of the separated
thread.

And the warning dialog is never displayed ! I don't understand why.
Can anyone explain me what is wrong ?
I join my code snippet to give a picture of what i try to do.

I also check the API demo and try to override the method
OnCreateDialog method but with the same result :-(

I suppose the issue is when I call the show().

- Code snippet
public class StationNearActivity extends MapActivity implements
OnClickListener, Runnable {


/** Called when the activity is first created. */
public void onCreate(Bundle icicle) {

pgd = ProgressDialog.show(this, null,
getString(R.string.nearest_station_progress_dialog_wait));

/*
 I create the dialog here
-*/
AlertDialog.Builder builder = new AlertDialog.Builder(this);
 
builder.setMessage(R.string.nearest_station_gm__popup_no_address_found_label);
dlg = builder.create();

/*--
if I display it there then it works ! But it is not the correct
behaviour
dlg.show()
-*/

super.onCreate(icicle);
thisInstance = this;

mapViewFromXML.setClickable(true);
mapViewFromXML.setEnabled(true);

}

Thread threadOfMap = new Thread(this);
threadOfMap.start();
}

public void run() {
Looper.prepare();

try {
Thread.sleep(200);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

// --- Fill the map
try {
setMapCenter();
if (mapCenter == null || (mapCenter.getLatitudeE6() == 0
 mapCenter.getLongitudeE6() == 0)) {


/*--
The progress dialog dismiss works but the dialog show not !
-*/

pgd.dismiss();
dlg.show();
}

Log.d(MAP, add overlay);
   //
mapViewFromXML.postInvalidate();

} catch (Exception e) {
Log.e(Constant.LOG_NS2_MAP, e.toString(), e);
} finally {
pgd.dismiss();
}
}
}
--~--~-~--~~~---~--~~
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: Downloading any file using browser.

2008-09-08 Thread hackbod

You don't, it is used when the user tries to download something from
the browser.  For 1.0 it is not a public API, except for being
launched with the data that has been downloaded.

On Sep 8, 3:09 am, otiasj [EMAIL PROTECTED] wrote:
 I am sorry I don't understand...
 how can I access the download provider?
 the data in the intent is an url like http://distantserver/
 myfile.arg (and there is no extras)
 to access a contentProvider I would need a local uri right?

 Thank you for your time!

 On 8 sep, 18:05, hackbod [EMAIL PROTECTED] wrote:

  Thedownloadmanager was already used for you, todownloadthe content
  and had it to you.  You can now open the file, read it, and copy it to
  wherever you want.  (Files stored in thedownloadprovider are only
  temporary.)

  On Sep 7, 10:40 pm, otiasj [EMAIL PROTECTED] wrote:

   Hello,

   Does anyone now how to actuallydownloadthe file?

   Right now when I click on the file of a certain type, my activity
   launches correctly
   and I get the url using getIntent().getData()
   But is there a way to use thedownloadmanager? (through a
   contentProvider for example)

   Thank you

   On 4 sep, 21:29, szeldon [EMAIL PROTECTED] wrote:

Thanks. It really works. Knowledge +1

On Sep 4, 1:28 pm, Peli [EMAIL PROTECTED] wrote:

 You could write an intent filter in the following way:

        activity android:name=.MyActivity android:label=@string/
 app_name
             intent-filter
                 action android:name=android.intent.action.VIEW /
                 category
 android:name=android.intent.category.DEFAULT /
                 category
 android:name=android.intent.category.BROWSABLE /
                 data android:scheme=http /
                 data android:mimeType=?/
            /intent-filter
         /activity

 Here you have to replace ? by the mime-type you intend to
 handle. Then your activity will be called by thebrowser, and you can
 use getIntent() 
 (http://code.google.com/android/reference/android/app/Activity.html#ge...()
 ) to get more information about the intent.

 Peliwww.openintents.org

 On Sep 4, 11:12 am, szeldon [EMAIL PROTECTED] wrote:

  Hi,

  Currently I'm working on a program that needs todownloadfiles using
  defaultbrowser, saving them somewhere (it may be a mobile/emulator 
  or
  SD card on one of them) and then using my program with them. It 
  would
  be great if my program could react on specific filetype opened by a
 browser, but if that's not possible, I'd at least like save to them.
  Opening could be done in my application.
--~--~-~--~~~---~--~~
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: Alert Dialog never displayed in when call in the run() method of a separate process.

2008-09-08 Thread hackbod

If you have created a separate thread to do work in the background
independent from the UI, you wouldn't want to be doing UI in that
thread. :)  Also, you can only do UI in a thread that is running a
message loop, NOT just a random thread you have spawned (though you
should get an exception thrown back if you try to do this).

I think you probably want to send a message to the original UI thread
and have it display the dialog there.  You can just post a Runnable to
the UI thread which takes care of displaying the dialog when its run()
method is called.

On Sep 8, 9:16 am, CG [EMAIL PROTECTED] wrote:
 Hello,

 I am facing a strange issue. I suppose it is due to my bad
 understanding of processes and compatibilities with processes.

 So here is the behavior I'd like to have :
 When I open my map, actions are done in background.
 So I use a progress dialog. For that I need an separate thread.
 But if an error occurs, I'd like to display a warning pop up. This
 popup show request is done inside the run method of the separated
 thread.

 And the warning dialog is never displayed ! I don't understand why.
 Can anyone explain me what is wrong ?
 I join my code snippet to give a picture of what i try to do.

 I also check the API demo and try to override the method
 OnCreateDialog method but with the same result :-(

 I suppose the issue is when I call the show().

 - Code snippet
 public class StationNearActivity extends MapActivity implements
 OnClickListener, Runnable {

     /** Called when the activity is first created. */
     public void onCreate(Bundle icicle) {

         pgd = ProgressDialog.show(this, null,
 getString(R.string.nearest_station_progress_dialog_wait));

 /*
  I create the dialog here
 -*/
         AlertDialog.Builder builder = new AlertDialog.Builder(this);

 builder.setMessage(R.string.nearest_station_gm__popup_no_address_found_label);
         dlg = builder.create();

 /*--
 if I display it there then it works ! But it is not the correct
 behaviour
 dlg.show()
 -*/

         super.onCreate(icicle);
         thisInstance = this;

         mapViewFromXML.setClickable(true);
         mapViewFromXML.setEnabled(true);

         }

         Thread threadOfMap = new Thread(this);
         threadOfMap.start();
     }

     public void run() {
         Looper.prepare();

         try {
             Thread.sleep(200);
         } catch (InterruptedException e) {
             // TODO Auto-generated catch block
             e.printStackTrace();
         }

         // --- Fill the map
         try {
             setMapCenter();
             if (mapCenter == null || (mapCenter.getLatitudeE6() == 0
  mapCenter.getLongitudeE6() == 0)) {

 /*--
 The progress dialog dismiss works but the dialog show not !
 -*/

                 pgd.dismiss();
                 dlg.show();
             }

             Log.d(MAP, add overlay);
            //
             mapViewFromXML.postInvalidate();

         } catch (Exception e) {
             Log.e(Constant.LOG_NS2_MAP, e.toString(), e);
         } finally {
             pgd.dismiss();
         }
     }

 }
--~--~-~--~~~---~--~~
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: Form with background translucent or transparent, how???

2008-09-08 Thread hackbod

See the Translucent samples here:

http://code.google.com/android/samples/ApiDemos/src/com/android/samples/app/

Their code is not that important; the key thing about them is how they
set their theme in the AndroidManifest.xml

http://code.google.com/android/samples/ApiDemos/AndroidManifest.html

On Sep 8, 3:04 am, Wesley Sagittarius [EMAIL PROTECTED] wrote:
 Hi,
 How to make the form background be translucent or transparent???
 Anyone can help me???
 have a nice day...

 wesley.
--~--~-~--~~~---~--~~
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: Alert Dialog never displayed in when call in the run() method of a separate process.

2008-09-08 Thread CG

Thank you very much Huebi and hackbod, for first the solution and
taking the time to explain.

I succeded in doing what I want with Handler.

On Sep 8, 6:28 pm, Huebi [EMAIL PROTECTED] wrote:
 Hi,

 you can only display UI stuff from the main thread. You can use the
 Handler classes post() method to put the Dialog display in the event
 queue. Just have a look at the API docs.

 On 8 Sep., 18:16, CG [EMAIL PROTECTED] wrote:

  Hello,

  I am facing a strange issue. I suppose it is due to my bad
  understanding of processes and compatibilities with processes.

  So here is the behavior I'd like to have :
  When I open my map, actions are done in background.
  So I use a progress dialog. For that I need an separate thread.
  But if an error occurs, I'd like to display a warning pop up. This
  popup show request is done inside the run method of the separated
  thread.

  And the warning dialog is never displayed ! I don't understand why.
  Can anyone explain me what is wrong ?
  I join my code snippet to give a picture of what i try to do.

  I also check the API demo and try to override the method
  OnCreateDialog method but with the same result :-(

  I suppose the issue is when I call the show().

  - Code snippet
  public class StationNearActivity extends MapActivity implements
  OnClickListener, Runnable {

      /** Called when the activity is first created. */
      public void onCreate(Bundle icicle) {

          pgd = ProgressDialog.show(this, null,
  getString(R.string.nearest_station_progress_dialog_wait));

  /*
   I create the dialog here
  -*/
          AlertDialog.Builder builder = new AlertDialog.Builder(this);

  builder.setMessage(R.string.nearest_station_gm__popup_no_address_found_label);
          dlg = builder.create();

  /*--
  if I display it there then it works ! But it is not the correct
  behaviour
  dlg.show()
  -*/

          super.onCreate(icicle);
          thisInstance = this;

          mapViewFromXML.setClickable(true);
          mapViewFromXML.setEnabled(true);

          }

          Thread threadOfMap = new Thread(this);
          threadOfMap.start();
      }

      public void run() {
          Looper.prepare();

          try {
              Thread.sleep(200);
          } catch (InterruptedException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }

          // --- Fill the map
          try {
              setMapCenter();
              if (mapCenter == null || (mapCenter.getLatitudeE6() == 0
   mapCenter.getLongitudeE6() == 0)) {

  /*--
  The progress dialog dismiss works but the dialog show not !
  -*/

                  pgd.dismiss();
                  dlg.show();
              }

              Log.d(MAP, add overlay);
             //
              mapViewFromXML.postInvalidate();

          } catch (Exception e) {
              Log.e(Constant.LOG_NS2_MAP, e.toString(), e);
          } finally {
              pgd.dismiss();
          }
      }

  }
--~--~-~--~~~---~--~~
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: Alert Dialog never displayed in when call inthe run() method of a separate process.

2008-09-08 Thread secondsun
W
Sent via BlackBerry by ATT

-Original Message-
From: CG [EMAIL PROTECTED]

Date: Mon, 8 Sep 2008 10:02:58 
To: Android Developersandroid-developers@googlegroups.com
Subject: [android-developers] Re: Alert Dialog never displayed in when call in
 the run() method of  a separate process.



Thank you very much Huebi and hackbod, for first the solution and
taking the time to explain.

I succeded in doing what I want with Handler.

On Sep 8, 6:28 pm, Huebi [EMAIL PROTECTED] wrote:
 Hi,

 you can only display UI stuff from the main thread. You can use the
 Handler classes post() method to put the Dialog display in the event
 queue. Just have a look at the API docs.

 On 8 Sep., 18:16, CG [EMAIL PROTECTED] wrote:

  Hello,

  I am facing a strange issue. I suppose it is due to my bad
  understanding of processes and compatibilities with processes.

  So here is the behavior I'd like to have :
  When I open my map, actions are done in background.
  So I use a progress dialog. For that I need an separate thread.
  But if an error occurs, I'd like to display a warning pop up. This
  popup show request is done inside the run method of the separated
  thread.

  And the warning dialog is never displayed ! I don't understand why.
  Can anyone explain me what is wrong ?
  I join my code snippet to give a picture of what i try to do.

  I also check the API demo and try to override the method
  OnCreateDialog method but with the same result :-(

  I suppose the issue is when I call the show().

  - Code snippet
  public class StationNearActivity extends MapActivity implements
  OnClickListener, Runnable {

      /** Called when the activity is first created. */
      public void onCreate(Bundle icicle) {

          pgd = ProgressDialog.show(this, null,
  getString(R.string.nearest_station_progress_dialog_wait));

  /*
   I create the dialog here
  -*/
          AlertDialog.Builder builder = new AlertDialog.Builder(this);

  builder.setMessage(R.string.nearest_station_gm__popup_no_address_found_label);
          dlg = builder.create();

  /*--
  if I display it there then it works ! But it is not the correct
  behaviour
  dlg.show()
  -*/

          super.onCreate(icicle);
          thisInstance = this;

          mapViewFromXML.setClickable(true);
          mapViewFromXML.setEnabled(true);

          }

          Thread threadOfMap = new Thread(this);
          threadOfMap.start();
      }

      public void run() {
          Looper.prepare();

          try {
              Thread.sleep(200);
          } catch (InterruptedException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }

          // --- Fill the map
          try {
              setMapCenter();
              if (mapCenter == null || (mapCenter.getLatitudeE6() == 0
   mapCenter.getLongitudeE6() == 0)) {

  /*--
  The progress dialog dismiss works but the dialog show not !
  -*/

                  pgd.dismiss();
                  dlg.show();
              }

              Log.d(MAP, add overlay);
             //
              mapViewFromXML.postInvalidate();

          } catch (Exception e) {
              Log.e(Constant.LOG_NS2_MAP, e.toString(), e);
          } finally {
              pgd.dismiss();
          }
      }

  }


--~--~-~--~~~---~--~~
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: Alert Dialog never displayed in when call inthe run() method of a separate process.

2008-09-08 Thread secondsun
W
Sent via BlackBerry by ATT

-Original Message-
From: CG [EMAIL PROTECTED]

Date: Mon, 8 Sep 2008 10:02:58 
To: Android Developersandroid-developers@googlegroups.com
Subject: [android-developers] Re: Alert Dialog never displayed in when call in
 the run() method of  a separate process.



Thank you very much Huebi and hackbod, for first the solution and
taking the time to explain.

I succeded in doing what I want with Handler.

On Sep 8, 6:28 pm, Huebi [EMAIL PROTECTED] wrote:
 Hi,

 you can only display UI stuff from the main thread. You can use the
 Handler classes post() method to put the Dialog display in the event
 queue. Just have a look at the API docs.

 On 8 Sep., 18:16, CG [EMAIL PROTECTED] wrote:

  Hello,

  I am facing a strange issue. I suppose it is due to my bad
  understanding of processes and compatibilities with processes.

  So here is the behavior I'd like to have :
  When I open my map, actions are done in background.
  So I use a progress dialog. For that I need an separate thread.
  But if an error occurs, I'd like to display a warning pop up. This
  popup show request is done inside the run method of the separated
  thread.

  And the warning dialog is never displayed ! I don't understand why.
  Can anyone explain me what is wrong ?
  I join my code snippet to give a picture of what i try to do.

  I also check the API demo and try to override the method
  OnCreateDialog method but with the same result :-(

  I suppose the issue is when I call the show().

  - Code snippet
  public class StationNearActivity extends MapActivity implements
  OnClickListener, Runnable {

      /** Called when the activity is first created. */
      public void onCreate(Bundle icicle) {

          pgd = ProgressDialog.show(this, null,
  getString(R.string.nearest_station_progress_dialog_wait));

  /*
   I create the dialog here
  -*/
          AlertDialog.Builder builder = new AlertDialog.Builder(this);

  builder.setMessage(R.string.nearest_station_gm__popup_no_address_found_label);
          dlg = builder.create();

  /*--
  if I display it there then it works ! But it is not the correct
  behaviour
  dlg.show()
  -*/

          super.onCreate(icicle);
          thisInstance = this;

          mapViewFromXML.setClickable(true);
          mapViewFromXML.setEnabled(true);

          }

          Thread threadOfMap = new Thread(this);
          threadOfMap.start();
      }

      public void run() {
          Looper.prepare();

          try {
              Thread.sleep(200);
          } catch (InterruptedException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }

          // --- Fill the map
          try {
              setMapCenter();
              if (mapCenter == null || (mapCenter.getLatitudeE6() == 0
   mapCenter.getLongitudeE6() == 0)) {

  /*--
  The progress dialog dismiss works but the dialog show not !
  -*/

                  pgd.dismiss();
                  dlg.show();
              }

              Log.d(MAP, add overlay);
             //
              mapViewFromXML.postInvalidate();

          } catch (Exception e) {
              Log.e(Constant.LOG_NS2_MAP, e.toString(), e);
          } finally {
              pgd.dismiss();
          }
      }

  }


--~--~-~--~~~---~--~~
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: Alert Dialog never displayed in when call inthe run() method of a separate process.

2008-09-08 Thread secondsun
W
Sent via BlackBerry by ATT

-Original Message-
From: CG [EMAIL PROTECTED]

Date: Mon, 8 Sep 2008 10:02:58 
To: Android Developersandroid-developers@googlegroups.com
Subject: [android-developers] Re: Alert Dialog never displayed in when call in
 the run() method of  a separate process.



Thank you very much Huebi and hackbod, for first the solution and
taking the time to explain.

I succeded in doing what I want with Handler.

On Sep 8, 6:28 pm, Huebi [EMAIL PROTECTED] wrote:
 Hi,

 you can only display UI stuff from the main thread. You can use the
 Handler classes post() method to put the Dialog display in the event
 queue. Just have a look at the API docs.

 On 8 Sep., 18:16, CG [EMAIL PROTECTED] wrote:

  Hello,

  I am facing a strange issue. I suppose it is due to my bad
  understanding of processes and compatibilities with processes.

  So here is the behavior I'd like to have :
  When I open my map, actions are done in background.
  So I use a progress dialog. For that I need an separate thread.
  But if an error occurs, I'd like to display a warning pop up. This
  popup show request is done inside the run method of the separated
  thread.

  And the warning dialog is never displayed ! I don't understand why.
  Can anyone explain me what is wrong ?
  I join my code snippet to give a picture of what i try to do.

  I also check the API demo and try to override the method
  OnCreateDialog method but with the same result :-(

  I suppose the issue is when I call the show().

  - Code snippet
  public class StationNearActivity extends MapActivity implements
  OnClickListener, Runnable {

      /** Called when the activity is first created. */
      public void onCreate(Bundle icicle) {

          pgd = ProgressDialog.show(this, null,
  getString(R.string.nearest_station_progress_dialog_wait));

  /*
   I create the dialog here
  -*/
          AlertDialog.Builder builder = new AlertDialog.Builder(this);

  builder.setMessage(R.string.nearest_station_gm__popup_no_address_found_label);
          dlg = builder.create();

  /*--
  if I display it there then it works ! But it is not the correct
  behaviour
  dlg.show()
  -*/

          super.onCreate(icicle);
          thisInstance = this;

          mapViewFromXML.setClickable(true);
          mapViewFromXML.setEnabled(true);

          }

          Thread threadOfMap = new Thread(this);
          threadOfMap.start();
      }

      public void run() {
          Looper.prepare();

          try {
              Thread.sleep(200);
          } catch (InterruptedException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }

          // --- Fill the map
          try {
              setMapCenter();
              if (mapCenter == null || (mapCenter.getLatitudeE6() == 0
   mapCenter.getLongitudeE6() == 0)) {

  /*--
  The progress dialog dismiss works but the dialog show not !
  -*/

                  pgd.dismiss();
                  dlg.show();
              }

              Log.d(MAP, add overlay);
             //
              mapViewFromXML.postInvalidate();

          } catch (Exception e) {
              Log.e(Constant.LOG_NS2_MAP, e.toString(), e);
          } finally {
              pgd.dismiss();
          }
      }

  }


--~--~-~--~~~---~--~~
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: Alert Dialog never displayed in when call inthe run() method of a separate process.

2008-09-08 Thread secondsun
W
Sent via BlackBerry by ATT

-Original Message-
From: CG [EMAIL PROTECTED]

Date: Mon, 8 Sep 2008 10:02:58 
To: Android Developersandroid-developers@googlegroups.com
Subject: [android-developers] Re: Alert Dialog never displayed in when call in
 the run() method of  a separate process.



Thank you very much Huebi and hackbod, for first the solution and
taking the time to explain.

I succeded in doing what I want with Handler.

On Sep 8, 6:28 pm, Huebi [EMAIL PROTECTED] wrote:
 Hi,

 you can only display UI stuff from the main thread. You can use the
 Handler classes post() method to put the Dialog display in the event
 queue. Just have a look at the API docs.

 On 8 Sep., 18:16, CG [EMAIL PROTECTED] wrote:

  Hello,

  I am facing a strange issue. I suppose it is due to my bad
  understanding of processes and compatibilities with processes.

  So here is the behavior I'd like to have :
  When I open my map, actions are done in background.
  So I use a progress dialog. For that I need an separate thread.
  But if an error occurs, I'd like to display a warning pop up. This
  popup show request is done inside the run method of the separated
  thread.

  And the warning dialog is never displayed ! I don't understand why.
  Can anyone explain me what is wrong ?
  I join my code snippet to give a picture of what i try to do.

  I also check the API demo and try to override the method
  OnCreateDialog method but with the same result :-(

  I suppose the issue is when I call the show().

  - Code snippet
  public class StationNearActivity extends MapActivity implements
  OnClickListener, Runnable {

      /** Called when the activity is first created. */
      public void onCreate(Bundle icicle) {

          pgd = ProgressDialog.show(this, null,
  getString(R.string.nearest_station_progress_dialog_wait));

  /*
   I create the dialog here
  -*/
          AlertDialog.Builder builder = new AlertDialog.Builder(this);

  builder.setMessage(R.string.nearest_station_gm__popup_no_address_found_label);
          dlg = builder.create();

  /*--
  if I display it there then it works ! But it is not the correct
  behaviour
  dlg.show()
  -*/

          super.onCreate(icicle);
          thisInstance = this;

          mapViewFromXML.setClickable(true);
          mapViewFromXML.setEnabled(true);

          }

          Thread threadOfMap = new Thread(this);
          threadOfMap.start();
      }

      public void run() {
          Looper.prepare();

          try {
              Thread.sleep(200);
          } catch (InterruptedException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }

          // --- Fill the map
          try {
              setMapCenter();
              if (mapCenter == null || (mapCenter.getLatitudeE6() == 0
   mapCenter.getLongitudeE6() == 0)) {

  /*--
  The progress dialog dismiss works but the dialog show not !
  -*/

                  pgd.dismiss();
                  dlg.show();
              }

              Log.d(MAP, add overlay);
             //
              mapViewFromXML.postInvalidate();

          } catch (Exception e) {
              Log.e(Constant.LOG_NS2_MAP, e.toString(), e);
          } finally {
              pgd.dismiss();
          }
      }

  }


--~--~-~--~~~---~--~~
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: Alert Dialog never displayed in when call inthe run() method of a separate process.

2008-09-08 Thread secondsun
W
Sent via BlackBerry by ATT

-Original Message-
From: CG [EMAIL PROTECTED]

Date: Mon, 8 Sep 2008 10:02:58 
To: Android Developersandroid-developers@googlegroups.com
Subject: [android-developers] Re: Alert Dialog never displayed in when call in
 the run() method of  a separate process.



Thank you very much Huebi and hackbod, for first the solution and
taking the time to explain.

I succeded in doing what I want with Handler.

On Sep 8, 6:28 pm, Huebi [EMAIL PROTECTED] wrote:
 Hi,

 you can only display UI stuff from the main thread. You can use the
 Handler classes post() method to put the Dialog display in the event
 queue. Just have a look at the API docs.

 On 8 Sep., 18:16, CG [EMAIL PROTECTED] wrote:

  Hello,

  I am facing a strange issue. I suppose it is due to my bad
  understanding of processes and compatibilities with processes.

  So here is the behavior I'd like to have :
  When I open my map, actions are done in background.
  So I use a progress dialog. For that I need an separate thread.
  But if an error occurs, I'd like to display a warning pop up. This
  popup show request is done inside the run method of the separated
  thread.

  And the warning dialog is never displayed ! I don't understand why.
  Can anyone explain me what is wrong ?
  I join my code snippet to give a picture of what i try to do.

  I also check the API demo and try to override the method
  OnCreateDialog method but with the same result :-(

  I suppose the issue is when I call the show().

  - Code snippet
  public class StationNearActivity extends MapActivity implements
  OnClickListener, Runnable {

      /** Called when the activity is first created. */
      public void onCreate(Bundle icicle) {

          pgd = ProgressDialog.show(this, null,
  getString(R.string.nearest_station_progress_dialog_wait));

  /*
   I create the dialog here
  -*/
          AlertDialog.Builder builder = new AlertDialog.Builder(this);

  builder.setMessage(R.string.nearest_station_gm__popup_no_address_found_label);
          dlg = builder.create();

  /*--
  if I display it there then it works ! But it is not the correct
  behaviour
  dlg.show()
  -*/

          super.onCreate(icicle);
          thisInstance = this;

          mapViewFromXML.setClickable(true);
          mapViewFromXML.setEnabled(true);

          }

          Thread threadOfMap = new Thread(this);
          threadOfMap.start();
      }

      public void run() {
          Looper.prepare();

          try {
              Thread.sleep(200);
          } catch (InterruptedException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }

          // --- Fill the map
          try {
              setMapCenter();
              if (mapCenter == null || (mapCenter.getLatitudeE6() == 0
   mapCenter.getLongitudeE6() == 0)) {

  /*--
  The progress dialog dismiss works but the dialog show not !
  -*/

                  pgd.dismiss();
                  dlg.show();
              }

              Log.d(MAP, add overlay);
             //
              mapViewFromXML.postInvalidate();

          } catch (Exception e) {
              Log.e(Constant.LOG_NS2_MAP, e.toString(), e);
          } finally {
              pgd.dismiss();
          }
      }

  }


--~--~-~--~~~---~--~~
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: Alert Dialog never displayed in when call inthe run() method of a separate process.

2008-09-08 Thread secondsun
Waww
Sent via BlackBerry by ATT

-Original Message-
From: CG [EMAIL PROTECTED]

Date: Mon, 8 Sep 2008 10:02:58 
To: Android Developersandroid-developers@googlegroups.com
Subject: [android-developers] Re: Alert Dialog never displayed in when call in
 the run() method of  a separate process.



Thank you very much Huebi and hackbod, for first the solution and
taking the time to explain.

I succeded in doing what I want with Handler.

On Sep 8, 6:28 pm, Huebi [EMAIL PROTECTED] wrote:
 Hi,

 you can only display UI stuff from the main thread. You can use the
 Handler classes post() method to put the Dialog display in the event
 queue. Just have a look at the API docs.

 On 8 Sep., 18:16, CG [EMAIL PROTECTED] wrote:

  Hello,

  I am facing a strange issue. I suppose it is due to my bad
  understanding of processes and compatibilities with processes.

  So here is the behavior I'd like to have :
  When I open my map, actions are done in background.
  So I use a progress dialog. For that I need an separate thread.
  But if an error occurs, I'd like to display a warning pop up. This
  popup show request is done inside the run method of the separated
  thread.

  And the warning dialog is never displayed ! I don't understand why.
  Can anyone explain me what is wrong ?
  I join my code snippet to give a picture of what i try to do.

  I also check the API demo and try to override the method
  OnCreateDialog method but with the same result :-(

  I suppose the issue is when I call the show().

  - Code snippet
  public class StationNearActivity extends MapActivity implements
  OnClickListener, Runnable {

      /** Called when the activity is first created. */
      public void onCreate(Bundle icicle) {

          pgd = ProgressDialog.show(this, null,
  getString(R.string.nearest_station_progress_dialog_wait));

  /*
   I create the dialog here
  -*/
          AlertDialog.Builder builder = new AlertDialog.Builder(this);

  builder.setMessage(R.string.nearest_station_gm__popup_no_address_found_label);
          dlg = builder.create();

  /*--
  if I display it there then it works ! But it is not the correct
  behaviour
  dlg.show()
  -*/

          super.onCreate(icicle);
          thisInstance = this;

          mapViewFromXML.setClickable(true);
          mapViewFromXML.setEnabled(true);

          }

          Thread threadOfMap = new Thread(this);
          threadOfMap.start();
      }

      public void run() {
          Looper.prepare();

          try {
              Thread.sleep(200);
          } catch (InterruptedException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }

          // --- Fill the map
          try {
              setMapCenter();
              if (mapCenter == null || (mapCenter.getLatitudeE6() == 0
   mapCenter.getLongitudeE6() == 0)) {

  /*--
  The progress dialog dismiss works but the dialog show not !
  -*/

                  pgd.dismiss();
                  dlg.show();
              }

              Log.d(MAP, add overlay);
             //
              mapViewFromXML.postInvalidate();

          } catch (Exception e) {
              Log.e(Constant.LOG_NS2_MAP, e.toString(), e);
          } finally {
              pgd.dismiss();
          }
      }

  }


--~--~-~--~~~---~--~~
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: Alert Dialog never displayed in when call inthe run() method of a separate process.

2008-09-08 Thread secondsun
Wawa
Sent via BlackBerry by ATT

-Original Message-
From: CG [EMAIL PROTECTED]

Date: Mon, 8 Sep 2008 10:02:58 
To: Android Developersandroid-developers@googlegroups.com
Subject: [android-developers] Re: Alert Dialog never displayed in when call in
 the run() method of  a separate process.



Thank you very much Huebi and hackbod, for first the solution and
taking the time to explain.

I succeded in doing what I want with Handler.

On Sep 8, 6:28 pm, Huebi [EMAIL PROTECTED] wrote:
 Hi,

 you can only display UI stuff from the main thread. You can use the
 Handler classes post() method to put the Dialog display in the event
 queue. Just have a look at the API docs.

 On 8 Sep., 18:16, CG [EMAIL PROTECTED] wrote:

  Hello,

  I am facing a strange issue. I suppose it is due to my bad
  understanding of processes and compatibilities with processes.

  So here is the behavior I'd like to have :
  When I open my map, actions are done in background.
  So I use a progress dialog. For that I need an separate thread.
  But if an error occurs, I'd like to display a warning pop up. This
  popup show request is done inside the run method of the separated
  thread.

  And the warning dialog is never displayed ! I don't understand why.
  Can anyone explain me what is wrong ?
  I join my code snippet to give a picture of what i try to do.

  I also check the API demo and try to override the method
  OnCreateDialog method but with the same result :-(

  I suppose the issue is when I call the show().

  - Code snippet
  public class StationNearActivity extends MapActivity implements
  OnClickListener, Runnable {

      /** Called when the activity is first created. */
      public void onCreate(Bundle icicle) {

          pgd = ProgressDialog.show(this, null,
  getString(R.string.nearest_station_progress_dialog_wait));

  /*
   I create the dialog here
  -*/
          AlertDialog.Builder builder = new AlertDialog.Builder(this);

  builder.setMessage(R.string.nearest_station_gm__popup_no_address_found_label);
          dlg = builder.create();

  /*--
  if I display it there then it works ! But it is not the correct
  behaviour
  dlg.show()
  -*/

          super.onCreate(icicle);
          thisInstance = this;

          mapViewFromXML.setClickable(true);
          mapViewFromXML.setEnabled(true);

          }

          Thread threadOfMap = new Thread(this);
          threadOfMap.start();
      }

      public void run() {
          Looper.prepare();

          try {
              Thread.sleep(200);
          } catch (InterruptedException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }

          // --- Fill the map
          try {
              setMapCenter();
              if (mapCenter == null || (mapCenter.getLatitudeE6() == 0
   mapCenter.getLongitudeE6() == 0)) {

  /*--
  The progress dialog dismiss works but the dialog show not !
  -*/

                  pgd.dismiss();
                  dlg.show();
              }

              Log.d(MAP, add overlay);
             //
              mapViewFromXML.postInvalidate();

          } catch (Exception e) {
              Log.e(Constant.LOG_NS2_MAP, e.toString(), e);
          } finally {
              pgd.dismiss();
          }
      }

  }


--~--~-~--~~~---~--~~
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: Alert Dialog never displayed in when call inthe run() method of a separate process.

2008-09-08 Thread secondsun

Sent via BlackBerry by ATT

-Original Message-
From: CG [EMAIL PROTECTED]

Date: Mon, 8 Sep 2008 10:02:58 
To: Android Developersandroid-developers@googlegroups.com
Subject: [android-developers] Re: Alert Dialog never displayed in when call in
 the run() method of  a separate process.



Thank you very much Huebi and hackbod, for first the solution and
taking the time to explain.

I succeded in doing what I want with Handler.

On Sep 8, 6:28 pm, Huebi [EMAIL PROTECTED] wrote:
 Hi,

 you can only display UI stuff from the main thread. You can use the
 Handler classes post() method to put the Dialog display in the event
 queue. Just have a look at the API docs.

 On 8 Sep., 18:16, CG [EMAIL PROTECTED] wrote:

  Hello,

  I am facing a strange issue. I suppose it is due to my bad
  understanding of processes and compatibilities with processes.

  So here is the behavior I'd like to have :
  When I open my map, actions are done in background.
  So I use a progress dialog. For that I need an separate thread.
  But if an error occurs, I'd like to display a warning pop up. This
  popup show request is done inside the run method of the separated
  thread.

  And the warning dialog is never displayed ! I don't understand why.
  Can anyone explain me what is wrong ?
  I join my code snippet to give a picture of what i try to do.

  I also check the API demo and try to override the method
  OnCreateDialog method but with the same result :-(

  I suppose the issue is when I call the show().

  - Code snippet
  public class StationNearActivity extends MapActivity implements
  OnClickListener, Runnable {

      /** Called when the activity is first created. */
      public void onCreate(Bundle icicle) {

          pgd = ProgressDialog.show(this, null,
  getString(R.string.nearest_station_progress_dialog_wait));

  /*
   I create the dialog here
  -*/
          AlertDialog.Builder builder = new AlertDialog.Builder(this);

  builder.setMessage(R.string.nearest_station_gm__popup_no_address_found_label);
          dlg = builder.create();

  /*--
  if I display it there then it works ! But it is not the correct
  behaviour
  dlg.show()
  -*/

          super.onCreate(icicle);
          thisInstance = this;

          mapViewFromXML.setClickable(true);
          mapViewFromXML.setEnabled(true);

          }

          Thread threadOfMap = new Thread(this);
          threadOfMap.start();
      }

      public void run() {
          Looper.prepare();

          try {
              Thread.sleep(200);
          } catch (InterruptedException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }

          // --- Fill the map
          try {
              setMapCenter();
              if (mapCenter == null || (mapCenter.getLatitudeE6() == 0
   mapCenter.getLongitudeE6() == 0)) {

  /*--
  The progress dialog dismiss works but the dialog show not !
  -*/

                  pgd.dismiss();
                  dlg.show();
              }

              Log.d(MAP, add overlay);
             //
              mapViewFromXML.postInvalidate();

          } catch (Exception e) {
              Log.e(Constant.LOG_NS2_MAP, e.toString(), e);
          } finally {
              pgd.dismiss();
          }
      }

  }


--~--~-~--~~~---~--~~
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: Alert Dialog never displayed in when call inthe run() method of a separate process.

2008-09-08 Thread secondsun
W
Sent via BlackBerry by ATT

-Original Message-
From: CG [EMAIL PROTECTED]

Date: Mon, 8 Sep 2008 10:02:58 
To: Android Developersandroid-developers@googlegroups.com
Subject: [android-developers] Re: Alert Dialog never displayed in when call in
 the run() method of  a separate process.



Thank you very much Huebi and hackbod, for first the solution and
taking the time to explain.

I succeded in doing what I want with Handler.

On Sep 8, 6:28 pm, Huebi [EMAIL PROTECTED] wrote:
 Hi,

 you can only display UI stuff from the main thread. You can use the
 Handler classes post() method to put the Dialog display in the event
 queue. Just have a look at the API docs.

 On 8 Sep., 18:16, CG [EMAIL PROTECTED] wrote:

  Hello,

  I am facing a strange issue. I suppose it is due to my bad
  understanding of processes and compatibilities with processes.

  So here is the behavior I'd like to have :
  When I open my map, actions are done in background.
  So I use a progress dialog. For that I need an separate thread.
  But if an error occurs, I'd like to display a warning pop up. This
  popup show request is done inside the run method of the separated
  thread.

  And the warning dialog is never displayed ! I don't understand why.
  Can anyone explain me what is wrong ?
  I join my code snippet to give a picture of what i try to do.

  I also check the API demo and try to override the method
  OnCreateDialog method but with the same result :-(

  I suppose the issue is when I call the show().

  - Code snippet
  public class StationNearActivity extends MapActivity implements
  OnClickListener, Runnable {

      /** Called when the activity is first created. */
      public void onCreate(Bundle icicle) {

          pgd = ProgressDialog.show(this, null,
  getString(R.string.nearest_station_progress_dialog_wait));

  /*
   I create the dialog here
  -*/
          AlertDialog.Builder builder = new AlertDialog.Builder(this);

  builder.setMessage(R.string.nearest_station_gm__popup_no_address_found_label);
          dlg = builder.create();

  /*--
  if I display it there then it works ! But it is not the correct
  behaviour
  dlg.show()
  -*/

          super.onCreate(icicle);
          thisInstance = this;

          mapViewFromXML.setClickable(true);
          mapViewFromXML.setEnabled(true);

          }

          Thread threadOfMap = new Thread(this);
          threadOfMap.start();
      }

      public void run() {
          Looper.prepare();

          try {
              Thread.sleep(200);
          } catch (InterruptedException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }

          // --- Fill the map
          try {
              setMapCenter();
              if (mapCenter == null || (mapCenter.getLatitudeE6() == 0
   mapCenter.getLongitudeE6() == 0)) {

  /*--
  The progress dialog dismiss works but the dialog show not !
  -*/

                  pgd.dismiss();
                  dlg.show();
              }

              Log.d(MAP, add overlay);
             //
              mapViewFromXML.postInvalidate();

          } catch (Exception e) {
              Log.e(Constant.LOG_NS2_MAP, e.toString(), e);
          } finally {
              pgd.dismiss();
          }
      }

  }


--~--~-~--~~~---~--~~
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: Alert Dialog never displayed in when call inthe run() method of a separate process.

2008-09-08 Thread secondsun
W
Sent via BlackBerry by ATT

-Original Message-
From: CG [EMAIL PROTECTED]

Date: Mon, 8 Sep 2008 10:02:58 
To: Android Developersandroid-developers@googlegroups.com
Subject: [android-developers] Re: Alert Dialog never displayed in when call in
 the run() method of  a separate process.



Thank you very much Huebi and hackbod, for first the solution and
taking the time to explain.

I succeded in doing what I want with Handler.

On Sep 8, 6:28 pm, Huebi [EMAIL PROTECTED] wrote:
 Hi,

 you can only display UI stuff from the main thread. You can use the
 Handler classes post() method to put the Dialog display in the event
 queue. Just have a look at the API docs.

 On 8 Sep., 18:16, CG [EMAIL PROTECTED] wrote:

  Hello,

  I am facing a strange issue. I suppose it is due to my bad
  understanding of processes and compatibilities with processes.

  So here is the behavior I'd like to have :
  When I open my map, actions are done in background.
  So I use a progress dialog. For that I need an separate thread.
  But if an error occurs, I'd like to display a warning pop up. This
  popup show request is done inside the run method of the separated
  thread.

  And the warning dialog is never displayed ! I don't understand why.
  Can anyone explain me what is wrong ?
  I join my code snippet to give a picture of what i try to do.

  I also check the API demo and try to override the method
  OnCreateDialog method but with the same result :-(

  I suppose the issue is when I call the show().

  - Code snippet
  public class StationNearActivity extends MapActivity implements
  OnClickListener, Runnable {

      /** Called when the activity is first created. */
      public void onCreate(Bundle icicle) {

          pgd = ProgressDialog.show(this, null,
  getString(R.string.nearest_station_progress_dialog_wait));

  /*
   I create the dialog here
  -*/
          AlertDialog.Builder builder = new AlertDialog.Builder(this);

  builder.setMessage(R.string.nearest_station_gm__popup_no_address_found_label);
          dlg = builder.create();

  /*--
  if I display it there then it works ! But it is not the correct
  behaviour
  dlg.show()
  -*/

          super.onCreate(icicle);
          thisInstance = this;

          mapViewFromXML.setClickable(true);
          mapViewFromXML.setEnabled(true);

          }

          Thread threadOfMap = new Thread(this);
          threadOfMap.start();
      }

      public void run() {
          Looper.prepare();

          try {
              Thread.sleep(200);
          } catch (InterruptedException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }

          // --- Fill the map
          try {
              setMapCenter();
              if (mapCenter == null || (mapCenter.getLatitudeE6() == 0
   mapCenter.getLongitudeE6() == 0)) {

  /*--
  The progress dialog dismiss works but the dialog show not !
  -*/

                  pgd.dismiss();
                  dlg.show();
              }

              Log.d(MAP, add overlay);
             //
              mapViewFromXML.postInvalidate();

          } catch (Exception e) {
              Log.e(Constant.LOG_NS2_MAP, e.toString(), e);
          } finally {
              pgd.dismiss();
          }
      }

  }


--~--~-~--~~~---~--~~
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: Alert Dialog never displayed in when call inthe run() method of a separate process.

2008-09-08 Thread secondsun
A
Sent via BlackBerry by ATT

-Original Message-
From: CG [EMAIL PROTECTED]

Date: Mon, 8 Sep 2008 10:02:58 
To: Android Developersandroid-developers@googlegroups.com
Subject: [android-developers] Re: Alert Dialog never displayed in when call in
 the run() method of  a separate process.



Thank you very much Huebi and hackbod, for first the solution and
taking the time to explain.

I succeded in doing what I want with Handler.

On Sep 8, 6:28 pm, Huebi [EMAIL PROTECTED] wrote:
 Hi,

 you can only display UI stuff from the main thread. You can use the
 Handler classes post() method to put the Dialog display in the event
 queue. Just have a look at the API docs.

 On 8 Sep., 18:16, CG [EMAIL PROTECTED] wrote:

  Hello,

  I am facing a strange issue. I suppose it is due to my bad
  understanding of processes and compatibilities with processes.

  So here is the behavior I'd like to have :
  When I open my map, actions are done in background.
  So I use a progress dialog. For that I need an separate thread.
  But if an error occurs, I'd like to display a warning pop up. This
  popup show request is done inside the run method of the separated
  thread.

  And the warning dialog is never displayed ! I don't understand why.
  Can anyone explain me what is wrong ?
  I join my code snippet to give a picture of what i try to do.

  I also check the API demo and try to override the method
  OnCreateDialog method but with the same result :-(

  I suppose the issue is when I call the show().

  - Code snippet
  public class StationNearActivity extends MapActivity implements
  OnClickListener, Runnable {

      /** Called when the activity is first created. */
      public void onCreate(Bundle icicle) {

          pgd = ProgressDialog.show(this, null,
  getString(R.string.nearest_station_progress_dialog_wait));

  /*
   I create the dialog here
  -*/
          AlertDialog.Builder builder = new AlertDialog.Builder(this);

  builder.setMessage(R.string.nearest_station_gm__popup_no_address_found_label);
          dlg = builder.create();

  /*--
  if I display it there then it works ! But it is not the correct
  behaviour
  dlg.show()
  -*/

          super.onCreate(icicle);
          thisInstance = this;

          mapViewFromXML.setClickable(true);
          mapViewFromXML.setEnabled(true);

          }

          Thread threadOfMap = new Thread(this);
          threadOfMap.start();
      }

      public void run() {
          Looper.prepare();

          try {
              Thread.sleep(200);
          } catch (InterruptedException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }

          // --- Fill the map
          try {
              setMapCenter();
              if (mapCenter == null || (mapCenter.getLatitudeE6() == 0
   mapCenter.getLongitudeE6() == 0)) {

  /*--
  The progress dialog dismiss works but the dialog show not !
  -*/

                  pgd.dismiss();
                  dlg.show();
              }

              Log.d(MAP, add overlay);
             //
              mapViewFromXML.postInvalidate();

          } catch (Exception e) {
              Log.e(Constant.LOG_NS2_MAP, e.toString(), e);
          } finally {
              pgd.dismiss();
          }
      }

  }


--~--~-~--~~~---~--~~
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: Alert Dialog never displayed in when call inthe run() method of a separate process.

2008-09-08 Thread secondsun
Wa
Sent via BlackBerry by ATT

-Original Message-
From: CG [EMAIL PROTECTED]

Date: Mon, 8 Sep 2008 10:02:58 
To: Android Developersandroid-developers@googlegroups.com
Subject: [android-developers] Re: Alert Dialog never displayed in when call in
 the run() method of  a separate process.



Thank you very much Huebi and hackbod, for first the solution and
taking the time to explain.

I succeded in doing what I want with Handler.

On Sep 8, 6:28 pm, Huebi [EMAIL PROTECTED] wrote:
 Hi,

 you can only display UI stuff from the main thread. You can use the
 Handler classes post() method to put the Dialog display in the event
 queue. Just have a look at the API docs.

 On 8 Sep., 18:16, CG [EMAIL PROTECTED] wrote:

  Hello,

  I am facing a strange issue. I suppose it is due to my bad
  understanding of processes and compatibilities with processes.

  So here is the behavior I'd like to have :
  When I open my map, actions are done in background.
  So I use a progress dialog. For that I need an separate thread.
  But if an error occurs, I'd like to display a warning pop up. This
  popup show request is done inside the run method of the separated
  thread.

  And the warning dialog is never displayed ! I don't understand why.
  Can anyone explain me what is wrong ?
  I join my code snippet to give a picture of what i try to do.

  I also check the API demo and try to override the method
  OnCreateDialog method but with the same result :-(

  I suppose the issue is when I call the show().

  - Code snippet
  public class StationNearActivity extends MapActivity implements
  OnClickListener, Runnable {

      /** Called when the activity is first created. */
      public void onCreate(Bundle icicle) {

          pgd = ProgressDialog.show(this, null,
  getString(R.string.nearest_station_progress_dialog_wait));

  /*
   I create the dialog here
  -*/
          AlertDialog.Builder builder = new AlertDialog.Builder(this);

  builder.setMessage(R.string.nearest_station_gm__popup_no_address_found_label);
          dlg = builder.create();

  /*--
  if I display it there then it works ! But it is not the correct
  behaviour
  dlg.show()
  -*/

          super.onCreate(icicle);
          thisInstance = this;

          mapViewFromXML.setClickable(true);
          mapViewFromXML.setEnabled(true);

          }

          Thread threadOfMap = new Thread(this);
          threadOfMap.start();
      }

      public void run() {
          Looper.prepare();

          try {
              Thread.sleep(200);
          } catch (InterruptedException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }

          // --- Fill the map
          try {
              setMapCenter();
              if (mapCenter == null || (mapCenter.getLatitudeE6() == 0
   mapCenter.getLongitudeE6() == 0)) {

  /*--
  The progress dialog dismiss works but the dialog show not !
  -*/

                  pgd.dismiss();
                  dlg.show();
              }

              Log.d(MAP, add overlay);
             //
              mapViewFromXML.postInvalidate();

          } catch (Exception e) {
              Log.e(Constant.LOG_NS2_MAP, e.toString(), e);
          } finally {
              pgd.dismiss();
          }
      }

  }


--~--~-~--~~~---~--~~
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: WebView loadUrl does not seem to work...

2008-09-08 Thread RPO

Mark,
Tried it from home over the weekend, and it works.  I have a second
network connection at work that does not go through a proxy server,
but obviously there are some issues there.  Now, back at work on
Monday, I am able to run the program.

Thanks!

On Sep 5, 5:57 pm, Mark Murphy [EMAIL PROTECTED] wrote:
 RPO wrote:
  This sample is from your book (which I subscribed to)!

 Well, then *clearly* some moron wrote that example!

 Oh, wait...

 ;-)

 More seriously, version 1.2 of the book -- certified for Android 0.9 SDK
 -- should be available within 48 hours, barring a shift in 'urricane
 'anna's path to cause me problems.

 By eyeball, the only serious difference I see between yours and my
 updated one is your choice of URLs to load.

 And I just tried it, and usingwww.google.comfails for me too.

 I ran into this problem with M5 as well. I tried Google's home page, got
 nothing, tried mine, got it to work, and wrote it off as a
 browser-sniffing problem on Google's server.

 And it's not like I broke into the Android version control system and
 hacked it to only show the CommonsWare site -- news.google.com 
 andwww.yahoo.comwork fine, as I've tried them just now.

 So, I'm still chalking it up to being something with the Google home
 page. After all, there's virtually no code to the sample, so it's
 difficult to imagine how it could be right for these other pages and
 wrong for the Google home page.

 I apologize for the difficulty. And thanks for subscribing!

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 _The Busy Coder's Guide to Android Development_ Version 1.1 Published!
--~--~-~--~~~---~--~~
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: WebView

2008-09-08 Thread Chris Chiappone
I wondering the same thing.

2008/9/7 dai [EMAIL PROTECTED]:

 Hi...somebody knows the way to keep web surfing on WebView
 component..?
 Does WebView allow to show web page at first so far?

 Thanks in advnace

 On 9月7日, 午後5:53, Dai Odahara [EMAIL PROTECTED] wrote:
 hi I mean that I do nt open new window. Is it possible not to open web
 window from web view comp?

 On 9/7/08, dai [EMAIL PROTECTED] wrote:



  I'm trying to display web page (html / javascript) on WebView
  component.
  You know, it's ok to show the page on the WebView comp initially but
  after clicking a link (like weather, finance), the web-browser
  embedded on Android originally.

  Does someone know how to keep showing web page on the WebView
  componenet??

  Thank you very much
 




-- 
~chris

--~--~-~--~~~---~--~~
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: how to change system timezone setting?

2008-09-08 Thread Megha Joshi
Also, the recommended way to change timezone is through Settings app, which
not not included in the current sdk ..
For now you can use the following:

AlarmManager alarm = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
alarm.setTimeZone(timezone);

It works with uses-permission
android:name=android.permission.SET_TIME_ZONE/uses-permission


2008/9/6 samlu [EMAIL PROTECTED]


 I added the following code to monitor the timezone changed events.
 I can see the ACTION_TIME_TICK every minute, but no
 ACTION_TIMEZONE_CHANGED when I called TimeZone.setDefault()

   m_br = new BroadcastReceiver() {
public void onReceive(Context context, Intent intent)
{
Log.d(ac, IntentReceiver= + intent.getAction());
}
};

IntentFilter filter = new IntentFilter();
filter.addAction(Intent.ACTION_TIME_TICK);
filter.addAction(Intent.ACTION_TIMEZONE_CHANGED);
registerReceiver(m_br, filter, null, m_handler);

 On Sep 6, 2:39 am, Megha Joshi [EMAIL PROTECTED] wrote:
  2008/9/4 samlu [EMAIL PROTECTED]
 
   I called TimeZone.setDefault() for changing system's timezone, but
   failed.
 
  Can you give more details about what you mean by failed.Is it a logcat
  error or exception or is it incorrect result?
 
 
 
   Is there an API for me to change system's timezone?
 


--~--~-~--~~~---~--~~
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: WebView

2008-09-08 Thread Megha Joshi
This might help:
http://groups.google.com/group/android-developers/browse_thread/thread/859722297d557e8e

2008/9/8 Chris Chiappone [EMAIL PROTECTED]

 I wondering the same thing.

 2008/9/7 dai [EMAIL PROTECTED]:
 
  Hi...somebody knows the way to keep web surfing on WebView
  component..?
  Does WebView allow to show web page at first so far?
 
  Thanks in advnace
 
  On 9月7日, 午後5:53, Dai Odahara [EMAIL PROTECTED] wrote:
  hi I mean that I do nt open new window. Is it possible not to open web
  window from web view comp?
 
  On 9/7/08, dai [EMAIL PROTECTED] wrote:
 
 
 
   I'm trying to display web page (html / javascript) on WebView
   component.
   You know, it's ok to show the page on the WebView comp initially but
   after clicking a link (like weather, finance), the web-browser
   embedded on Android originally.
 
   Does someone know how to keep showing web page on the WebView
   componenet??
 
   Thank you very much
  
 



 --
 ~chris

 


--~--~-~--~~~---~--~~
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: How to display a local file in the browser?

2008-09-08 Thread Megha Joshi
2008/9/8 friedger [EMAIL PROTECTED]


 I am also confused.
 Megha mentioned ContentResolver.openContentURI. That API function
 doesn't seem to exist in 0.9


Can you try getContentResolver().openInputStream instead?



 So could someone please enlight us and give a short example or eplain
 what to do in order to load a file via content provider?

 Thanks,
 Friedger

 On 7 Sep., 16:38, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
  Nothing to do.
  I wrote a ContentProvider returning a cursor pointing to a database
  record having '_id' and '_data' columns filled (the last one contains
  a full path to the file, as remarked on the documentation, in case of
  binary data).
  Passing url 'content://polito.mailandroid/1' to WebView method
  loadUrl, it notifies that there's no supported file.
 


--~--~-~--~~~---~--~~
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] what rules does adb (un)install apply for deleting/ rewriting files?

2008-09-08 Thread zero

Hi all
after going thru some major refactoring on one app,
i didn't see any changes to the gui until i did -wipe-data.
as until today, uninstall always did the trick.
that came somehow unexpected, so i wonder if
there's  a rule of thumb on then install -r or uninstall will
leave files on the device untouched.

--~--~-~--~~~---~--~~
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: Geeting Error in New SDK:- emulator: broken configuration file doesn't have 'window' element

2008-09-08 Thread Dipen

Hi, Shane !

Adding SDK tool folder to my variable path did work for me.  I was
also so surprise by that. And yes, you can run emulator on windows
without eclipse. I am using Windows XP 64, and Java 1.6.

I was getting these error only if I lunch emulator through Eclipse.
Emulator itself from Command line was working fine without any error.
Since I had debugging tools installed with Eclipse I had to make it
work anyhow.

So, only thing i can suggest is to check if you have all updates
installed for Java.

Good Luck,
Dipen

On Sep 6, 5:56 pm, Shane Isbell [EMAIL PROTECTED] wrote:
 I don't think that this has anything to do with setting the path. I rebooted
 my computer. Launched emulator from command line, and received the error
 again. This time I could close the shell. I then reopened a shell and tried
 'emulator' again. The emulator started working.

 On Sat, Sep 6, 2008 at 2:37 PM, Shane Isbell [EMAIL PROTECTED] wrote:

  I have the same error on Windows XP. I do have the SDK/tools directory
  in my path and I still receive the error:

  emulator: broken configuration file doesn't have 'window' element

  To make matters worse, I can't kill the emulator process, not through
  Windows Task Manager, not through trying to close the shell, not with
  a fox, perhaps with a reboot of the box, I do not like it . It is now
  a permanent fixture on my computer. Is it possible to use the emulator
  on Windows without Eclipse?

  Shane

  On Aug 28, 10:42 am, Dipen [EMAIL PROTECTED] wrote:
   Thanks for your Ralf.

   I have solved this problem. I just added emulator path to my variable
   environment, and error disappeared.

   Dipen

   On Aug 26, 11:31 am, Dipen [EMAIL PROTECTED] wrote:

Ralf,

I am using Windows XP Pro., if i launch emulator from command line i
get error which I mentioned in my previous message. But if i debug my
code using Eclipse, i don't see any error.

I was successfully able to upgrade from M5 to 0.9 beta in both windows
and Ubuntu.

I did all my research but did not find any information or solution
about these error. So gave up and using Ubuntu all the time. But i
will still continue doing more research on it.

Thanks for your reply.

Dipen

On Aug 21, 9:58 pm, Ralf [EMAIL PROTECTED] wrote:

 what operating system are you using?

 how do you launch the emulator? click some icon or use a command
  line?
 If so, which one?
 R/

 On Thu, Aug 21, 2008 at 12:37 PM,Dipen[EMAIL PROTECTED] wrote:

  Group,

  I am getting following error if launch emulator itself. And also I
  don't see emulator.cfg file anywhere in my system.

  Error:- emulator: broken configuration file doesn't have 'window'
  element

  Please note, if I launch emulator through IDE, error does not
  appear.

  Any specific reason for this behavior.

  Thanks,
 Dipen- Hide quoted text -

- Show quoted text -
--~--~-~--~~~---~--~~
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: MediaRecord Audio - working example? / raw data stream onPictureTaken()? / Bug in Pictures application?

2008-09-08 Thread Megha Joshi
You need to add this to the contentvalues:

values.put(MediaStore.Audio.Media.IS_MUSIC, 1);

if you want the newly added files to appear in the Album, Artists sections
of the Music app.

2008/9/8 code_android_festival_way [EMAIL PROTECTED]


 I got a problem with the audio recording. I am able to record audio
 and play the recorded file with the music app.

 This looks like this:

 http://img.skitch.com/20080908-m5yaiyqh7jugcub5p5pmmna2ee.jpg

 You can see that the meta information is available. But the only point
 where the audio file shows up is in the recently added music playlist.
 In the artist or album section I cant find anything.

 Now I'm restarting the emulator and get the following result in the
 music app:

 http://img.skitch.com/20080908-825exr6mcqt82dm2idkwpwa7xh.jpg

 You can see that the recorded file is showing up now in the Artist
 column but without the meta information. I am able to play the file
 which looks like this:

 http://img.skitch.com/20080908-jsgf8yghnkdg8241rsqyweje78.jpg

 But even there the meta information is lost.

 Here is my code for adding the values:

 http://paste.pocoo.org/show/fMHzaLRCwEG49qAkpvYh/

 Here is my code for recording:

 http://paste.pocoo.org/show/P6UWFE2rtj0qIB1dh9vQ/

 So I dont really know what I'm doing wrong here.

 I'm really looking forward getting some kind of help from you.

 Regards!



 09-08 11:09:29.035: ERROR/MediaPlayerService(25): Couldn't open fd for
 content://media/external/audio/media/33

 On 2 Sep., 22:35, code_android_festival_way
 [EMAIL PROTECTED] wrote:
  Thank you very much for offering the sample code.
 
  On 2 Sep., 22:16, Megha Joshi [EMAIL PROTECTED] wrote:
 
Please refer to theaudioRecording sample code at the link below:
http://groups.google.com/group/android-developers/files
 
   2008/8/31 code_android_festival_way [EMAIL PROTECTED]
 
Did you get theAudiorecording managed right now?
 
I'm getting the same error again after adding all the fields. It
 would
be pretty nice to have a working example. Because from the docs I
can't decide which fields are required and which are just optional.
 
Regards!
 
On 28 Aug., 07:16, Reto Meier [EMAIL PROTECTED] wrote:
 Hi Justin,
   I've tried explicitly including the display name (and artist and
 album) into the new ContentValue but still end up with exactly the
 same error on the ContentResolver.insert call.
 
 On Aug 27, 10:56 pm, Justin (Google Employee) [EMAIL PROTECTED]
 wrote:
 
   Error:
 
   08-24 19:27:18.675: ERROR/Database(178): Error inserting
title=Content
   Creation No.5 date_added=1219598838 _display_name= album_id=2
   title_key=  -  E  C  O  1  C  O -
   K  1  )  O  9  E  C C  E  „   artist_id=3 using INSERT
 INTO
   audio_meta(title, date_added, _display_name, album_id,
 title_key,
   artist_id) VALUES(?, ?, ?, ?, ?, ?);
 
  From the error it jumps out at me that you're not setting
  MediaStore.Audio.Media.DISPLAY_NAME, which seems like its
 required.
  Also, are you setting the ALBUM_ID and ARTIST_ID somehow or are
 they
  encoded in the URI you're using?
 
  Cheers,
  Justin
  Android Team @ Google
 
  On Aug 24, 3:20 pm, code_android_festival_way
 
  [EMAIL PROTECTED] wrote:
   I've got two questions.
 
   1)
   Is there a working example for recordingaudiowith the
MediaRecorder?
   At the moment I'm using the following setup but it doesnt work:
 
  http://paste.pocoo.org/show/83242/
 
   Error:
 
   08-24 19:27:18.675: ERROR/Database(178): Error inserting
title=Content
   Creation No.5 date_added=1219598838 _display_name= album_id=2
   title_key=  -  E  C  O  1  C  O -
   K  1  )  O  9  E  C C  E  „   artist_id=3 using INSERT
 INTO
   audio_meta(title, date_added, _display_name, album_id,
 title_key,
   artist_id) VALUES(?, ?, ?, ?, ?, ?);
 
   I've tried the example provided in the docs (Media API) but
 that
   doesn't work at all. It would be nice if someone could provide
 a
   working example.
 
   2)
   Is it normal that the raw data stream returned by
 onPictureTaken(...)
   is null?
 
   3)
 
   I'm taking pictures as above mentioned. After that I'm saving
 the
   available jpeg stream into the image ContentProvider which
 works
fine.
   Now I'm leaving my app and try to start the Pictures
 application
   from the home screen. And now I get the following error
 message:
 
  http://img.skitch.com/20080824-mrbc7yuhfh7an5ynndj9hm6twp.jpg
 
   Here is the error from the logs:
 
   08-25 00:15:34.007: ERROR/AndroidRuntime(220):
   java.lang.RuntimeException: Unable to resume activity
   {com.android.camera/com.android.camera.GalleryPicker}:
   java.lang.NullPointerException
 
   I can savely say that I'm calling camera.stopPreview() and
   camera.release() so there shouldn't be a problem

[android-developers] Re: Orientation changes simulation

2008-09-08 Thread blindfold

Hi Peli,

There are still a few things to update in the documentation at
http://code.google.com/p/openintents/wiki/SensorSimulator
such as

Intent.VIEW_ACTION = Intent.ACTION_VIEW

and the requirement to have in the manifest

uses-permission android:name=android.permission.INTERNET/

but otherwise things mostly worked very nicely. However,

SensorManager sensorManager = (SensorManager)
getSystemService(Context.SENSOR_SERVICE);
ok = sensorManager.registerListener(sensorListener,
 SensorManager.SENSOR_ORIENTATION,
 SensorManager.SENSOR_DELAY_NORMAL);

for me still returns false for ok. Do I need to replace these by
some OpenIntents equivalents?
What are the OpenIntents counterparts of

import android.hardware.SensorListener;
import android.hardware.SensorManager;

Thanks

On Sep 7, 9:06 am, Peli [EMAIL PROTECTED] wrote:
 Hi blindfold,

  How can I have a simple switch (in Eclipse) during
  the development cycle such that I can easily build with and without
  the OpenIntents Sensor simulator?

 By default, the SensorManagerSimulator transparently passes requests
 to Android's internal sensor, so if you remove the line
 requiresOpenIntents() and deactivate the menus for Settings and
 Connect, you have your original functionality back. (even though OI
 code remains that increases your apk file size).

 If you completely want to get rid of OI code, I guess there is no way
 other than manually removing the lib from your project and commenting
 out the two additional OI code sections in your code - which is
 quickly done.

 Maybe you can set up two projects in Eclipse: One is your original
 project, and the second one is your test project that depends on the
 first project, but additionally contains the lib. I haven't actually
 tried this, and I don't know if it is worth the effort, given that one
 can easily add lib + code section in a few minutes and remove them
 (remove lib and comment out code) before distribution in a few seconds
 without leaving any traces.

 Let me know if you have further questions.

 Peli

--~--~-~--~~~---~--~~
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] Dalvik VM VFY messages

2008-09-08 Thread android_dev

What are these messages in LogCat output? My app seems to run fine but
there are several messages like this:

DEBUG/dalvikvm(183): VFY: ...
--~--~-~--~~~---~--~~
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: send SMS

2008-09-08 Thread Megha Joshi
Are you using the latest sdk 0.9?

2008/9/7 jphdsn [EMAIL PROTECTED]


 hello, I'm a new french developer on android.


 I try the SMSAPISample but it doesn't work.

 import android.app.PendingIntent is not recognize.

 I 've take a look to the documentation and It seems that there is no
 other way to send SMS.

 Someone have tried and succeed with the sample or with another method?

 Someone have a response?  thank's



 


--~--~-~--~~~---~--~~
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] HttpClient thread safety?

2008-09-08 Thread Allan Hsu

Does anybody know if the version of HttpClient in the Android SDK is  
thread safe? The API documentation ( at 
http://code.google.com/android/reference/org/apache/http/client/HttpClient.html 
  ) just has the standard Apache Thread safety of HTTP clients  
depends on the implementation and configuration of the specific  
client. disclaimer.

-Allan
--
Allan Hsu allan at counterpop dot net


--~--~-~--~~~---~--~~
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] Samples

2008-09-08 Thread [EMAIL PROTECTED]

At least the CameraAPISample.zip is broken.

Unlike every other sample I have tried so far, this one does not
correctly import into ADT-enabled Eclipse.
It does not even get recognized as containing a project at all.

Please Justin could you fix that?;-)

--~--~-~--~~~---~--~~
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] Button and PopupWindow

2008-09-08 Thread gbr.toni

Hi to everyone,
I have the following problem..
I have a ListView, and I want this: when a ListItem is selected, a
PopupWindow appears with a button inside. Then I want to be able to
set the button click action.

This is my function:
protected void onListItemClick(ListView l, View v, int position, long
id) {
super.onListItemClick(l, v, position, id);
PopupWindow pw = new
PopupWindow(this.getLayoutInflater().inflate(R.layout.scelta,
null, true),100,100,true);
   ColorDrawable dw=new ColorDrawable(-65281);

  pw.setBackgroundDrawable(dw);
  pw.showAsDropDown(l);

  Button delete= (Button) findViewById(R.id.delete);

  delete.setOnClickListener(new Button.OnClickListener(){
  public void onClick(View v){
  delete();
  }
  });

The following is scelta.xml:
?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

Button android:id=@+id/edit
android:text=@string/edit
android:layout_width=wrap_content
android:layout_height=wrap_content /
Button android:id=@+id/cancella
android:text=@string/cancella
android:layout_width=wrap_content
android:layout_height=wrap_content /

/LinearLayout

The problem is that this code doesn't works, and when I try to debug
it, it seems that it's not possible to find the button. (the button
value is null).
Any suggestion?
Thanks
Gabri


--~--~-~--~~~---~--~~
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: Samples

2008-09-08 Thread Megha Joshi
2008/9/8 [EMAIL PROTECTED] [EMAIL PROTECTED]


 At least the CameraAPISample.zip is broken.

 Unlike every other sample I have tried so far, this one does not
 correctly import into ADT-enabled Eclipse.
 It does not even get recognized as containing a project at all.

 Please Justin could you fix that?;-)


It works on my machine...are you using the latest 0.9 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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: HttpClient thread safety?

2008-09-08 Thread Mark Murphy

 Does anybody know if the version of HttpClient in the Android SDK is
 thread safe? The API documentation ( at
 http://code.google.com/android/reference/org/apache/http/client/HttpClient.html
   ) just has the standard Apache Thread safety of HTTP clients
 depends on the implementation and configuration of the specific
 client. disclaimer.

The HttpComponents class for multithreaded connections is
ThreadSafeClientConnManager. It would appear this class is not part of the
Android 0.9 SDK, at least not in a public spot.

--
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.2 Published!



--~--~-~--~~~---~--~~
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] SQL replication?

2008-09-08 Thread David Given
I have an app that wants read-only access to a fairly small MySQL
database held on a remote server. For speed, I want to hold a copy of
the database locally. (It only gets updated once a week or so.)

What I'm currently doing is I've got a PHP script on the remote machine
that dumps out the database in XML format. My app then reads this in,
parses it, and populates the local database accordingly. This is
horribly slow, even using a streamlined XML parser of my own rather than
the achingly slow built-in one.

Given that they both use SQL, there's got to be a better way of doing
this. Could I, for example, simply get the remote server to do an SQL
dump and throw this at SQLite without horribly compromising security?
Are there any streamlined (i.e. fast) replication data formats I could
use? Has anyone done anything like this who can suggest anything?

-- 
┌─── dg@cowlark.com ─ http://www.cowlark.com ─
│
│ All power corrupts, but we need electricity. --- Diana Wynne Jones,
│ _Archer's Goon_



signature.asc
Description: OpenPGP digital signature


[android-developers] adb tool connects to real H/W?

2008-09-08 Thread hayabusa

Hi,
I would like to access the Android on the real H/W by the adb tools .
But adb connects to only emulator device(localhost:127.0.0.1) .
How to connect adb to the external device(192.168.0.2) through the
NIC?

Anyone can help me?

--~--~-~--~~~---~--~~
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: SQL replication?

2008-09-08 Thread Mark Murphy

 Given that they both use SQL, there's got to be a better way of doing
 this. Could I, for example, simply get the remote server to do an SQL
 dump and throw this at SQLite without horribly compromising security?
 Are there any streamlined (i.e. fast) replication data formats I could
 use? Has anyone done anything like this who can suggest anything?

A SQLite database is contained in a single file. I suggest trying this:

1. Grab a copy of the database off the device using adb pull or something

2. Whip up an activity that downloads that file off your server and stores
it in the local file store (openFileOutput())

3. Try using SQLiteDatabase#openDatabase() with the full path to the file,
and see if you can work with it

If that all works, you can do the MySQL-SQLite conversion on your server,
where you have a wee bit more horsepower.

--
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.2 Published!



--~--~-~--~~~---~--~~
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: Orientation changes simulation

2008-09-08 Thread Peli

Sorry, yes I have not updated the old m5 documentation.

Everything is well documented in the samples/ApiDemosSensors though.

You have to replace this:
--
mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);
--
by this:

// Before calling any of the Simulator data,
// the Content resolver has to be set !!
Hardware.mContentResolver = getContentResolver();

// Link sensor manager to OpenIntents Sensor simulator
mSensorManager = (SensorManager) new
SensorManagerSimulator((SensorManager)
  getSystemService(SENSOR_SERVICE));


By default this still passes the original sensor values, so to
activate sensors you have to first call (to set the sensor settings):
---
Intent intent = new Intent(Intent.ACTION_VIEW,
Hardware.Preferences.CONTENT_URI);
startActivity(intent);
-

and then
-
// first disable the current sensor
mSensorManager.unregisterListener(mGraphView);

// now connect to simulator
SensorManagerSimulator.connectSimulator();

// now enable the new sensors
mSensorManager.registerListener(mGraphView,
   SensorManager.SENSOR_ACCELEROMETER |
   SensorManager.SENSOR_MAGNETIC_FIELD |
   SensorManager.SENSOR_ORIENTATION,
   SensorManager.SENSOR_DELAY_FASTEST);
-

Then just implement the android SensorListener (there is no OI
counterpart necessary).

I hope this helps (and I hope I will find time to update the outdated
documentation - sorry for the confusion).

Peli

On 8 Sep., 23:18, blindfold [EMAIL PROTECTED] wrote:
 Hi Peli,

 There are still a few things to update in the documentation 
 athttp://code.google.com/p/openintents/wiki/SensorSimulator
 such as

 Intent.VIEW_ACTION = Intent.ACTION_VIEW

 and the requirement to have in the manifest

 uses-permission android:name=android.permission.INTERNET/

 but otherwise things mostly worked very nicely. However,

 SensorManager sensorManager = (SensorManager)
 getSystemService(Context.SENSOR_SERVICE);
 ok = sensorManager.registerListener(sensorListener,
          SensorManager.SENSOR_ORIENTATION,
          SensorManager.SENSOR_DELAY_NORMAL);

 for me still returns false for ok. Do I need to replace these by
 some OpenIntents equivalents?
 What are the OpenIntents counterparts of

 import android.hardware.SensorListener;
 import android.hardware.SensorManager;

 Thanks

 On Sep 7, 9:06 am, Peli [EMAIL PROTECTED] wrote:



  Hi blindfold,

   How can I have a simple switch (in Eclipse) during
   the development cycle such that I can easily build with and without
   the OpenIntents Sensor simulator?

  By default, the SensorManagerSimulator transparently passes requests
  to Android's internal sensor, so if you remove the line
  requiresOpenIntents() and deactivate the menus for Settings and
  Connect, you have your original functionality back. (even though OI
  code remains that increases your apk file size).

  If you completely want to get rid of OI code, I guess there is no way
  other than manually removing the lib from your project and commenting
  out the two additional OI code sections in your code - which is
  quickly done.

  Maybe you can set up two projects in Eclipse: One is your original
  project, and the second one is your test project that depends on the
  first project, but additionally contains the lib. I haven't actually
  tried this, and I don't know if it is worth the effort, given that one
  can easily add lib + code section in a few minutes and remove them
  (remove lib and comment out code) before distribution in a few seconds
  without leaving any traces.

  Let me know if you have further questions.

  Peli- Zitierten Text ausblenden -

 - Zitierten Text anzeigen -
--~--~-~--~~~---~--~~
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: Adding audio files to res/raw fails to add them to R.java

2008-09-08 Thread Mark Murphy

 I have seen that hitting F5 does cause Eclipse to add these to the raw
 folder, but what exactly am I to do to gain access to the resources
 from within my app?  Do I need to edit the manifest?

I can't speak specifically for Eclipse, but, generally, resources in
res/raw/ will be accessed as R.raw., where  is the basename of the
file (e.g., for res/raw/snicklefritz.mp3, you reference it as
R.raw.snicklefritz).

--
Mark Murphy (a Commons Guy)
http://commonsware.com
_The Busy Coder's Guide to Android Development_ Version 1.2 Published!



--~--~-~--~~~---~--~~
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: Adding audio files to res/raw fails to add them to R.java

2008-09-08 Thread DulcetTone

I see my error.  I moved my Activity after creating the project, and
there is a tug-of-war about where R.java belongs.
There is another one lurking around that IS being updated properly.  I
will work to bring the two together!

tone


On Sep 8, 8:03 pm, Mark Murphy [EMAIL PROTECTED] wrote:

 I can't speak specifically for Eclipse, but, generally, resources in
 res/raw/ will be accessed as R.raw., where  is the basename of the
 file (e.g., for res/raw/snicklefritz.mp3, you reference it as
 R.raw.snicklefritz).



--~--~-~--~~~---~--~~
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: Does getLocationFromName work in 0.9?

2008-09-08 Thread plusminus

Devices are getting closer and closer :(

On 6 Sep., 16:49, Megha Joshi [EMAIL PROTECTED] wrote:
 You are right, getFromLocationName() with bounding box returns a empty list
 ...it is a bug...and will be fixed in the next release.

 2008/9/6 [EMAIL PROTECTED] [EMAIL PROTECTED]



  Sorry to bump, but does this work for anyone?

  On Sep 3, 10:59 am, [EMAIL PROTECTED]
  [EMAIL PROTECTED] wrote:
   Does anyone know if getLocationFromName (with a bounding box) works in
   0.9? I can use the simpler version just fine:

   public ListAddressgetFromLocationName(String locationName, int
   maxResults)

   When I use the version that accepts a bounding box, I always get a
   null result:
   public ListAddressgetFromLocationName(String locationName, int
   maxResults, double lowerLeftLatitude, double lowerLeftLongitude,
   double upperRightLatitude, double upperRightLongitude)

   Has anyone successfully used it?


--~--~-~--~~~---~--~~
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: how to change system timezone setting?

2008-09-08 Thread samlu

Thank Megha.

The alarm.setTimeZone() works perfectively.

On Sep 9, 3:30 am, Megha Joshi [EMAIL PROTECTED] wrote:
 Also, the recommended way to change timezone is through Settings app, which
 not not included in the current sdk ..
 For now you can use the following:

 AlarmManager alarm = (AlarmManager) getSystemService(Context.ALARM_SERVICE);
 alarm.setTimeZone(timezone);

 It works with uses-permission
 android:name=android.permission.SET_TIME_ZONE/uses-permission


--~--~-~--~~~---~--~~
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 achieve dynamic installation in Android system

2008-09-08 Thread goto

How to achieve dynamic installation in Android system,Like
platformRequest(String URL) in J2ME System.
thanks .
goto.

--~--~-~--~~~---~--~~
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: 0.9 new blank screens and calls to Activity.onResume()

2008-09-08 Thread Karl Rosaen

Hi Joa,

When the screen turns on, the lock screen is showing, which
technically is a system window, not an activity.   This is why the
underlying activity is resumed.  A better indication that your
activity is really in front of the user is to use:

http://code.google.com/android/reference/android/app/Activity.html#onWindowFocusChanged(boolean)

your activity will not get window focus until the lock screen is gone.

Hope this helps,
Karl

On Aug 31, 12:08 pm, Joa [EMAIL PROTECTED] wrote:
 I am using Activity.onPause() and .onResume() to hibernate parts of my
 app's to save battery and stop expensive servercalls. It mostly
 works as expected, except for one situation involving the (newto 
 me)blank/idlescreens.
 1. When an app runs, and the (red) hangup-key is pushed, a screen
 blanks shows, and, as expected, .onPause() is called which allows to
 send an app into hibernation.
 2. In this state, a push on any button changes from theblankscreen
 to an info screen (I haven't found how it's officially called) showing
 Andrdoid, time, charge status etc. This screen does not show any
 parts of a running app, which is fine, except that app's
 receive .onResume(). Not quite as expected. Now, as a result of
 onResume(), expensive applicationcallsresume without any benefit
 to the user.
 Is this the desired behavior? If so, what is the correct practice to
 follow these state changes?
--~--~-~--~~~---~--~~
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: Open Browser from application with POST data attached.

2008-09-08 Thread Baran

Hi,

I need to open a browser from my application, The requirement is to
send some data not via URL like in GET method. I want to post data via
post. is that possible?

On Sep 9, 2:44 am, Megha Joshi [EMAIL PROTECTED] wrote:
 2008/9/8 Baran [EMAIL PROTECTED]



  Hi,

  Any idea about how we can open a web browser through our android
  appoication with POST data attached to the requested uri.

  I am able to open a web page on the browser from the application using
  the Intent feature, but now I am wondering if this is possible to have
  POST data attached to the requested uri.

 I am not clear on what you intend to do here...how can POST data be attached
 to a URI? Do you mean GET data?



  Thanks in advance!!


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---