Lotto Magic: Home Business Produces High Profits For Members

2008-09-04 Thread [EMAIL PROTECTED]
Thank you for your interest in Lotto Magic. So what is Lotto Magic you ask? 
Well its a Home Business and benefits club/savings club. Meaning you can earn 
$100s or $1000s per month and gain access to discounts from top name online 
stores, huge savings on vacations, entertainment tickets such as concerts, 
movies, and sporting events. I mean, you name it and they will save you a lot 
of money on it. Plus you earn big commission checks while being entered in the 
Florida lottery, meaning you could become an instant MILLIONAIRE!
 http://flalottomagic.net/?p0615 or http://freelottomagic.com/?p0615 
Their are 2 different memberships: Team Player and Team Captain.nbsp;
nbsp;
 Team Players get all benefits and are placed in a Lottery Pool with 7 other 
members. If anyones numbers hit, you each win 10% of the prize money. To join 
as a Team Player costs $25 per month, but you are not allowed to earn 
commission as a Team Player.
nbsp; http://flalottomagic.net/?p0615 or http://freel.com/group/android-developers?hl=en">http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Code working in standalone java; doesnot work in android (android-sdk-windows-0.9_beta)

2008-09-04 Thread schtieF

So any news on this topic, am i able to use google data apis (gdata)
on android?

thanx

stefan

On 25 Aug., 22:40, Justin (Google Employee) [EMAIL PROTECTED] wrote:
 You didn't answer what type myService is here.

 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]
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] Quirky behavior when rotating screen in API Demos sample, Progress dialog

2008-09-04 Thread blindfold

If one runs the SDK 0.9 beta sample application API Demos | App |
Dialog | Progress dialog, one finds that turning the emulator view by
pressing key 9 while the progress bar is showing causes that the
progress bar never gets dismissed. Playing with
mProgressDialog.dismiss(); in onDestroy or onResume did not seem to
fix the problem, so I wonder if there is some strange sequence of
state transitions or incomplete cleanup that makes that a new progress
bar is created for the new view before the previous one has properly
closed or something? How does one make this API Demos sample work
properly under screen rotation? I suspect that Android itself needs to
clean up something more than it does now when rotating the view.

Regards

--~--~-~--~~~---~--~~
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: Using the ItemizedOverlay and OverlayItem

2008-09-04 Thread Guillaume Perrot

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 the marker to
  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
--~--~-~--~~~---~--~~
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-04 Thread Peli

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 the browser, and you can
use getIntent() ( 
http://code.google.com/android/reference/android/app/Activity.html#getIntent()
) to get more information about the intent.

Peli
www.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
 default browser, 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: Android Music Player

2008-09-04 Thread Eric

What is the URL of this Pocket Android Player project?

Thanks
Eric
Portable Electronics Ltd
www.hdmp4.com

On Sep 4, 6:03 am, Leszek Broniarczyk [EMAIL PROTECTED] wrote:
 Hi
 I would like to introduce project Pocket Android Player in 4 page comics

 --
 Regards
 Leszek Broniarczyk

  1.jpg
 117KViewDownload

  2.jpg
 138KViewDownload

  3.jpg
 178KViewDownload

  4.jpg
 168KViewDownload
--~--~-~--~~~---~--~~
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-04 Thread szeldon

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 the browser, 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
  default browser, 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: Orientation changes simulation

2008-09-04 Thread blindfold

Hmm, it will indeed be interesting to see how having interpreted
Dalvik, i.e., without a JIT, will impact performance of my core
routines that are not delegated to coarse grain native code (and
hardware) calls like one can do with typical CPU-intensive graphics
operations. Looking forward to performance benchmarking, to compare
Android (with interpreted Dalvik) to J2ME (with JIT) on real phones.
There could be a huge performance difference. My program can benefit
from JIT with a low memory overhead, since only small parts of the
code eat most of the CPU time, but a JIT compiler might get confused
by getting my CPU load in bursts (say at ten percent duty cycle), such
that it may forget to keep the JIT-compiled native code available
for reuse in the next burst in CPU load.

Despite not being able to emulate the compass code, I'm not too
worried about that part as for me it is only an added feature and user
option for now.


On Sep 4, 12:40 am, hackbod [EMAIL PROTECTED] wrote:
 It sounds like you will generally be in good shape, but again I will
 say -- you should always always run your app on at least one piece of
 real hardware before releasing it.  This app will be running in a
 completely different environment (interpreted dalvik code), and the
 general user experience on real hardware just can not be emulated.
 Things like the screen density, interaction with the touch screen,
 etc.  Personally I don't think running a previous J2ME version on some
 other hardware counts as running the current Android version on the
 corresponding hardware.

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

2008-09-04 Thread Peli

I like your concept. If you don't find anyone else to team up with
you, feel free to post your concept in our developer's group:
http://groups.google.com/group/openintents

We already have a basic media player (see here: 
http://www.openintents.org/en/node/15
) but it would be good if we could spice that up somehow :-)

Peli
www.openintents.org

On Sep 3, 10:03 pm, Leszek Broniarczyk [EMAIL PROTECTED] wrote:
 Hi
 I would like to introduce project Pocket Android Player in 4 page comics

 --
 Regards
 Leszek Broniarczyk

  1.jpg
 117KViewDownload

  2.jpg
 138KViewDownload

  3.jpg
 178KViewDownload

  4.jpg
 168KViewDownload
--~--~-~--~~~---~--~~
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 transfer Image bytes from MediaStore.Image ContentProvider to byte [] array

2008-09-04 Thread Graeme

Hi Alexa

thanks for your pointers.

rgds
Graeme

On Sep 3, 3:36 pm, alexa [EMAIL PROTECTED] wrote:
 Bitmap bitmap = Media.getBitmap(getContentResolver(), imageUri);
 ByteArrayOutputStream bytes = new ByteArrayOutputStream();

 bitmap.compress(Bitmap.CompressFormat.JPEG, 90, bytes);
 ByteArrayInputStream stream = new
 ByteArrayInputStream(bytes.toByteArray());
--~--~-~--~~~---~--~~
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: Using the ItemizedOverlay and OverlayItem

2008-09-04 Thread Chris Chiappone

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 the marker to
  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]
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: Quirky behavior when rotating screen in API Demos sample, Progress dialog

2008-09-04 Thread Romain Guy

This is the correct behavior. The dialog should remain visible after a
screen orientation change. There is a bug though, the progress bar
should be filled automatically even after a screen rotation.

On Thu, Sep 4, 2008 at 2:01 AM, blindfold [EMAIL PROTECTED] wrote:

 If one runs the SDK 0.9 beta sample application API Demos | App |
 Dialog | Progress dialog, one finds that turning the emulator view by
 pressing key 9 while the progress bar is showing causes that the
 progress bar never gets dismissed. Playing with
 mProgressDialog.dismiss(); in onDestroy or onResume did not seem to
 fix the problem, so I wonder if there is some strange sequence of
 state transitions or incomplete cleanup that makes that a new progress
 bar is created for the new view before the previous one has properly
 closed or something? How does one make this API Demos sample work
 properly under screen rotation? I suspect that Android itself needs to
 clean up something more than it does now when rotating the view.

 Regards

 




