[android-developers] Re: How to re-use the photo picker activity in my application

2008-09-12 Thread Nickname

Thanku, Megha!

One more question: does that mean camera cannot work without sdcard
installed?


On Sep 11, 10:23 am, Megha Joshi [EMAIL PROTECTED] wrote:
 2008/9/11 Nickname [EMAIL PROTECTED]



  *** HELP ***

  I followed Cheryl Sedota's sample code to reuse photo picker activity.
  The activity showed up, but... there is no photos to verify it.

  Can anyone please teach me WHERE and HOW to MAUNUALLY add photos to
  Android repository so that Android photo pick activity can pick??

 One of the ways to test this manually..is to launch the emulator with
 sdcard. Then launch the  camera app, hit the center dpad button to take a
 picture.
 Then you will see this picture in the photo picker.



  Thanks! Thanks!!!

  On Sep 10, 2:41 pm, Nickname [EMAIL PROTECTED] wrote:
   It seems I have missed this stuff, which is what i desperately need!

   Where can I find the documentation on this photo picker activity?

   Thanks for any information!!

   On Aug 29, 12:49 pm, Cheryl Sedota [EMAIL PROTECTED] wrote:

Hi, I have some code that attempts to invoke thephotopickeractivity
for result.  I can successfully launch thephotopickeractivity, but
my activity does not receive a result at all (onActivityResult() is
never called).  Can anyone help?  Thanks!!! - Cheryl

    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        Button button = (Button) findViewById(R.id.pick_button);
        button.setOnClickListener(new View.OnClickListener()
        {

            @Override
            public void onClick(View view)
            {
                Log.i(TAG, Trying to start thephotopicker
activity);

                Intent photoPickerIntent = new
Intent(Intent.ACTION_PICK);
                // Intent photoPickerIntent = new
                // Intent(Intent.ACTION_GET_CONTENT);
                photoPickerIntent.setType(image/*);
                startActivityForResult(photoPickerIntent, 1);

            }
        });
     }

    @Override
    protected void onActivityResult(int i, int j, Intent intent)
    {
        super.onActivityResult(i, j, intent);

        // TODO: figure out why this method never gets invoked
        Log.i(TAG, Got the result:  + intent.getDataString());
    }



--~--~-~--~~~---~--~~
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: Mock Location Provider [SOLVED+IMPROVED]

2008-09-12 Thread Justin (Google Employee)

It seems like the file was renamed, but you can still get it from the
files section of this group, 
http://groups.google.com/group/android-developers/files

Cheers,
Justin
Android Team @ Google

On Sep 10, 7:18 am, ken [EMAIL PROTECTED] wrote:
 Hi Justin,

 I just tried to download

 http://groups.google.com/group/android-developers/web/mock_provider.zip

 but I got a 404.  Is it available somewhere else?

 Thanks,
 Ken

 On Sep 9, 2:21 pm, Justin (Google Employee) [EMAIL PROTECTED] wrote:

  Thanks Stefan, for providing the additional route. I just included a
  trivial one and the hope is that users will input what ever route data
  source makes sense for them.

  In the future I might work on enhancing the program to include a set
  of routes to choose from and the ability to just specify different
  data sources like a URL, file path, or contentprovider.

  Cheers,
  Justin
  Android Team @ Google

  On Sep 3, 9:56 am, Stefan Handschuh [EMAIL PROTECTED] wrote:

   I somehow improved Justins code.

   Seehttp://pastebin.com/m1f06415f

   It has now a New-York based journey (longer than before) and the
   time-interval between each points can be set so that the update inveral
   (set to 500ms) can be arbitraryly small (see line 177)

   @Justin: if you like it, please include it in you zip-file

I just posted some code 
athttp://groups.google.com/group/android-developers/web/mock_provider.zip
that implements amocklocationprovider. This runs entirely in the
emulator, so it should work across all platforms. It allows you to
specify a set of coordinates and will the just loop through them
forever. This could easily be adapted to read data from a file, URL,
etc. As Stefan points out 
onhttp://groups.google.com/group/android-developers/browse_frm/thread/2...
, its important to set the time value on the Location you pass to the
location service. If a new Location has the same time value as the
previous one the LocationManager received, the location won't be
updated.

You should be able to compile this, install it on the emulator, run
it, and then see the location change in Maps application.

Hopefully this puts it all together and resolves issues that many have
been encountering.

Cheers,
Justin
Android Team @ Google
--~--~-~--~~~---~--~~
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 re-use the photo picker activity in my application

2008-09-12 Thread Megha Joshi
2008/9/12 Nickname [EMAIL PROTECTED]


 Thanku, Megha!

 One more question: does that mean camera cannot work without sdcard
 installed?


Yes, you cannot use camera to capture pictures without installing sdcard.




 On Sep 11, 10:23 am, Megha Joshi [EMAIL PROTECTED] wrote:
  2008/9/11 Nickname [EMAIL PROTECTED]
 
 
 
   *** HELP ***
 
   I followed Cheryl Sedota's sample code to reuse photo picker activity.
   The activity showed up, but... there is no photos to verify it.
 
   Can anyone please teach me WHERE and HOW to MAUNUALLY add photos to
   Android repository so that Android photo pick activity can pick??
 
  One of the ways to test this manually..is to launch the emulator with
  sdcard. Then launch the  camera app, hit the center dpad button to take a
  picture.
  Then you will see this picture in the photo picker.
 
 
 
   Thanks! Thanks!!!
 
   On Sep 10, 2:41 pm, Nickname [EMAIL PROTECTED] wrote:
It seems I have missed this stuff, which is what i desperately need!
 
Where can I find the documentation on this photo picker activity?
 
Thanks for any information!!
 
On Aug 29, 12:49 pm, Cheryl Sedota [EMAIL PROTECTED] wrote:
 
 Hi, I have some code that attempts to invoke thephotopickeractivity
 for result.  I can successfully launch thephotopickeractivity, but
 my activity does not receive a result at all (onActivityResult() is
 never called).  Can anyone help?  Thanks!!! - Cheryl
 
 @Override
 public void onCreate(Bundle savedInstanceState)
 {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.main);
 
 Button button = (Button) findViewById(R.id.pick_button);
 button.setOnClickListener(new View.OnClickListener()
 {
 
 @Override
 public void onClick(View view)
 {
 Log.i(TAG, Trying to start thephotopicker
 activity);
 
 Intent photoPickerIntent = new
 Intent(Intent.ACTION_PICK);
 // Intent photoPickerIntent = new
 // Intent(Intent.ACTION_GET_CONTENT);
 photoPickerIntent.setType(image/*);
 startActivityForResult(photoPickerIntent, 1);
 
 }
 });
  }
 
 @Override
 protected void onActivityResult(int i, int j, Intent intent)
 {
 super.onActivityResult(i, j, intent);
 
 // TODO: figure out why this method never gets invoked
 Log.i(TAG, Got the result:  + intent.getDataString());
 }
 
 

 


--~--~-~--~~~---~--~~
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] Allocation too large for this process

2008-09-12 Thread Zach Hobbs

I'm able to randomly reproduce a situation that crashes my application.  Does 
this mean that my application is using too much memory?  The logcat output 
is:

09-12 16:33:43.357: ERROR/dalvikvm-heap(157): 528640-byte external allocation 
too large for this process.
09-12 16:33:43.357: ERROR/(157): VM won't let us allocate 528640 bytes
09-12 16:33:43.357: DEBUG/AndroidRuntime(157): Shutting down VM
09-12 16:33:43.367: WARN/dalvikvm(157): threadid=3: thread exiting with 
uncaught exception (group=0x40010e28)
09-12 16:33:43.367: ERROR/AndroidRuntime(157): Uncaught handler: thread main 
exiting due to uncaught exception
09-12 16:33:43.387: ERROR/AndroidRuntime(157): java.lang.RuntimeException: 
can't alloc pixels
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
android.graphics.Bitmap.nativeCreate(Native Method)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
android.graphics.Bitmap.createBitmap(Bitmap.java:343)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
android.view.View.buildDrawingCache(View.java:5153)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
android.view.ViewGroup.onAnimationStart(ViewGroup.java:1105)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
android.view.ViewGroup.drawChild(ViewGroup.java:1312)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1192)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
android.view.ViewGroup.drawChild(ViewGroup.java:1418)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1192)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
android.view.ViewGroup.drawChild(ViewGroup.java:1418)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1192)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
android.view.ViewGroup.drawChild(ViewGroup.java:1418)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
android.view.ViewGroup.dispatchDraw(ViewGroup.java:1192)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
android.view.View.draw(View.java:5263)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
android.widget.FrameLayout.draw(FrameLayout.java:324)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:1692)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
android.view.ViewRoot.draw(ViewRoot.java:940)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
android.view.ViewRoot.performTraversals(ViewRoot.java:789)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
android.view.ViewRoot.handleMessage(ViewRoot.java:1051)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
android.os.Handler.dispatchMessage(Handler.java:88)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
android.os.Looper.loop(Looper.java:123)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
android.app.ActivityThread.main(ActivityThread.java:3708)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
java.lang.reflect.Method.invokeNative(Native Method)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
java.lang.reflect.Method.invoke(Method.java:492)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:734)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:492)
09-12 16:33:43.387: ERROR/AndroidRuntime(157): at 
dalvik.system.NativeStart.main(Native Method)

-- 

Zach Hobbs 
HelloAndroid.com 
Android OS news, tutorials, downloads

--~--~-~--~~~---~--~~
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 remove a view

2008-09-12 Thread Billsen

Thanks for your help. It works with setVisibility.

On Sep 12, 3:11 pm, Kavi [EMAIL PROTECTED] wrote:
 Look at the setVisibility method to change the visibility options for
 the view.

 http://code.google.com/android/reference/android/view/View.html#setVi...)

--~--~-~--~~~---~--~~
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 icon in Alert Dialog box?

2008-09-12 Thread Dipen

Group,

I have solved the problem. I had to put the images into the
application pacakage.
I have one question. Is it possible to push images into the /data/
local/tamp folder and then use them across several applications?

Thanks,
Dipen

On Sep 12, 4:11 pm, Dipen [EMAIL PROTECTED] wrote:
 Team,

 I want to change the default icon that appears on Alert Dialog box.
 Here is my code:

  public void onClick(View view) {
                 Drawable d = 
 Drawable.createFromPath(/data/local/tmp/images);
                         new AlertDialog.Builder(this)
                         .setIcon(d)
                 .setTitle(Attention)
                 .setMessage(Some Message)
                 .setNeutralButton(Close, new
 DialogInterface.OnClickListener() {
                    public void onClick(DialogInterface dlg, int sumthin) {

                    }
                 })
                 .show();
             }

 I have pushed .png image.

 No errors but i don;t see the change.

 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] Re: create map

2008-09-12 Thread Megha Joshi
2008/9/12 Peterman [EMAIL PROTECTED]


 Hi

 I was working with the old sdk of android but when I updated my sdk I
 have problems to draw maps. When I execute the line setContentView to
 show the map I have the follow error :

 09-12 10:19:57.213: ERROR/MapActivity(732): Couldn't get connection
 factory client


Check out the tips to fix MapView crashes in the porting m5-0.9 doc:
http://groups.google.com/group/android-developers/web/m5-to-0-9-porting-and-migration-tips
*

*




 Somebody Knows what's the problem?
 Can somebody give me a piece of code of example ?

 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] Re: How to change data in emulator, which is set in android:label in AndroidManifest.xml file.

2008-09-12 Thread Megha Joshi
Use setTitle():
http://code.google.com/android/reference/android/app/Activity.html#setTitle(int)

2008/9/12 Billsen [EMAIL PROTECTED]


 Hi,

 As an Android application is started in emulator, The text specified
 in android:label of AndroidManifest.xml file will be displayed in the
 top-right corner of emulator. I need to change the text dynamically,
 meaning as clicking a button, the text will be changed. How to do
 this.

 Thanks,
 Senshan

 


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

2008-09-12 Thread jtaylor


In the Photostream App is UserTask.java. How much more efficient is
this class then using threads and handlers as normally? In UserTask,
there's alot of things from java.util.concurrent, threadpools, etc.
Does this mean UserTask is probably more efficient? In what
circumstances is it probably more efficient?


- Juan T.
--~--~-~--~~~---~--~~
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 re-use the photo picker activity in my application

2008-09-12 Thread Nickname

More thanks, Megha.

One more problem: when i try to push a photo file from my XP directory
to /sdcard directory where taken photos seem have been stored, the
following errors show up. Could you please take time to elaborate them
and instruct me how to fix it, because i need to add a few non-
factory photos there so that i can take some screen shots of my
application to convice potential investors ^_^


On Sep 12, 12:05 pm, Megha Joshi [EMAIL PROTECTED] wrote:
 2008/9/12 Nickname [EMAIL PROTECTED]



  Thanku, Megha!

  One more question: does that mean camera cannot work without sdcard
  installed?

 Yes, you cannot use camera to capture pictures without installing sdcard.



  On Sep 11, 10:23 am, Megha Joshi [EMAIL PROTECTED] wrote:
   2008/9/11 Nickname [EMAIL PROTECTED]

*** HELP ***

I followed Cheryl Sedota's sample code to reuse photo picker activity.
The activity showed up, but... there is no photos to verify it.

Can anyone please teach me WHERE and HOW to MAUNUALLY add photos to
Android repository so that Android photo pick activity can pick??

   One of the ways to test this manually..is to launch the emulator with
   sdcard. Then launch the  camera app, hit the center dpad button to take a
   picture.
   Then you will see this picture in the photo picker.

Thanks! Thanks!!!

On Sep 10, 2:41 pm, Nickname [EMAIL PROTECTED] wrote:
 It seems I have missed this stuff, which is what i desperately need!

 Where can I find the documentation on this photo picker activity?

 Thanks for any information!!

 On Aug 29, 12:49 pm, Cheryl Sedota [EMAIL PROTECTED] wrote:

  Hi, I have some code that attempts to invoke thephotopickeractivity
  for result.  I can successfully launch thephotopickeractivity, but
  my activity does not receive a result at all (onActivityResult() is
  never called).  Can anyone help?  Thanks!!! - Cheryl

      @Override
      public void onCreate(Bundle savedInstanceState)
      {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);

          Button button = (Button) findViewById(R.id.pick_button);
          button.setOnClickListener(new View.OnClickListener()
          {

              @Override
              public void onClick(View view)
              {
                  Log.i(TAG, Trying to start thephotopicker
  activity);

                  Intent photoPickerIntent = new
  Intent(Intent.ACTION_PICK);
                  // Intent photoPickerIntent = new
                  // Intent(Intent.ACTION_GET_CONTENT);
                  photoPickerIntent.setType(image/*);
                  startActivityForResult(photoPickerIntent, 1);

              }
          });
       }

      @Override
      protected void onActivityResult(int i, int j, Intent intent)
      {
          super.onActivityResult(i, j, intent);

          // TODO: figure out why this method never gets invoked
          Log.i(TAG, Got the result:  + intent.getDataString());
      }



--~--~-~--~~~---~--~~
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 re-use the photo picker activity in my application

2008-09-12 Thread Megha Joshi
2008/9/12 Nickname [EMAIL PROTECTED]


 More thanks, Megha.

 One more problem: when i try to push a photo file from my XP directory
 to /sdcard directory where taken photos seem have been stored, the
 following errors show up. Could you please take time to elaborate them
 and instruct me how to fix it, because i need to add a few non-
 factory photos there so that i can take some screen shots of my
 application to convice potential investors ^_^


Please include the steps /commands you used and the  errorlog.




 On Sep 12, 12:05 pm, Megha Joshi [EMAIL PROTECTED] wrote:
  2008/9/12 Nickname [EMAIL PROTECTED]
 
 
 
   Thanku, Megha!
 
   One more question: does that mean camera cannot work without sdcard
   installed?
 
  Yes, you cannot use camera to capture pictures without installing sdcard.
 
 
 
   On Sep 11, 10:23 am, Megha Joshi [EMAIL PROTECTED] wrote:
2008/9/11 Nickname [EMAIL PROTECTED]
 
 *** HELP ***
 
 I followed Cheryl Sedota's sample code to reuse photo picker
 activity.
 The activity showed up, but... there is no photos to verify it.
 
 Can anyone please teach me WHERE and HOW to MAUNUALLY add photos to
 Android repository so that Android photo pick activity can pick??
 
One of the ways to test this manually..is to launch the emulator with
sdcard. Then launch the  camera app, hit the center dpad button to
 take a
picture.
Then you will see this picture in the photo picker.
 
 Thanks! Thanks!!!
 
 On Sep 10, 2:41 pm, Nickname [EMAIL PROTECTED] wrote:
  It seems I have missed this stuff, which is what i desperately
 need!
 
  Where can I find the documentation on this photo picker activity?
 
  Thanks for any information!!
 
  On Aug 29, 12:49 pm, Cheryl Sedota [EMAIL PROTECTED]
 wrote:
 
   Hi, I have some code that attempts to invoke
 thephotopickeractivity
   for result.  I can successfully launch thephotopickeractivity,
 but
   my activity does not receive a result at all
 (onActivityResult() is
   never called).  Can anyone help?  Thanks!!! - Cheryl
 
   @Override
   public void onCreate(Bundle savedInstanceState)
   {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.main);
 
   Button button = (Button)
 findViewById(R.id.pick_button);
   button.setOnClickListener(new View.OnClickListener()
   {
 
   @Override
   public void onClick(View view)
   {
   Log.i(TAG, Trying to start thephotopicker
   activity);
 
   Intent photoPickerIntent = new
   Intent(Intent.ACTION_PICK);
   // Intent photoPickerIntent = new
   // Intent(Intent.ACTION_GET_CONTENT);
   photoPickerIntent.setType(image/*);
   startActivityForResult(photoPickerIntent, 1);
 
   }
   });
}
 
   @Override
   protected void onActivityResult(int i, int j, Intent
 intent)
   {
   super.onActivityResult(i, j, intent);
 
   // TODO: figure out why this method never gets invoked
   Log.i(TAG, Got the result:  +
 intent.getDataString());
   }
 
 

 


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

2008-09-12 Thread Romain Guy


It should be as efficient as using threads and handlers yourself.

On Sep 12, 2008 4:38 PM, jtaylor [EMAIL PROTECTED] wrote:



In the Photostream App is UserTask.java. How much more efficient is
this class then using threads and handlers as normally? In UserTask,
there's alot of things from java.util.concurrent, threadpools, etc.
Does this mean UserTask is probably more efficient? In what
circumstances is it probably more efficient?


- Juan T.


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

2008-09-12 Thread jtaylor

Great! And who wrote Photostream?


- Juan T.

On Sep 12, 7:54 pm, Romain Guy [EMAIL PROTECTED] wrote:
 It should be as efficient as using threads and handlers yourself.

 On Sep 12, 2008 4:38 PM, jtaylor [EMAIL PROTECTED] wrote:

 In the Photostream App is UserTask.java. How much more efficient is
 this class then using threads and handlers as normally? In UserTask,
 there's alot of things from java.util.concurrent, threadpools, etc.
 Does this mean UserTask is probably more efficient? In what
 circumstances is it probably more efficient?

 - Juan T.
--~--~-~--~~~---~--~~
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: Filter-Search Applications

2008-09-12 Thread Andrew Stadler

Unfortunately, Filter search (as defined in the SearchManager
documentation) is no longer supported, but the changes did not make it
into the 0.9 SDK documentation.  The updated documentation will be
available in the next SDK release.

If you would like to support live (filter-as-you-type) search, there
are now two alternatives available (and these *are* available in the
0.9 SDK).

* If you wish to filter the data displayed in a local presentation,
say in a ListView, you'll want to look into using
android.widget.Filter, which can be applied to any of the classes that
implement android.widget.Filterable.

* If you wish to use the SearchManager UI, you can implement a
Suggestions Provider which provides a list of potential answers as the
user types.  This UI is often used to display a filtered list of
recent search queries, but you could also use it to display a filtered
list of actual results.

Regarding what you are seeing on your application, if you wish to use
the Search Manager, I would suggest removing the filtering mode
flag(s) and see if normal query search is working for you.

Apologies for any confusion with the older documentation.

--Andy
(Google engineer)


On Fri, Sep 12, 2008 at 1:46 AM, friedger [EMAIL PROTECTED] wrote:

 Hi,

 I try to add filter search to my application, query search works fine.
 I can type in a search term press enter and the result is presented.
 However, I don't get a new intent when I change the search term.

 (from doc of SearchManager: You will receive a new ACTION_SEARCH
 Intent each time the user enters or changes the search text. You must
 receive and handle these new intents by overriding onNewIntent.)

 I added the filterMode bit but nothing happens. What else do I have to
 do in order to enable filter search?

 Here is my
 search xml:

 searchable xmlns:android=http://schemas.android.com/apk/res/android;
 android:label=@string/app_name
 android:hint=@string/searchhint
 android:icon=@drawable/application001a
 android:searchMode=filterMode|filterModeQuickStart|
 showSearchLabelAsBadge
  /searchable


 and the manifest xml:

 activity android:name=.MainActivity
android:label=@string/app_name

 android:icon=@drawable/application001a

intent-filter
action android:name=android.intent.action.MAIN /
category
 android:name=org.openintents.category.MAIN /
/intent-filter

intent-filter
action 
 android:name=android.intent.action.SEARCH /
category 
 android:name=android.intent.category.DEFAULT /
/intent-filter
meta-data android:name=android.app.searchable
android:resource=@xml/searchable /
/activity


 Cheers,
 Friedger
 


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

2008-09-12 Thread Romain Guy

I did.

On Fri, Sep 12, 2008 at 5:19 PM, jtaylor [EMAIL PROTECTED] wrote:

 Great! And who wrote Photostream?


 - Juan T.

 On Sep 12, 7:54 pm, Romain Guy [EMAIL PROTECTED] wrote:
 It should be as efficient as using threads and handlers yourself.

 On Sep 12, 2008 4:38 PM, jtaylor [EMAIL PROTECTED] wrote:

 In the Photostream App is UserTask.java. How much more efficient is
 this class then using threads and handlers as normally? In UserTask,
 there's alot of things from java.util.concurrent, threadpools, etc.
 Does this mean UserTask is probably more efficient? In what
 circumstances is it probably more efficient?

 - Juan T.
 




-- 
Romain Guy
www.curious-creature.org

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] transition

2008-09-12 Thread dai

hi, are there transition samplaes when changing display?
I know android demo has 3Dtransition sample but I want to do
2Dtransition(?) like iPhone...

Any ideas??
Thank you very much
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] back button function

2008-09-12 Thread dai

ciao, does someone know what/how android implements the back button?
If I add back button myself, Do I have to do something(use stack to
remember activity) myself?

Thank you so much
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: back button function

2008-09-12 Thread Jeff Hamilton

The Activity class will call finish() on itself if you do not
explicitly handle KEYCODE_BACK in your Activity's onKeyDown()
function. In general the system maintains a stack of activities for
you, pushing a new one when you call startActivity() and poping one
when the user hits back or you call finish() on an activity.

You can create a single activity that manages its own internal stack
of states, but it's much easier to create a new subclass of Activity
for each state you want and let the system handle that for you.

-Jeff

On Fri, Sep 12, 2008 at 10:16 PM, dai [EMAIL PROTECTED] wrote:

 ciao, does someone know what/how android implements the back button?
 If I add back button myself, Do I have to do something(use stack to
 remember activity) myself?

 Thank you so much
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[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-12 Thread Peli

It may help to look at the following:
android.os.Environment.getDownloadCacheDirectory()

http://code.google.com/android/reference/android/os/Environment.html

This should return the directory where you can find the downloaded
files.

Peli

On 8 Sep., 12:09, otiasj [EMAIL PROTECTED] wrote:
 I am sorry I don't understand...
 how can I access thedownloadprovider?
 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.- 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: SoundRecordingAPISample to save audio in Internal Storage

2008-09-12 Thread haig

Thank you that clears things up

On Sep 11, 4:35 pm, Megha Joshi [EMAIL PROTECTED] wrote:
 The recommended practice is to only store : ringtones, alarm and
 notification sound audio files in internal storage. Rest of the media files
 should be stored on sdcard.

 2008/9/11 haig [EMAIL PROTECTED]



  I have looked at the SoundRecording API example, and it can save audio
  to an sdcard.

  I would like to save the audio in internal storage, like /data/data/
  package/files/.

  Is there a reason why this might not be possible? Any tips will help

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

2008-09-12 Thread beflok

does anyone know if you can run android on the htc touch or the htc
mogul? I think the dream looks better and sexier but it would be nice
not have to change phone plans.

--~--~-~--~~~---~--~~
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] Default SMS app

2008-09-12 Thread Kartik Bansal

is it possible to get the source code of default sms app built in
android ?

--~--~-~--~~~---~--~~
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] Filter-Search Applications

2008-09-12 Thread friedger

Hi,

I try to add filter search to my application, query search works fine.
I can type in a search term press enter and the result is presented.
However, I don't get a new intent when I change the search term.

(from doc of SearchManager: You will receive a new ACTION_SEARCH
Intent each time the user enters or changes the search text. You must
receive and handle these new intents by overriding onNewIntent.)

I added the filterMode bit but nothing happens. What else do I have to
do in order to enable filter search?

Here is my
search xml:

searchable xmlns:android=http://schemas.android.com/apk/res/android;
 android:label=@string/app_name
 android:hint=@string/searchhint
 android:icon=@drawable/application001a
 android:searchMode=filterMode|filterModeQuickStart|
showSearchLabelAsBadge
 /searchable


and the manifest xml:

activity android:name=.MainActivity
android:label=@string/app_name
android:icon=@drawable/application001a

intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=org.openintents.category.MAIN /
/intent-filter

intent-filter
action 
android:name=android.intent.action.SEARCH /
category 
android:name=android.intent.category.DEFAULT /
/intent-filter
meta-data android:name=android.app.searchable
android:resource=@xml/searchable /
/activity


Cheers,
Friedger
--~--~-~--~~~---~--~~
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: onNewIntent in v0.9

2008-09-12 Thread Guillaume Perrot

Yes I had this kind of problem with Eclipse until a few days.
But now I changed my manifest and the intent flags in my notification
intents:
My main activity is still singleTop to avoid multiple instances when
relaunching from Home, onNewIntent is called.
In notifications intents I use both the flags NEW_TASK and
CLEAR_ON_TOP: the onNewIntent is called.
It seems to work every time now, even if I relaunch from Eclipse.

On Aug 29, 12:31 pm, Yalcin [EMAIL PROTECTED] wrote:
 Look at the discussion under the topic Activity Question couple days
 ago

 webmonkey wrote:  27. August 2008 20:25

 ---

 there is no need to use singleTask, singleTop or any
 other special flags. It has something to do with the way Eclipse re-
 installs your application. If you run without using Eclipse everything
 should work fine. I do the following to get the correct behaviour:

 1. I run my app in Eclipse using Run  Run History  myApp. The app
 opens up with the home activity
 2. I hit the Back button. The Android home screen with the app menu is
 displayed
 3. I start my app from the Android app menu. The app opens up with the
 home activity
 4. From now on, it will work as expected so when I press Home in a
 'secondary' activity and then restart my App again from the Android
 app menu it will go back to the  'secondary' activity.

 ---

 On Aug 29, 12:09 pm, Guillaume Perrot [EMAIL PROTECTED]
 wrote:

  about onRestoreSavedInstanceState: I misunderstood the doc, I now
  understand why it was not called in my case. Sorry.

  about onNewIntent:
  In fact there is a very strange problem: if I launch my application
  from Eclipse, the mechanism will not work, but if I shutdown my
  emulator then relauch emulator then my application it works...
  Here is a simplified test app which illustrates the mechanism of
  relaunching my app with a command from the notification bar. This
  application always works, strangely, the mechanism is exactly the same
  in my real application...

  public class Test extends Activity
  {
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
      Log.d(test, onCreate(savedInstanceState= + savedInstanceState
  + ));
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);

      displayIntentExtras();

      Intent intent = new Intent(this, Test.class);
      //intent.addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);
      intent.putExtra(dummy, dummy);
      Notification notification = new Notification(R.drawable.icon,
        relaunch with dummy extra, System.currentTimeMillis());
      notification.setLatestEventInfo(this, relaunch app,
        relaunch with dummy extra, PendingIntent
          .getActivity(this, 0, intent, 0));

      NotificationManager notificationManager = (NotificationManager)
  getSystemService(Context.NOTIFICATION_SERVICE);
      notificationManager.notify(1, notification);
    }

    private void displayIntentExtras()
    {
      Log.d(test, dummy= + getIntent().getStringExtra(dummy));
    }

    @Override
    protected void onStart()
    {
      Log.d(test, onStart());
      super.onStart();
    }

    @Override
    protected void onRestart()
    {
      Log.d(test, onRestart());
      super.onRestart();
    }

    @Override
    protected void onNewIntent(Intent intent)
    {
      Log.d(test, onNewIntent(intent= + intent + ));
      setIntent(intent);
      displayIntentExtras();
      super.onNewIntent(intent);
    }

  }

  ?xml version=1.0 encoding=utf-8?
  manifest xmlns:android=http://schemas.android.com/apk/res/android;
      package=test.test
      application android:icon=@drawable/icon android:label=@string/
  app_name
          activity android:name=.Test android:label=@string/
  app_name android:launchMode=singleTop
              intent-filter
                  action android:name=android.intent.action.MAIN /
                  category
  android:name=android.intent.category.LAUNCHER /
              /intent-filter
          /activity
      /application
  /manifest
--~--~-~--~~~---~--~~
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: v0.9, TabActivity, communicate between tabs with intents.

2008-09-12 Thread Guillaume Perrot

No one use intents between tabs on this mailing list ?

On Sep 1, 5:22 pm, Guillaume Perrot [EMAIL PROTECTED] wrote:
 Hi, I want to use TabActivity,
 What I want to do is to launch a command from a tab to another tab.
 I use startActivity and my activities are flagged singleTop in the
 manifest file.
 Unfortunately, instead of focusing the tab, a new activity, taking the
 whole screen is launched...
 What am I missing ? Is this a bug ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Using the ItemizedOverlay and OverlayItem

2008-09-12 Thread Guillaume Perrot

I use the following drawable to show a different state for the focused
item but I found no documentation about drawables described by XML
items:

?xml version=1.0 encoding=utf-8?
selector
  xmlns:android=http://schemas.android.com/apk/res/android;
  item
android:drawable=@drawable/bubble_normal /
  item
android:state_focused=true
android:drawable=@drawable/bubble_focused /
/selector

I only see the bubble_normal even if the overlay item is focused.

On 11 sep, 15:17, Guillaume Perrot [EMAIL PROTECTED] wrote:
 I also manually draw titles but I have problem with ordering them
 because when calling super(), all bubbles are drawn at once, then (or
 before) I can draw info window. What I want to do is draw a bubble
 (super.draw) then an info window then another bubble then another info
 window etc
 It would be great to have a draw method in OverlayItem class to
 override...

 On 4 sep, 17:35, Chris Chiappone [EMAIL PROTECTED] wrote:

  I had to manually draw those inside the onTap method.

  On Thu, Sep 4, 2008 at 3:51 AM, Guillaume Perrot

  [EMAIL PROTECTED] wrote:

   OK overlay items are drawn with the setBounds trick.
   But overlay title or snippet is never drawn even if we tap on it. How
   to use these overlay items fields ?

   On Sep 3, 12:09 pm, Peter Stevenson [EMAIL PROTECTED] wrote:
   Chris Chiappone wrote:
Marcel,

Thanks for that seems to work as you described.  The only thing that
doesn't seem right is the way the map draws the markers shadow.  Any
idea on how to correct that.

Thanks.

On Mon, Sep 1, 2008 at 2:03 PM, marcel-182 [EMAIL PROTECTED] wrote:

Hi everyone,

I finally got this thing working. Just set the bounds of themarkerto
be drawn and that's it!

Sample:
Drawable defaultMarker =
getResources().getDrawable(R.drawable.map_marker_red);
defaultMarker.setBounds(0, 0, defaultMarker.getIntrinsicWidth(),
defaultMarker.getIntrinsicHeight());
mMapView.getOverlays().add(new DemoOverlay(defaultMarker)); //
DemoOverlay is of course an ItemizedOverlay

I made a small demo showing one OverlayItem and how to handle tap-
events. If someone is interested:
   http://www.marcelp.info/2008/09/01/android-itemizedoverlay-demo/

Regards, Marcel

   try changing

   private GeoPoint mRandomPoint = new GeoPoint(5309691, 8851933);
   to some thing like this
   currentPoint = new GeoPoint((int) (-43.2973 * 100), (int) (172.5929
   * 100));
   the map is draw much faster

   peter

  --
  ~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] Drawable in XML referencing other drawables by state.

2008-09-12 Thread Guillaume Perrot

I found two interesting drawables in ApiDemos:

selector xmlns:android=http://schemas.android.com/apk/res/android;
item android:state_pressed=true android:drawable=@drawable/
black_opaque_box /
item android:drawable=@drawable/black_box /
/selector

layer-list xmlns:android=http://schemas.android.com/apk/res/
android
item
android:drawable=@drawable/progress_circular_background /

itemrotate
android:pivotX=50%
android:pivotY=50%
android:fromDegrees=0
android:toDegrees=360
android:drawable=@drawable/progress_particle /
/item
/layer-list

I found no documentation for this kind of drawable.

In ItemizedOverlay we can use drawables with state_focused is handled.
I tried to pass the following drawable (bubble.xml)

selector
  xmlns:android=http://schemas.android.com/apk/res/android;
  item
android:drawable=@drawable/bubble_normal /
  item
android:state_focused=true
android:drawable=@drawable/bubble_focused /
/selector

Unfortunately, my map always show bubble_normal even if there is a
focused item (I checked that).
I suppose I have to use another tag than selector but I didn't found
in the documentation which tag to use nor all possible tag list.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[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-12 Thread code_android_festival_way

I've added it now to a playlist and restarted the emulator which leads
me to the same result. The songs inside the new playlist lost its meta
data again.

Regards!

On 12 Sep., 00:26, Megha Joshi [EMAIL PROTECTED] wrote:
 008/9/9 code_android_festival_way [EMAIL PROTECTED]



  Thank you for you answer. I've added the additional parameter to the
  values and this works now. But the problem with the restart and the
  lose of meta information is still there. At the moment I am recording
  something and the meta information is added to the database which can
  be seen in the music app. But after restarting the emulator the meta
  information is gone and I dont really know why.

 Could you try adding the file to a playlist before restarting the emulator ?



  Regards!

  On 8 Sep., 23:09, Megha Joshi [EMAIL PROTECTED] wrote:
   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,
  

[android-developers] EditText SelectAll not working

2008-09-12 Thread ole!

Is anyone having a problem select all the text in an EditText? I am
trying to do this when there is a  click
in the box. Here is my code. Any help is appreciated. I know that a
click invokes the onClick function.


EditText tt = (EditText)findViewById(R.id.cardNumber);
tt.setOnClickListener(new View.OnClickListener() {
public void onClick(View v)
{((EditText)findViewById(R.id.cardNumber)).selectAll();}
}
);


--~--~-~--~~~---~--~~
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: Mouse Gesture for Navigation?

2008-09-12 Thread Kavi

ListView is a kind of View, so you should be able to attach the
GestureDetector to your ListView as well.
--~--~-~--~~~---~--~~
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: Mouse Gesture for Navigation?

2008-09-12 Thread Mark Hansen

Ok, I'll keep trying it.. for some reason the events aren't firing
such as Fling etc.

On Sep 12, 10:12 am, Kavi [EMAIL PROTECTED] wrote:
 ListView is a kind of View, so you should be able to attach the
 GestureDetector to your ListView as well.
--~--~-~--~~~---~--~~
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: Question of displaying a ProgressDialog in a joined thread

2008-09-12 Thread Romain Guy

Yes, but if you wait, you block. Don't block the UI thread :) It is
much better to have the background thread post a message to a Handler
when it's done. I suggest you to use this class to perform your
threading work:
http://code.google.com/p/apps-for-android/source/browse/trunk/Photostream/src/com/google/android/photostream/UserTask.java

On Fri, Sep 12, 2008 at 12:40 AM, roland [EMAIL PROTECTED] wrote:

 Thanks for response, is there some other ways to wait the end of a
 thread?



 On 11 sep, 17:50, Romain Guy [EMAIL PROTECTED] wrote:
 By calling join() on the UI thread, you are blocking the UI thread.
 It's as if you were not using a background thread. That's why the
 ProgressDialog cannot be displayed.



 On Thu, Sep 11, 2008 at 3:06 AM, roland [EMAIL PROTECTED] wrote:

  Hello, i have a question of displaying a ProgressDialog by joining the
  threads. In my application, i will synchronize data with the server,
  and remove the synchronized data from database. The synchronization
  takes long time, so i decide to display a progressdialog during this
  process. Of course i use a new thread to deal the synchronization,
  here is what i use for the first time:

  syncProgressDialog = ProgressDialog.show(Function.getContext(),
  Please wait..., Synchronizing application's data..., true, false);

  new Thread(new Runnable() {
 public void run() {
 synchronize();
 syncProgressDialog.dismiss();
 }
  }).start();

  removeData();

  The problem i met with this solution is the main thread didn't launch
  this thread immediately, it called the removeData before the new
  Thread. Apparently the main thread don't wait the new Thread finishes
  before execute the following method. So i changed this solution to :

  syncProgressDialog = ProgressDialog.show(Function.getContext(),
  Please wait..., Synchronizing application's data..., true, false);

  Thread thread = new Thread(new Runnable() {
 public void run() {
 synchronize();
 syncProgressDialog.dismiss();
 }
  });
  thread.start();
  try {
 thread.join();
  }
  catch (InterruptedException e) {
 e.printStackTrace();
  }

  removeData();

  I used the join method to wait the end of synchronize thread before
  removeData, there is another problem comes, the ProgressDialog didn't
  display on the screen. I tried use handler:

  Thread thread = new Thread(new Runnable() {
 public void run() {
 synchronize();
 handler.post(new Runnable() {
 public void run() {
 removeDialog();
 }
 });
 }
  });

  private void removeDialog() {
 syncProgressDialog.dismiss();
  }

  Nothing changed, could anyone show me a sample code to display the
  ProgressDialog in a joined thread or tell me which part i didn't
  implemented correctly.

 --
 Romain Guywww.curious-creature.org
 




-- 
Romain Guy
www.curious-creature.org

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] display count as a bubble over tabs or home screen icon?

2008-09-12 Thread Slater

Hi,

   On an iphone, its common to see a bubble over home screen icons
indicating some kind of a count information (for example, phone icon
on the home screen has a bubble which indicates how many missed calls
I have). Does android api offer anything in built to draw something
like that over an icon.

Also I want to know if its possible to dynamically draw a bubble
counter(value changes) over an icon on a tab within an android
application.

Any kind of sample code will be highly appreciated.

Thanks,
SNEP.
--~--~-~--~~~---~--~~
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-12 Thread Megha Joshi
Is the file being modified after its added to the database? That can lead to
lose of meta data. We are adding all the fields  to the contentvalues while
adding this file, except for modification date. I don't think adding that
should change much...but please try that too...

Make sure that the file is not modified after being added to the database.
If you get the same results, you may want to log a bug in the public issue
tracker.

2008/9/12 code_android_festival_way [EMAIL PROTECTED]


 I've added it now to a playlist and restarted the emulator which leads
 me to the same result. The songs inside the new playlist lost its meta
 data again.

 Regards!

 On 12 Sep., 00:26, Megha Joshi [EMAIL PROTECTED] wrote:
  008/9/9 code_android_festival_way [EMAIL PROTECTED]
 
 
 
   Thank you for you answer. I've added the additional parameter to the
   values and this works now. But the problem with the restart and the
   lose of meta information is still there. At the moment I am recording
   something and the meta information is added to the database which can
   be seen in the music app. But after restarting the emulator the meta
   information is gone and I dont really know why.
 
  Could you try adding the file to a playlist before restarting the
 emulator ?
 
 
 
   Regards!
 
   On 8 Sep., 23:09, Megha Joshi [EMAIL PROTECTED] wrote:
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:
   

[android-developers] Re: how to remove a view

2008-09-12 Thread Billsen

Would you please provide a little more information?  I loaded
R.layout.main by setContentView(), then added a view with
addContentView. I need to remove the view added by addContentView by
clicking a button.

Thanks,
Billsen

On Sep 11, 2:43 am, hackbod [EMAIL PROTECTED] wrote:
 setContentView() replaces any existing views.  If you want finer-
 grained control, you can setContentView() a top-level layout manager,
 which you can then add and remove views in as you desire.

 On Sep 10, 2:40 pm, Billsen [EMAIL PROTECTED] wrote:

  Hi,

  How to remove a view added by addContentView method?

  Thanks,
  Billsen

--~--~-~--~~~---~--~~
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 display nothing with TabHost

2008-09-12 Thread elephantbug

Hi,

The LoadAllLegalText is not a blocking call or different thread.  The
TOC has been initialized when it is loaded.

I tried following code even:
legalText = (WebView)findViewById(R.id.legal_view);
legalText.loadData(htmlbodyboo/body/html, mimeType,
encoding);

Still nothing displayed..


On Sep 11, 8:56 pm, Megha Joshi [EMAIL PROTECTED] wrote:
 2008/9/11 elephantbug [EMAIL PROTECTED]





  Hi,

  The WebView shows nothing the very first time, however, if you switch
  to other TAB and return back, everything is displayed.

  Here is my XML file:
  ++
  ?xml version=1.0 encoding=utf-8?

  LinearLayout xmlns:android=http://schemas.android.com/apk/res/
  android
     android:layout_width=fill_parent
     android:layout_height=fill_parent
     android:orientation=vertical
     android:gravity=center

     TabHost
                 android:id=@android:id/tabhost
                 android:layout_width=fill_parent
                 android:layout_height=wrap_content

         TabWidget
             android:id=@android:id/tabs
                 android:layout_width=wrap_content
                 android:layout_height=wrap_content/

         FrameLayout
                 android:id=@android:id/tabcontent
                 android:layout_width=fill_parent
                 android:layout_height=450px
                 android:paddingTop=60px

                 LinearLayout
                 android:id=@+id/legal_layout
                 android:orientation=vertical
                 android:layout_width=fill_parent
                 android:layout_height=400px

                 ScrollView
                         android:id=@+id/scroll
                         android:layout_width=fill_parent
                         android:layout_height=350px
                         android:background=@drawable/silver

                         WebView
                                 android:id=@+id/legal_view
                             android:layout_width=fill_parent
                             android:layout_height=350px
                             android:minHeight=350dp
                             android:textColor=@drawable/dark
                             android:padding = 3dip
                             android:paddingLeft = 3dip
                             android:paddingRight = 3dip
                             android:paddingTop = 3dip
                             android:paddingBottom = 3dip
                             android:text=test/
                 /ScrollView

                     LinearLayout
                         android:orientation=horizontal
                         android:layout_width=fill_parent
                         android:layout_height=wrap_content
                     android:paddingTop = 3dip
                         android:gravity=center

                         Button
                                 android:id = @+id/button_accept
                             android:layout_width=wrap_content
                             android:layout_height=wrap_content
                             android:text=@string/button_accept_text/

                         Button
                                 android:id = @+id/button_cancel
                             android:layout_width=wrap_content
                             android:layout_height=wrap_content
                             android:text=@string/button_cancel_text/

                         /LinearLayout

         /LinearLayout
                 /FrameLayout
         /TabHost

         /LinearLayout

  
  here is part of my code for onCreate:

                 //load gloabl asset
                 loadAllLegalText();

 If loadAllLegalText() is something that puts data into TOC below, is it a
 blocking call?  You may want to check if TOC actually contains data when you
 call loadData()..



                 //init the view
                 setContentView(R.layout.legal);

                 tabHost = (TabHost) findViewById(android.R.id.tabhost);
                 tabHost.setup();

                 legalText = (WebView)findViewById(R.id.legal_view);
                 legalText.getSettings().setJavaScriptEnabled(true);
                 legalText.loadData(TOC, mimeType, encoding);

                 Resources rs = getResources();
                 tabHost.addTab(tabHost.newTabSpec(TAG_LEGAL_TOC)

   .setIndicator(rs.getText(R.string.legal_tab_indicator_toc))
                                 .setContent(R.id.legal_layout));

                 tabHost.addTab(tabHost.newTabSpec(TAG_LEGAL_NOTICE)

   .setIndicator(rs.getText(R.string.legal_tab_indicator_legal))
                                 .setContent(R.id.legal_layout));

                 tabHost.addTab(tabHost.newTabSpec(TAG_LEGAL_PRIVACY)

   .setIndicator(rs.getText(R.string.legal_tab_indicator_privacy))
                                 

[android-developers] Re: Ways to capture the content of the screen / inject keypresses?

2008-09-12 Thread Malcolm Reynolds

On Thu, Sep 11, 2008 at 11:03 PM, hackbod [EMAIL PROTECTED] wrote:

 For security reasons, applications are not allowed to get screen shots
 of the display or inject key events in to other applications.


Obviously I understand the security implications that an application
like this would have, but pretty much every other smartphone-type
platform has security frameworks in place to make this possible and
safe. Eg on the Blackberry a user has to manually go to advanced
options and change the permissions for event injection and screenshots
before the application can run.

I've filed this on the issue tracker, I hope this is looked on as a
sensible idea.. it would seem a pity for a platform which is in
general very sophisticated to be unable to host an application which
is possible on Blackberry, Windows Mobile, Symbian and iPhone..

Malcolm

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

2008-09-12 Thread Malcolm Reynolds

On Fri, Sep 12, 2008 at 4:31 AM, beflok [EMAIL PROTECTED] wrote:

 hmm... is there any way around this? is there a way to make an
 executable into a java script?


There are no ways to run native windows code on mobile Java devices.
Unless you count writing an interpreter/emulator along the lines of
WINE for android (this would be an extraordinary task, pretty much a
lifetime's work) or running the app on a windows box and connecting to
that using an android VNC client, but both these ideas are pretty
terrible. If what you have is just the compiled program, and no access
to the source, then I'm afraid you are out of luck.

Malcolm

--~--~-~--~~~---~--~~
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] ListPreference with int values

2008-09-12 Thread skink

hi,

i cannot get ListPreference (defined in xml) working. instead of
string-array i'd like to use integer-array as preference entryValues,
but always get NPE at
ListPreference.findIndexOfValue(ListPreference.java:169) when trying
to popup a list of values.

anybody tried to use ListPreference with integers, or i'm doing
something wrong?

thanks,
skink

--~--~-~--~~~---~--~~
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] ListPreferency with int values

2008-09-12 Thread skink

hi,

can i use ListPreferency with integer-array iso string-array defined
in xml?

i'm always getting NPE when popping-up dialog with possible values at
runtime?

what am i doing wring?

thanks,
skink

--~--~-~--~~~---~--~~
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: No Bluetooth API in 0.9 or 1.0 SDK?!?!?

2008-09-12 Thread sos100

Hi there -

I agree its a shame that there's no Bluetooth API in the initial
release. I think they will get there - but it's obviously frustrating
in the meantime.

By way of being helpful - if you're interested, Rococo has created a
variation of our Impronto Simulator that now includes Android support.
It lets you develop in a simulated Bluetooth environment with Android,
and program against the JSR82 APIs. We haven't released it as a full
GA product as yet - but we're interested in getting people to try it
out and give us feedback. If you - or anyone else - is interested in
JSR82 on Android - drop me a line at:

sos (at) rococosoft (dot) com and include the words Impronto Android
in the subject line.

Thanks,

Sean


On Aug 20, 7:55 am, kokuryu [EMAIL PROTECTED] wrote:
 It looks like Android is only being released for people to make simple
 handheld games with.  With no usableBluetoothAPI in the 0.9 SDK nor
 in the release 1.0 SDK or release 1.0 device, Android is nothing more
 than a toy.  It's about time I and others who were originally excited
 about Android coming about walk away from this and put our full
 efforts into other platforms.  Android was definitely over-hyped and
 will definitely under-deliver.  But it will make a great game
 platform.  Sorry, but I dont have time to write any games - I'm
 writing serious applications.
--~--~-~--~~~---~--~~
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: SoundRecordingAPISample to save audio in Internal Storage

2008-09-12 Thread Megha Joshi
2008/9/12 blindfold [EMAIL PROTECTED]


 Which is expected to be faster: internal storage or sdcard?
 I'm currently temporarily saving content to internal storage
 because MediaPlayer cannot play generated content from memory,


Could you clarify what you count as generated content and memory?


 but the speed and power penalty of doing so on physical phones
 remains unclear.

 On Sep 12, 1:35 am, Megha Joshi [EMAIL PROTECTED] wrote:
  The recommended practice is to only store : ringtones, alarm and
  notification sound audio files in internal storage. Rest of the media
 files
  should be stored on sdcard.

 


--~--~-~--~~~---~--~~
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: No Bluetooth API in 0.9 or 1.0 SDK?!?!?

2008-09-12 Thread Paulo Sergio
Hi ,
i really don't understand why everybody complaints about missing bluetooth
API!
This is a completely new phone OS, API's are the most important thing right
now, so, give them time to create something good, let's think about the
future, no only about the next few months. i would really like to see
something better than jsr-82.

Think of apple before complaining about missing API features, and remember:
Android will run on lot's of devices, while Apple  has their own hardware.

cheers,
paulo f

On Fri, Sep 12, 2008 at 7:24 PM, sos100 [EMAIL PROTECTED] wrote:


 Hi there -

 I agree its a shame that there's no Bluetooth API in the initial
 release. I think they will get there - but it's obviously frustrating
 in the meantime.

 By way of being helpful - if you're interested, Rococo has created a
 variation of our Impronto Simulator that now includes Android support.
 It lets you develop in a simulated Bluetooth environment with Android,
 and program against the JSR82 APIs. We haven't released it as a full
 GA product as yet - but we're interested in getting people to try it
 out and give us feedback. If you - or anyone else - is interested in
 JSR82 on Android - drop me a line at:

 sos (at) rococosoft (dot) com and include the words Impronto Android
 in the subject line.

 Thanks,

 Sean


 On Aug 20, 7:55 am, kokuryu [EMAIL PROTECTED] wrote:
  It looks like Android is only being released for people to make simple
  handheld games with.  With no usableBluetoothAPI in the 0.9 SDK nor
  in the release 1.0 SDK or release 1.0 device, Android is nothing more
  than a toy.  It's about time I and others who were originally excited
  about Android coming about walk away from this and put our full
  efforts into other platforms.  Android was definitely over-hyped and
  will definitely under-deliver.  But it will make a great game
  platform.  Sorry, but I dont have time to write any games - I'm
  writing serious applications.
 


--~--~-~--~~~---~--~~
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 remove a view

2008-09-12 Thread Kavi

Look at the setVisibility method to change the visibility options for
the view.

http://code.google.com/android/reference/android/view/View.html#setVisibility(int)
--~--~-~--~~~---~--~~
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: Filter-Search Applications

2008-09-12 Thread friedger

Has anyone experience with filter search?
Friedger

On 12 Sep., 10:46, friedger [EMAIL PROTECTED] wrote:
 Hi,

 I try to add filter search to my application, query search works fine.
 I can type in a search term press enter and the result is presented.
 However, I don't get a new intent when I change the search term.

 (from doc of SearchManager: You will receive a new ACTION_SEARCH
 Intent each time the user enters or changes the search text. You must
 receive and handle these new intents by overriding onNewIntent.)

 I added the filterMode bit but nothing happens. What else do I have to
 do in order to enable filter search?

 Here is my
 search xml:

 searchable xmlns:android=http://schemas.android.com/apk/res/android;
      android:label=@string/app_name
      android:hint=@string/searchhint
      android:icon=@drawable/application001a
      android:searchMode=filterMode|filterModeQuickStart|
 showSearchLabelAsBadge
  /searchable

 and the manifest xml:

 activity android:name=.MainActivity
                                         android:label=@string/app_name
                                         
 android:icon=@drawable/application001a
                 
             intent-filter
                 action android:name=android.intent.action.MAIN /
                 category
 android:name=org.openintents.category.MAIN /
             /intent-filter

             intent-filter
                                 action 
 android:name=android.intent.action.SEARCH /
                                 category 
 android:name=android.intent.category.DEFAULT /
                         /intent-filter
                         meta-data android:name=android.app.searchable
                                 android:resource=@xml/searchable /
         /activity

 Cheers,
 Friedger
--~--~-~--~~~---~--~~
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] *** SOS *** emulator keeps crashing

2008-09-12 Thread Nickname

I shutdown my XP normally last night. Before the shutdown, Android
emulator was sitting idle peacefully.

This morning when i start the emualtor, it just keep crashing

Attached is the fatal message it prints once in a while. Sometimes it
crashes without any message but pop up a window with Microsoft saying
sorry.

I deleted userdata-qemu.img several times but it won't help.  Pleas
help!!



C:\android-sdk-windows\toolsemulator
emulator: emulator window was out of view and was recentred

qemu: fatal: exponent 255 too big

R00=0002 R01=0002 R02=fe005000 R03=fe005000
R04=c5dc91c0 R05=c5c57e94 R06=c5dc91c0 R07=0003
R08=e118 R09=c5da1800 R10=c5c57e5c R11=c5c57df4
R12=2209 R13=c5c57de0 R14=0007 R15=c016fad0
PSR=6013 -ZC- A svc32 2d41e78
s00=(0.00) s01=(0.00)
d00=(0.00)
s02=(0.00) s03=(0.00)
d01=(0.00)
s04=(0.00) s05=(0.00)
d02=(0.00)
s06=(0.00) s07=(0.00)
d03=(0.00)
s08=(0.00) s09=(0.00)
d04=(0.00)
s10=(0.00) s11=(0.00)
d05=(0.00)
s12=(0.00) s13=(0.00)
d06=(0.00)
s14=(0.00) s15=(0.00)
d07=(0.00)
s16=(0.00) s17=(0.00)
d08=(0.00)
s18=(0.00) s19=(0.00)
d09=(0.00)
s20=(0.00) s21=(0.00)
d10=(0.00)
s22=(0.00) s23=(0.00)
d11=(0.00)
s24=(0.00) s25=(0.00)
d12=(0.00)
s26=(0.00) s27=(0.00)
d13=(0.00)
s28=(0.00) s29=(0.00)
d14=(0.00)
s30=(0.00) s31=(0.00)
d15=(0.00)
FPSCR: 

This application has requested the Runtime to terminate it in an
unusual way.
Please contact the application's support team for more information.

C:\android-sdk-windows\tools

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