[android-developers] MediaPlayer and onSaveInstanceState?

2008-12-07 Thread ben rosenberg

hey folks,

to make a long story short, I'm working on an app that plays streaming
video content in a VideoView with a MediaController; Im wondering how
I can preserve the state of my VideoView across orientation changes,
such that opening the keyboard doesn't restart the playback, etc..

I've been messing around with onSaveInstanceState, but Im fairly
certain I'm missing something (possibly Parcelized objects?) ..
Ideally i think I'd like to save and restore the state of the
MediaPlayer,  as well as an HttpClient (or at least its cookiejar) ...
I suspect this will have to be done with Parcelables, but I don't
quite have my head around how those work (and the Notepad example
hasn't helped)..

any suggestions, or especially code or pseudocode examples, would be
greatly apprectiated


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



[android-developers] On stop method

2008-12-07 Thread ena

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



[android-developers] Re: On stop method

2008-12-07 Thread Christine

You don't restart your app. Android stops your app for a reason, and
it calls onStop to give the app a chance to do some cleanup before
being stopped. As soon as the reason for stopping your app has gone,
Android will start your app again.
Look at the app model in the docs, it tells you everything.

On Dec 7, 10:14 am, ena [EMAIL PROTECTED] wrote:
 How to do restart App in OnStop method ...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: OpenGL context = how to load non power of two dimension bitmap?

2008-12-07 Thread Mathias Agopian

Hi,

The G1 h/w doesn't support non power-of-two texture (NPOT) dimensions.
However, Android's software implementation does.
In order to know if a particular opengl context supports NPOT, you
need to check for the npot extension string.

When the extension is not available, you have to use a bigger texture
that has POT dimensions (or use several smaller textures, but that's
harder). An easy way to deal with it, is to set a texture matrix which
scales the texture coordinates in pixels (glScalef(1/w, 1/h, 1)),
which allows you to specify the texcoord in texels.

Of course, if you want to use the texture with GL_REPEAT wrapping
mode, you're out of luck -- well, things get harder, you need to scale
your original image to POT dimensions, and then use appropriate down-
scaling to map  repeat it (exercise left to the reader [hint: use
texture transformations to simplify your life]).

Also, for 2D rendering, consider using the draw_texture extension
(glDrawTexi), it's available on most h/w implementations and is
usually faster than using geometry.

Information about OpenGL and OpenGL ES extensions is available on the
intertubes.


Good luck!

Mathias


On Dec 4, 8:48 am, Guian [EMAIL PROTECTED] wrote:
 in the OpenGL android API  (android.opengl.GLUtils.texImage2D() )
 (http://code.google.com/android/reference/android/opengl/GLUtils.html
 )
  we can read=

 Whether or not bitmap can have non power of two dimensions depends
 on
 the current OpenGL context.

 I load my OpenGL context using :
 mEglContext = mEgl.eglCreateContext(mEglDisplay,
 mEglConfig,EGL10.EGL_NO_CONTEXT, null);

 do you know what do I have to do in order to load non power of two
 dimensions bitmap?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Dialog with No Title

2008-12-07 Thread cyntacks

Sure, that is what I had originally thought. But how do you get the
Title view in order to set it to GONE (I believe INVISIBLE still takes
up some space)?


On Dec 7, 6:58 am, Christine [EMAIL PROTECTED] wrote:
 When you set the view to invisible, it won't take up space:
 yourTextView.setVisibility(TextView.INVISIBLE)

 On Dec 7, 4:09 am, cyntacks [EMAIL PROTECTED] wrote:

  I'm just bumping this, I have been trying to figure this out for the
  past 2 hours... anyone know how this can be done?

  On Nov 13, 1:26 pm, G [EMAIL PROTECTED] wrote:

   I've got the following NumberPickerDialog class which extendsDialog.
   Currently the pick_number.xml contains only a LinearLayout and 1
   button (this is all incomplete as i'm still in early dev stages). When
   I show thisdialog, I get a blank space for thetitleeven though I do
   not specify one. I would like that blank space gone, so i have more
   room on screen for more buttons. How do I create thisdialogwith 
   notitle/empty spot fortitle? I've tried setTitle(null) which didnt
   work, and setTheme(android.R.style.Theme_NoTitle) which is not
   supported by theDialogclass.

   Thanks a lot.
   /g

   public class NumberPickerDialog extendsDialog{

           public interface OnNumberChangedListener {
                   void numberChanged(int number);
           }

           private OnNumberChangedListener mListener;
           private int mInitialNumber;
           private int mMinNumber;
           private int mMaxNumber;

           @Override
           protected void onCreate(Bundle savedInstanceState) {

                   super.onCreate(savedInstanceState);

                   setContentView(R.layout.pick_number);
                   //setTitle(THIS SHOULDNT BE HERE);

                   Button btn = (Button)findViewById(R.id.Button01);
                   btn.setOnClickListener(new Button.OnClickListener() {

                           public void onClick(View v) {
                                   // TODO Auto-generated method stub
                                   String num = 
   ((Button)v).getText().toString();
                                   
   mListener.numberChanged(Integer.parseInt(num));
                                   dismiss();
                           }

                   });
           }

           public NumberPickerDialog(Context ctx, OnNumberChangedListener
   listener, int initialNumber, int minNumber, int maxNumber) {
                   super(ctx);
                   mListener = listener;
                   mInitialNumber = initialNumber;
                   mMinNumber = minNumber;
                   mMaxNumber = maxNumber;
           }

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



[android-developers] Re: How to find out what the IP address of the Android device is?

2008-12-07 Thread Marcio Alexandroni

The only way I found it for now is:

Socket conn = new Socket(www.google.com, 80);
String ipAddress = Socket.getLocalAddress().toString();
Conn.Close;

Of course you need to catch for the exceptions. It returns the address in
the form name/IP, you must parse the string to get the second piece.

Marcio Alexandroni
www.cialogica.com
w  Tel. 55 11 3717-2345
   Cel. 55 11 9989-8316
[EMAIL PROTECTED] 
 marcioalexandroni

-Original Message-
From: android-developers@googlegroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Peter
Sent: Sunday, December 07, 2008 05:32
To: Android Developers
Subject: [android-developers] Re: How to find out what the IP address of the
Android device is?


Not that this is legit or anything but you could retrieve a site such
as cmyip.com and just extract the IP from the html. You could also
setup a server yourelf to hand back the IP when the device connects?
(you could also use the IP information for statistics =p )

On Dec 5, 4:18 pm, Qualyxx [EMAIL PROTECTED] wrote:
 There is a DhcpInfo class but it does not tell you where you can
 retrieve the DhCpInfo from.

 I would like to establish a ServerSocket and let other Android device
 to connect to it and I need to publish the IP address of the device.

 any hint?

 Thanks,

 Yang



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



[android-developers] Re: Dialog with No Title

2008-12-07 Thread Christine

When you set the view to invisible, it won't take up space:
yourTextView.setVisibility(TextView.INVISIBLE)


On Dec 7, 4:09 am, cyntacks [EMAIL PROTECTED] wrote:
 I'm just bumping this, I have been trying to figure this out for the
 past 2 hours... anyone know how this can be done?

 On Nov 13, 1:26 pm, G [EMAIL PROTECTED] wrote:

  I've got the following NumberPickerDialog class which extendsDialog.
  Currently the pick_number.xml contains only a LinearLayout and 1
  button (this is all incomplete as i'm still in early dev stages). When
  I show thisdialog, I get a blank space for thetitleeven though I do
  not specify one. I would like that blank space gone, so i have more
  room on screen for more buttons. How do I create thisdialogwith 
  notitle/empty spot fortitle? I've tried setTitle(null) which didnt
  work, and setTheme(android.R.style.Theme_NoTitle) which is not
  supported by theDialogclass.

  Thanks a lot.
  /g

  public class NumberPickerDialog extendsDialog{

          public interface OnNumberChangedListener {
                  void numberChanged(int number);
          }

          private OnNumberChangedListener mListener;
          private int mInitialNumber;
          private int mMinNumber;
          private int mMaxNumber;

          @Override
          protected void onCreate(Bundle savedInstanceState) {

                  super.onCreate(savedInstanceState);

                  setContentView(R.layout.pick_number);
                  //setTitle(THIS SHOULDNT BE HERE);

                  Button btn = (Button)findViewById(R.id.Button01);
                  btn.setOnClickListener(new Button.OnClickListener() {

                          public void onClick(View v) {
                                  // TODO Auto-generated method stub
                                  String num = 
  ((Button)v).getText().toString();
                                  
  mListener.numberChanged(Integer.parseInt(num));
                                  dismiss();
                          }

                  });
          }

          public NumberPickerDialog(Context ctx, OnNumberChangedListener
  listener, int initialNumber, int minNumber, int maxNumber) {
                  super(ctx);
                  mListener = listener;
                  mInitialNumber = initialNumber;
                  mMinNumber = minNumber;
                  mMaxNumber = maxNumber;
          }

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



[android-developers] Re: How to send email programmatically?

2008-12-07 Thread Christine

I use Javamail,  works fine.

On Dec 6, 8:32 pm, Sunit Katkar [EMAIL PROTECTED] wrote:
 Yes I would prefer this. However, can you please post a code example of how
 to do this?Thanks,

 - Sunit Katkar

 On Sat, Dec 6, 2008 at 11:13 AM, Dianne Hackborn [EMAIL PROTECTED]wrote:

  You need to go through the UI of the mailer activity, so the user can
  select which app to use etc.  Adding support for allowing applications to
  get at the user's personal e-mail information and send on their behalf
  without their interaction (but some other way to inform them that the app is
  doing this) is not a high priority for the platform; actually, I would
  personally much prefer that apps go through the mail UI so the user can be
  aware of and confirm whatever some non-mail app is sending on their behalf.

  As a user, wouldn't you prefer this too? :}

  On Mon, Dec 1, 2008 at 4:23 PM, Jay-andro [EMAIL PROTECTED] wrote:

  I too want to send email programmtaically (i.e without a send form).
  I've got it working with my hardcoded credentials, but I want my app
  to use the user's account to send the email from the user's account
  and receive replies to his account. How do I do this?

  On Nov 12, 10:51 am, Sunit Katkar [EMAIL PROTECTED] wrote:
   Thank you. I will try this.

   On Wed, Nov 12, 2008 at 12:44 AM, Peli [EMAIL PROTECTED] wrote:

You can find a code snippet here:
   http://www.openintents.org/en/node/121

There is also a related SENDTO action which you can look up in the
documentation.

Peli
   www.openintents.org

On Nov 12, 8:52 am, Sunit Katkar [EMAIL PROTECTED] wrote:
 Ok how would I implement the 'send form'. Do you mean that I should
launch a
 web browser and use some webmail type of application hosted on a
  server?
 I was thinking about the Email Outbox. How can I put a simple text
message
 as an email in the Outbox? I know I could do this long long ago with
  Palm
OS
 ver3.0. Hope there is a way to do it on Android.

 - Sunit

 On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess [EMAIL PROTECTED]
wrote:
  If you don't want to direct the user to the typical send form,
  then
you're
  going to have to either try and adapt an existing java based
  mailer to
  android or write an SMTP client from scratch.  The SMTP standard
  isn't
too
  hard to implement.

  On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar 
  [EMAIL PROTECTED]
wrote:

  Any ideas? Any pointers to some examples?

  On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar 
  [EMAIL PROTECTED]
wrote:

  Suppose I have an Activity which has couple of text fields - one
  for
the
  subject and one for body text.
  And there is a simple Button. When user clicks the button, I
  wish to
send
  the text in the textfields via email to a predetermined email
address.
  How can I achieve this?

  Sorry for being lazy and not looking up the SDK docs :)

  PS: I have configured the EMAIL app on G1 using the Email setup
steps, so
  it can receive and send email from my email account.

  --
  - Sunit Katkar
 http://sunitkatkar.blogspot.com/-AndroidOS Tutorials

  --
  - Sunit Katkar
 http://sunitkatkar.blogspot.com/-AndroidOS Tutorials

  --
  Andrew Burgess

 --
 - Sunit Katkarhttp://sunitkatkar.blogspot.com/-AndroidOS Tutorials

   --
   - Sunit Katkarhttp://sunitkatkar.blogspot.com/-Android OS Tutorials

  --
  Dianne Hackborn
  Android framework engineer
  [EMAIL PROTECTED]

  Note: please don't send private questions to me, as I don't have time to
  provide private support.  All such questions should be posted on public
  forums, where I and others can see and answer them.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: New SDK Available

2008-12-07 Thread Jean-Baptiste Queru

Sprint moved away from GSM a very long time ago, and this phone is
GSM-only and therefore doesn't work on Sprint's network. If you're in
the US, T-Mobile is the best operator to use the Android Dev Phone 1
on (and if you already have a G1 you can swap the SIM between the
phones). It'll work on ATT's network but you won't have any 3G data.

JBQ

On Sat, Dec 6, 2008 at 10:31 PM, don rhummy [EMAIL PROTECTED] wrote:

 Will this unlocked phone work with a Sprint/Nextel SIM card? I've heard 
 they're not compatible with most SIM-capable phones.


 --- On Sat, 12/6/08, gjs [EMAIL PROTECTED] wrote:

 From: gjs [EMAIL PROTECTED]
 Subject: [android-developers] Re: New SDK Available
 To: Android Developers android-developers@googlegroups.com
 Date: Saturday, December 6, 2008, 5:55 PM
 Hi,

 Many many thanks for finally making an unlocked DEV phone
 available
 (largely) worldwide.

 This is great news for us folks in the non T-Mobile regions
 and will
 help provide a level playing field for ADC II participants.

 ( In my own case I decided not to wait as no news of DEV
 phones was
 forthcoming before now, so I took the *big* gamble of
 procuring a US
 G1 privately through ebay - for a premium. I managed to get
 it working
 after purchasing an unlock code and configuring the GPRS
 setting to
 work with Optus 3G in Australia. )

 If the DEV phone is to automatically receive 'OTA'
 updates - without
 warning like the G1 - I would suggest that people double
 check their
 local mobile data plans to ensure they don't get
 slugged for excessive
 download charges.

 Once again thanks, this is a great (xmas/holiday) present
 for many
 Android devs :-)

 Regards

 On Dec 7, 4:31 am, Romain Guy [EMAIL PROTECTED]
 wrote:
  The Android Dev Phone 1 supports 3G in Europe. It
 depends on the
  carrier, the country, etc. though. But it should work
 in most cases.
 
 
 
  On Sat, Dec 6, 2008 at 3:21 AM, Paulo Sergio
 [EMAIL PROTECTED] wrote:
   Hi
   very nice news!!!
 
   2 questions:
   whats the band frenquency of the phone? will it
 have 3g in europe?
   from where is it shipped? if outside europe will
 be expensive to who live
   here
 
   ordering online is a huge help, but i'm just
 sad that a lot of country where
   left out! it's online, why do this??
 
   thanks,
   paulo
 
   On Sat, Dec 6, 2008 at 9:52 AM, Al Sutton
 [EMAIL PROTECTED] wrote:
 
   The development phones are an excellent and
 much needed help (especially
   since they are available in markets where the
 G1 currently isn't).
 
   And I'd personally like to give a BIG hug
 to whoever fixed installing
   apps via the browser from places such as
 AndAppStore in the new SDK
   release :) :) :).
 
   Nice work and well done all at Google.
 
   Al.
  http://andappstore.com/
 
   Dan Morrill wrote:
Hello, developers!  I wanted to call
 your attention to the new Android
1.0 SDK, release 2 that we just made
 available.
 
For full details, please see our blog
 post:
 
  
 http://android-developers.blogspot.com/2008/12/new-resources-for-deve...
 
- Dan
 
  --
  Romain Guywww.curious-creature.org




 


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



[android-developers] Re: New SDK Available

2008-12-07 Thread Xavier Mathews

I thought att only did 3G network.

On 12/07/2008, Jean-Baptiste Queru [EMAIL PROTECTED] wrote:

 Sprint moved away from GSM a very long time ago, and this phone is
 GSM-only and therefore doesn't work on Sprint's network. If you're in
 the US, T-Mobile is the best operator to use the Android Dev Phone 1
 on (and if you already have a G1 you can swap the SIM between the
 phones). It'll work on ATT's network but you won't have any 3G data.

 JBQ

 On Sat, Dec 6, 2008 at 10:31 PM, don rhummy [EMAIL PROTECTED] wrote:

 Will this unlocked phone work with a Sprint/Nextel SIM card? I've heard
 they're not compatible with most SIM-capable phones.


 --- On Sat, 12/6/08, gjs [EMAIL PROTECTED] wrote:

 From: gjs [EMAIL PROTECTED]
 Subject: [android-developers] Re: New SDK Available
 To: Android Developers android-developers@googlegroups.com
 Date: Saturday, December 6, 2008, 5:55 PM
 Hi,

 Many many thanks for finally making an unlocked DEV phone
 available
 (largely) worldwide.

 This is great news for us folks in the non T-Mobile regions
 and will
 help provide a level playing field for ADC II participants.

 ( In my own case I decided not to wait as no news of DEV
 phones was
 forthcoming before now, so I took the *big* gamble of
 procuring a US
 G1 privately through ebay - for a premium. I managed to get
 it working
 after purchasing an unlock code and configuring the GPRS
 setting to
 work with Optus 3G in Australia. )

 If the DEV phone is to automatically receive 'OTA'
 updates - without
 warning like the G1 - I would suggest that people double
 check their
 local mobile data plans to ensure they don't get
 slugged for excessive
 download charges.

 Once again thanks, this is a great (xmas/holiday) present
 for many
 Android devs :-)

 Regards

 On Dec 7, 4:31 am, Romain Guy [EMAIL PROTECTED]
 wrote:
  The Android Dev Phone 1 supports 3G in Europe. It
 depends on the
  carrier, the country, etc. though. But it should work
 in most cases.
 
 
 
  On Sat, Dec 6, 2008 at 3:21 AM, Paulo Sergio
 [EMAIL PROTECTED] wrote:
   Hi
   very nice news!!!
 
   2 questions:
   whats the band frenquency of the phone? will it
 have 3g in europe?
   from where is it shipped? if outside europe will
 be expensive to who live
   here
 
   ordering online is a huge help, but i'm just
 sad that a lot of country where
   left out! it's online, why do this??
 
   thanks,
   paulo
 
   On Sat, Dec 6, 2008 at 9:52 AM, Al Sutton
 [EMAIL PROTECTED] wrote:
 
   The development phones are an excellent and
 much needed help (especially
   since they are available in markets where the
 G1 currently isn't).
 
   And I'd personally like to give a BIG hug
 to whoever fixed installing
   apps via the browser from places such as
 AndAppStore in the new SDK
   release :) :) :).
 
   Nice work and well done all at Google.
 
   Al.
  http://andappstore.com/
 
   Dan Morrill wrote:
Hello, developers!  I wanted to call
 your attention to the new Android
1.0 SDK, release 2 that we just made
 available.
 
For full details, please see our blog
 post:
 
  
 http://android-developers.blogspot.com/2008/12/new-resources-for-deve...
 
- Dan
 
  --
  Romain Guywww.curious-creature.org




 


 



-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.

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



[android-developers] Re: Dialog with No Title

2008-12-07 Thread Xavier Mathews

Did you set it to invisable and shorten it? I have never heard of a
Dialog with no title.

On 12/07/2008, cyntacks [EMAIL PROTECTED] wrote:

 Sure, that is what I had originally thought. But how do you get the
 Title view in order to set it to GONE (I believe INVISIBLE still takes
 up some space)?


 On Dec 7, 6:58 am, Christine [EMAIL PROTECTED] wrote:
 When you set the view to invisible, it won't take up space:
 yourTextView.setVisibility(TextView.INVISIBLE)

 On Dec 7, 4:09 am, cyntacks [EMAIL PROTECTED] wrote:

  I'm just bumping this, I have been trying to figure this out for the
  past 2 hours... anyone know how this can be done?

  On Nov 13, 1:26 pm, G [EMAIL PROTECTED] wrote:

   I've got the following NumberPickerDialog class which extendsDialog.
   Currently the pick_number.xml contains only a LinearLayout and 1
   button (this is all incomplete as i'm still in early dev stages). When
   I show thisdialog, I get a blank space for thetitleeven though I do
   not specify one. I would like that blank space gone, so i have more
   room on screen for more buttons. How do I create thisdialogwith
   notitle/empty spot fortitle? I've tried setTitle(null) which didnt
   work, and setTheme(android.R.style.Theme_NoTitle) which is not
   supported by theDialogclass.

   Thanks a lot.
   /g

   public class NumberPickerDialog extendsDialog{

   public interface OnNumberChangedListener {
   void numberChanged(int number);
   }

   private OnNumberChangedListener mListener;
   private int mInitialNumber;
   private int mMinNumber;
   private int mMaxNumber;

   @Override
   protected void onCreate(Bundle savedInstanceState) {

   super.onCreate(savedInstanceState);

   setContentView(R.layout.pick_number);
   //setTitle(THIS SHOULDNT BE HERE);

   Button btn = (Button)findViewById(R.id.Button01);
   btn.setOnClickListener(new Button.OnClickListener() {

   public void onClick(View v) {
   // TODO Auto-generated method stub
   String num =
   ((Button)v).getText().toString();
  
   mListener.numberChanged(Integer.parseInt(num));
   dismiss();
   }

   });
   }

   public NumberPickerDialog(Context ctx, OnNumberChangedListener
   listener, int initialNumber, int minNumber, int maxNumber) {
   super(ctx);
   mListener = listener;
   mInitialNumber = initialNumber;
   mMinNumber = minNumber;
   mMaxNumber = maxNumber;
   }

   }
 



-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.

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



[android-developers] Re: OpenGL context = how to load non power of two dimension bitmap?

2008-12-07 Thread Xavier Mathews

Hi I think there is a program app or something for power two bitmap
for the G1 did you check the market. I can't remember what it was
called but someone was having this problen with support and found the
app.

On 12/07/2008, Mathias Agopian [EMAIL PROTECTED] wrote:

 Hi,

 The G1 h/w doesn't support non power-of-two texture (NPOT) dimensions.
 However, Android's software implementation does.
 In order to know if a particular opengl context supports NPOT, you
 need to check for the npot extension string.

 When the extension is not available, you have to use a bigger texture
 that has POT dimensions (or use several smaller textures, but that's
 harder). An easy way to deal with it, is to set a texture matrix which
 scales the texture coordinates in pixels (glScalef(1/w, 1/h, 1)),
 which allows you to specify the texcoord in texels.

 Of course, if you want to use the texture with GL_REPEAT wrapping
 mode, you're out of luck -- well, things get harder, you need to scale
 your original image to POT dimensions, and then use appropriate down-
 scaling to map  repeat it (exercise left to the reader [hint: use
 texture transformations to simplify your life]).

 Also, for 2D rendering, consider using the draw_texture extension
 (glDrawTexi), it's available on most h/w implementations and is
 usually faster than using geometry.

 Information about OpenGL and OpenGL ES extensions is available on the
 intertubes.


 Good luck!

 Mathias


 On Dec 4, 8:48 am, Guian [EMAIL PROTECTED] wrote:
 in the OpenGL android API  (android.opengl.GLUtils.texImage2D() )
 (http://code.google.com/android/reference/android/opengl/GLUtils.html
 )
  we can read=

 Whether or not bitmap can have non power of two dimensions depends
 on
 the current OpenGL context.

 I load my OpenGL context using :
 mEglContext = mEgl.eglCreateContext(mEglDisplay,
 mEglConfig,EGL10.EGL_NO_CONTEXT, null);

 do you know what do I have to do in order to load non power of two
 dimensions bitmap?
 



-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.

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



[android-developers] Re: Dialog with No Title

2008-12-07 Thread cyntacks

I guess it depends on how you define dialog. As it stands in the SDK
now a dialog can be used for almost anything, for example you can
display an error to the user or even get input from the user. The
issue mainly revolves around spacing, especilly when the device is in
Landscape.

1) If I were to show an AlertDialog, of course I want to have a title
(something like Error: Nothing Found...).

2) But, if I am attempting to use the dialog to retrieve user input
like for example user information (address, email, phone, etc etc)
there is no need for the title. Using the EditText's hint text, I
can simply add Email Address as a hint, and the title becomes
redundant.

Again, this is really a question of screen real estate and the title
just takes up too much room on a device in Landscape mode.

Any ideas besides writing an activity that looks like a dialog?

Kevin

On Dec 7, 10:25 am, Xavier Mathews [EMAIL PROTECTED] wrote:
 Did you set it to invisable and shorten it? I have never heard of aDialogwith 
 notitle.

 On 12/07/2008, cyntacks [EMAIL PROTECTED] wrote:





  Sure, that is what I had originally thought. But how do you get the
 Titleview in order to set it to GONE (I believe INVISIBLE still takes
  up some space)?

  On Dec 7, 6:58 am, Christine [EMAIL PROTECTED] wrote:
  When you set the view to invisible, it won't take up space:
  yourTextView.setVisibility(TextView.INVISIBLE)

  On Dec 7, 4:09 am, cyntacks [EMAIL PROTECTED] wrote:

   I'm just bumping this, I have been trying to figure this out for the
   past 2 hours... anyone know how this can be done?

   On Nov 13, 1:26 pm, G [EMAIL PROTECTED] wrote:

I've got the following NumberPickerDialog class which extendsDialog.
Currently the pick_number.xml contains only a LinearLayout and 1
button (this is all incomplete as i'm still in early dev stages). When
I show thisdialog, I get a blank space for thetitleeven though I do
not specify one. I would like that blank space gone, so i have more
room on screen for more buttons. How do I create thisdialogwith
notitle/empty spot fortitle? I've tried setTitle(null) which didnt
work, and setTheme(android.R.style.Theme_NoTitle) which is not
supported by theDialogclass.

Thanks a lot.
/g

public class NumberPickerDialog extendsDialog{

        public interface OnNumberChangedListener {
                void numberChanged(int number);
        }

        private OnNumberChangedListener mListener;
        private int mInitialNumber;
        private int mMinNumber;
        private int mMaxNumber;

        @Override
        protected void onCreate(Bundle savedInstanceState) {

                super.onCreate(savedInstanceState);

                setContentView(R.layout.pick_number);
                //setTitle(THIS SHOULDNT BE HERE);

                Button btn = (Button)findViewById(R.id.Button01);
                btn.setOnClickListener(new Button.OnClickListener() {

                        public void onClick(View v) {
                                // TODO Auto-generated method stub
                                String num =
((Button)v).getText().toString();

mListener.numberChanged(Integer.parseInt(num));
                                dismiss();
                        }

                });
        }

        public NumberPickerDialog(Context ctx, OnNumberChangedListener
listener, int initialNumber, int minNumber, int maxNumber) {
                super(ctx);
                mListener = listener;
                mInitialNumber = initialNumber;
                mMinNumber = minNumber;
                mMaxNumber = maxNumber;
        }

}

 --
 Xavier A. Mathews
 Student/Browser Specialist/Developer/Web-Master
 Google Group Client Based Tech Support Specialist
 Hazel Crest Illinois
 [EMAIL PROTECTED]@[EMAIL PROTECTED]
 Fear of a name, only increases fear of the thing itself.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: New SDK Available

2008-12-07 Thread Logan

What makes you believe that it will not work on ATT's 3G network? I
am planning on seeing how ATT reacts to my request for the SIM card
from my iPhone, ha ha.

On Dec 7, 9:14 am, Jean-Baptiste Queru [EMAIL PROTECTED] wrote:
 Sprint moved away from GSM a very long time ago, and this phone is
 GSM-only and therefore doesn't work on Sprint's network. If you're in
 the US, T-Mobile is the best operator to use the Android Dev Phone 1
 on (and if you already have a G1 you can swap the SIM between the
 phones). It'll work on ATT's network but you won't have any 3G data.

 JBQ

 On Sat, Dec 6, 2008 at 10:31 PM, don rhummy [EMAIL PROTECTED] wrote:

  Will this unlocked phone work with a Sprint/Nextel SIM card? I've heard 
  they're not compatible with most SIM-capable phones.

  --- On Sat, 12/6/08, gjs [EMAIL PROTECTED] wrote:

  From: gjs [EMAIL PROTECTED]
  Subject: [android-developers] Re: New SDK Available
  To: Android Developers android-developers@googlegroups.com
  Date: Saturday, December 6, 2008, 5:55 PM
  Hi,

  Many many thanks for finally making an unlocked DEV phone
  available
  (largely) worldwide.

  This is great news for us folks in the non T-Mobile regions
  and will
  help provide a level playing field for ADC II participants.

  ( In my own case I decided not to wait as no news of DEV
  phones was
  forthcoming before now, so I took the *big* gamble of
  procuring a US
  G1 privately through ebay - for a premium. I managed to get
  it working
  after purchasing an unlock code and configuring the GPRS
  setting to
  work with Optus 3G in Australia. )

  If the DEV phone is to automatically receive 'OTA'
  updates - without
  warning like the G1 - I would suggest that people double
  check their
  local mobile data plans to ensure they don't get
  slugged for excessive
  download charges.

  Once again thanks, this is a great (xmas/holiday) present
  for many
  Android devs :-)

  Regards

  On Dec 7, 4:31 am, Romain Guy [EMAIL PROTECTED]
  wrote:
   The Android Dev Phone 1 supports 3G in Europe. It
  depends on the
   carrier, the country, etc. though. But it should work
  in most cases.

   On Sat, Dec 6, 2008 at 3:21 AM, Paulo Sergio
  [EMAIL PROTECTED] wrote:
Hi
very nice news!!!

2 questions:
whats the band frenquency of the phone? will it
  have 3g in europe?
from where is it shipped? if outside europe will
  be expensive to who live
here

ordering online is a huge help, but i'm just
  sad that a lot of country where
left out! it's online, why do this??

thanks,
paulo

On Sat, Dec 6, 2008 at 9:52 AM, Al Sutton
  [EMAIL PROTECTED] wrote:

The development phones are an excellent and
  much needed help (especially
since they are available in markets where the
  G1 currently isn't).

And I'd personally like to give a BIG hug
  to whoever fixed installing
apps via the browser from places such as
  AndAppStore in the new SDK
release :) :) :).

Nice work and well done all at Google.

Al.
   http://andappstore.com/

Dan Morrill wrote:
 Hello, developers!  I wanted to call
  your attention to the new Android
 1.0 SDK, release 2 that we just made
  available.

 For full details, please see our blog
  post:

  http://android-developers.blogspot.com/2008/12/new-resources-for-deve...

 - Dan

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



[android-developers] Re: How to send email programmatically?

2008-12-07 Thread Xavier Mathews

Java Mail?

On 12/07/2008, Christine [EMAIL PROTECTED] wrote:

 I use Javamail,  works fine.

 On Dec 6, 8:32 pm, Sunit Katkar [EMAIL PROTECTED] wrote:
 Yes I would prefer this. However, can you please post a code example of
 how
 to do this?Thanks,

 - Sunit Katkar

 On Sat, Dec 6, 2008 at 11:13 AM, Dianne Hackborn
 [EMAIL PROTECTED]wrote:

  You need to go through the UI of the mailer activity, so the user can
  select which app to use etc.  Adding support for allowing applications
  to
  get at the user's personal e-mail information and send on their behalf
  without their interaction (but some other way to inform them that the
  app is
  doing this) is not a high priority for the platform; actually, I would
  personally much prefer that apps go through the mail UI so the user can
  be
  aware of and confirm whatever some non-mail app is sending on their
  behalf.

  As a user, wouldn't you prefer this too? :}

  On Mon, Dec 1, 2008 at 4:23 PM, Jay-andro [EMAIL PROTECTED] wrote:

  I too want to send email programmtaically (i.e without a send form).
  I've got it working with my hardcoded credentials, but I want my app
  to use the user's account to send the email from the user's account
  and receive replies to his account. How do I do this?

  On Nov 12, 10:51 am, Sunit Katkar [EMAIL PROTECTED] wrote:
   Thank you. I will try this.

   On Wed, Nov 12, 2008 at 12:44 AM, Peli [EMAIL PROTECTED]
   wrote:

You can find a code snippet here:
   http://www.openintents.org/en/node/121

There is also a related SENDTO action which you can look up in the
documentation.

Peli
   www.openintents.org

On Nov 12, 8:52 am, Sunit Katkar [EMAIL PROTECTED] wrote:
 Ok how would I implement the 'send form'. Do you mean that I
 should
launch a
 web browser and use some webmail type of application hosted on a
  server?
 I was thinking about the Email Outbox. How can I put a simple
 text
message
 as an email in the Outbox? I know I could do this long long ago
 with
  Palm
OS
 ver3.0. Hope there is a way to do it on Android.

 - Sunit

 On Tue, Nov 11, 2008 at 5:25 PM, Andrew Burgess
 [EMAIL PROTECTED]
wrote:
  If you don't want to direct the user to the typical send form,
  then
you're
  going to have to either try and adapt an existing java based
  mailer to
  android or write an SMTP client from scratch.  The SMTP
  standard
  isn't
too
  hard to implement.

  On Tue, Nov 11, 2008 at 8:05 PM, Sunit Katkar 
  [EMAIL PROTECTED]
wrote:

  Any ideas? Any pointers to some examples?

  On Tue, Nov 11, 2008 at 9:42 AM, Sunit Katkar 
  [EMAIL PROTECTED]
wrote:

  Suppose I have an Activity which has couple of text fields -
  one
  for
the
  subject and one for body text.
  And there is a simple Button. When user clicks the button, I
  wish to
send
  the text in the textfields via email to a predetermined email
address.
  How can I achieve this?

  Sorry for being lazy and not looking up the SDK docs :)

  PS: I have configured the EMAIL app on G1 using the Email
  setup
steps, so
  it can receive and send email from my email account.

  --
  - Sunit Katkar
 http://sunitkatkar.blogspot.com/-AndroidOS Tutorials

  --
  - Sunit Katkar
 http://sunitkatkar.blogspot.com/-AndroidOS Tutorials

  --
  Andrew Burgess

 --
 - Sunit Katkarhttp://sunitkatkar.blogspot.com/-AndroidOS
 Tutorials

   --
   - Sunit Katkarhttp://sunitkatkar.blogspot.com/-Android OS Tutorials

  --
  Dianne Hackborn
  Android framework engineer
  [EMAIL PROTECTED]

  Note: please don't send private questions to me, as I don't have time to
  provide private support.  All such questions should be posted on public
  forums, where I and others can see and answer them.
 



-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.

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



[android-developers] Re: Dialog with No Title

2008-12-07 Thread Xavier Mathews

Nope i think Kevin is right. Get A bigger screen. lol jokeing.

On 12/07/2008, cyntacks [EMAIL PROTECTED] wrote:

 I guess it depends on how you define dialog. As it stands in the SDK
 now a dialog can be used for almost anything, for example you can
 display an error to the user or even get input from the user. The
 issue mainly revolves around spacing, especilly when the device is in
 Landscape.

 1) If I were to show an AlertDialog, of course I want to have a title
 (something like Error: Nothing Found...).

 2) But, if I am attempting to use the dialog to retrieve user input
 like for example user information (address, email, phone, etc etc)
 there is no need for the title. Using the EditText's hint text, I
 can simply add Email Address as a hint, and the title becomes
 redundant.

 Again, this is really a question of screen real estate and the title
 just takes up too much room on a device in Landscape mode.

 Any ideas besides writing an activity that looks like a dialog?

 Kevin

 On Dec 7, 10:25 am, Xavier Mathews [EMAIL PROTECTED] wrote:
 Did you set it to invisable and shorten it? I have never heard of
 aDialogwith notitle.

 On 12/07/2008, cyntacks [EMAIL PROTECTED] wrote:





  Sure, that is what I had originally thought. But how do you get the
 Titleview in order to set it to GONE (I believe INVISIBLE still takes
  up some space)?

  On Dec 7, 6:58 am, Christine [EMAIL PROTECTED] wrote:
  When you set the view to invisible, it won't take up space:
  yourTextView.setVisibility(TextView.INVISIBLE)

  On Dec 7, 4:09 am, cyntacks [EMAIL PROTECTED] wrote:

   I'm just bumping this, I have been trying to figure this out for the
   past 2 hours... anyone know how this can be done?

   On Nov 13, 1:26 pm, G [EMAIL PROTECTED] wrote:

I've got the following NumberPickerDialog class which
extendsDialog.
Currently the pick_number.xml contains only a LinearLayout and 1
button (this is all incomplete as i'm still in early dev stages).
When
I show thisdialog, I get a blank space for thetitleeven though I do
not specify one. I would like that blank space gone, so i have more
room on screen for more buttons. How do I create thisdialogwith
notitle/empty spot fortitle? I've tried setTitle(null) which didnt
work, and setTheme(android.R.style.Theme_NoTitle) which is not
supported by theDialogclass.

Thanks a lot.
/g

public class NumberPickerDialog extendsDialog{

public interface OnNumberChangedListener {
void numberChanged(int number);
}

private OnNumberChangedListener mListener;
private int mInitialNumber;
private int mMinNumber;
private int mMaxNumber;

@Override
protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.pick_number);
//setTitle(THIS SHOULDNT BE HERE);

Button btn = (Button)findViewById(R.id.Button01);
btn.setOnClickListener(new Button.OnClickListener()
{

public void onClick(View v) {
// TODO Auto-generated method stub
String num =
((Button)v).getText().toString();

mListener.numberChanged(Integer.parseInt(num));
dismiss();
}

});
}

public NumberPickerDialog(Context ctx,
OnNumberChangedListener
listener, int initialNumber, int minNumber, int maxNumber) {
super(ctx);
mListener = listener;
mInitialNumber = initialNumber;
mMinNumber = minNumber;
mMaxNumber = maxNumber;
}

}

 --
 Xavier A. Mathews
 Student/Browser Specialist/Developer/Web-Master
 Google Group Client Based Tech Support Specialist
 Hazel Crest Illinois
 [EMAIL PROTECTED]@[EMAIL PROTECTED]
 Fear of a name, only increases fear of the thing itself.
 



-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.

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



[android-developers] Re: New SDK Available

2008-12-07 Thread Xavier Mathews

I phone does not have a sim card!

On 12/07/2008, Logan [EMAIL PROTECTED] wrote:

 What makes you believe that it will not work on ATT's 3G network? I
 am planning on seeing how ATT reacts to my request for the SIM card
 from my iPhone, ha ha.

 On Dec 7, 9:14 am, Jean-Baptiste Queru [EMAIL PROTECTED] wrote:
 Sprint moved away from GSM a very long time ago, and this phone is
 GSM-only and therefore doesn't work on Sprint's network. If you're in
 the US, T-Mobile is the best operator to use the Android Dev Phone 1
 on (and if you already have a G1 you can swap the SIM between the
 phones). It'll work on ATT's network but you won't have any 3G data.

 JBQ

 On Sat, Dec 6, 2008 at 10:31 PM, don rhummy [EMAIL PROTECTED] wrote:

  Will this unlocked phone work with a Sprint/Nextel SIM card? I've heard
  they're not compatible with most SIM-capable phones.

  --- On Sat, 12/6/08, gjs [EMAIL PROTECTED] wrote:

  From: gjs [EMAIL PROTECTED]
  Subject: [android-developers] Re: New SDK Available
  To: Android Developers android-developers@googlegroups.com
  Date: Saturday, December 6, 2008, 5:55 PM
  Hi,

  Many many thanks for finally making an unlocked DEV phone
  available
  (largely) worldwide.

  This is great news for us folks in the non T-Mobile regions
  and will
  help provide a level playing field for ADC II participants.

  ( In my own case I decided not to wait as no news of DEV
  phones was
  forthcoming before now, so I took the *big* gamble of
  procuring a US
  G1 privately through ebay - for a premium. I managed to get
  it working
  after purchasing an unlock code and configuring the GPRS
  setting to
  work with Optus 3G in Australia. )

  If the DEV phone is to automatically receive 'OTA'
  updates - without
  warning like the G1 - I would suggest that people double
  check their
  local mobile data plans to ensure they don't get
  slugged for excessive
  download charges.

  Once again thanks, this is a great (xmas/holiday) present
  for many
  Android devs :-)

  Regards

  On Dec 7, 4:31 am, Romain Guy [EMAIL PROTECTED]
  wrote:
   The Android Dev Phone 1 supports 3G in Europe. It
  depends on the
   carrier, the country, etc. though. But it should work
  in most cases.

   On Sat, Dec 6, 2008 at 3:21 AM, Paulo Sergio
  [EMAIL PROTECTED] wrote:
Hi
very nice news!!!

2 questions:
whats the band frenquency of the phone? will it
  have 3g in europe?
from where is it shipped? if outside europe will
  be expensive to who live
here

ordering online is a huge help, but i'm just
  sad that a lot of country where
left out! it's online, why do this??