-- 
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]
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: Quirky behavior when rotating screen in API Demos sample, Progress dialog

2008-09-04 Thread blindfold

Yes the dialog should remain visible but be automatically dismissed
after the progress bar fills up, just like when one does not change
the screen orientation. It is the restarting of the application (I
noticed that in my own app) that apparently gets the running progress
dialog handling messed up in ways that are not obvious to circumvent.

On Sep 4, 5:37 pm, Romain Guy [EMAIL PROTECTED] wrote:
 This is the correct behavior. The dialog should remain visible after a
 screen orientation change. There is a bug though, the progress bar
 should be filled automatically even after a screen rotation.

--~--~-~--~~~---~--~~
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: ACTION_PICK_ACTIVITY: anyone have this working?

2008-09-04 Thread Mark Murphy

*bump*

Mark Murphy wrote:
 I'm attempting to use ACTION_PICK_ACTIVITY. According to the docs:
 
 Pick an activity given an intent, returning the class selected.
 
 So, I've used ACTION_PICK to pick a contact, which I get back in my 
 onActivityResult() as an Intent.
 
 What I can't quite figure out is how to construct the 
 ACTION_PICK_ACTIVITY Intent. Again, according to the docs:
 
 Input: getExtra(String) field EXTRA_INTENT is an Intent used with 
 queryIntentActivities(Intent, int) to determine the set of activities 
 from which to pick.
 
 If I'm reading this correctly, I need two Intents:
 
 1. One containing the Uri of the content for which I want the user to 
 pick an activity
 
 2. One containing the Intent from #1 above as EXTRA_INTENT and having an 
 action of ACTION_PICK_ACTIVITY
 
 It's a bit mystifying why I need two rather than just one (I don't need 
 EXTRA_INTENT on ACTION_PICK, so why on ACTION_PICK_ACTIVITY?). But, be 
 that as it may, no matter what I try, Android 0.9 says it can't find an 
 activity to handle my ACTION_PICK_ACTIVITY request, and so blows up with 
   an exception like:
 
 android.content.ActivityNotFoundException: No Activity found to handle 
 Intent { action=android.intent.action.PICK_ACTIVITY (has extras) }
 
 Part of the problem may be that the docs *don't* say what the Uri is 
 supposed to be for Intent #2. I have tried the same Uri as in Intent #1, 
 and I have tried no Uri, and both have failed:
 
 Intent i=new Intent()
   //.setData(data.getData())
   .putExtra(Intent.EXTRA_INTENT, data)
   .setAction(Intent.ACTION_PICK_ACTIVITY);
 
 where data is the Intent I got back from ACTION_PICK.
 
 Any idea where I'm going wrong?
 
 Thanks!

-- 
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]
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] Use dynamic string instead of Integer in findViewById

2008-09-04 Thread Kavi

Currently, findViewById uses a R.id.viewid which is an Integer to find
views.

Is it possible to give findViewById a string like R.id.field_1_text?

The reason i want to know this is then, i can use a loop and change
the values for fields like
R.id.field_1_text, R.id.field_2_text, R.id.field_3_text  rather
than setting all of them sequentially.

Is it possible to convert a string to a resource id before passing it
in to the findViewById method. I tried looking on the groups but
didn't find anything that could help me in this case.

Thanks
- Kavik
--~--~-~--~~~---~--~~
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: Use dynamic string instead of Integer in findViewById

2008-09-04 Thread Romain Guy

Hi,

You could also find by id the container of all the children you need
and iterate over its children using getChildCount() and getChildAt().

Note that there is also a way to get an id's integer using its name as
a String. Use Context.getResources().getIdentifier():

http://code.google.com/android/reference/android/content/res/Resources.html#getIdentifier(java.lang.String,%20java.lang.String,%20java.lang.String)

2008/9/4 Mark Murphy [EMAIL PROTECTED]:

 Kavi wrote:
 Currently, findViewById uses a R.id.viewid which is an Integer to find
 views.

 Is it possible to give findViewById a string like R.id.field_1_text?

 The reason i want to know this is then, i can use a loop and change
 the values for fields like
 R.id.field_1_text, R.id.field_2_text, R.id.field_3_text  rather
 than setting all of them sequentially.

 Why not put them in an array?

 private int[] ALL_YOUR_TEXT={R.id.field_1_text, R.id.field_2_text, ...};

 Then you can iterate over them as you wish.

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

 




-- 
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]
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: Quirky behavior when rotating screen in API Demos sample, Progress dialog

2008-09-04 Thread Romain Guy

It's actually easy to circumvent. On orientation change, the activity
should save the current progress value in its Bundle (in
onSaveInstanceState().) Then, when the activity is recreated, it
should read this value back and resume the progress from where it
stopped.

On Thu, Sep 4, 2008 at 8:52 AM, blindfold [EMAIL PROTECTED] wrote:

 Yes the dialog should remain visible but be automatically dismissed
 after the progress bar fills up, just like when one does not change
 the screen orientation. It is the restarting of the application (I
 noticed that in my own app) that apparently gets the running progress
 dialog handling messed up in ways that are not obvious to circumvent.

 On Sep 4, 5:37 pm, Romain Guy [EMAIL PROTECTED] wrote:
 This is the correct behavior. The dialog should remain visible after a
 screen orientation change. There is a bug though, the progress bar
 should be filled automatically even after a screen rotation.

 




-- 
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]
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: Use dynamic string instead of Integer in findViewById

2008-09-04 Thread Kavi


I'll try both and see which one works better
Thanks Mark and Romain Guy.
.
--~--~-~--~~~---~--~~
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: Quirky behavior when rotating screen in API Demos sample, Progress dialog

2008-09-04 Thread blindfold

For my own use I do not care if the progress dialog continues from
where it was or starts all over, so I need no save/restore of its
state. However, the fact that the progress bar does not start at all
after changing screen orientation suggests a bug. The impression I got
is that the progress dialog upon dismiss does not get cleaned up
before the activity restarts and attempts (and fails due to a conflict
with the lingering previous progress dialog) to recreate that same
progress dialog. As an application developer I have no control over
the asynchronous dismiss handling, and I cannot see what happens under
the hood that makes it fail, so the above is just my conjecture.

On Sep 4, 6:18 pm, Romain Guy [EMAIL PROTECTED] wrote:
 It's actually easy to circumvent. On orientation change, the activity
 should save the current progress value in its Bundle (in
 onSaveInstanceState().) Then, when the activity is recreated, it
 should read this value back and resume the progress from where it
 stopped.

--~--~-~--~~~---~--~~
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: Quirky behavior when rotating screen in API Demos sample, Progress dialog

2008-09-04 Thread Romain Guy

The bug is just in the sample application: it should call
mProgressHandler.sendEmptyMessage(previousProgress) after an
orientation change and if the progress dialog is showing. There is no
cleanup problem or conflict or anything like this.