thanks,
paulo

On Sat, Dec 6, 2008 at 9:52 AM, Al Sutton
  [EMAIL PROTECTED] wrote:

The development phones are an excellent and
  much needed help (especially
since they are available in markets where the
  G1 currently isn't).

And I'd personally like to give a BIG hug
  to whoever fixed installing
apps via the browser from places such as
  AndAppStore in the new SDK
release :) :) :).

Nice work and well done all at Google.

Al.
   http://andappstore.com/

Dan Morrill wrote:
 Hello, developers!  I wanted to call
  your attention to the new Android
 1.0 SDK, release 2 that we just made
  available.

 For full details, please see our blog
  post:

  http://android-developers.blogspot.com/2008/12/new-resources-for-deve...

 - Dan

   --
   Romain Guywww.curious-creature.org
 



-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.

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



[android-developers] Re: Dialog with No Title

2008-12-07 Thread cyntacks

Ha!!! That's too funny. I wish it were as simple as that!

This is just one of those things, I am about 30 minutes from deploying
and I just can't get myself to do it without fixing this little
problem. My dialog just looks terrible in Landscape because it
actually contains a listview allowing the user to scroll through some
content and select something. The title takes up so much room I am
afraid those of us with fat fingers (read: less technically inclined)
will have difficulty with the listview...

Argh

Kevin

On Dec 7, 10:56 am, Xavier Mathews [EMAIL PROTECTED] wrote:
 Nope i think Kevin is right. Get A bigger screen. lol jokeing.

 On 12/07/2008, cyntacks [EMAIL PROTECTED] wrote:





  I guess it depends on how you define dialog. As it stands in the SDK
  now a dialog can be used for almost anything, for example you can
  display an error to the user or even get input from the user. The
  issue mainly revolves around spacing, especilly when the device is in
  Landscape.

  1) If I were to show an AlertDialog, of course I want to have a title
  (something like Error: Nothing Found...).

  2) But, if I am attempting to use the dialog to retrieve user input
  like for example user information (address, email, phone, etc etc)
  there is no need for the title. Using the EditText's hint text, I
  can simply add Email Address as a hint, and the title becomes
  redundant.

  Again, this is really a question of screen real estate and the title
  just takes up too much room on a device in Landscape mode.

  Any ideas besides writing an activity that looks like a dialog?

  Kevin

  On Dec 7, 10:25 am, Xavier Mathews [EMAIL PROTECTED] wrote:
  Did you set it to invisable and shorten it? I have never heard of
  aDialogwith notitle.

  On 12/07/2008, cyntacks [EMAIL PROTECTED] wrote:

   Sure, that is what I had originally thought. But how do you get the
  Titleview in order to set it to GONE (I believe INVISIBLE still takes
   up some space)?

   On Dec 7, 6:58 am, Christine [EMAIL PROTECTED] wrote:
   When you set the view to invisible, it won't take up space:
   yourTextView.setVisibility(TextView.INVISIBLE)

   On Dec 7, 4:09 am, cyntacks [EMAIL PROTECTED] wrote:

I'm just bumping this, I have been trying to figure this out for the
past 2 hours... anyone know how this can be done?

On Nov 13, 1:26 pm, G [EMAIL PROTECTED] wrote:

 I've got the following NumberPickerDialog class which
 extendsDialog.
 Currently the pick_number.xml contains only a LinearLayout and 1
 button (this is all incomplete as i'm still in early dev stages).
 When
 I show thisdialog, I get a blank space for thetitleeven though I do
 not specify one. I would like that blank space gone, so i have more
 room on screen for more buttons. How do I create thisdialogwith
 notitle/empty spot fortitle? I've tried setTitle(null) which didnt
 work, and setTheme(android.R.style.Theme_NoTitle) which is not
 supported by theDialogclass.

 Thanks a lot.
 /g

 public class NumberPickerDialog extendsDialog{

         public interface OnNumberChangedListener {
                 void numberChanged(int number);
         }

         private OnNumberChangedListener mListener;
         private int mInitialNumber;
         private int mMinNumber;
         private int mMaxNumber;

         @Override
         protected void onCreate(Bundle savedInstanceState) {

                 super.onCreate(savedInstanceState);

                 setContentView(R.layout.pick_number);
                 //setTitle(THIS SHOULDNT BE HERE);

                 Button btn = (Button)findViewById(R.id.Button01);
                 btn.setOnClickListener(new Button.OnClickListener()
 {

                         public void onClick(View v) {
                                 // TODO Auto-generated method stub
                                 String num =
 ((Button)v).getText().toString();

 mListener.numberChanged(Integer.parseInt(num));
                                 dismiss();
                         }

                 });
         }

         public NumberPickerDialog(Context ctx,
 OnNumberChangedListener
 listener, int initialNumber, int minNumber, int maxNumber) {
                 super(ctx);
                 mListener = listener;
                 mInitialNumber = initialNumber;
                 mMinNumber = minNumber;
                 mMaxNumber = maxNumber;
         }

 }

  --
  Xavier A. Mathews
  Student/Browser Specialist/Developer/Web-Master
  Google Group Client Based Tech Support Specialist
  Hazel Crest Illinois
  [EMAIL PROTECTED]@[EMAIL PROTECTED]
  Fear of a name, only increases fear of the thing itself.

 --
 Xavier A. Mathews
 Student/Browser Specialist/Developer/Web-Master
 Google Group Client Based Tech Support Specialist
 Hazel Crest Illinois
 [EMAIL 

[android-developers] Re: New SDK Available

2008-12-07 Thread GasBot

Yes it does.

On Dec 7, 8:57 am, Xavier Mathews [EMAIL PROTECTED] wrote:
 I phone does not have a sim card!

 On 12/07/2008, Logan [EMAIL PROTECTED] wrote:





  What makes you believe that it will not work on ATT's 3G network? I
  am planning on seeing how ATT reacts to my request for the SIM card
  from my iPhone, ha ha.

  On Dec 7, 9:14 am, Jean-Baptiste Queru [EMAIL PROTECTED] wrote:
  Sprint moved away from GSM a very long time ago, and this phone is
  GSM-only and therefore doesn't work on Sprint's network. If you're in
  the US, T-Mobile is the best operator to use the Android Dev Phone 1
  on (and if you already have a G1 you can swap the SIM between the
  phones). It'll work on ATT's network but you won't have any 3G data.

  JBQ

  On Sat, Dec 6, 2008 at 10:31 PM, don rhummy [EMAIL PROTECTED] wrote:

   Will this unlocked phone work with a Sprint/Nextel SIM card? I've heard
   they're not compatible with most SIM-capable phones.

   --- On Sat, 12/6/08, gjs [EMAIL PROTECTED] wrote:

   From: gjs [EMAIL PROTECTED]
   Subject: [android-developers] Re: New SDK Available
   To: Android Developers android-developers@googlegroups.com
   Date: Saturday, December 6, 2008, 5:55 PM
   Hi,

   Many many thanks for finally making an unlocked DEV phone
   available
   (largely) worldwide.

   This is great news for us folks in the non T-Mobile regions
   and will
   help provide a level playing field for ADC II participants.

   ( In my own case I decided not to wait as no news of DEV
   phones was
   forthcoming before now, so I took the *big* gamble of
   procuring a US
   G1 privately through ebay - for a premium. I managed to get
   it working
   after purchasing an unlock code and configuring the GPRS
   setting to
   work with Optus 3G in Australia. )

   If the DEV phone is to automatically receive 'OTA'
   updates - without
   warning like the G1 - I would suggest that people double
   check their
   local mobile data plans to ensure they don't get
   slugged for excessive
   download charges.

   Once again thanks, this is a great (xmas/holiday) present
   for many
   Android devs :-)

   Regards

   On Dec 7, 4:31 am, Romain Guy [EMAIL PROTECTED]
   wrote:
The Android Dev Phone 1 supports 3G in Europe. It
   depends on the
carrier, the country, etc. though. But it should work
   in most cases.

On Sat, Dec 6, 2008 at 3:21 AM, Paulo Sergio
   [EMAIL PROTECTED] wrote:
 Hi
 very nice news!!!

 2 questions:
 whats the band frenquency of the phone? will it
   have 3g in europe?
 from where is it shipped? if outside europe will
   be expensive to who live
 here

 ordering online is a huge help, but i'm just
   sad that a lot of country where
 left out! it's online, why do this??

 thanks,
 paulo

 On Sat, Dec 6, 2008 at 9:52 AM, Al Sutton
   [EMAIL PROTECTED] wrote:

 The development phones are an excellent and
   much needed help (especially
 since they are available in markets where the
   G1 currently isn't).

 And I'd personally like to give a BIG hug
   to whoever fixed installing
 apps via the browser from places such as
   AndAppStore in the new SDK
 release :) :) :).

 Nice work and well done all at Google.

 Al.
http://andappstore.com/

 Dan Morrill wrote:
  Hello, developers!  I wanted to call
   your attention to the new Android
  1.0 SDK, release 2 that we just made
   available.

  For full details, please see our blog
   post:

   http://android-developers.blogspot.com/2008/12/new-resources-for-deve...

  - Dan

--
Romain Guywww.curious-creature.org

 --
 Xavier A. Mathews
 Student/Browser Specialist/Developer/Web-Master
 Google Group Client Based Tech Support Specialist
 Hazel Crest Illinois
 [EMAIL PROTECTED]@[EMAIL PROTECTED]
 Fear of a name, only increases fear of the thing itself.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: New SDK Available

2008-12-07 Thread GasBot

Because ATT's 3G runs off of a different frequency band than T-
Mobile's.  So the phone will work and you can make calls with ATT and
use their Edge network, but you'll never get 3G connectivity.

On Dec 7, 8:43 am, Logan [EMAIL PROTECTED] wrote:
 What makes you believe that it will not work on ATT's 3G network? I
 am planning on seeing how ATT reacts to my request for the SIM card
 from my iPhone, ha ha.

 On Dec 7, 9:14 am, Jean-Baptiste Queru [EMAIL PROTECTED] wrote:

  Sprint moved away from GSM a very long time ago, and this phone is
  GSM-only and therefore doesn't work on Sprint's network. If you're in
  the US, T-Mobile is the best operator to use the Android Dev Phone 1
  on (and if you already have a G1 you can swap the SIM between the
  phones). It'll work on ATT's network but you won't have any 3G data.

  JBQ

  On Sat, Dec 6, 2008 at 10:31 PM, don rhummy [EMAIL PROTECTED] wrote:

   Will this unlocked phone work with a Sprint/Nextel SIM card? I've heard 
   they're not compatible with most SIM-capable phones.

   --- On Sat, 12/6/08, gjs [EMAIL PROTECTED] wrote:

   From: gjs [EMAIL PROTECTED]
   Subject: [android-developers] Re: New SDK Available
   To: Android Developers android-developers@googlegroups.com
   Date: Saturday, December 6, 2008, 5:55 PM
   Hi,

   Many many thanks for finally making an unlocked DEV phone
   available
   (largely) worldwide.

   This is great news for us folks in the non T-Mobile regions
   and will
   help provide a level playing field for ADC II participants.

   ( In my own case I decided not to wait as no news of DEV
   phones was
   forthcoming before now, so I took the *big* gamble of
   procuring a US
   G1 privately through ebay - for a premium. I managed to get
   it working
   after purchasing an unlock code and configuring the GPRS
   setting to
   work with Optus 3G in Australia. )

   If the DEV phone is to automatically receive 'OTA'
   updates - without
   warning like the G1 - I would suggest that people double
   check their
   local mobile data plans to ensure they don't get
   slugged for excessive
   download charges.

   Once again thanks, this is a great (xmas/holiday) present
   for many
   Android devs :-)

   Regards

   On Dec 7, 4:31 am, Romain Guy [EMAIL PROTECTED]
   wrote:
The Android Dev Phone 1 supports 3G in Europe. It
   depends on the
carrier, the country, etc. though. But it should work
   in most cases.

On Sat, Dec 6, 2008 at 3:21 AM, Paulo Sergio
   [EMAIL PROTECTED] wrote:
 Hi
 very nice news!!!

 2 questions:
 whats the band frenquency of the phone? will it
   have 3g in europe?
 from where is it shipped? if outside europe will
   be expensive to who live
 here

 ordering online is a huge help, but i'm just
   sad that a lot of country where
 left out! it's online, why do this??

 thanks,
 paulo

 On Sat, Dec 6, 2008 at 9:52 AM, Al Sutton
   [EMAIL PROTECTED] wrote:

 The development phones are an excellent and
   much needed help (especially
 since they are available in markets where the
   G1 currently isn't).

 And I'd personally like to give a BIG hug
   to whoever fixed installing
 apps via the browser from places such as
   AndAppStore in the new SDK
 release :) :) :).

 Nice work and well done all at Google.

 Al.
http://andappstore.com/

 Dan Morrill wrote:
  Hello, developers!  I wanted to call
   your attention to the new Android
  1.0 SDK, release 2 that we just made
   available.

  For full details, please see our blog
   post:

   http://android-developers.blogspot.com/2008/12/new-resources-for-deve...

  - Dan

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



[android-developers] ACTION_ANSWER

2008-12-07 Thread legerb

I've also tried to use ACTION_ANSWER, but i keep getting the
ActivityNotFoundException.
Does it mean that the Phone app is not registered for this intent?
What is the purpose of ACTION_ANSWER then?


-- Forwarded message --
From: Jose María González [EMAIL PROTECTED]
Date: Sep 10, 5:04 pm
Subject: ACTION_ANSWER
To: Android Developers


I am trying to automatically answer an incoming call.
I am using the intentACTION_ANSWER, but when a call arrives I can
only see an IndexOurOfBoundsException from JavaBinder. According to
the documentation it is possible to answer the call, but I cannot make
it.