On Thu, Sep 4, 2008 at 9:58 AM, blindfold [EMAIL PROTECTED] wrote:

 For my own use I do not care if the progress dialog continues from
 where it was or starts all over, so I need no save/restore of its
 state. However, the fact that the progress bar does not start at all
 after changing screen orientation suggests a bug. The impression I got
 is that the progress dialog upon dismiss does not get cleaned up
 before the activity restarts and attempts (and fails due to a conflict
 with the lingering previous progress dialog) to recreate that same
 progress dialog. As an application developer I have no control over
 the asynchronous dismiss handling, and I cannot see what happens under
 the hood that makes it fail, so the above is just my conjecture.

 On Sep 4, 6:18 pm, Romain Guy [EMAIL PROTECTED] wrote:
 It's actually easy to circumvent. On orientation change, the activity
 should save the current progress value in its Bundle (in
 onSaveInstanceState().) Then, when the activity is recreated, it
 should read this value back and resume the progress from where it
 stopped.

 




-- 
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]
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: Wi-Fi tutorail

2008-09-04 Thread Mark Murphy

Oskeol wrote:
 Hi everybody.
 
 Can someone make up a Tutorial on how to use Wi-Fi?
 How can be two emulator instaces conected using Wi-Fi? Can this
 thing be done ?
 
 Help please,

WiFi is just Internet access. You can use whatever Internet-based 
protocols you like, either using built-in clients (e.g., Apache 
HttpComponents) or ones you supply yourself via third-party code (e.g., 
XMPP) that work using standard Java socket support.

For two devices/emulators to speak with one another, you will probably 
want to use some server as a messaging hub (e.g., XMPP/Jabber, Amazon SQS).

-- 
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]
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] TabActivity throws SecurityException in specific cases only

2008-09-04 Thread i_am_on_android

Hi,

I am trying to replace the default contacts view in the Contacts
Application, but I get a SecurityException. Does it have something to
do that Contacts uses TabActivity and each Activity is in a different
process?  Could it be a bug in SDK 0.9?

java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.android.contacts/
com.android.contacts.DialtactsActivity}:
java.lang.SecurityException: Requesting code from
com.swisscom.test (with uid 10017) to be run in process
android.process.shared (with uid 10004)

Is there any way how to solve that?
I was using this intent-filter.

intent-filter 
 action
android:name=com.android.contacts.action.LIST_DEFAULT /
category android:name=android.intent.category.DEFAULT /
/intent-filter

The funny thing here is the following:

I have two Activities on the same Intent. So, when I open the Contacts
application, I get the dialog from which I can chose the Activity to
show. If I manually select my own Activity in the dialog, it works. If
I select it be the default application and it is started
automatically, it throws the SecurityException.

Regards,
Reto

--~--~-~--~~~---~--~~
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: MediaPlayer and LocalSocket problem

2008-09-04 Thread 3,14


On Sep 4, 11:28 am, scorpio [EMAIL PROTECTED] wrote:
 just try with this,

  FileInputStream media = new FileInputStream(system/media/
 audio/alarms/Alarm_Classic.ogg);

 thanks
 Nithin M Warier

Actuall a scenario with reading from file just an example. Original
task is to receive RTP packets from network, sort them in a right
order and play them. But actually MediaPlayer is not able to playback
packets from stream. The solution to save packets to disk is VERY
SLOW! So that is why I am tring a way with LocalSocket.

--~--~-~--~~~---~--~~
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: location is always latitude 0 longitude 0 altitude 10 in v0.9

2008-09-04 Thread austin_rockz

Hi, I had the same problem, also switched locale and it works...
Guess it has nothing do do with the locale itself, more with the way
the OS is formatting date, time, ...
So you have to make sure that not only the language is changed to
english but also the formatting rules.

I'm running MAC OS X and Eclipse 3.4, DDMS via the Eclipse
perspective.



On Sep 2, 11:09 am, hve.dk [EMAIL PROTECTED] wrote:
 Guillaume, I got same the same problem (i.e. DDMS location controls
 doesn't reach the emulator - or is set to 0,0).
 Do you file a bug report at:http://code.google.com/p/android/issues/list

 (?) - If you don't I'll do it ;-)

 On 26 Aug., 15:44, Guillaume Perrot [EMAIL PROTECTED] wrote:

  In the standard maps application, my position is always at latitude 0
  and longitude 0, altitude 10.
  Location controls in DDMS in Eclipse seems to do nothing, I tried to
  set manual location, using a GPX or a KML, i always get a 0,0
  location...
  The only provider available is gps when I tried programmatically.
  Plus, the documentation tells us about about the geo command but I
  didn't find it in my tools directory nor in adb shell internal
  command

--~--~-~--~~~---~--~~
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] VideoPlayer Fast Forward/Rewind

2008-09-04 Thread Iroid

Hello all,
I am developing a VideoPlayer based on MediaPlayer provided by
Android.
In this video player, I have to implement Fast Forward(FF) and Fast
Rewind(FR) too apart from other basic play/pause/seek functionality.
I could not find any Direct(fastForward(speed)/fastRewind(speed)) or
Indirect(changeFrameRate(speed)) API in Android to implement the same.
for the time I have implemented the same by using seekTo, but
obviously the performance is not as expected. As to implement FF/FR
one has to change the frame rate.

Does android really not support Fast Forward/Rewind or there is any
workaround to achieve the same?

Please help.

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] flash memory

2008-09-04 Thread Payal

Is there anything like flash in android?  like I can create some file
and store it in.  Or I can copy a file from my sdcard to flash?

I found that user data image but I am not sure about that.

Can anybody help me with this?

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]
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 Music Player

2008-09-04 Thread Bronek

I wrote to OpenIntents my idea.. :)

Se Ya There

--~--~-~--~~~---~--~~
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] Orientation sensor definition correct?

2008-09-04 Thread Peli

In the documentation I find:

Sensor values are yaw, pitch and roll. Yaw is the compass heading in
degrees, range [0, 360[ 0 = North, 90 = East, 180 = South, 270 = West
Pitch indicates the tilt of the top of the device, with range -90 to
90. Positive values indicate that the bottom of the device is tilted
up and negative values indicate the top of the device is tilted up.
Roll indicates the side to side tilt of the device, with range -90 to
90. Positive values indicate that the left side of the device is
tilted up and negative values indicate the right side of the device is
tilted up. 
http://code.google.com/android/reference/android/hardware/SensorManager.html#SENSOR_ORIENTATION

The problem is, if both pitch and roll, are restricted to the range
-90 to 90, then there is no way to describe for example the display
pointing downwards orientation. One of the two has to be allowed to
go from -180 to +180.

I think it would make more sense to allow roll in the range -180 to
+180 and restrict pitch to -90 to 90, because then the top of the
device would always point north if yaw == 0.

Is this assumption ok?

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]
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: flash memory

2008-09-04 Thread Mark Murphy

Payal wrote:
 Is there anything like flash in android?  like I can create some file
 and store it in.  Or I can copy a file from my sdcard to flash?
 
 I found that user data image but I am not sure about that.
 
 Can anybody help me with this?

Your activity can work with files in a per-application on-device store 
via openFileInput() and openFileOutput(). However, on-device space is 
generally at a premium, so please be frugal.

-- 
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]
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: VideoPlayer Fast Forward/Rewind

2008-09-04 Thread Megha Joshi
 Android MediaPlayer does not support playback at speeds greater than 1,
because its very resource intensive to decode video faster than that.
The recommended way right now is to skip forward/backwards by some number of
seconds, which I think you are already doing.

2008/9/4 Iroid [EMAIL PROTECTED]


 Hello all,
 I am developing a VideoPlayer based on MediaPlayer provided by
 Android.
 In this video player, I have to implement Fast Forward(FF) and Fast
 Rewind(FR) too apart from other basic play/pause/seek functionality.
 I could not find any Direct(fastForward(speed)/fastRewind(speed)) or
 Indirect(changeFrameRate(speed)) API in Android to implement the same.
 for the time I have implemented the same by using seekTo, but
 obviously the performance is not as expected. As to implement FF/FR
 one has to change the frame rate.

 Does android really not support Fast Forward/Rewind or there is any
 workaround to achieve the same?

 Please help.

 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: google sdk and eclipse plugin

2008-09-04 Thread Megha Joshi
Try using http:// instead of https://.


2008/9/4 [EMAIL PROTECTED] [EMAIL PROTECTED]


 I wanted to try to develop some application for Android and downloaded
 SDK and wanted to get Eclipse Android plugin.
 But location https://dl-ssl.google.com/android/eclipse/ wasn't found.
 And from Eclipse Software Updates, and from http-browser.
 Can somebody help me to resolve this problem?

 


--~--~-~--~~~---~--~~
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: [Mac OS X] webView.loadUrl question

2008-09-04 Thread RPO

I have the same problem with the new version (0.9) of the SDK.  The
following code:

package com.good.atg.browserSample;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;

public class BrowserSample extends Activity {
WebView browser;

public void onCreate(Bundle icicle)
/* Called when the activity is first created. */
{
super.onCreate(icicle);
setContentView(R.layout.main);
browser=(WebView)findViewById(R.id.webkit);
browser.loadUrl(http://www.google.com;);
}

}

produces the Web page not available message.  And yes, I added
uses-permission android:name=android.permission.INTERNET /
to my AndroidManifest.xml file.  I am running on a Windows system, not
a Mac, by the way.

Robert O'Hara











On Aug 21, 6:36 am, Guillion Didier [EMAIL PROTECTED]
wrote:
 Hi,

 Is webView.loadUrl is supposed to work on a real URL like 
 http://www.google.com; or can only access to local files?

 This provide a Web page unvailable error on my Mac.

 If yes, Is this can be related to the fact I use a proxy ?

 Best regards

 --
 Didier Guillion - Myriad
 Web site:http://www.myriad-online.com
--~--~-~--~~~---~--~~
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: Wi-Fi tutorail

2008-09-04 Thread Oskeol


Thanks Mark.
Now i'm really clear about it.

I would like to develop a distributed application. Each device should
automatically explore the local environment searching for other
compatible devices.
Devices can be posesed by people i do not know.

I guess Bluetooth would be just fine for me, and wi-fi doesn't help?
I mean how the exploration can be done?

Thank you again,

Oskeol
--~--~-~--~~~---~--~~
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: Wi-Fi tutorail

2008-09-04 Thread Mark Murphy

Oskeol wrote:
 I guess Bluetooth would be just fine for me, and wi-fi doesn't help?

Bluetooth would work for extremely local (i.e., Bluetooth-range) 
distances, but the Android 1.0 SDK will not have the Bluetooth API for 
you to use. Perhaps it will in a future release.

WiFi or 3G/EDGE-type wireless data may or may not be helpful, depending 
on how you are going to ascertain location (e.g., GPS?). And, of course, 
WiFi assumes the existence of an available access point.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Warescription: All titles, revisions,  ebook formats, just $35/year

--~--~-~--~~~---~--~~
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: [Mac OS X] webView.loadUrl question

2008-09-04 Thread Mark Murphy

RPO wrote:
 I have the same problem with the new version (0.9) of the SDK.  The
 following code:

snip

 produces the Web page not available message.  And yes, I added
 uses-permission android:name=android.permission.INTERNET /
 to my AndroidManifest.xml file.  I am running on a Windows system, not
 a Mac, by the way.

Are you behind a proxy server? Or are there other unusual things about 
your local network?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Warescription: All titles, revisions,  ebook formats, just $35/year

--~--~-~--~~~---~--~~
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: TabActivity throws SecurityException in specific cases only

2008-09-04 Thread hackbod

In 1.0 you can't replace activities embedded inside of another (unless
you are running with the same uid as the container), you can only
replace the entire top-level container.

On Sep 4, 2:52 am, i_am_on_android [EMAIL PROTECTED] wrote:
 Hi,

 I am trying to replace the default contacts view in the Contacts
 Application, but I get a SecurityException. Does it have something to
 do that Contacts uses TabActivity and each Activity is in a different
 process?  Could it be a bug in SDK 0.9?

 java.lang.RuntimeException: Unable to start activity
 ComponentInfo{com.android.contacts/
 com.android.contacts.DialtactsActivity}:
 java.lang.SecurityException: Requesting code from
 com.swisscom.test (with uid 10017) to be run in process
 android.process.shared (with uid 10004)

 Is there any way how to solve that?
 I was using this intent-filter.

 intent-filter 
          action
 android:name=com.android.contacts.action.LIST_DEFAULT /
         category android:name=android.intent.category.DEFAULT /
 /intent-filter

 The funny thing here is the following:

 I have two Activities on the same Intent. So, when I open the Contacts
 application, I get the dialog from which I can chose the Activity to
 show. If I manually select my own Activity in the dialog, it works. If
 I select it be the default application and it is started
 automatically, it throws the SecurityException.

 Regards,
 Reto
--~--~-~--~~~---~--~~
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: ACTION_PICK_ACTIVITY: anyone have this working?

2008-09-04 Thread hackbod

I'm not really sure I understand what you want to do.  The protocol
for PICK is very simply: the data is the URI of items you want to pick
from, and the result returned is a URI of the one that was picked, as
described here:

http://code.google.com/android/reference/android/content/Intent.html#ACTION_PICK

There is no EXTRA_INTENT involved.  As long as you have the data set
to a URI of items, and there is an activity that can pick from that
MIME type (which there may not necessarily be depending on what you
are trying to pick from), then it will work.

On Sep 4, 9:04 am, Mark Murphy [EMAIL PROTECTED] wrote:
 *bump*



 Mark Murphy wrote:
  I'm attempting to use ACTION_PICK_ACTIVITY. According to the docs:

  Pick an activity given an intent, returning the class selected.

  So, I've used ACTION_PICK to pick a contact, which I get back in my
  onActivityResult() as an Intent.

  What I can't quite figure out is how to construct the
  ACTION_PICK_ACTIVITY Intent. Again, according to the docs:

  Input: getExtra(String) field EXTRA_INTENT is an Intent used with
  queryIntentActivities(Intent, int) to determine the set of activities
  from which to pick.

  If I'm reading this correctly, I need two Intents:

  1. One containing the Uri of the content for which I want the user to
  pick an activity

  2. One containing the Intent from #1 above as EXTRA_INTENT and having an
  action of ACTION_PICK_ACTIVITY

  It's a bit mystifying why I need two rather than just one (I don't need
  EXTRA_INTENT on ACTION_PICK, so why on ACTION_PICK_ACTIVITY?). But, be
  that as it may, no matter what I try, Android 0.9 says it can't find an
  activity to handle my ACTION_PICK_ACTIVITY request, and so blows up with
    an exception like:

  android.content.ActivityNotFoundException: No Activity found to handle
  Intent { action=android.intent.action.PICK_ACTIVITY (has extras) }

  Part of the problem may be that the docs *don't* say what the Uri is
  supposed to be for Intent #2. I have tried the same Uri as in Intent #1,
  and I have tried no Uri, and both have failed:

  Intent i=new Intent()
             //.setData(data.getData())
             .putExtra(Intent.EXTRA_INTENT, data)
             .setAction(Intent.ACTION_PICK_ACTIVITY);

  where data is the Intent I got back from ACTION_PICK.

  Any idea where I'm going wrong?

  Thanks!

 --
 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]
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] Updated Masa to 0.9 SDK