Here is my code

public class MyPhoneStateListener extends PhoneStateListener {
        Context context;
        @Override
        public void onCallStateChanged(int state,String incomingNumber)
{
                 if (state==1){
                         Intent ic = new Intent(Intent.ACTION_ANSWER);
                         context.startActivity(ic);
                 }}

---Main class :

public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        TelephonyManager telephonyManager
=(TelephonyManager)getSystemService(TELEPHONY_SERVICE);
        telephonyManager.listen(phoneListener,
PhoneStateListener.LISTEN_CALL_STATE);
        phoneListener.context=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]
For more options, visit this group at 
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: New SDK Available

2008-12-07 Thread Xavier Mathews

I thought that iphone was also an ipod and has over 10,000 apps what
is the point of a sim?

On 12/07/2008, GasBot [EMAIL PROTECTED] wrote:

 Because ATT's 3G runs off of a different frequency band than T-
 Mobile's.  So the phone will work and you can make calls with ATT and
 use their Edge network, but you'll never get 3G connectivity.

 On Dec 7, 8:43 am, Logan [EMAIL PROTECTED] wrote:
 What makes you believe that it will not work on ATT's 3G network? I
 am planning on seeing how ATT reacts to my request for the SIM card
 from my iPhone, ha ha.

 On Dec 7, 9:14 am, Jean-Baptiste Queru [EMAIL PROTECTED] wrote:

  Sprint moved away from GSM a very long time ago, and this phone is
  GSM-only and therefore doesn't work on Sprint's network. If you're in
  the US, T-Mobile is the best operator to use the Android Dev Phone 1
  on (and if you already have a G1 you can swap the SIM between the
  phones). It'll work on ATT's network but you won't have any 3G data.

  JBQ

  On Sat, Dec 6, 2008 at 10:31 PM, don rhummy [EMAIL PROTECTED] wrote:

   Will this unlocked phone work with a Sprint/Nextel SIM card? I've
   heard they're not compatible with most SIM-capable phones.

   --- On Sat, 12/6/08, gjs [EMAIL PROTECTED] wrote:

   From: gjs [EMAIL PROTECTED]
   Subject: [android-developers] Re: New SDK Available
   To: Android Developers android-developers@googlegroups.com
   Date: Saturday, December 6, 2008, 5:55 PM
   Hi,

   Many many thanks for finally making an unlocked DEV phone
   available
   (largely) worldwide.

   This is great news for us folks in the non T-Mobile regions
   and will
   help provide a level playing field for ADC II participants.

   ( In my own case I decided not to wait as no news of DEV
   phones was
   forthcoming before now, so I took the *big* gamble of
   procuring a US
   G1 privately through ebay - for a premium. I managed to get
   it working
   after purchasing an unlock code and configuring the GPRS
   setting to
   work with Optus 3G in Australia. )

   If the DEV phone is to automatically receive 'OTA'
   updates - without
   warning like the G1 - I would suggest that people double
   check their
   local mobile data plans to ensure they don't get
   slugged for excessive
   download charges.

   Once again thanks, this is a great (xmas/holiday) present
   for many
   Android devs :-)

   Regards

   On Dec 7, 4:31 am, Romain Guy [EMAIL PROTECTED]
   wrote:
The Android Dev Phone 1 supports 3G in Europe. It
   depends on the
carrier, the country, etc. though. But it should work
   in most cases.

On Sat, Dec 6, 2008 at 3:21 AM, Paulo Sergio
   [EMAIL PROTECTED] wrote:
 Hi
 very nice news!!!

 2 questions:
 whats the band frenquency of the phone? will it
   have 3g in europe?
 from where is it shipped? if outside europe will
   be expensive to who live
 here

 ordering online is a huge help, but i'm just
   sad that a lot of country where
 left out! it's online, why do this??

 thanks,
 paulo

 On Sat, Dec 6, 2008 at 9:52 AM, Al Sutton
   [EMAIL PROTECTED] wrote:

 The development phones are an excellent and
   much needed help (especially
 since they are available in markets where the
   G1 currently isn't).

 And I'd personally like to give a BIG hug
   to whoever fixed installing
 apps via the browser from places such as
   AndAppStore in the new SDK
 release :) :) :).

 Nice work and well done all at Google.

 Al.
http://andappstore.com/

 Dan Morrill wrote:
  Hello, developers!  I wanted to call
   your attention to the new Android
  1.0 SDK, release 2 that we just made
   available.

  For full details, please see our blog
   post:

   http://android-developers.blogspot.com/2008/12/new-resources-for-deve...

  - Dan

--
Romain Guywww.curious-creature.org
 



-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.

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



[android-developers] Alternative to category LAUNCHER for plugins?

2008-12-07 Thread Peli

Our users complain about the following:
You're getting hammered by negative comments on oi voice notes
because after install it gives launch error. I suggest creating an
idiot window on launch that says this app is an addon, and to use
within other oi products.

We provide a plug-in (addon, extension,..) for our shopping list
application that is called voice notes, which should only appear in
the menu of shopping list. We do not want that plugin to be listed in
the list of all applications (as we plan to have more add-ons in the
future), so we did not specify the android.intent.category.LAUNCHER,
just the android.intent.category.ALTERNATIVE.

How can we provide an activity that is launched by the Android
installer after installation (to display a warning that this has to be
used from within shopping list), but still does not show up in the
list of all applications?

Hm, thinking about it, is it as simple as providing an intent
android.intent.action.MAIN without the category LAUNCHER? Is this what
the installer would call? (I have not downloaded the latest SDK yet,
otherwise I could probably answer this question myself by trying it
out...)

Peli
www.openintents.org


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



[android-developers] Weird Map Problem (Controlling same map)

2008-12-07 Thread mscwd01

I have a weird issue, which is probably easily solvable - but the
cause is alluding me.

I have two activities, one is created as an intent from the first
activity. Each activity features a MapView.

My problem is that if I move the first map (i.e. navigate to a
paricular city) the second map, when viewed, has also moved to display
the same place I navigated to in the first map. Reversly, if I move
the second map to another place when I go back to the first map, this
too, has changed to display the same location I navigated to on the
second map... confused? ;)

Basically I have two MapViews with different id values but they act as
if they are the same map. I need two distinct, individual maps that do
not control one another. Am I missing something obvious or do I have
to add something to stop them doing 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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] How to make my activity on top of system message.

2008-12-07 Thread AndroidGeek

Hi,

I am trying to start my application when a call is received and show
it on top of system message (showing phone number on the screen).

How can I suppress system screen and bring my activity on top of it?

Is there any way to do this

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



[android-developers] Need to get Status information.... MENU - Settings - About phone - Status....

2008-12-07 Thread Yorgen Valune
Hi All,
is there any way i can reach the following information:
from:
MENU - Settings - About phone - Status
i.e. Battery status/Battery level/Phone number/IMEI etc' .
using adb ? or using an inner object ?
please advice
Yorgen


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



[android-developers] JavaFX on Android

2008-12-07 Thread Edmon

What are the steps to (if even possible yet) to enable JavaFX
applications on Android?

Thank you,
Edmon

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



[android-developers] Dynamic class loading

2008-12-07 Thread Chris Davies

I have an application I want to port from Symbian OS to Android (Well,
maybe port is a bit of a strong word, since they would hardly share a
line of code in common. Rewrite maybe.) However, it really needs to
implement dynamically loaded modules to be of any use. In Java proper,
this would be trivial but as far as I can tell with Dalvik this is
impossible.

I've read this: 
http://blog.luminis.nl/roller/luminis/entry/osgi_on_google_android_using
which describes a hack to do it, but that of course is totally
impractical for production purposes.

Am I missing a way to do this, or is it simply impossible at the
present time?

Thanks.

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



[android-developers] Views of the Android

2008-12-07 Thread denny

The Android is too interesting, and I like it very much.
But the current situation is not optimistic. The platform currently
supports indeed too few resources.
I suggest:
1, to promote and attract more people to join the development.
2, to enhance the training so that more people have the ability to
develop.
3, a short period of time, as soon as possible as many of the tools
used.

Writer Since: androidwallpaper.net

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



[android-developers] Error generating final archive: null

2008-12-07 Thread Birds

Eclipse Version: 3.4.1.

   Find the Error that generating final archive: null,
   I use Fedora 7 Linux .

   Hi  all.,
 how to solve this issue. ?

Thanks.

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



[android-developers] How to get Programmatically Get Application Name

2008-12-07 Thread wyngnut

Hi,

I am trying to get the Application Name (the one that accompanies the
icon in the launcher) for all packages installed in the device.  I
have the packageName and name from the ActivityInfo retrived view
queryIntentActivities(), but can't seem to locate the Application
Name.  Any pointers would be appreciated.

Thanks

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



[android-developers] Re: Problem debugging the application -MediaPlayer

2008-12-07 Thread sam

I'm on the 1.0 SDK and I'm having the exact same problem... I spent a
few hours on the forums  googling, but the only suggestion I can find
is to make sure you call setContentView(...) before you call
findViewById. I can't seem to get past this -- I can't lookup any of
my views from onCreate. Posting relevant portion of main activity --
am I doing anything stupid/wrong here?

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

Button btn = (Button)this.findViewById(R.id.btn_about);   /*
RuntimeException here */
if(btn != null)
{
return; /* set a breakpoint here*/
}
}

Thanks

Sam

On Nov 19, 11:23 am, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Start by downloading the current SDK 1.0. Then take a look at the
 sample code posted on this forum.

 On Nov 19, 12:29 am, Dagger [EMAIL PROTECTED] wrote:

  Some one help I am using 0.9 SDK

  On Nov 19, 12:58 pm, Dagger [EMAIL PROTECTED] wrote:

   I am having the same problem but I am only implementing the Activity
   Class which is included in the package by default.
   THis is the partial code.

   public class ActiveOctave extends Activity implements OnErrorListener,
           OnBufferingUpdateListener, OnCompletionListener,
           OnPreparedListener, SurfaceHolder.Callback {

           private static final String TAG = VideoPlayer;
       private MediaPlayer mp;
       private SurfaceView mPreview;
       private EditText mPath;
       private SurfaceHolder holder;
       private ImageButton mPlay;
       private ImageButton mPause;
       private ImageButton mReset;
       private ImageButton mStop;
       private String current;
       /**
        * Called when the activity is first created.
        */
       public void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);

           setContentView(R.layout.main);
           // Set up the play/pause/reset/stop buttons
           mPreview = (SurfaceView) findViewById(R.id.surface);
           mPath = (EditText) findViewById(R.id.path);
           mPlay = (ImageButton) findViewById(R.id.play);
           mPause = (ImageButton) findViewById(R.id.pause);
           mReset = (ImageButton) findViewById(R.id.reset);
           mStop = (ImageButton) findViewById(R.id.stop);

   This is my Debug Stack.
   Thread [3 main] (Suspended (exception RuntimeException))
           ActivityThread.performLaunchActivity(ActivityThread
   $ActivityRecord)
   line: 2131
           ActivityThread.handleLaunchActivity(ActivityThread
   $ActivityRecord)
   line: 2147
           ActivityThread.access$1800(ActivityThread, ActivityThread
   $ActivityRecord) line: 112
           ActivityThread$H.handleMessage(Message) line: 1572
           ActivityThread$H(Handler).dispatchMessage(Message) line: 88
           Looper.loop() line: 123
           ActivityThread.main(String[]) line: 3708
           Method.invokeNative(Object, Object[], Class, Class[], Class,
   int,
   boolean) line: not available [native method]
           Method.invoke(Object, Object...) line: 492
           ZygoteInit$MethodAndArgsCaller.run() line: 734
           ZygoteInit.main(String[]) line: 492
           NativeStart.main(String[]) line: not available [native method]

   Please help what to Do.

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



[android-developers] Re: How to create grey menu icons?

2008-12-07 Thread Ian Copp

I think he's more asking if there's any consistent guidelines or
templates to create icons that match the existing ones in visual theme.

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



[android-developers] Resources for Android Wifi Programming

2008-12-07 Thread Doughy

Does anyone know where I can get some tutorials on developing wifi
applications for android?  I have some great ideas, but I am
struggling to find some good introductions to using the wifi
capabilities in Android.  Furthermore, is it possible to debug wifi
applications in the emulator.  My emulator is crashing every time I
try to run something simple.  For example, the application crashes
when I use:

TextView rssLabel = (TextView)findViewById(R.id.rssLabel);
WifiManager wm = (WifiManager)getSystemService(Context.WIFI_SERVICE);
WifiInfo wfinfo = wm.getConnectionInfo();

Thanks for your help.

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



[android-developers] Hidden Contacts

2008-12-07 Thread bklik

Did anyone else find that when you dump all your contacts to a
ListView, you see hidden contacts that don't show up in your regular
contact list under the Dialer?

I found nameless contacts, contacts with names but no numbers.  When I
returned their email address, I found emails to sale-
number@craigslist.org, as well as one for a Dana Thompson and a TJ
Brown.