2008-09-04 Thread Shane Isbell
I checked in some fixes into trunk for Masa (Maven plugins). Android 0.9 SDK
is now supported. Feel free to check it out and report any problems.

http://code.google.com/p/masa/

Thanks,
Shane

--~--~-~--~~~---~--~~
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: Quirky behavior when rotating screen in API Demos sample, Progress dialog

2008-09-04 Thread blindfold

Adding one debug output line to AlertDialogSamples.java to get

   super.handleMessage(msg);
   Log.i(OIC, mProgress =  + mProgress);

shows that the handler keeps incrementing mProgress under the
condition that I mentioned, but without dismissing the dialog when
mProgress reaches 100 (and indeed stops counting). I do not see how
adding another trigger message could help with this.

Or more explicitly,

mProgressHandler = new Handler() {
@Override
public void handleMessage(Message msg) {
super.handleMessage(msg);
Log.i(OIC, mProgress =  + mProgress);
if (mProgress = MAX_PROGRESS) {
Log.i(OIC, This should dismiss me, but...);
mProgressDialog.dismiss();
} else {
mProgress++;
mProgressDialog.incrementProgressBy(1);
mProgressHandler.sendEmptyMessageDelayed(0, 100);
}
}
};

gives

...
09-04 20:11:35.021: INFO/OIC(248): mProgress = 97
09-04 20:11:35.127: INFO/OIC(248): mProgress = 98
09-04 20:11:35.233: INFO/OIC(248): mProgress = 99
09-04 20:11:35.332: INFO/OIC(248): mProgress = 100
09-04 20:11:35.332: INFO/OIC(248): This should dismiss me, but...

the dialog remains on the screen if the screen orientation was changed
during the count.

Or if I add

@Override
protected void onPause() {
   super.onPause();
   Log.i(OIC, This too should dismiss me, but...);
   mProgressDialog.dismiss();
}

then I do get the This too should dismiss me, but... upon changing
the screen orientation somewhere during the count (and the count
continues), but the progress dialog still does not go away.


On Sep 4, 7:05 pm, Romain Guy [EMAIL PROTECTED] wrote:
 The bug is just in the sample application: it should call
 mProgressHandler.sendEmptyMessage(previousProgress) after an
 orientation change and if the progress dialog is showing. There is no
 cleanup problem or conflict or anything like this.

--~--~-~--~~~---~--~~
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: Quirky behavior when rotating screen in API Demos sample, Progress dialog

2008-09-04 Thread Romain Guy

Because it's the old Handler for the old ProgressDialog. A new
ProgressDialog is created when the screen orientation change. That new
progress dialog should have a new handle to take care of it. And the
activity should stop the handler in onDestroy() to avoid keeping it
running for a while after an orientation change.

On Thu, Sep 4, 2008 at 1:31 PM, blindfold [EMAIL PROTECTED] wrote:

 Adding one debug output line to AlertDialogSamples.java to get

   super.handleMessage(msg);
   Log.i(OIC, mProgress =  + mProgress);

 shows that the handler keeps incrementing mProgress under the
 condition that I mentioned, but without dismissing the dialog when
 mProgress reaches 100 (and indeed stops counting). I do not see how
 adding another trigger message could help with this.

 Or more explicitly,

mProgressHandler = new Handler() {
@Override
public void handleMessage(Message msg) {
super.handleMessage(msg);
Log.i(OIC, mProgress =  + mProgress);
if (mProgress = MAX_PROGRESS) {
Log.i(OIC, This should dismiss me, but...);
mProgressDialog.dismiss();
} else {
mProgress++;
mProgressDialog.incrementProgressBy(1);
mProgressHandler.sendEmptyMessageDelayed(0, 100);
}
}
};

 gives

 ...
 09-04 20:11:35.021: INFO/OIC(248): mProgress = 97
 09-04 20:11:35.127: INFO/OIC(248): mProgress = 98
 09-04 20:11:35.233: INFO/OIC(248): mProgress = 99
 09-04 20:11:35.332: INFO/OIC(248): mProgress = 100
 09-04 20:11:35.332: INFO/OIC(248): This should dismiss me, but...

 the dialog remains on the screen if the screen orientation was changed
 during the count.

 Or if I add

@Override
protected void onPause() {
   super.onPause();
   Log.i(OIC, This too should dismiss me, but...);
   mProgressDialog.dismiss();
}

 then I do get the This too should dismiss me, but... upon changing
 the screen orientation somewhere during the count (and the count
 continues), but the progress dialog still does not go away.


 On Sep 4, 7:05 pm, Romain Guy [EMAIL PROTECTED] wrote:
 The bug is just in the sample application: it should call
 mProgressHandler.sendEmptyMessage(previousProgress) after an
 orientation change and if the progress dialog is showing. There is no
 cleanup problem or conflict or anything like this.

 




-- 
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]
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: Web search

2008-09-04 Thread android_dev

Any plans to have business and/or local search in 1.0?

On Sep 3, 2:02 pm, Megha Joshi [EMAIL PROTECTED] wrote:
 2008/9/3 android_dev [EMAIL PROTECTED]



  How to get web search results in an application (without launching the
  browser)?

  Can the getFromLocationName(...) be used for getting web search
  results given a search term?

 It can be used for location search.



  example: getFromLocationName(pizza San Jose, CA, 5)

  Will this return the pizza places around San Jose, CA?

 Business search is not a part of the current API, so you can only search
 places or addresses..
 For details see the API docs 
 below:http://code.google.com/android/reference/android/location/Geocoder.html



 - 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]
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: Web search

2008-09-04 Thread Megha Joshi
2008/9/4 android_dev [EMAIL PROTECTED]


 Any plans to have business and/or local search in 1.0?


No..these APIs will not be ready in time for 1.0 launch.



 On Sep 3, 2:02 pm, Megha Joshi [EMAIL PROTECTED] wrote:
  2008/9/3 android_dev [EMAIL PROTECTED]
 
 
 
   How to get web search results in an application (without launching the
   browser)?
 
   Can the getFromLocationName(...) be used for getting web search
   results given a search term?
 
  It can be used for location search.
 
 
 
   example: getFromLocationName(pizza San Jose, CA, 5)
 
   Will this return the pizza places around San Jose, CA?
 
  Business search is not a part of the current API, so you can only search
  places or addresses..
  For details see the API docs below:
 http://code.google.com/android/reference/android/location/Geocoder.html
 
 
 
  - 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]
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: ACTION_PICK_ACTIVITY: anyone have this working?

2008-09-04 Thread hackbod

The PICK_ACTIVITY action may be implemented in some code that isn't
included with this SDK.  What are you trying to do accomplish with
it?  What it is usually used for is to display to the user a list of
activities for them to pick -- such as the top-level main main
activities you can launch.  I don't really see how it makes sense to
use against a specific contact.

On Sep 4, 12:45 pm, Mark Murphy [EMAIL PROTECTED] wrote:
 hackbod wrote:
  I'm not really sure I understand what you want to do.  The protocol
  for PICK is very simply: the data is the URI of items you want to pick
  from, and the result returned is a URI of the one that was picked, as
  described here:

 http://code.google.com/android/reference/android/content/Intent.html#...

  There is no EXTRA_INTENT involved.  As long as you have the data set
  to a URI of items, and there is an activity that can pick from that
  MIME type (which there may not necessarily be depending on what you
  are trying to pick from), then it will work.

 I'm sorry, but I believe you misinterpreted what I wrote. Probably I was
 too confusing, so let me try something shorter...

 I know how to use ACTION_PICK. I get a contact via ACTION_PICK. So far,
 life is good.

 I now want to apply ACTION_PICK_ACTIVITY against that contact that the
 user picked.

 I cannot make sense of the documentation to determine how to use
 ACTION_PICK_ACTIVITY, there is no sample app that uses that Intent
 action in the SDK, and my random stabs at using ACTION_PICK_ACTIVITY
 fail with a No Activity found to handle Intent error.

 So...I'm wondering if anyone has a code snippet that demonstrates
 crafting an ACTION_PICK_ACTIVITY Intent and invoking it against a given
 content Uri (e.g., a contact picked via ACTION_PICK).

 Thanks in advance!

 --
 Mark Murphy (a Commons Guy)http://commonsware.com
 Warescription: All titles, revisions,  ebook formats, just $35/year
--~--~-~--~~~---~--~~
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: ACTION_PICK_ACTIVITY: anyone have this working?

2008-09-04 Thread Mark Murphy

hackbod wrote:
 The PICK_ACTIVITY action may be implemented in some code that isn't
 included with this SDK.  What are you trying to do accomplish with
 it?

Write about it in a chapter in my book.

These sort of introspection mechanisms (e.g., addIntentOptions(), the 
discarded ActivityAdapter/ActivityIconAdapter) are one of the more 
interesting aspects of Android-dom, leading to lots of potential for 
inter-activity cooperation.

  What it is usually used for is to display to the user a list of
 activities for them to pick -- such as the top-level main main
 activities you can launch.  I don't really see how it makes sense to
 use against a specific contact.

For the book example, I was going to have the user ACTION_PICK a contact 
and then pick an operation via ACTION_PICK_ACTIVITY. That's because 
keeping book examples short and sweet makes it easier for people to grok 
the implementation. And, contacts are one content provider I know will 
be on the emulator and can trivially be added by the user so there's 
some real data there. So, yes, it's a mildly fakey example, but, gimme a 
break, it's a book...

I suppose I'll just delve deeper into 
PackageManager#queryIntentActivityOptions() instead. I prefer to put in 
more details on the more cooked approaches than the raw one, but if 
ACTION_PICK_ACTIVITY is DOA, and ActivityAdapter/ActivityIconAdapter are 
nuked, I may as well cover what I can.

Thanks anyway!

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Warescription: All titles, revisions,  ebook formats, just $35/year

--~--~-~--~~~---~--~~
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: ACTION_PICK_ACTIVITY: anyone have this working?

2008-09-04 Thread hackbod

On Sep 4, 3:57 pm, Mark Murphy [EMAIL PROTECTED] wrote:
 Write about it in a chapter in my book.

Ah!  I'm not sure how much this one is worth covering, but anyway. :)

 These sort of introspection mechanisms (e.g., addIntentOptions(), the
 discarded ActivityAdapter/ActivityIconAdapter) are one of the more
 interesting aspects of Android-dom, leading to lots of potential for
 inter-activity cooperation.

Yep, this is definitely an important area, that the faster people can
really understand them the more powerful our applications will
become.  This particular action is a really simple special-case one,
though, so I wouldn't recommend using it as an illustration of the
larger picture.

 For the book example, I was going to have the user ACTION_PICK a contact
 and then pick an operation via ACTION_PICK_ACTIVITY. That's because
 keeping book examples short and sweet makes it easier for people to grok
 the implementation. And, contacts are one content provider I know will
 be on the emulator and can trivially be added by the user so there's
 some real data there. So, yes, it's a mildly fakey example, but, gimme a
 break, it's a book...

Actually I don't think I would structure the example that way -- it
isn't really the kind of UI flow you would do, so this isn't how the
action is intended to be used.  What it is mainly used for is when you
want to pop up a list of things for the user to choose from to fill in
a field.  For example, if you were going to write a shortcut manager,
you could use ACTION_PICK_ACTIVITY to have the user pick an activity
to assign to a shortcut.  If the Intent extra you give it is
action=MAIN category=LAUNCHER they will be picking from all of the
applications they have installed.

For the case of picking a contact and then do something with it,
probably what you want to use is a chooser -- see
http://code.google.com/android/reference/android/content/Intent.html#ACTION_CHOOSER

This presents to the user a list of activities that match the given
intent (if there is more than one) and upon selecting one of them
executes that activity on the caller's behalf.  This is intended for
things like having the user add an attachment to an e-mail message
(where you want to present a list of things that can supply
attachments), so I think it better follows the example you want, and
should be used far more than the PICK_ACTIVITY action.

 I suppose I'll just delve deeper into
 PackageManager#queryIntentActivityOptions() instead. I prefer to put in
 more details on the more cooked approaches than the raw one, but if
 ACTION_PICK_ACTIVITY is DOA, and ActivityAdapter/ActivityIconAdapter are
 nuked, I may as well cover what I can.

Instead of queryIntentActivityOptions(), I would suggest using the
higher-level menu apis:
http://code.google.com/android/reference/android/view/Menu.html#addIntentOptions(int,%20int,%20int,%20android.content.ComponentName,%20android.content.Intent[],%20android.content.Intent,%20int,%20android.view.MenuItem[])

The note pad example should be using this for its menus.

To be honest, though, for our current UI we have pretty much backed
away from the menu approach, and I think all of the regular apps are
now using ACTION_CHOOSER for places where their actions can be
extended.  The chooser approach seems to work a bit better for
scalability in the places we have been using 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]
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 use SmsManager.sendDataMessage() to send the message

2008-09-04 Thread plusminus

*bump*

I'd like to know that too.
How to receive DataMessages then?

Btw: your bug may be reated to this one: 
http://code.google.com/p/android/issues/detail?id=856

Best Regards,
plusminus
# http://www.anddev.org - Worlds largest Android Development Community

On 26 Aug., 05:13, anywhere [EMAIL PROTECTED] wrote:
 hi all

     I am now trying to write some application about sms on 0.9 beta
 SDK. The method sendTextMessage of SmsManager class performed well.
 But when usingsendDataMessageto send message SDK will crash.
     Would you please explain what's means of destinationPort parameter
 and how to set it.

 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]
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: ACTION_PICK_ACTIVITY: anyone have this working?