These are people I don't know, and never new existed.  And oddly
enough, the Dana Thompson individual is some CPA in Maryland (see:
http://danathompsoncpa.com/Contact_Us.htm).

Now, I got my phone new, in a sealed box, from a just opened box
shipped to the T-Mobile store where I picked it up.  I'm wondering if
they are part of the image used to make the phone?  It's very odd.

Here's the code I used to return the contacts:

final Uri data = Uri.parse(content://contacts/people/);
final Cursor c = this.managedQuery(data, null, null, null,
null);
String[] from = new String[] {People.NUMBER, People.NAME};
int[] to = new int[] {R.id.itemNumber, R.id.itemName};

SimpleCursorAdapter adapter = new SimpleCursorAdapter(this,
R.layout.listitemlayout, c, from, to);
ListView lv = (ListView)this.findViewById
(R.id.contactListView);
lv.setAdapter(adapter);

Anyone else getting weird results?

Brenton

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



[android-developers] Android Dev Phone 1 + Shipping to Germany

2008-12-07 Thread Marc Seeger

Hi,
I'm really interested in the possibility of buying a Android Dev
Phone 1  (-- http://code.google.com/android/dev-devices.html), the
only question I have concerns the shipping.
According to the site, it will be (?is?) available for order in
Germany, I can't find any information about the details though.
The price seems fair, but adding VAT + Import Taxes would add a BIG
amount of money to the final number (and a lot of hassle).

Does Google ship all of its devices from the US or are devices for
European Devs shipped from inside the EU?

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



[android-developers] Link to buy unlocked phone does not work

2008-12-07 Thread ARW

On the page http://market.android.com/publish/Home, I see:

  Development phones
  As a registered developer, you can purchase an unlocked phone.
  Buy now »

That is wonderful. Thank you, Google!

But then, when I click on the Buy now link, the browser bounces off
android.brightstarcorp.com back to the same page. Happens on Chrome,
Firefox and IE.

Anyone had better luck with this?

-arw


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



[android-developers] Re: Android Dev Phone 1 + Shipping to Germany

2008-12-07 Thread Justin (Google Employee)

Any appropriate customs duties and taxes will be added on top of the
$399 purchase price. You are correct, that this can add a substantial
the base price. However, it should not add any hassle. Is there some
specific difficulty you're referring to?

Cheers,
Justin
Android Team @ Google

On Dec 6, 2:13 am, Marc Seeger [EMAIL PROTECTED] wrote:
 Hi,
 I'm really interested in the possibility of buying a Android Dev
 Phone 1  (--http://code.google.com/android/dev-devices.html), the
 only question I have concerns the shipping.
 According to the site, it will be (?is?) available for order in
 Germany, I can't find any information about the details though.
 The price seems fair, but adding VAT + Import Taxes would add a BIG
 amount of money to the final number (and a lot of hassle).

 Does Google ship all of its devices from the US or are devices for
 European Devs shipped from inside the EU?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-07 Thread Ralf

The bottom line for all this if that you never really needed to build
the Eclipse plugin or DDMS yourself. You could just have used the one
from the Android 1.0 SDK r1 or r2 (in the tools directory). As it is
right now, the SDK tools work the same as the ones from git.

As Xav stated, the only reason one would want to rebuild the plugin or
the standalone DDMS is to make changes to them.

R/

On Sat, Dec 6, 2008 at 11:48 PM, Xavier Ducrohet [EMAIL PROTECTED] wrote:

 Glad to hear you solved your JDK issue.

 The only reason you would want to add the ddms plugin source code to
 Eclipse is if you want to work on the plugin itself.

 To develop/debug application, using the standalone DDMS or
 _installing_ the plugin inside eclipse is enough.

 Xav

 On Sat, Dec 6, 2008 at 11:08 PM, Anonymous Anonymous
 [EMAIL PROTECTED] wrote:
 Hi Xav, Ralf,

 Now am able to launch DDMS  and debug built in apps, pblm was with my JDK.

 Thanks a lot for your help
 Steve

 On Sun, Dec 7, 2008 at 8:13 AM, Anonymous Anonymous
 [EMAIL PROTECTED] wrote:

 Hi Xav,
 in trouble :(
 *I am trying to debug existing application.

 Am usign the full source code downloaded from source.android.com ...(not
 this one http://code.google.com/android/download_list.html -Linux one).
 I assume ADT plugin is used in such case , where we debug as Android
 Application??
 Here i try to debug the full source tree running DDMS on another
 terminal (standalone!)
 So i assumed adding the com.**.ddms in workspace will solve the
 problem !!

 If you can run Eclipse with the ADT plugin, you don't need to run the
 standalone DDMS. Go to the DDMS perspective in Eclipse, and select
 your running application in the Device view, and then select to port
 8700

 On the other side i have tried this as well, but it needs to set SDKtools
 location and all 

 So am kinda lost now - (debugging IM application)..

 My workspace looks like this now FYR (http://i35.tinypic.com/5d1ehi.png)

 or me again wrong?

 Thanks and sorry for the trouble
 Steve

 On Sat, Dec 6, 2008 at 11:01 PM, Xavier Ducrohet [EMAIL PROTECTED] wrote:

  I want to debug an android application built with the SDK say (IM)..
  I think my understanding also wrong (sorry for being noobish),let me
  summarize the steps needed for debugging...
 
  1.Latest source code compiled succesfully with a working emulator.
  2.ddms plugin added in eclipse.
  3.lauch DDMS and emulator in separate terminals !! ?
  4.connect using 8700 port
  (*considering my break point is in ImApp.java !!!)

 There is a big confusion on what step 2 is.
 From the beginning we helped you open and compile the _source_code_
 for the adt/ddms plug-ins.
 What you needed was to _install_ the plugin (which is called ADT but
 includes DDMS as well). See instruction here:
 http://code.google.com/android/intro/installing.html#installingplugin

 If you can run Eclipse with the ADT plugin, you don't need to run the
 standalone DDMS. Go to the DDMS perspective in Eclipse, and select
 your running application in the Device view, and then select to port
 8700.

 Now, I do not know why you can't seem to run the standalone DDMS. It
 looks like your linux installation is weird.

 Xav





 


 


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



[android-developers] Re: Dynamic class loading

2008-12-07 Thread Mark Murphy

Chris Davies wrote:
 However, it really needs to
 implement dynamically loaded modules to be of any use.

Could you give us more information about what you are trying to achieve 
via these dynamically loaded modules? There may be other technologies 
in Android you can leverage, but it is difficult to recommend any 
without more details of the problem you are trying to solve.

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

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



[android-developers] Re: Resources for Android Wifi Programming

2008-12-07 Thread Jean-Baptiste Queru

-The emulator doesn't emulator wifi, you'll have to use a real device for that.

-In the current version of Android, you'll find that the wifi support
is mostly suitable for infrastructure-based connections (i.e.
communicating through an access point), not for ad-hoc connections.
You can just blindly establish network connections, and they'll be
routed over wifi if that's available, or you can use the
ConnectivityManager
http://code.google.com/android/reference/android/net/ConnectivityManager.html
if you want some finer-grained controls over when wifi is available.

JBQ

On Sat, Dec 6, 2008 at 4:15 PM, Doughy [EMAIL PROTECTED] wrote:

 Does anyone know where I can get some tutorials on developing wifi
 applications for android?  I have some great ideas, but I am
 struggling to find some good introductions to using the wifi
 capabilities in Android.  Furthermore, is it possible to debug wifi
 applications in the emulator.  My emulator is crashing every time I
 try to run something simple.  For example, the application crashes
 when I use:

 TextView rssLabel = (TextView)findViewById(R.id.rssLabel);
 WifiManager wm = (WifiManager)getSystemService(Context.WIFI_SERVICE);
 WifiInfo wfinfo = wm.getConnectionInfo();

 Thanks for your help.

 


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



[android-developers] Re: How to get Programmatically Get Application Name

2008-12-07 Thread Mark Murphy

wyngnut wrote:
 I am trying to get the Application Name (the one that accompanies the
 icon in the launcher) for all packages installed in the device.  I
 have the packageName and name from the ActivityInfo retrived view
 queryIntentActivities(), but can't seem to locate the Application
 Name.  Any pointers would be appreciated.

Can you use PackageManager#getApplicationInfo()?

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

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



[android-developers] Re: Play Video Files in Android

2008-12-07 Thread AndroidGeek

public void onCreate(Bundle icicle) {
super.onCreate(icicle);
getWindow().setFormat(PixelFormat.TRANSLUCENT);

videoHolder = new VideoView(this);
videoHolder.setMediaController(new MediaController(this));
setContentView(videoHolder);

// i tested and found that it works fine for .wmv, .3gp and .mp4
//  videoHolder.setVideoURI(Uri.parse(file:///sdcard/video.3gp));
videoHolder.setVideoURI(Uri.parse(file:///sdcard/video.mp4));
videoHolder.requestFocus();
videoHolder.start();
}

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



[android-developers] Re: Play Video Files in Android

2008-12-07 Thread AndroidGeek

Forgot to mention that I tried it on emulator but it didn't helped but
on device it works fine.
I had to push my video file to sdcard.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: JavaFX on Android

2008-12-07 Thread Jean-Baptiste Queru

It probably goes along the following lines:

-Step 1: ask Sun to port JavaFX to Android.
-Step 2: wait until they're done.
-Step 3: tada, it works.

Jokes aside, that's really a question for Sun.

JBQ

On Sat, Dec 6, 2008 at 9:14 PM, Edmon [EMAIL PROTECTED] wrote:

 What are the steps to (if even possible yet) to enable JavaFX
 applications on Android?

 Thank you,
 Edmon

 


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



[android-developers] Rotate MapView

2008-12-07 Thread David C

A few threads have discussed using canvas.rotate() as a means to
rotate a MapView. However, onDraw() is declared final for MapView
and so can't be over-ridden. Is there an alternative way to manipulate
the MapView canvas than from onDraw()?

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



[android-developers] Re: Alternative to category LAUNCHER for plugins?

2008-12-07 Thread Peli

Hm, my colleague just checked, but the way outlined above did not
work.

Which IntentFilter do I have to specify so that the Market app can
launch my plugin (to show a custom warning message), but it is still
not included in the list of all LAUNCHER applications?

If it is not possible currently, that is also ok. I would just like to
know whether I should invest more time in investigating this or not...

Peli


On 7 Dez., 17:48, Peli [EMAIL PROTECTED] wrote:
 Our users complain about the following:
 You're getting hammered by negative comments on oi voice notes
 because after install it gives launch error. I suggest creating an
 idiot window on launch that says this app is an addon, and to use
 within other oi products.

 We provide a plug-in (addon, extension,..) for our shopping list
 application that is called voice notes, which should only appear in
 the menu of shopping list. We do not want that plugin to be listed in
 the list of all applications (as we plan to have more add-ons in the
 future), so we did not specify the android.intent.category.LAUNCHER,
 just the android.intent.category.ALTERNATIVE.

 How can we provide an activity that is launched by the Android
 installer after installation (to display a warning that this has to be
 used from within shopping list), but still does not show up in the
 list of all applications?

 Hm, thinking about it, is it as simple as providing an intent
 android.intent.action.MAIN without the category LAUNCHER? Is this what
 the installer would call? (I have not downloaded the latest SDK yet,
 otherwise I could probably answer this question myself by trying it
 out...)

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



[android-developers] Re: Alternative to category LAUNCHER for plugins?

2008-12-07 Thread Dianne Hackborn
Market unfortunately doesn't support this right now.

On Sun, Dec 7, 2008 at 11:46 AM, Peli [EMAIL PROTECTED] wrote:


 Hm, my colleague just checked, but the way outlined above did not
 work.

 Which IntentFilter do I have to specify so that the Market app can
 launch my plugin (to show a custom warning message), but it is still
 not included in the list of all LAUNCHER applications?

 If it is not possible currently, that is also ok. I would just like to
 know whether I should invest more time in investigating this or not...

 Peli


 On 7 Dez., 17:48, Peli [EMAIL PROTECTED] wrote:
  Our users complain about the following:
  You're getting hammered by negative comments on oi voice notes
  because after install it gives launch error. I suggest creating an
  idiot window on launch that says this app is an addon, and to use
  within other oi products.
 
  We provide a plug-in (addon, extension,..) for our shopping list
  application that is called voice notes, which should only appear in
  the menu of shopping list. We do not want that plugin to be listed in
  the list of all applications (as we plan to have more add-ons in the
  future), so we did not specify the android.intent.category.LAUNCHER,
  just the android.intent.category.ALTERNATIVE.
 
  How can we provide an activity that is launched by the Android
  installer after installation (to display a warning that this has to be
  used from within shopping list), but still does not show up in the
  list of all applications?
 
  Hm, thinking about it, is it as simple as providing an intent
  android.intent.action.MAIN without the category LAUNCHER? Is this what
  the installer would call? (I have not downloaded the latest SDK yet,
  otherwise I could probably answer this question myself by trying it
  out...)
 
  Peliwww.openintents.org
 



-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Re: How to make my activity on top of system message.

2008-12-07 Thread Dianne Hackborn
Sorry, there isn't really a way to do this.

On Sun, Dec 7, 2008 at 9:35 AM, AndroidGeek [EMAIL PROTECTED] wrote:


 Hi,

 I am trying to start my application when a call is received and show
 it on top of system message (showing phone number on the screen).

 How can I suppress system screen and bring my activity on top of it?

 Is there any way to do this

 Regards,
 Tabrej
 



-- 
Dianne Hackborn
Android framework engineer
[EMAIL PROTECTED]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

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



[android-developers] Dialog Restore

2008-12-07 Thread cyntacks

Hi all,

My custom dialogs won't restore upon orientation|keyboard change,
for example, if my dialog is visible and the device is changed from
Portrait to Landscape when the activity is restarted the dialog is not
shown. This ONLY happens with my custom dialogs, all the Android API
dialogs perform as expected (DatePicker, TimePicker, etc.).

Now, I am pretty sure I need to manage the dialog state, but I just
can't figure out how.

I have override onCreateDialog like below, and display each dialog
with a call to showDialog(int)

protected Dialog onCreateDialog(int id) {
switch (id) {
   case TEST:
return new TestDialog(my params);
break;
}
return null;
}

As always, any help is always appreciated.

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



[android-developers] Anybody know the status about running Jxta ME/SE on Android

2008-12-07 Thread windstorm

Hi all

We are using JXTA to develop a P2P application on HTC Diamond based on
WM6.0, and we want to try it on Andorid, but seems like there is no
successful record of running JXTA on Android. I think it's doable, and
every single post on the internet before said that it should be
doable, however, no clear answer by now and no basic instruction about
it.

Would anyone mind to tell me if it has been proved to be doable in
practice, or it's still just applicable theoretically? Plus, is there
any article or post talking about this online?

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



[android-developers] Webkit WEbView Error?

2008-12-07 Thread Fred Grott(shareme)

I started exploring doing a full app using Webview embedded following
the demo that Google was nice enough to provide.

I have CNET's CiUI working but I am getting a hard wait or force erorr
at the begining in the emulator.

On the CiUI library I only put myui: before the first anonymous
function ad do not think its that..

I probably have to provide a log of some sort as it seems to be
emulator based...

Any special format and submission guidelines I need to follow?

Thanks


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



[android-developers] Re: Webkit WEbView Error?

2008-12-07 Thread Fred Grott(shareme)

I think I found the error..one of my asset files was not properly
referenced in one of my urls..



On Dec 7, 3:18 pm, Fred Grott(shareme) [EMAIL PROTECTED] wrote:
 I started exploring doing a full app using Webview embedded following
 the demo that Google was nice enough to provide.

 I have CNET's CiUI working but I am getting a hard wait or force erorr
 at the begining in the emulator.

 On the CiUI library I only put myui: before the first anonymous
 function ad do not think its that..

 I probably have to provide a log of some sort as it seems to be
 emulator based...

 Any special format and submission guidelines I need to follow?

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



[android-developers] Kalman Filters for the GPS data

2008-12-07 Thread enervatron

hi all,

so i understand that there are lots of smart people at google, so
maybe maybe this is
already in shipping libraries :)

My guess is that the GPS data coming back from the my android is just
raw, unmassaged
data as it gets it from whatever chipset the T1 is using (just like
what happens in the
emulator :). As people I'm sure realize, GPS data is really really
noisy, especially when
the signal is weak, etc.

I've been googling around and it seems like Kalman filters for GPS
would be a good
way of doing curve fitting so that outliers and other nasties would
get smoothed out.
Does anybody know of either this filter, or some other GPS filtering
mechanism that
are either available through the API's, or elsewhere?

TIA, Mike

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



[android-developers] Re: New SDK Available

2008-12-07 Thread don rhummy

So there's no Sprint options?


--- On Sun, 12/7/08, Jean-Baptiste Queru [EMAIL PROTECTED] wrote:

 From: Jean-Baptiste Queru [EMAIL PROTECTED]
 Subject: [android-developers] Re: New SDK Available
 To: android-developers@googlegroups.com
 Date: Sunday, December 7, 2008, 9:14 AM
 Sprint moved away from GSM a very long time ago, and this
 phone is
 GSM-only and therefore doesn't work on Sprint's
 network. If you're in
 the US, T-Mobile is the best operator to use the Android
 Dev Phone 1
 on (and if you already have a G1 you can swap the SIM
 between the
 phones). It'll work on ATT's network but you
 won't have any 3G data.
 
 JBQ
 
 On Sat, Dec 6, 2008 at 10:31 PM, don rhummy
 [EMAIL PROTECTED] wrote:
 
  Will this unlocked phone work with a Sprint/Nextel SIM
 card? I've heard they're not compatible with most
 SIM-capable phones.
 
 
  --- On Sat, 12/6/08, gjs
 [EMAIL PROTECTED] wrote:
 
  From: gjs [EMAIL PROTECTED]
  Subject: [android-developers] Re: New SDK
 Available
  To: Android Developers
 android-developers@googlegroups.com
  Date: Saturday, December 6, 2008, 5:55 PM
  Hi,
 
  Many many thanks for finally making an unlocked
 DEV phone
  available
  (largely) worldwide.
 
  This is great news for us folks in the non
 T-Mobile regions
  and will
  help provide a level playing field for ADC II
 participants.
 
  ( In my own case I decided not to wait as no news
 of DEV
  phones was
  forthcoming before now, so I took the *big* gamble
 of
  procuring a US
  G1 privately through ebay - for a premium. I
 managed to get
  it working
  after purchasing an unlock code and configuring
 the GPRS
  setting to
  work with Optus 3G in Australia. )
 
  If the DEV phone is to automatically receive
 'OTA'
  updates - without
  warning like the G1 - I would suggest that people
 double
  check their
  local mobile data plans to ensure they don't
 get
  slugged for excessive
  download charges.
 
  Once again thanks, this is a great (xmas/holiday)
 present
  for many
  Android devs :-)
 
  Regards
 
  On Dec 7, 4:31 am, Romain Guy
 [EMAIL PROTECTED]
  wrote:
   The Android Dev Phone 1 supports 3G in
 Europe. It
  depends on the
   carrier, the country, etc. though. But it
 should work
  in most cases.
  
  
  
   On Sat, Dec 6, 2008 at 3:21 AM, Paulo Sergio
  [EMAIL PROTECTED] wrote:
Hi
very nice news!!!
  
2 questions:
whats the band frenquency of the phone?
 will it
  have 3g in europe?
from where is it shipped? if outside
 europe will
  be expensive to who live
here
  
ordering online is a huge help, but
 i'm just
  sad that a lot of country where
left out! it's online, why do this??
  
thanks,
paulo
  
On Sat, Dec 6, 2008 at 9:52 AM, Al
 Sutton
  [EMAIL PROTECTED] wrote:
  
The development phones are an
 excellent and
  much needed help (especially
since they are available in markets
 where the
  G1 currently isn't).
  
And I'd personally like to give
 a BIG hug
  to whoever fixed installing
apps via the browser from places
 such as
  AndAppStore in the new SDK
release :) :) :).
  
Nice work and well done all at
 Google.
  
Al.
   http://andappstore.com/
  
Dan Morrill wrote:
 Hello, developers!  I wanted to
 call
  your attention to the new Android
 1.0 SDK, release 2 that we just
 made
  available.
  
 For full details, please see
 our blog
  post:
  
   
 
 http://android-developers.blogspot.com/2008/12/new-resources-for-deve...
  
 - Dan
  
   --
   Romain Guywww.curious-creature.org
 
 
 
 
  
 
 
 

  

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



[android-developers] Re: Epilog: Largish HTTP Post vs. ANR

2008-12-07 Thread enervatron

Dumb question... where's the appropriate place to send the bug reports?

Mike

On Fri, Dec 5, 2008 at 5:27 PM, Andrew Stadler [EMAIL PROTECTED] wrote:

 On Fri, Dec 5, 2008 at 8:40 AM,  [EMAIL PROTECTED] wrote:

 So I finally figured out what was going on. It had nothing to do with
 HTTP posts,
 thankfully. What it did have to do with was Formatter (or String.format). An
 innocuous foreground loop using Formatter was taking 10 seconds for about
 10kb worth of data. The same loop using string concats (ie, this++that) 
 takes
 100ms. What on earth is Formatter doing that takes 2 orders of magnitude
 more time? Something's really out of whack.

 Interesting tidbit2: per Mark's suggestion, I implemented the HTTP post using
 both HttpURLConnection and DefaultHttpClient mechanisms. The 
 DefaultHttpClient
 method was about 5-10x *slower* than HttpURLConnection for identical data. 
 Not
 sure why that is... maybe using stringsBuffers to collect the post
 data instead of file io is a lose.



 For both of these, it would be *fantastic* if you could create a small
 but working test code snippet, and collect timing, and file the whole
 thing in bug reports.

 


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



[android-developers] Re: Weird Map Problem (Controlling same map)

2008-12-07 Thread mscwd01

Anyone? I cant work out what is causing this...

On Dec 7, 5:16 pm, mscwd01 [EMAIL PROTECTED] wrote:
 I have a weird issue, which is probably easily solvable - but the
 cause is alluding me.

 I have two activities, one is created as an intent from the first
 activity. Each activity features a MapView.

 My problem is that if I move the first map (i.e. navigate to a
 paricular city) the second map, when viewed, has also moved to display
 the same place I navigated to in the first map. Reversly, if I move
 the second map to another place when I go back to the first map, this
 too, has changed to display the same location I navigated to on the
 second map... confused? ;)

 Basically I have two MapViews with different id values but they act as
 if they are the same map. I need two distinct, individual maps that do
 not control one another. Am I missing something obvious or do I have
 to add something to stop them doing 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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: New SDK Available

2008-12-07 Thread Pierre Bonnefoy
A SIM is necessary if you want to make phone calls on a standard cellular
networks (I mean, you can still make phone calls on WiFi without a SIM).
2008/12/7 Xavier Mathews [EMAIL PROTECTED]


 I thought that iphone was also an ipod and has over 10,000 apps what
 is the point of a sim?



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



[android-developers] Re: Epilog: Largish HTTP Post vs. ANR

2008-12-07 Thread Mark Murphy

[EMAIL PROTECTED] wrote:
 Dumb question... where's the appropriate place to send the bug reports?

http://code.google.com/p/android/issues/list

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

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



[android-developers] Re: Weird Map Problem (Controlling same map)

2008-12-07 Thread David C

Sounds like your maps share some common underlying resource. Not sure
if that would be a defect or by design. Perhaps you can manually call
onSaveInstanceState() and onRestoreInstanceState() to save / restore
the respective maps state as needed?

http://code.google.com/android/reference/com/google/android/maps/MapView.html#onRestoreInstanceState(android.os.Bundle)

On Dec 7, 2:41 pm, mscwd01 [EMAIL PROTECTED] wrote:
 Anyone? I cant work out what is causing this...

 On Dec 7, 5:16 pm, mscwd01 [EMAIL PROTECTED] wrote:

  I have a weird issue, which is probably easily solvable - but the
  cause is alluding me.

  I have two activities, one is created as an intent from the first
  activity. Each activity features a MapView.

  My problem is that if I move the first map (i.e. navigate to a
  paricular city) the second map, when viewed, has also moved to display
  the same place I navigated to in the first map. Reversly, if I move
  the second map to another place when I go back to the first map, this
  too, has changed to display the same location I navigated to on the
  second map... confused? ;)

  Basically I have two MapViews with different id values but they act as
  if they are the same map. I need two distinct, individual maps that do
  not control one another. Am I missing something obvious or do I have
  to add something to stop them doing 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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: New SDK Available

2008-12-07 Thread Christine

But we don't know which phone Google will be shipping. Is it similar
to a US G1 or to a UK G1 which seems to work on a different 3G
frequency? I guess we'll all know by the end of the week.

On Dec 7, 11:57 pm, Pierre Bonnefoy [EMAIL PROTECTED]
wrote:
 A SIM is necessary if you want to make phone calls on a standard cellular
 networks (I mean, you can still make phone calls on WiFi without a SIM).
 2008/12/7 Xavier Mathews [EMAIL PROTECTED]



  I thought that iphone was also an ipod and has over 10,000 apps what
  is the point of a sim?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Weird Map Problem (Controlling same map)

2008-12-07 Thread mscwd01

I have two xml layout files, one for each activity, I create the maps
like:

MapView myMap = (MapView) findViewById(R.id.map);
and...
MapView myMap = (MapView) findViewById(R.id.mapTwo);

Yet, even though they have different id's they control each other...

I shouldnt need to save the state of each map should I?

On Dec 7, 11:32 pm, David C [EMAIL PROTECTED] wrote:
 Sounds like your maps share some common underlying resource. Not sure
 if that would be a defect or by design. Perhaps you can manually call
 onSaveInstanceState() and onRestoreInstanceState() to save / restore
 the respective maps state as needed?

 http://code.google.com/android/reference/com/google/android/maps/MapV...)

 On Dec 7, 2:41 pm, mscwd01 [EMAIL PROTECTED] wrote:

  Anyone? I cant work out what is causing this...

  On Dec 7, 5:16 pm, mscwd01 [EMAIL PROTECTED] wrote:

   I have a weird issue, which is probably easily solvable - but the
   cause is alluding me.

   I have two activities, one is created as an intent from the first
   activity. Each activity features a MapView.

   My problem is that if I move the first map (i.e. navigate to a
   paricular city) the second map, when viewed, has also moved to display
   the same place I navigated to in the first map. Reversly, if I move
   the second map to another place when I go back to the first map, this
   too, has changed to display the same location I navigated to on the
   second map... confused? ;)

   Basically I have two MapViews with different id values but they act as
   if they are the same map. I need two distinct, individual maps that do
   not control one another. Am I missing something obvious or do I have
   to add something to stop them doing 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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Weird Map Problem (Controlling same map)

2008-12-07 Thread Tom Gibara


 I have a weird issue, which is probably easily solvable - but the
 cause is alluding me.

 I have two activities, one is created as an intent from the first
 activity. Each activity features a MapView.



Only one MapActivity is supported per process. Multiple MapActivities
running simultaneously are likely to interfere in unexpected and undesired
ways.

http://code.google.com/android/reference/com/google/android/maps/MapActivity.html

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



[android-developers] Re: Weird Map Problem (Controlling same map)

2008-12-07 Thread Xavier Mathews

This Has Already Been Posted.

On 12/07/2008, Tom Gibara [EMAIL PROTECTED] wrote:


 I have a weird issue, which is probably easily solvable - but the
 cause is alluding me.

 I have two activities, one is created as an intent from the first
 activity. Each activity features a MapView.



 Only one MapActivity is supported per process. Multiple MapActivities
 running simultaneously are likely to interfere in unexpected and undesired
 ways.

 http://code.google.com/android/reference/com/google/android/maps/MapActivity.html

 



-- 
Xavier A. Mathews
Student/Browser Specialist/Developer/Web-Master
Google Group Client Based Tech Support Specialist
Hazel Crest Illinois
[EMAIL PROTECTED]@[EMAIL PROTECTED]
Fear of a name, only increases fear of the thing itself.

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



[android-developers] Re: Android Dev Phone 1 + Shipping to Germany

2008-12-07 Thread walterc

i placed an order for the phone and all i got in return is an email
telling me my order has been placed.  there is no ups tracking number,
no estimate time of arrival, no nothing.  is there a email i can write
to to check the status of my order?  i tried to click on the tracking
order link in android market but it tells me i dont have any pending
order.  i live in taiwan, btw, and the total amount with shipping is us
$555 and that's probably without import tax.  you who live in the us
should consider urselves lucky.

regards,

walter chang

On Dec 8, 1:53 am, Justin (Google Employee) [EMAIL PROTECTED] wrote:
 Any appropriate customs duties and taxes will be added on top of the
 $399 purchase price. You are correct, that this can add a substantial
 the base price. However, it should not add any hassle. Is there some
 specific difficulty you're referring to?

 Cheers,
 Justin
 Android Team @ Google

 On Dec 6, 2:13 am, Marc Seeger [EMAIL PROTECTED] wrote:

  Hi,
  I'm really interested in the possibility of buying a Android Dev
  Phone 1  (--http://code.google.com/android/dev-devices.html), the
  only question I have concerns the shipping.
  According to the site, it will be (?is?) available for order in
  Germany, I can't find any information about the details though.
  The price seems fair, but adding VAT + Import Taxes would add a BIG
  amount of money to the final number (and a lot of hassle).

  Does Google ship all of its devices from the US or are devices for
  European Devs shipped from inside the EU?


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



[android-developers] Re: Listening for dynamic buttons created by an adapter

2008-12-07 Thread alexdonnini

Hello,

Without source code to take a look at, it's difficult to guess what's
causing the problem.

Sorry.

Alex Donnini

On Nov 29, 6:45 am, for android [EMAIL PROTECTED] wrote:
 I have a strange problem.

 I am using an efficient list adapter with a list which has row with a
 text view and a button.Now on click of the button,I collapse that row
 and download a file,with a progress bar.(this has been done along the
 lines of the list collapsible adapter example of the api demos).

 On click of the button,if any of the other rows have their progress
 bar running(i interupt the download).I set the progress bar to 0 and
 start of the download of the click of the row which has been clicked
 latest,.

 The code works perfectly ok when I have the list size to be 5.

 When the list size is two, say i click row 1 and the progress bar is
 25% complete.And then I click row 2.then still the progress bar shows
 to be 25%,though I set the progress bar to 0.

 Remember the same peice of code works for when the size of the list is 5.

 The work around which I got was not to use the efficient list adapter
 when the list size is 2.Immediately after that I fond that the code
 starts to work like magic.

 Is there anything that I am doing wrong? Or is there a lower limit in
 the size as to when to use the efficient list adapter.And whats the
 reason for such a behaviour.

 Thanks.Let me know if I am not clear.

 On 11/20/08, Mark Murphy [EMAIL PROTECTED] wrote:



 alexdonniniwrote:
  Hello,

  I think I may have solved the problem. As I suspected (if I am right),
  the solution was pretty simple. All I had to do is change:

  kill2 =  (Button) findViewById(R.id.kill2);
  to
  kill2 =  (Button) convertView.findViewById(R.id.kill2);

  Ah, yes.

  findViewById(R.id.kill2) searches the root view of your Activity for the
  item identified as kill2. convertView.findViewById(R.id.kill2) searches
  your list row for the item identified as kill2.

  The latter is definitely what you want.

  --
  Mark Murphy (a Commons Guy)
 http://commonsware.com
  _The Busy Coder's Guide to Android Development_ Version 1.4 Published!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Hidden Contacts

2008-12-07 Thread Paul

Did you check your gmail account under Contacts -- suggested contacts
to see if the people you're seeing appear there as well?  GMail
creates a hidden contact for everyone you've traded emails with and
perhaps the hidden people are coming from here?

On Dec 6, 4:07 pm, bklik [EMAIL PROTECTED] wrote:
 Did anyone else find that when you dump all your contacts to a
 ListView, you see hidden contacts that don't show up in your regular
 contact list under the Dialer?

 I found nameless contacts, contacts with names but no numbers.  When I
 returned their email address, I found emails to sale-
 number@craigslist.org, as well as one for a Dana Thompson and a TJ
 Brown.

 These are people I don't know, and never new existed.  And oddly
 enough, the Dana Thompson individual is some CPA in Maryland 
 (see:http://danathompsoncpa.com/Contact_Us.htm).

 Now, I got my phone new, in a sealed box, from a just opened box
 shipped to the T-Mobile store where I picked it up.  I'm wondering if
 they are part of the image used to make the phone?  It's very odd.

 Here's the code I used to return the contacts:

         final Uri data = Uri.parse(content://contacts/people/);
         final Cursor c = this.managedQuery(data, null, null, null,
 null);
         String[] from = new String[] {People.NUMBER, People.NAME};
         int[] to = new int[] {R.id.itemNumber, R.id.itemName};

         SimpleCursorAdapter adapter = new SimpleCursorAdapter(this,
 R.layout.listitemlayout, c, from, to);
         ListView lv = (ListView)this.findViewById
 (R.id.contactListView);
         lv.setAdapter(adapter);

 Anyone else getting weird results?

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



[android-developers] A Non-Google 64 Bit G1 ADB Driver is available

2008-12-07 Thread Robert Green

Just came across this - http://forum.xda-developers.com/showthread.php?p=2918876

I haven't tested it yet but several others have.  Unfortunately it's
not signed and so to use it we must switch vista into Test mode
which requires a reboot but for those of you who only have Vista 64
like me, this is a lifesaver to be able to debug on the device at all.

Being that this is an open, derivative work, I believe google could
take this port in as their own and release a signed version (hint
hint).
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Eclipse Error while adding ddms

2008-12-07 Thread Anonymous Anonymous
Yes,Ralf, actually i got confused with documentation at 2 different places.

Thanks
Steve

On Sun, Dec 7, 2008 at 11:39 PM, Ralf [EMAIL PROTECTED] wrote:


 The bottom line for all this if that you never really needed to build
 the Eclipse plugin or DDMS yourself. You could just have used the one
 from the Android 1.0 SDK r1 or r2 (in the tools directory). As it is
 right now, the SDK tools work the same as the ones from git.

 As Xav stated, the only reason one would want to rebuild the plugin or
 the standalone DDMS is to make changes to them.

 R/

 On Sat, Dec 6, 2008 at 11:48 PM, Xavier Ducrohet [EMAIL PROTECTED] wrote:
 
  Glad to hear you solved your JDK issue.
 
  The only reason you would want to add the ddms plugin source code to
  Eclipse is if you want to work on the plugin itself.
 
  To develop/debug application, using the standalone DDMS or
  _installing_ the plugin inside eclipse is enough.
 
  Xav
 
  On Sat, Dec 6, 2008 at 11:08 PM, Anonymous Anonymous
  [EMAIL PROTECTED] wrote:
  Hi Xav, Ralf,
 
  Now am able to launch DDMS  and debug built in apps, pblm was with my
 JDK.
 
  Thanks a lot for your help
  Steve
 
  On Sun, Dec 7, 2008 at 8:13 AM, Anonymous Anonymous
  [EMAIL PROTECTED] wrote:
 
  Hi Xav,
  in trouble :(
  *I am trying to debug existing application.
 
  Am usign the full source code downloaded from source.android.com...(not
  this one http://code.google.com/android/download_list.html -Linux
 one).
  I assume ADT plugin is used in such case , where we debug as Android
  Application??
  Here i try to debug the full source tree running DDMS on another
  terminal (standalone!)
  So i assumed adding the com.**.ddms in workspace will solve the
  problem !!
 
  If you can run Eclipse with the ADT plugin, you don't need to run the
  standalone DDMS. Go to the DDMS perspective in Eclipse, and select
  your running application in the Device view, and then select to port
  8700
 
  On the other side i have tried this as well, but it needs to set
 SDKtools
  location and all 
 
  So am kinda lost now - (debugging IM application)..
 
  My workspace looks like this now FYR (
 http://i35.tinypic.com/5d1ehi.png)
 
  or me again wrong?
 
  Thanks and sorry for the trouble
  Steve
 
  On Sat, Dec 6, 2008 at 11:01 PM, Xavier Ducrohet [EMAIL PROTECTED]
 wrote:
 
   I want to debug an android application built with the SDK say (IM)..
   I think my understanding also wrong (sorry for being noobish),let me
   summarize the steps needed for debugging...
  
   1.Latest source code compiled succesfully with a working emulator.
   2.ddms plugin added in eclipse.
   3.lauch DDMS and emulator in separate terminals !! ?
   4.connect using 8700 port
   (*considering my break point is in ImApp.java !!!)
 
  There is a big confusion on what step 2 is.
  From the beginning we helped you open and compile the _source_code_
  for the adt/ddms plug-ins.
  What you needed was to _install_ the plugin (which is called ADT but
  includes DDMS as well). See instruction here:
  http://code.google.com/android/intro/installing.html#installingplugin
 
  If you can run Eclipse with the ADT plugin, you don't need to run the
  standalone DDMS. Go to the DDMS perspective in Eclipse, and select
  your running application in the Device view, and then select to port
  8700.
 
  Now, I do not know why you can't seem to run the standalone DDMS. It
  looks like your linux installation is weird.
 
  Xav
 
 
 
 
 
  
 
 
  
 

 


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



[android-developers] Application crashing

2008-12-07 Thread Prashant

Hi ,

I have created an application in which i m using gradients as
backgrounds for layouts and buttons and images(13 kb each ) on each
screen ,

On repetitive rendering from one screen to another , my application
gives an exception causing Force Clase Dailog to appear , in log cat
it shows something like this:

12-08 10:10:51.688: ERROR/SurfaceFlinger(53): not enough memory for
layer bitmap size=307200
12-08 10:10:51.727: ERROR/SurfaceFlinger(53): createNormalSurfaceLocked
() failed (Out of memory)
12-08 10:10:51.738: WARN/WindowManager(53): OutOfResourcesException
creating surface
12-08 10:10:51.748: WARN/WindowManager(53): No leaked surfaces;
killing applicatons!
12-08 10:10:51.767: WARN/ActivityManager(53): Killing processes for
memory at adjustment 0
12-08 10:10:51.767: WARN/ActivityManager(53): Killing for memory:
ProcessRecord{434bd5b8 198:com.persistent.linkbuddy.ui/10030} (adj 0)
12-08 10:10:51.779: WARN/WindowManager(53): Looks like we have
reclaimed some memory, clearing surface for retry.
12-08 10:10:51.779: WARN/WindowManager(53): Due to memory failure,
waiting a bit for next layout

what is the problem?

Thanks in advance
Prashant

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



[android-developers] Re: Application crashing

2008-12-07 Thread Jean-Baptiste Queru

You application is using too much memory. For bitmaps, it doesn't
really matter how big they are when compressed, it's really the
decompressed size that matters. 300kB each is a lot.

JBQ

On Sun, Dec 7, 2008 at 9:01 PM, Prashant [EMAIL PROTECTED] wrote:

 Hi ,

 I have created an application in which i m using gradients as
 backgrounds for layouts and buttons and images(13 kb each ) on each
 screen ,

 On repetitive rendering from one screen to another , my application
 gives an exception causing Force Clase Dailog to appear , in log cat
 it shows something like this:

 12-08 10:10:51.688: ERROR/SurfaceFlinger(53): not enough memory for
 layer bitmap size=307200
 12-08 10:10:51.727: ERROR/SurfaceFlinger(53): createNormalSurfaceLocked
 () failed (Out of memory)
 12-08 10:10:51.738: WARN/WindowManager(53): OutOfResourcesException
 creating surface
 12-08 10:10:51.748: WARN/WindowManager(53): No leaked surfaces;
 killing applicatons!
 12-08 10:10:51.767: WARN/ActivityManager(53): Killing processes for
 memory at adjustment 0
 12-08 10:10:51.767: WARN/ActivityManager(53): Killing for memory:
 ProcessRecord{434bd5b8 198:com.persistent.linkbuddy.ui/10030} (adj 0)
 12-08 10:10:51.779: WARN/WindowManager(53): Looks like we have
 reclaimed some memory, clearing surface for retry.
 12-08 10:10:51.779: WARN/WindowManager(53): Due to memory failure,
 waiting a bit for next layout

 what is the problem?

 Thanks in advance
 Prashant

 


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



[android-developers] Android Market HTTP Links?

2008-12-07 Thread cyntacks

Hi,

Is it possible to link from a webpage to the Android Market? That
is, can I place a link on our company website which if clicked from an
Android mobile device it would automagically open the Android
Market, bringing the user to that particular app?

Thanks for the help,

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



[android-developers] Re: Epilog: Largish HTTP Post vs. ANR

2008-12-07 Thread David Turner
but these days, we recommend the much shorter alias:  http://b.android.com
:-)

On Sun, Dec 7, 2008 at 3:00 PM, Mark Murphy [EMAIL PROTECTED] wrote:


 [EMAIL PROTECTED] wrote:
  Dumb question... where's the appropriate place to send the bug reports?

 http://code.google.com/p/android/issues/list

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

 


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



[android-developers] Re: Android Market HTTP Links?

2008-12-07 Thread Al Sutton

I don't think there is a way of doing it which will work well with 
people visiting your site from non-Android devices (e.g. browsing from a 
desktop OS).

You could always list at one of the other app markets (such as 
AndAppStore) which provide http URLs which work on all browsers.

Al.
http://andappstore.com/

cyntacks wrote:
 Hi,

 Is it possible to link from a webpage to the Android Market? That
 is, can I place a link on our company website which if clicked from an
 Android mobile device it would automagically open the Android
 Market, bringing the user to that particular app?

 Thanks for the help,

 Kevin
 
   


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