2008-09-04 Thread Mark Murphy

hackbod wrote:
 Actually I don't think I would structure the example that way -- it
 isn't really the kind of UI flow you would do, so this isn't how the
 action is intended to be used.  What it is mainly used for is when you
 want to pop up a list of things for the user to choose from to fill in
 a field.  For example, if you were going to write a shortcut manager,
 you could use ACTION_PICK_ACTIVITY to have the user pick an activity
 to assign to a shortcut.  If the Intent extra you give it is
 action=MAIN category=LAUNCHER they will be picking from all of the
 applications they have installed.

Oh.

 For the case of picking a contact and then do something with it,
 probably what you want to use is a chooser -- see
 
http://code.google.com/android/reference/android/content/Intent.html#ACTION_CHOOSER

Oh!

 This presents to the user a list of activities that match the given
 intent (if there is more than one) and upon selecting one of them
 executes that activity on the caller's behalf.  This is intended for
 things like having the user add an attachment to an e-mail message
 (where you want to present a list of things that can supply
 attachments), so I think it better follows the example you want, and
 should be used far more than the PICK_ACTIVITY action.

OH!!!

So, I had the right concept, but the wrong action name. That beats most 
of the alternatives.

 Instead of queryIntentActivityOptions(), I would suggest using the
 higher-level menu apis:
 http://code.google.com/android/reference/android/view/Menu.html#addIntentOptions(int,%20int,%20int,%20android.content.ComponentName,%20android.content.Intent[],%20android.content.Intent,%20int,%20android.view.MenuItem[])

Yeah, I already have that one written up from before.

 To be honest, though, for our current UI we have pretty much backed
 away from the menu approach, and I think all of the regular apps are
 now using ACTION_CHOOSER for places where their actions can be
 extended.  The chooser approach seems to work a bit better for
 scalability in the places we have been using it.

I can imagine the options menu may get kinda crowded.

This is just what I needed to know. Many thanks!

-- 
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]
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] IPsec support in Android

2008-09-04 Thread Henry Katz

Hello,
Is there any support for software IPsec tunnels in Android?
Does it have IKE, IKEv2 port?

--~--~-~--~~~---~--~~
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] Abstract Classes and Layouts

2008-09-04 Thread Jerome O'Neil

I have a couple of widgets that I would like to appear on each
Activity within my application.   I've been trying to set up an
AbstractHandler that extends Activity that implements these common
bits of code, and then have each of my Activity classes extend that,
and then have those classes implement just the components that are
important to them.  That's pretty basic stuff.

My problem is that when I set up the layout in XML in the concrete
class, it over writes the layout in the abstract class, and I then
lose the common widgets.

A general sketch of the problem.

public abstract class Foo extends Activity{

  public void onCreate(Bundle bundle){
   super.onCreate(bundle);

   // I want these buttons inherited by every Activity in my
application.
   setContentView(R.layout.abstractbuttons);
  }

}



public class Bar extends Foo{

   public void onCreate(Bundle bundle){
super.onCreate(bundle);

// These buttons are specific to this Activity, but by setting
the content view differently, I lose the
// Buttons in Foo.
   setContentView(R.layout.specificbuttons);
   }
}

So I guess what I want is a way to merge to XML layouts.

Is that possible?

Many thanks,

-J

--~--~-~--~~~---~--~~
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: ACTION_PICK_ACTIVITY: anyone have this working?

2008-09-04 Thread hackbod

One thing I noticed -- the current implementation of the default
CHOOSER activity does not quite work the same as when you get when
using Menu.addIntentOptions() -- it will show all of the activities
that match the intent, however it does not take care of filling in the
intent action field if one wasn't already specified. :(

Unfortunately we'll have to live with this for 1.0.  It means you
can't correctly use it for the case where you create an intent with no
action, that is want to let the user pick all of the actions for a
particular URI.  So as an example, you'll need to use it in the cases
we have been, where the original Intent is full specified, such as
GET_CONTENT with some MIME type.

On Sep 4, 6:12 pm, Mark Murphy [EMAIL PROTECTED] wrote:
 hackbod wrote:
  Actually I don't think I would structure the example that way -- it
  isn't really the kind of UI flow you would do, so this isn't how the
  action is intended to be used.  What it is mainly used for is when you
  want to pop up a list of things for the user to choose from to fill in
  a field.  For example, if you were going to write a shortcut manager,
  you could use ACTION_PICK_ACTIVITY to have the user pick an activity
  to assign to a shortcut.  If the Intent extra you give it is
  action=MAIN category=LAUNCHER they will be picking from all of the
  applications they have installed.

 Oh.

  For the case of picking a contact and then do something with it,
  probably what you want to use is a chooser -- see

 http://code.google.com/android/reference/android/content/Intent.html#...

 Oh!

  This presents to the user a list of activities that match the given
  intent (if there is more than one) and upon selecting one of them
  executes that activity on the caller's behalf.  This is intended for
  things like having the user add an attachment to an e-mail message
  (where you want to present a list of things that can supply
  attachments), so I think it better follows the example you want, and
  should be used far more than the PICK_ACTIVITY action.

 OH!!!

 So, I had the right concept, but the wrong action name. That beats most
 of the alternatives.

  Instead of queryIntentActivityOptions(), I would suggest using the
  higher-level menu apis:
 http://code.google.com/android/reference/android/view/Menu.html#addIn...[],%20android.content.Intent,%20int,%20android.view.MenuItem[])

 Yeah, I already have that one written up from before.

  To be honest, though, for our current UI we have pretty much backed
  away from the menu approach, and I think all of the regular apps are
  now using ACTION_CHOOSER for places where their actions can be
  extended.  The chooser approach seems to work a bit better for
  scalability in the places we have been using it.

 I can imagine the options menu may get kinda crowded.

 This is just what I needed to know. Many thanks!

 --
 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]
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: Some help with webservices?!

2008-09-04 Thread Cezar Augustus Signori

Thanks for the response!

Well, i still getting no results... i am using the following:

permission xmlns:android=http://schemas.android.com/apk/res/android;
android:name=android.permission.INTERNET/permission

and..

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

something wrong or missing??

I am trying now to post data with RequestQueue, like the following:

RequestQueue rQueue = new RequestQueue(this);
MapString, String headers = new HashMapString,
String();
headers.put(Content-Type, text/xml);
rQueue.queueRequest(URL, POST,headers, new
MyEventHandler(),
new ByteArrayInputStream(POSTbytes),
POSTbytes.length,false);

where URL is the webservice url. The error i am getting is: The URL
could not be found.

Any ideas?

On 3 set, 11:23, kennyg [EMAIL PROTECTED] wrote:
 Did you set the android.permission.INTERNET permission in the
 Android.Manifest.xml?

 Not providing this leads to unexpected errors when connecting.

 Kenny.

 CezarAugustus Signori wrote:
  Hi all!

  i still try to send/receive data from/to webservices...well, i tried
  the kSoap2 (as almost of us), but all that i get is an unknown error
  message.

  After some tries, i've decided to simple send XML to thewebservice
  through a connection and receive the response as String to later
  handle it with some XML parser. But all i can get is a bug Does Not
  Support Output message from the URLConnection. If i use another class
  such HttpUrlConnection from java.net or apache,  the unknown error
  message comes again.

  I tried things like described:

 http://www.anddev.org/calling_a_web_service_from_android-t348.html
 http://chitgoks.blogspot.com/2008/03/android-and-web-services.html
  and other resources from this group..

  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] Can't call startActivity() - real easy, please help

2008-09-04 Thread Mark Wyszomierski

Hi,

Just downloaded the new beta version. I can't launch a new activity
from my start activity. I followed the Forwarding.java example. This
is what I have:

Intent intent = new Intent();
intent.setClass(Forwarding.this, ForwardTarget.class);
startActivity(intent);
finish();

but my app always crashes on the third line (startActivity()).

Any idea why this could be? I have it setup just as in the example...

Thanks,
Mark
--~--~-~--~~~---~--~~
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: Can't call startActivity() - real easy, please help

2008-09-04 Thread Peli

Is your start activity class called Forwarding? If not, you should
change the second line to the name of your class. In most cases you
can just use this (instead of Forwarding.this).

Does this help? If not, it would be useful if you could post the
logcat error message, or more of your code.

Peli
www.openintents.org

On 5 Sep., 04:39, Mark Wyszomierski [EMAIL PROTECTED] wrote:
 Hi,

 Just downloaded the new beta version. I can't launch a new activity
 from my start activity. I followed the Forwarding.java example. This
 is what I have:

             Intent intent = new Intent();
             intent.setClass(Forwarding.this, ForwardTarget.class);
             startActivity(intent);
             finish();

 but my app always crashes on the third line (startActivity()).

 Any idea why this could be? I have it setup just as in the example...

 Thanks,
 Mark
--~--~-~--~~~---~--~~
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: Can't call startActivity() - real easy, please help

2008-09-04 Thread Mark Wyszomierski

Hi Peli,

Thanks for the info. I think I found what it was, I accidentally
remembered something about the manifest file in the old SDK versions.
Sure enough, we need to explicitly add the Activity names in the app
before starting them. It would be useful if the exception thrown
mentioned that (maybe it does in the Logcat section) yeah.

Now it's time to try getting a MapActivity to actually display a map -
all I'm getting is a fine looking grey grid.

Thanks,
Mark


On Sep 4, 11:09 pm, Peli [EMAIL PROTECTED] wrote:
 Is your start activity class called Forwarding? If not, you should
 change the second line to the name of your class. In most cases you
 can just use this (instead of Forwarding.this).

 Does this help? If not, it would be useful if you could post the
 logcat error message, or more of your code.

 Peliwww.openintents.org

 On 5 Sep., 04:39, Mark Wyszomierski [EMAIL PROTECTED] wrote:

  Hi,

  Just downloaded the new beta version. I can't launch a new activity
  from my start activity. I followed the Forwarding.java example. This
  is what I have:

              Intent intent = new Intent();
              intent.setClass(Forwarding.this, ForwardTarget.class);
              startActivity(intent);
              finish();

  but my app always crashes on the third line (startActivity()).

  Any idea why this could be? I have it setup just as in the example...

  Thanks,
  Mark
--~--~-~--~~~---~--~~
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] No internet connectivity - no browser, no maps?

2008-09-04 Thread Mark Wyszomierski

Hi,

Just got the latest beta 0.9 version on my win32 system.

I can't access any web pages through the web browser, or any map data
through the maps sample applications.

I know I'm connected to the internets because, well I'm writing this
to you all right now. I'm not behind a firewall, don't have any proxy
setup.

This always worked fine on my setup with earlier versions of the
Android SDK. Am I missing some flag that needs to be set to get it to
allow internet connectivity or something?

Thanks,
Mark
--~--~-~--~~~---~--~~
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: Replacement for MapView's OnLongPressListener

2008-09-04 Thread plusminus

So for everyone who is interested, this is my solution:

 http://www.anddev.org/viewtopic.php?p=#
(Funny post-id ^^)

Best Regards,
plusminus for anddev.org

On 3 Sep., 17:05, Megha Joshi [EMAIL PROTECTED] wrote:
 2008/9/3 Megha Joshi [EMAIL PROTECTED]



  2008/9/1 plusminus [EMAIL PROTECTED]

  What is the common replacement for MapView's OnLongPressListener
  (since its gone in 0.9) ?

  Since MapView's setOnLongPressListener() method is now removed...if you
  need the same functionality...you could try
  handling the OnTouchEvent() and passing it on to a GestureDetector to
  handle it yourself..

 Further, you can use getProjection() to get the lat/lng from the pixel
 co-ordinates of the touchEvent..



  OnLongClick does not provide the Coordinates :(

  PS: This is my third try to post o_O.
--~--~-~--~~~---~--~~
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] Map won't display

2008-09-04 Thread [EMAIL PROTECTED]

I have subclassed the MapActivity and created the new MapView but when
I launch my application it won't display a map.  The Maps app that
comes with the SDK does work.

here is my code:

public class perimeter extends MapActivity {


protected MapView MyMapView = null;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);


MyMapView = new
MapView(this,ABC);
 
setContentView(MyMapView);
}

@Override
protected boolean isRouteDisplayed() {
// TODO Auto-generated method stub
return true;
}
}


And here is my Manifest file.


?xml version=1.0 encoding=utf-8?
manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=com.ds.perimeter
application android:icon=@drawable/icon android:label=@string/
app_name
activity android:name=.perimeter android:label=@string/
app_name
intent-filter
action android:name=android.intent.action.MAIN /
category
android:name=android.intent.category.LAUNCHER /

/intent-filter
/activity
uses-library android:name=com.google.android.maps /
/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]
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: Map won't display

2008-09-04 Thread Mark Wyszomierski

I think you need to add these to your manifest file:

manifest xmlns:android=http://schemas.android.com/apk/res/android;
package=myfingpackage

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

application android:icon=@drawable/icon android:label=@string/
app_name

uses-library android:name=com.google.android.maps /

Notice the permissions tags and the uses-library tag.

So you can get out to the internets on your emulator huh? I can't on
mine, it is most depressing. I don't know what's wrong with it.


[EMAIL PROTECTED] wrote:
 I have subclassed the MapActivity and created the new MapView but when
 I launch my application it won't display a map.  The Maps app that
 comes with the SDK does work.

 here is my code:

 public class perimeter extends MapActivity {


   protected MapView MyMapView = null;

   /** Called when the activity is first created. */
 @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);


 MyMapView = new
 MapView(this,ABC);

 setContentView(MyMapView);
 }

   @Override
   protected boolean isRouteDisplayed() {
   // TODO Auto-generated method stub
   return true;
   }
 }


 And here is my Manifest file.


 ?xml version=1.0 encoding=utf-8?
 manifest xmlns:android=http://schemas.android.com/apk/res/android;
 package=com.ds.perimeter
 application android:icon=@drawable/icon android:label=@string/
 app_name
 activity android:name=.perimeter android:label=@string/
 app_name
 intent-filter
 action android:name=android.intent.action.MAIN /
 category
 android:name=android.intent.category.LAUNCHER /

 /intent-filter
 /activity
 uses-library android:name=com.google.android.maps /
 /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]
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
-~--~~~~--~~--~--~---