[android-developers] Re: overlapped nodes in graph

2011-10-06 Thread bhumi kania
yes I found some algorithm for removing the overlapped node.
But its lill bit hard to implement on canvas.

Do you have any sample code for that which had implemented the
algorithm.

Thanks.

On Oct 5, 9:39 pm, TreKing treking...@gmail.com wrote:
 On Wed, Oct 5, 2011 at 12:55 AM, bhumi kania bska...@gmail.com wrote:
  I had made one graph of connected nodes but at some portion the nodes are
  overlapped on each other.

  Any one can help me in that. I know I have to implement any algorithm that
  will remove the overlapping.

 but is there any in-built library that had implemented such a thing

  or suggest me the best algorithm and some examples which had implemented the
  algorithm to display the graph.

 This has pretty much nothing to do with Android Development. Did you try
 googling graph algorithms ?

 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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


[android-developers] ExpandableListView and ListView click child event not working..

2011-10-06 Thread Naveen
Hello Developers,

I am facing a different type of issue, i have a layout which
contains   One expandableListview and another Listview , i have
designed this layout using framelayout now all click events works for
expandable and listview but expandablechild and list child click
events not working trying to find the issue but here each entry is
fine on layout only click event on listchild and expandable child is
not working...

Please check what i am missing



expList.setOnChildClickListener(new OnChildClickListener() {

public boolean onChildClick(ExpandableListView 
arg0, View arg1,
int arg2, int arg3, long arg4) {


Log.i(clicked ,clicked);

Toast.makeText(getApplicationContext(),
Child ItemClicked  + 
arg2 +   + arg3,

Toast.LENGTH_SHORT).show();


return false;
}
});
//movie list click here
l1.setOnItemClickListener(new AdapterView.OnItemClickListener() 
{
public void onItemClick(AdapterView a, View v, int 
position, long
id) {
Log.i(listview, clicked1);

Toast.makeText(getApplicationContext(),
Child ItemClicked  + position 
,
Toast.LENGTH_SHORT).show();

}
});

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


Re: [android-developers] Stealth Install of TalkBack, KickBack app from Google?

2011-10-06 Thread Mark Murphy
1. They are part of the firmware, last I checked

2. Your question has nothing to do with this list

On Wed, Oct 5, 2011 at 8:35 PM, akay ak.kiet...@gmail.com wrote:
 Hey guys,

 Are these apps safe?

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




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

_Android Programming Tutorials_ Version 4.0 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] ExpandableListView and ListView click child event not working..

2011-10-06 Thread NaveenShrivastva
Here :

   @Override
public boolean isChildSelectable(int arg0, int arg1) {

System.out.println(Child selected+arg0+:+arg1); 
return true;
}

is working fine ...but issue with expandablelistchild click and
listview child click,

On Thu, Oct 6, 2011 at 11:50 AM, Naveen kumarnaveen.si...@gmail.com wrote:
 Hello Developers,

 I am facing a different type of issue, i have a layout which
 contains   One expandableListview and another Listview , i have
 designed this layout using framelayout now all click events works for
 expandable and listview but expandablechild and list child click
 events not working trying to find the issue but here each entry is
 fine on layout only click event on listchild and expandable child is
 not working...

 Please check what i am missing



                expList.setOnChildClickListener(new OnChildClickListener() {

                                public boolean onChildClick(ExpandableListView 
 arg0, View arg1,
                                                int arg2, int arg3, long arg4) 
 {


                                        Log.i(clicked ,clicked);

                                        Toast.makeText(getApplicationContext(),
                                                        Child ItemClicked  + 
 arg2 +   + arg3,
                                                        
 Toast.LENGTH_SHORT).show();


                                        return false;
                                }
                        });
 //movie list click here
                l1.setOnItemClickListener(new 
 AdapterView.OnItemClickListener() {
                        public void onItemClick(AdapterView a, View v, int 
 position, long
 id) {
                                Log.i(listview, clicked1);

                                Toast.makeText(getApplicationContext(),
                                                Child ItemClicked  + 
 position ,
                                                Toast.LENGTH_SHORT).show();

                        }
                });

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

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


[android-developers] Re: ExpandableListView and ListView click child event not working..

2011-10-06 Thread Calin Perebiceanu
Are the views you are using as rows clickable ? Make sure they are
not.

On 6 oct., 09:43, NaveenShrivastva kumarnaveen.si...@gmail.com
wrote:
 Here :

    @Override
                 public boolean isChildSelectable(int arg0, int arg1) {

                 System.out.println(Child selected+arg0+:+arg1);
                     return true;
                 }

 is working fine ...but issue with expandablelistchild click and
 listview child click,







 On Thu, Oct 6, 2011 at 11:50 AM, Naveen kumarnaveen.si...@gmail.com wrote:
  Hello Developers,

  I am facing a different type of issue, i have a layout which
  contains   One expandableListview and another Listview , i have
  designed this layout using framelayout now all click events works for
  expandable and listview but expandablechild and list child click
  events not working trying to find the issue but here each entry is
  fine on layout only click event on listchild and expandable child is
  not working...

  Please check what i am missing

                 expList.setOnChildClickListener(new OnChildClickListener() {

                                 public boolean 
  onChildClick(ExpandableListView arg0, View arg1,
                                                 int arg2, int arg3, long 
  arg4) {

                                         Log.i(clicked ,clicked);

                                         
  Toast.makeText(getApplicationContext(),
                                                         Child ItemClicked  
  + arg2 +   + arg3,
                                                         
  Toast.LENGTH_SHORT).show();

                                         return false;
                                 }
                         });
  //movie list click here
                 l1.setOnItemClickListener(new 
  AdapterView.OnItemClickListener() {
                         public void onItemClick(AdapterView a, View v, int 
  position, long
  id) {
                                 Log.i(listview, clicked1);

                                 Toast.makeText(getApplicationContext(),
                                                 Child ItemClicked  + 
  position ,
                                                 Toast.LENGTH_SHORT).show();

                         }
                 });

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

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


[android-developers] Re: How to implement the iphone style multitouch zoomIn zoomOut to a polygon on a GLSurfaceView?

2011-10-06 Thread saex
thanks, but i have to implement by myself, without using external
libraries

On 5 oct, 17:05, crissgoodlookingguy
crissgoodlooking...@googlemail.com wrote:
 There's an easier way use Adobe AIR. *Simples*

 On Oct 4, 4:42 pm, saex elpablos...@gmail.com wrote:







  i have an application that shows a simple square polygon represented
  on a GLSurfaceView. Actually i can do zoomIn and zoomOut with two
  buttons.

  But now i want to implemente the iphone multitouch style zoomIn and
  zoomOut. It means that when the user presses with two fingers the
  screen and move one finger into another, the user is doing zoomOut,
  and when the user separates the fingers makes zoomIn.

  How can i implement this with Android, openglES, and GLsurfaceView?

  the class:

      public class MySurfaceView extends GLSurfaceView implements
  Renderer {
          private Context context;
          private Square square;
          /* Rotation values */
          private float xrot;                                     //X Rotation
          private float yrot;                                     //Y Rotation
          /* Rotation speed values */
          private float xspeed;                           //X Rotation Speed 
  ( NEW )
          private float yspeed;                           //Y Rotation Speed 
  ( NEW )
          private float z = -5.0f;                        //Depth Into The 
  Screen ( NEW )
          /*
           * These variables store the previous X and Y
           * values as well as a fix touch scale factor.
           * These are necessary for the rotation transformation
           * added to this lesson, based on the screen touches. ( NEW )
           */
          private float oldX;
          private float oldY;
          private final float TOUCH_SCALE = 0.2f;         //Proved to be good 
  for
  normal rotation ( NEW )

          public MySurfaceView(Context context) {
                  super(context);
                  this.context = context;
                  setEGLConfigChooser(8, 8, 8, 8, 16, 0); //fondo transparente
                  getHolder().setFormat(PixelFormat.TRANSLUCENT); //fondo
  transparente
                  //Set this as Renderer
                  this.setRenderer(this);
                  //Request focus, otherwise buttons won't react
                  this.requestFocus();
                  this.setFocusableInTouchMode(true);
                  square = new Square();
          }

          public void onSurfaceCreated(GL10 gl, EGLConfig config) {
                  gl.glDisable(GL10.GL_DITHER);                           
  //Disable dithering ( NEW )
                  gl.glEnable(GL10.GL_TEXTURE_2D);                        
  //Enable Texture Mapping
                  gl.glShadeModel(GL10.GL_SMOOTH);                        
  //Enable Smooth Shading
                  gl.glClearDepthf(1.0f);                                     
      //Depth Buffer Setup
                  gl.glEnable(GL10.GL_DEPTH_TEST);                        
  //Enables Depth Testing
                  gl.glDepthFunc(GL10.GL_LEQUAL);                         
  //The Type Of Depth Testing
  To Do
                  gl.glClearColor(0,0,0,0); //fondo transparente

                  gl.glHint(GL10.GL_PERSPECTIVE_CORRECTION_HINT, 
  GL10.GL_NICEST);

                  //Load the texture for the cube once during Surface creation
                  square.loadGLTexture(gl, this.context);
          }

          public void onDrawFrame(GL10 gl) {

                  //Clear Screen And Depth Buffer
                  gl.glClear(GL10.GL_COLOR_BUFFER_BIT |
  GL10.GL_DEPTH_BUFFER_BIT);
                  gl.glLoadIdentity();                                    
  //Reset The Current Modelview Matrix

                  //Drawing
                  gl.glTranslatef(0.0f, 0.0f, z);                 //Move z 
  units into the screen
                  gl.glScalef(0.8f, 0.8f, 0.8f);                  //Scale the 
  Cube to 80
  percent, otherwise it would be too large for the screen

                  //Rotate around the axis based on the rotation matrix 
  (rotation,
  x, y, z)
                  gl.glRotatef(xrot, 1.0f, 0.0f, 0.0f);   //X
                  gl.glRotatef(yrot, 0.0f, 1.0f, 0.0f);   //Y

                  square.draw(gl);                                        
  //Draw the Cube

                  //Change rotation factors
                  xrot += xspeed;
                  yrot += yspeed;
          }

          /**
           * If the surface changes, reset the view
           */
          public void onSurfaceChanged(GL10 gl, int width, int height) {
                  if(height == 0) {                                           
      //Prevent A Divide By Zero By
                          height = 1;                                         
      //Making Height Equal One
                  }
                  gl.glViewport(0, 0, width, height);     //Reset The Current
  Viewport
                  

[android-developers] Re: How to implement the iphone style multitouch zoomIn zoomOut to a polygon on a GLSurfaceView?

2011-10-06 Thread Doug
I agree the easier way is to never use punctuation or explanation
*lols*

On Oct 5, 8:05 am, crissgoodlookingguy
crissgoodlooking...@googlemail.com wrote:
 There's an easier way use Adobe AIR. *Simples*

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


[android-developers] Re: Tel: and SMS: URIs

2011-10-06 Thread Michael Roland
Hallo Scott,

 My other question is with messaging, how can I get the sms: URI to
 attach the body with the message?
 I can get a href=sms:0123456789Request A Call/a to work
 but when I add the body a href=:sms:0123456789?body=Callback
 %20RequestRequest a Call/a returns Please correct the
 recipient(s) or they may not receive the message error

See this bug report regarding the wrong interpretation of SMS URIs on
Android: http://code.google.com/p/android/issues/detail?id=15866

br
Michael

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


[android-developers] File Hoasting Issue

2011-10-06 Thread rahul verma
Friends ,is there any file hosting place where anybody can upload
files(Particularly images) on a single account .(peferable without
authentication)
thanks

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


Re: [android-developers] Re: ExpandableListView and ListView click child event not working..

2011-10-06 Thread NaveenShrivastva
After using this one same issue listviewitem click is not working.

On Thu, Oct 6, 2011 at 12:31 PM, Calin Perebiceanu
calin.perebice...@gmail.com wrote:
 Are the views you are using as rows clickable ? Make sure they are
 not.

 On 6 oct., 09:43, NaveenShrivastva kumarnaveen.si...@gmail.com
 wrote:
 Here :

    @Override
                 public boolean isChildSelectable(int arg0, int arg1) {

                 System.out.println(Child selected+arg0+:+arg1);
                     return true;
                 }

 is working fine ...but issue with expandablelistchild click and
 listview child click,







 On Thu, Oct 6, 2011 at 11:50 AM, Naveen kumarnaveen.si...@gmail.com wrote:
  Hello Developers,

  I am facing a different type of issue, i have a layout which
  contains   One expandableListview and another Listview , i have
  designed this layout using framelayout now all click events works for
  expandable and listview but expandablechild and list child click
  events not working trying to find the issue but here each entry is
  fine on layout only click event on listchild and expandable child is
  not working...

  Please check what i am missing

                 expList.setOnChildClickListener(new OnChildClickListener() {

                                 public boolean 
  onChildClick(ExpandableListView arg0, View arg1,
                                                 int arg2, int arg3, long 
  arg4) {

                                         Log.i(clicked ,clicked);

                                         
  Toast.makeText(getApplicationContext(),
                                                         Child ItemClicked 
   + arg2 +   + arg3,
                                                         
  Toast.LENGTH_SHORT).show();

                                         return false;
                                 }
                         });
  //movie list click here
                 l1.setOnItemClickListener(new 
  AdapterView.OnItemClickListener() {
                         public void onItemClick(AdapterView a, View v, int 
  position, long
  id) {
                                 Log.i(listview, clicked1);

                                 Toast.makeText(getApplicationContext(),
                                                 Child ItemClicked  + 
  position ,
                                                 Toast.LENGTH_SHORT).show();

                         }
                 });

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

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



-- 
Naveen Shrivastava
BCA+MCA(LAST SEM)+O/A/B Level(DOEACC SOCITY IT GOVT INDIA)

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


Re: [android-developers] Re: Android is worst os mobile is this true

2011-10-06 Thread Vinay Julme
I can say that Android Blue tooth works perfectly fine on HTC(Wildfire,
Desire), Samsung, Devices from Sprint, DELL, Google Nexus. Never had a
problem. And the version ranges from 2.1 to 2.3.



On Thu, Oct 6, 2011 at 6:17 AM, Kristopher Micinski
krismicin...@gmail.comwrote:

 On Wed, Oct 5, 2011 at 7:46 PM, Indicator Veritatis mej1...@yahoo.com
 wrote:
  Why are you so sure Android Bluetooth works perfectly fine? Have you
  tested it on a sampling of devices typical of the market? What version
  are you using?
 
  Android 2.2 Bluetooth does NOT work perfectly fine on my phone (HTC
  G2). On the contrary: I have had lots of trouble with it dropping
  packets and/or failing to establish a connection when used with a
  RFCOMM profile on a Belkin Bluetooth dongle for a WinXP PC. I have had
  less trouble using it with earpieces, but even then, it looses the
  connection too easily.
 
  That said, it is a huge improvement over Bluetooth in Android 1.6.
 

 I can echo this,  :-).

 Kris...

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


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

Re: [android-developers] Re: Android is worst os mobile is this true

2011-10-06 Thread Latimerius
I wrote a game a year ago that used BT for its network transport.  I
was using mostly HTC Desire and Samsung Galaxy S for testing (both
2.1).

In my experience when a BT connection manages to get past the set-up
stage it works just fine.

However, connection set-up was a huge PITA.  Never mind that about 1
in 5 connection attempts failed for some reason although the devices
were lying on my desk right next to each other.  The most puzzling
thing was that the connection only succeeded if it was initiated by
the Galaxy S.  Connections initiated in the opposite direction (by the
Desire) had success rate less than about 1 in 20 or 30 (which is the
number of attempts before I gave up and let the Galaxy S to initiate
the connection).

Now, I'm no BT expert and there might a perfectly good explanation for
all of that.  However, for the time being I would hesitate to call my
Android/BT experience perfect.


On Thu, Oct 6, 2011 at 11:38 AM, Vinay Julme vinayju...@gmail.com wrote:
 I can say that Android Blue tooth works perfectly fine on HTC(Wildfire,
 Desire), Samsung, Devices from Sprint, DELL, Google Nexus. Never had a
 problem. And the version ranges from 2.1 to 2.3.



 On Thu, Oct 6, 2011 at 6:17 AM, Kristopher Micinski krismicin...@gmail.com
 wrote:

 On Wed, Oct 5, 2011 at 7:46 PM, Indicator Veritatis mej1...@yahoo.com
 wrote:
  Why are you so sure Android Bluetooth works perfectly fine? Have you
  tested it on a sampling of devices typical of the market? What version
  are you using?
 
  Android 2.2 Bluetooth does NOT work perfectly fine on my phone (HTC
  G2). On the contrary: I have had lots of trouble with it dropping
  packets and/or failing to establish a connection when used with a
  RFCOMM profile on a Belkin Bluetooth dongle for a WinXP PC. I have had
  less trouble using it with earpieces, but even then, it looses the
  connection too easily.
 
  That said, it is a huge improvement over Bluetooth in Android 1.6.
 

 I can echo this,  :-).

 Kris...

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

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

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


Re: [android-developers] Re: runOnUIThread method in doInBackground of Async Task...

2011-10-06 Thread João Rossa
Ok if put a thread sleep inside the doInBackground method it will work when
changing the screen orientation during the asynctask execution.So how do i
save the filler views when changing the screen orientation after the
asynctask has completed?In the method:

 @Override
public Object onRetainNonConfigurationInstance() {
if(task!=null)
task.detach();
return(task);
}

the task is saved, but how do i save filler views state?

regards,

2011/10/5 João Rossa joao.ro...@gmail.com

 Im returning the current task state in the onRetainNonConfigurationStance
 method, but i assume i need to save here the views filler?

 regards,

 2011/10/5 João Rossa joao.ro...@gmail.com

 Ok ive put a thread sleep inside the doItInBackground and it seems to
 refresh when i rotate while the task is running so the question now is, how
 do i save the views states when i rotate after the task completes???it wont
 start again because it may not have been gabaged collected...

 regards,


 2011/10/5 João Rossa joao.ro...@gmail.com

 Unfortunately it doesnt seem to be working, at least not when i rotate, i
 must be missing something here...still let me test this here.

 regards,


 On Wed, Oct 5, 2011 at 2:13 AM, TreKing treking...@gmail.com wrote:

 2011/10/4 João Rossa joao.ro...@gmail.com

 Also is there a problem refreshing the contents inside the
 doItinBackground???im using the runOnUIThread to refresh the views inside
 the updateResultsInUi()


 That should work.



 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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






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

[android-developers] ListView Row not firing the click event

2011-10-06 Thread Naveen
i am using custom list , it's
l1.setAdapter(new EfficientAdapter(this));

l1.setFocusable(true);
l1.setClickable(true);
l1.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView? adapter, View
view,  int pos, long id) {
Log.i(listview, clicked1);

Toast.makeText(getApplicationContext(),
Child ItemClicked  + pos ,
Toast.LENGTH_SHORT).show();

}
});



it's not working

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


[android-developers] Bitmap 32 bitperpixel image to Bitmap 8 bitperpixe image

2011-10-06 Thread Ravijadhav
Helllo Everyone,

I am quite stuck at this..
What is the best way to convert an RGB  24 or 32 bit per pixel image
to a grayscale 8 bit per pixel image?
A working code of the same in android will be much helpful for me
Thank you...

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


[android-developers] How to reset a GLSurfaceView and show the polygons with their first coords/values?

2011-10-06 Thread saex
I have a GLSurfaceView that shows a polygon that can be rotated and
zoomed.

I have a button on the screen, and i want that when the user press the
button, the GLSurfaceView get's reset to the initial values and the
polygon must be showed with their initial coordinates, zoom and
rotation values.

How to do it?

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


Re: [android-developers] ListView Row not firing the click event

2011-10-06 Thread KK
What exactly is the error message you are getting?

--KK

On Thu, Oct 6, 2011 at 3:46 PM, Naveen kumarnaveen.si...@gmail.com wrote:

 i am using custom list , it's
 l1.setAdapter(new EfficientAdapter(this));

l1.setFocusable(true);
l1.setClickable(true);
l1.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView? adapter, View
 view,  int pos, long id) {
Log.i(listview, clicked1);

Toast.makeText(getApplicationContext(),
Child ItemClicked  + pos ,
Toast.LENGTH_SHORT).show();

}
});



 it's not working

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

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

[android-developers] Re: How to reset a GLSurfaceView and show the polygons with their first coords/values?

2011-10-06 Thread saex
well, finally i solved it reseting the variables of the class to their
initial value.

I thought that probably exists a better way, if someone know it please
tell me

On 6 oct, 13:57, saex elpablos...@gmail.com wrote:
 I have a GLSurfaceView that shows a polygon that can be rotated and
 zoomed.

 I have a button on the screen, and i want that when the user press the
 button, the GLSurfaceView get's reset to the initial values and the
 polygon must be showed with their initial coordinates, zoom and
 rotation values.

 How to do it?

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


[android-developers] Home Button

2011-10-06 Thread Ubiracy
I have an application that has a progressdialog. in this application i'm 
disabling the home button, but this lock does not work when progressdialog 
appears. 
if i touch the home button while the progressdialog appears the application 
close. o.O help me :D 

i override the onkeyDown method, but doesn't work...

@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if ((keyCode == KeyEvent.KEYCODE_HOME)) {
return false;
}
return super.onKeyDown(keyCode, event);
}

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

Re: [android-developers] ListView Row not firing the click event

2011-10-06 Thread NaveenShrivastva
Error nothing getting just click event not working but i have written
the click event code,  Previous many sample i have done with custom
list click event.

when clicking on list then nothing happening but on list there is an
image button that's click working fine but total row list is not
clickable

On Thu, Oct 6, 2011 at 5:41 PM, KK dioxide.softw...@gmail.com wrote:
 What exactly is the error message you are getting?
 --KK

 On Thu, Oct 6, 2011 at 3:46 PM, Naveen kumarnaveen.si...@gmail.com wrote:

 i am using custom list , it's
 l1.setAdapter(new EfficientAdapter(this));

                l1.setFocusable(true);
        l1.setClickable(true);
                l1.setOnItemClickListener(new OnItemClickListener() {
            @Override
            public void onItemClick(AdapterView? adapter, View
 view,      int pos, long id) {
        Log.i(listview, clicked1);

                                Toast.makeText(getApplicationContext(),
                                                Child ItemClicked  + pos
 ,
                                                Toast.LENGTH_SHORT).show();

            }
        });



 it's not working

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

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

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


Re: [android-developers] Home Button

2011-10-06 Thread TreKing
On Thu, Oct 6, 2011 at 7:20 AM, Ubiracy ubiracy@gmail.com wrote:

 in this application i'm disabling the home button


No you're not - you can't disable the home button.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] ListView Row not firing the click event

2011-10-06 Thread Kostya Vasilyev

Try taking out these two lines.

06.10.2011 16:11, KK пишет:

l1.setFocusable(true);
l1.setClickable(true);


--
Kostya Vasilyev

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


Re: [android-developers] Re: overlapped nodes in graph

2011-10-06 Thread TreKing
On Thu, Oct 6, 2011 at 1:17 AM, bhumi kania bska...@gmail.com wrote:

 Do you have any sample code for that which had implemented the algorithm.


Do I happen to have sample code that solves *your* problem implementing an
algorithm that you did not explain? No, sorry.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: Home Button

2011-10-06 Thread Ubiracy
This work...

  @Override
  public void onAttachedToWindow()
  {  
   
this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD); 
   super.onAttachedToWindow();  
  }

but if a have a progressdialog this method doesn't work. =/

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

Re: [android-developers] ListView Row not firing the click event

2011-10-06 Thread NaveenShrivastva
movielist.setAdapter(new EfficientAdapter(this));
movielist.setClickable(true);
movielist.setFocusable(true);


i have already tried that one nothing result same issue

On Thu, Oct 6, 2011 at 6:07 PM, Kostya Vasilyev kmans...@gmail.com wrote:
 Try taking out these two lines.

 06.10.2011 16:11, KK пишет:

 l1.setFocusable(true);
 l1.setClickable(true);

 --
 Kostya Vasilyev

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

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


Re: [android-developers] Re: Home Button

2011-10-06 Thread TreKing
On Thu, Oct 6, 2011 at 7:48 AM, Ubiracy ubiracy@gmail.com wrote:

 This work...

   @Override
   public void onAttachedToWindow()
   {

 this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
super.onAttachedToWindow();
   }


Doing that prevents the device from going to the Home screen / app when
pressing the Home key in your app ... ?

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Is there an efficient way to insert unique rows (UNIQUE(a, b, c)) into an fts3 virtual table?

2011-10-06 Thread anaran


Hi!

Haven't been able to find a solution reading
sqlite-users mailing list, http://www.sqlite.org/, nor googling at large.

I have not received responses to

http://sqlite.org:8080/cgi-bin/mailman/private/sqlite-users/2011-October/033600.html

so I am trying my luck here.

I need to insert rows with a unique column combination into a fts3 virtual
table.
http://www.sqlite.org/fts3.html states:

This is pure syntactic sugar, the supplied typenames are not used by FTS or
the SQLite core for any purpose. The same applies to any constraints
specified along with an FTS column name - they are parsed but not used or
recorded by the system in any way.

Given
CREATE VIRTUAL TABLE fts3_table  USING FTS3 (a,b,c,UNIQUE(a,b,c));
to
INSERT OR IGNORE INTO fts3_table VALUES(a, b, c);
would never IGNORE based on a uniqueness constraint, right?

This is what my testing shows.

The row gets inserted no matter whether it already exists in the fts3_table.

I found the following solution to work (based on some google results), but
performance is miserable for 1000 such inserts with varying values, even
though performed inside a single transaction:

INSERT INTO fts3_table (a,b,c)
SELECT 'an A','a B','a C'
WHERE NOT EXISTS
(SELECT DISTINCT a,b,c
FROM fts3_table
WHERE a='an A' AND b='a B' AND c='a C');

Is there a more efficient way to insert unique rows (with
constraint UNIQUE(a,b,c)) into an fts3 virtual table?

I am using the SQLite 3.5.9 that comes with android-2.1-update1 on my HTC Hero.

Thanks!


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

[android-developers] Android Out of memory exception and ContentResolver.registerContentObserver

2011-10-06 Thread Ori Harel
In my activity, I have about 10 ContentObservers registered to the 
ContentResolver (registerContentObserver). I do it in the onCreate().

When changing between landscape and portrait, the onCreate() is called over 
and over again (and I want it that way - need to change layouts), but after 
few tries the app runs out of memory and crashes.

Those observers are not class members so they live in the scope of 
onCreate().

Any idea anyone?

(When I comment all registrations, I don't have any crashes).

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

[android-developers] Re: Home Button

2011-10-06 Thread IcedNet
Yes, yes it does, but it flies in the face of good Android design ---
in other words, you should not do that to your users -- the lock
screen isn't for that.

Peace,
Dan

On Oct 6, 9:02 am, TreKing treking...@gmail.com wrote:
 On Thu, Oct 6, 2011 at 7:48 AM, Ubiracy ubiracy@gmail.com wrote:
  This work...

        @Override
        public void onAttachedToWindow()
        {

  this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);
             super.onAttachedToWindow();
        }

 Doing that prevents the device from going to the Home screen / app when
 pressing the Home key in your app ... ?

 --- 
 --
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices

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


Re: [android-developers] Android Out of memory exception and ContentResolver.registerContentObserver

2011-10-06 Thread Kostya Vasilyev

Do you UN register the observers in onDestroy?

06.10.2011 17:16, Ori Harel пишет:
In my activity, I have about 10 ContentObservers registered to the 
ContentResolver (registerContentObserver). I do it in the onCreate().


When changing between landscape and portrait, the onCreate() is called 
over and over again (and I want it that way - need to change layouts), 
but after few tries the app runs out of memory and crashes.


Those observers are not class members so they live in the scope of 
onCreate().


Any idea anyone?

(When I comment all registrations, I don't have any crashes).
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en 


--
Kostya Vasilyev

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


[android-developers] Re: Android is worst os mobile is this true

2011-10-06 Thread IcedNet
It's an old saying... All OS's suck.
Pick one that sucks less and use it.
Life is too short for whining.

If you've got better skillz, get off your ass and take the helm of
your own OS, else publish bug reports like the rest of the world and
move on.
Bugs and attitude and all, they're doing one helluva job, for the
price of admission...

Peace,
Dan

On Oct 6, 5:58 am, Latimerius l4t1m3r...@googlemail.com wrote:
 I wrote a game a year ago that used BT for its network transport.  I
 was using mostly HTC Desire and Samsung Galaxy S for testing (both
 2.1).

 In my experience when a BT connection manages to get past the set-up
 stage it works just fine.

 However, connection set-up was a huge PITA.  Never mind that about 1
 in 5 connection attempts failed for some reason although the devices
 were lying on my desk right next to each other.  The most puzzling
 thing was that the connection only succeeded if it was initiated by
 the Galaxy S.  Connections initiated in the opposite direction (by the
 Desire) had success rate less than about 1 in 20 or 30 (which is the
 number of attempts before I gave up and let the Galaxy S to initiate
 the connection).

 Now, I'm no BT expert and there might a perfectly good explanation for
 all of that.  However, for the time being I would hesitate to call my
 Android/BT experience perfect.







 On Thu, Oct 6, 2011 at 11:38 AM, Vinay Julme vinayju...@gmail.com wrote:
  I can say that Android Blue tooth works perfectly fine on HTC(Wildfire,
  Desire), Samsung, Devices from Sprint, DELL, Google Nexus. Never had a
  problem. And the version ranges from 2.1 to 2.3.

  On Thu, Oct 6, 2011 at 6:17 AM, Kristopher Micinski krismicin...@gmail.com
  wrote:

  On Wed, Oct 5, 2011 at 7:46 PM, Indicator Veritatis mej1...@yahoo.com
  wrote:
   Why are you so sure Android Bluetooth works perfectly fine? Have you
   tested it on a sampling of devices typical of the market? What version
   are you using?

   Android 2.2 Bluetooth does NOT work perfectly fine on my phone (HTC
   G2). On the contrary: I have had lots of trouble with it dropping
   packets and/or failing to establish a connection when used with a
   RFCOMM profile on a Belkin Bluetooth dongle for a WinXP PC. I have had
   less trouble using it with earpieces, but even then, it looses the
   connection too easily.

   That said, it is a huge improvement over Bluetooth in Android 1.6.

  I can echo this,  :-).

  Kris...

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

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

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


[android-developers] Re: Home Button

2011-10-06 Thread Ubiracy
I have a native app and i need this :( my tablet only do this ( open 
application on boot and don't close ), but when i use  the progressdialog 
this lock  method  doesn't work.. bugs?!

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

[android-developers] Email formate validation

2011-10-06 Thread Devendran Raju
I want to validate of email formate in my app. Anyone having sample code for
that.



Thanks in advance,
Devendran.R

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

[android-developers] Re: Access Pc from android Device

2011-10-06 Thread harshita atri
ok...thanks..

On Oct 6, 2:17 am, Kristopher Micinski krismicin...@gmail.com wrote:
 Rooting isn't the topic of this forum,

 You'll have to look in other places, specific to your device, to find
 out how to root it, there is no way (automatically) via adb to do
 this.

 Kris







 On Wed, Oct 5, 2011 at 1:54 PM, harshita atri cute.bubble...@gmail.com 
 wrote:
  how can we root the device using adb interface?

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

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


[android-developers] Re: Home Button

2011-10-06 Thread IcedNet
They won't view it as a bug, but yes, I suppose in your case, you
could see it as such.
It's only a bug if the behavior is not what they desire it to be.
We have used a plastic shield to keep fingers away from the System Bar
and disabled the action bar in our kiosk apps, perhaps you can discuss
limitations of the platform with your client
-- Apple won't let you mess with their Big Button, either  ;)

On Oct 6, 9:36 am, Ubiracy ubiracy@gmail.com wrote:
 I have a native app and i need this :( my tablet only do this ( open
 application on boot and don't close ), but when i use  the progressdialog
 this lock  method  doesn't work.. bugs?!

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


[android-developers] Re: cursor.moveToFirst() cursor.moveToLast() time consuming issue with sqlite database.

2011-10-06 Thread Streets Of Boston
Technically, yes, you can put 17000 items in a list.For usability, no,you 
can't put 17000 items in a list.
No one would want to use a lists like that, scrolling through 17000 items. 

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

[android-developers] Re: Stealth Install of TalkBack, KickBack app from Google?

2011-10-06 Thread Streets Of Boston
They're safe These are part of the accessibility functions of your phone. 
They are part of the baked-in firmware that comes with your phone. They just 
got an update.

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

[android-developers] Re: Home Button

2011-10-06 Thread Streets Of Boston
I surprised this works :)
Anyway, this method doesn't work for you when a progressdialog, i.e. an 
alertdialog, is showing.
A solution could be to *not* use progressdialogs or any other dialogs in 
your app. Instead use DialogFragments or Activities having the theme 
Theme.Dialog.

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

[android-developers] Re: Home Button

2011-10-06 Thread Streets Of Boston
What happens if you put this 

 this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD);


into the *onCreate *of you Activity?

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

[android-developers] Re: Home Button

2011-10-06 Thread Ubiracy
Hm...good idea.. Streets Of Boston!
I'll try to do this
 
:D

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

Re: [android-developers] ListView Row not firing the click event

2011-10-06 Thread NaveenShrivastva
i am using custom listview android facing click event issue coding
stub is fine here, plz guideline me

On Thu, Oct 6, 2011 at 6:24 PM, NaveenShrivastva
kumarnaveen.si...@gmail.com wrote:
 movielist.setAdapter(new EfficientAdapter(this));
                        movielist.setClickable(true);
                        movielist.setFocusable(true);


 i have already tried that one nothing result same issue

 On Thu, Oct 6, 2011 at 6:07 PM, Kostya Vasilyev kmans...@gmail.com wrote:
 Try taking out these two lines.

 06.10.2011 16:11, KK пишет:

 l1.setFocusable(true);
 l1.setClickable(true);

 --
 Kostya Vasilyev

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


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


[android-developers] Re: Email formate validation

2011-10-06 Thread Chris
This regex pattern should match email addresses:

[A-Za-z0-9_]+([-+.'][A-Za-z0-9_]+)*@[A-Za-z0-9_]+([-.][A-Za-z0-9_]+)*\.[A-Za-z0-9_]+([-.][A-Za-z0-9_]+)*

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

[android-developers] Re: cursor.moveToFirst() cursor.moveToLast() time consuming issue with sqlite database.

2011-10-06 Thread Studio LFP
Since data size is an issue, you might just returning all the record _id 
fields and as you move back and forth, just query that one record and 
populate.  If you have 17000 items at 8 bytes (largest storage for int size 
in SQLite), you would still only be looking at 136k worth of data. Most 
likely it will only be using 4 bytes for the int and the data load will be 
less.

Step forward, backwards, or to whatever record using the method you 
currently are, grab the _id, pull that single record, show record and you 
are done. Since you should be using that _id as a primary key, this should 
be lightning fast and have little or no delay on showing the record.

Steven
Studio LFP
http://www.studio-lfp.com

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

Re: [android-developers] ListView Row not firing the click event

2011-10-06 Thread Studio LFP
A custom ListView as in one you have written yourself? Or someone else other 
than the one that is in Android?

If so, there might be problems with it.

Kostya also asked for you to *remove *those two entries, did you *remove *them 
and try?

Steven
Studio LFP
http://www.studio-lfp.com


On Thursday, October 6, 2011 9:08:56 AM UTC-5, Naveen wrote:

 i am using custom listview android facing click event issue coding
 stub is fine here, plz guideline me

 On Thu, Oct 6, 2011 at 6:24 PM, NaveenShrivastva
 kumarnav...@gmail.com wrote:
  movielist.setAdapter(new EfficientAdapter(this));
 movielist.setClickable(true);
 movielist.setFocusable(true);
 
 
  i have already tried that one nothing result same issue
 
  On Thu, Oct 6, 2011 at 6:07 PM, Kostya Vasilyev kman...@gmail.com 
 wrote:
  Try taking out these two lines.
 
  06.10.2011 16:11, KK пишет:
 
  l1.setFocusable(true);
  l1.setClickable(true);
 
  --
  Kostya Vasilyev
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-d...@googlegroups.com
  To unsubscribe from this group, send email to
  android-develop...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 


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

Re: [android-developers] Re: Email formate validation

2011-10-06 Thread Daniel Drozdzewski
On 6 October 2011 15:12, Chris crehb...@gmail.com wrote:
 This regex pattern should match email addresses:

 [A-Za-z0-9_]+([-+.'][A-Za-z0-9_]+)*@[A-Za-z0-9_]+([-.][A-Za-z0-9_]+)*\.[A-Za-z0-9_]+([-.][A-Za-z0-9_]+)*


Regex is a bad way to validate an email address. You risk to run out
of resources (some very long regexes), annoying people with real but
weird email addresses and people will still register using throw away
email accounts.

If you need to know for sure that email is valid, make 2 step
registration with a link sent to said email address with one-time ID'd
link back to your validator.

If however you don't run a bank or serious commercial operation, take
pretty much any email thrown at you and your emailer should remove
bouncing ones from its database.

Please read the following:

http://www.regular-expressions.info/email.html
http://www.codinghorror.com/blog/2005/02/regex-use-vs-regex-abuse.html
http://stackoverflow.com/questions/201323/what-is-the-best-regular-expression-for-validating-email-addresses
http://fightingforalostcause.net/misc/2006/compare-email-regex.php

-- 
Daniel Drozdzewski

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


Re: [android-developers] ListView Row not firing the click event

2011-10-06 Thread NaveenShrivastva
Please find the attachment ...

On Thu, Oct 6, 2011 at 7:55 PM, Studio LFP studio@gmail.com wrote:
 A custom ListView as in one you have written yourself? Or someone else other
 than the one that is in Android?

 If so, there might be problems with it.

 Kostya also asked for you to remove those two entries, did you remove them
 and try?

 Steven
 Studio LFP
 http://www.studio-lfp.com


 On Thursday, October 6, 2011 9:08:56 AM UTC-5, Naveen wrote:

 i am using custom listview android facing click event issue coding
 stub is fine here, plz guideline me

 On Thu, Oct 6, 2011 at 6:24 PM, NaveenShrivastva
 kumarnav...@gmail.com wrote:
  movielist.setAdapter(new EfficientAdapter(this));
                         movielist.setClickable(true);
                         movielist.setFocusable(true);
 
 
  i have already tried that one nothing result same issue
 
  On Thu, Oct 6, 2011 at 6:07 PM, Kostya Vasilyev kman...@gmail.com
  wrote:
  Try taking out these two lines.
 
  06.10.2011 16:11, KK пишет:
 
  l1.setFocusable(true);
  l1.setClickable(true);
 
  --
  Kostya Vasilyev
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-d...@googlegroups.com
  To unsubscribe from this group, send email to
  android-develop...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 

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

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


[android-developers] Re: How to implement the iphone style multitouch zoomIn zoomOut to a polygon on a GLSurfaceView?

2011-10-06 Thread Studio LFP
There is nothing in that example that says you have to be using a canvas.

Any view that is a child of View will work. GLSurfaceView is a child of view 
and will work also.

Override the onTouchEvent of the GLSurfaceView and follow the example in 
that respect.

The scaling is just a number that goes up when they get farther apart and 
lower as they get closer.  If you aren't able to use this number, then you 
won't be able to use multi-touch pinch-to-zoom functionality. There is even 
a function that calculates the mid point for you (getFocusX, getFocusY), it 
doesn't get much simpler than that.

Some things you just have to work through because that's how they are done. 
Refusing to use advice (especially from the creators of Android who would 
know best) won't help you figure out how to use the feature any faster.

Steven
Studio LFP
http://www.studio-lfp.com


On Wednesday, October 5, 2011 10:16:54 AM UTC-5, saex wrote:

 i'm not using canvas, and these strange scale factors, i can't apply 
 these system into my code 

 On 5 oct, 16:43, Studio LFP studi...@gmail.com wrote: 
  Not quite understanding the hard part, it's pretty step by step. 
  
  GLSurfaceView is just another view and can accept touch just like 
 anything 
  else. You don't have to make a new subclass like he did, just use the 
 touch 
  code to catch the multi-touch on the GLSurfaceView. 
  
  Steven 
  Studio LFPhttp://www.studio-lfp.com 
  
  
  
  
  
  
  
  On Wednesday, October 5, 2011 7:01:16 AM UTC-5, saex wrote: 
  
   too hardly explained and bad examples for this case 
  
   code examples that does this will be apreciated 
  
   On 4 oct, 17:54, Studio LFP stud...@gmail.com wrote: 
Check this post out: 
  
   
 http://android-developers.blogspot.com/2010/06/making-sense-of-multit... 
  
Information from the source, the best kind. 
  
Steven 
Studio LFPhttp://www.studio-lfp.com

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

Re: [android-developers] ListView Row not firing the click event

2011-10-06 Thread dinesh adwani
If you have added any other view like radio button make it
setfocasable(false)
On Oct 6, 2011 3:46 PM, Naveen kumarnaveen.si...@gmail.com wrote:

 i am using custom list , it's
 l1.setAdapter(new EfficientAdapter(this));

l1.setFocusable(true);
l1.setClickable(true);
l1.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView? adapter, View
 view,  int pos, long id) {
Log.i(listview, clicked1);

Toast.makeText(getApplicationContext(),
Child ItemClicked  + pos ,
Toast.LENGTH_SHORT).show();

}
});



 it's not working

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

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

Re: [android-developers] ListView Row not firing the click event

2011-10-06 Thread NaveenShrivastva
i have two view one is Expandablelist and other is listview plz
guideline me how to handle here facing listchildclick event

On Thu, Oct 6, 2011 at 8:17 PM, dinesh adwani
mail.dineshadw...@gmail.com wrote:
 If you have added any other view like radio button make it
 setfocasable(false)

 On Oct 6, 2011 3:46 PM, Naveen kumarnaveen.si...@gmail.com wrote:

 i am using custom list , it's
 l1.setAdapter(new EfficientAdapter(this));

                l1.setFocusable(true);
        l1.setClickable(true);
                l1.setOnItemClickListener(new OnItemClickListener() {
            @Override
            public void onItemClick(AdapterView? adapter, View
 view,      int pos, long id) {
        Log.i(listview, clicked1);

                                Toast.makeText(getApplicationContext(),
                                                Child ItemClicked  + pos
 ,
                                                Toast.LENGTH_SHORT).show();

            }
        });



 it's not working

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

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

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


[android-developers] Re: Units of measurement

2011-10-06 Thread Studio LFP
I don't think you will be able to do this with a XML layout. You probably 
want to take a look at this

http://developer.android.com/reference/android/util/DisplayMetrics.html#xdpi

There is both xdpi and ydpi. That should be checked to get the actual dpi in 
both directions and then a view created with those calculations should get 
you where you want to go.

Here is what I get on a few of my devices in portrait mode:

// --- Sample Code Start ---
DisplayMetrics metrics = new DisplayMetrics();
Display display = getWindowManager().getDefaultDisplay();
display.getMetrics( metrics );

Log.i( TestProject, X DPI:  + metrics.xdpi );
Log.i( TestProject, Y DPI:  + metrics.ydpi );
// --- Sample Code End ---

*Samsung Galaxy Tab (7 inch):*
X DPI: 168.89351
Y DPI: 169.3

*Motorola Droid Bionic:*
X DPI: 258.79245
Y DPI: 256.67368

*Sony Xperia Play:*
X DPI: 239.05882
Y DPI: 243.72585


Steven
Studio LFP
http://www.studio-lfp.com

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

Re: [android-developers] Re: Serializable subclass of non-serializable class

2011-10-06 Thread Daniel Drozdzewski
JM,

sorry I missed your reply among 100s of emails yesterday...

On 5 October 2011 17:18, Jean-Michel jeanmichel.caz...@gmail.com wrote:
 Daniel, sorry to be a pain in the bum, but there are still 2 things I
 cannot figure out.

 First I am not sure what you mean by DTO, but from what I understand
 it is basicaly a place holder for the data in my non-serilizable
 class.
 I understand how to transfer dta (the one I care about) between
 LocationDTO and Location.

It is not a place holder. It is actual data holder and Location is left alone.

You do the following:

1. Define LocationDTO that implements Serializable, which will store
all data that you need from Location.
2. When you are about to persist your Location to storage, you
populate that DTO with the latest values from Location.
3. You serialize DTO and persist resulting stream.
application is OFF here
4. Upon re-launch of your application, you read the serialized DTO
from the storage, therefore de-serializing the DTO.
5. Create brand new Location (Location loc = new Location()) and
populate all its properties from deserialized DTO.

As you can see, you have not serialized or deserialized Location class
(or any of its subclasses) at all, therefore avoiding all the troubles
that you have with it.


-- 
Daniel Drozdzewski

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


[android-developers] Re: problem in parsing content loading

2011-10-06 Thread Studio LFP
Hi there Munsif,

A bit more code about how you get that error will be needed if you want 
people to help you out. Usually the code around the area where the error is 
happening is needed to help you find the issue.

Steven
Studio LFP
http://www.studio-lfp.com


On Wednesday, October 5, 2011 12:54:51 PM UTC-5, Munsif Rehamn wrote:

 HI , my name is munsif, and i m student of Mcs , and i m doing my 
 final year project in android 
 i have facing this problem, 
  ‘Android SDK Content Loader’ has encountered a problem. 
 parseSdkContent failed. 
 ‘ 
 parseSdkContent failed 
 java.lang.NullPointerException.

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

Re: [android-developers] Re: Home Button

2011-10-06 Thread TreKing
On Thu, Oct 6, 2011 at 8:36 AM, Ubiracy ubiracy@gmail.com wrote:

 I have a native app and i need this :( my tablet only do this ( open
 application on boot and don't close ), but when i use  the progressdialog
 this lock  method  doesn't work.. bugs?!


The bug is probably allowing you to hack / exploit the keyguard setting to
prevent the Home key from doing its thing.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Re: OnCheckedChangeListener not working on RadioGroup

2011-10-06 Thread KK
Would appreciate if someone could explicitly mention what exactly is
the fix for this error. As, I don't see any mention of compoundbutton
and the user has correctly used  RadioGroup.OnCheckedChangeListener
I'm stuck at the same point.

Thanks

On Aug 12, 3:58 pm, Mark Murphy mmur...@commonsware.com wrote:
 The error message is self-explanatory. You are trying to use
 a CompoundButton.OnCheckedChangeListener() in a place that takes
 a RadioGroup.OnCheckedChangeListener.









 On Fri, Aug 12, 2011 at 12:58 AM, shamir shakir dewswo...@gmail.com wrote:
  Hello,
  I was trying to add the CheckedChangeListner for RadioGroup and it's not
  working ... :(
  I'm using eclipse IDE. And I'm getting this error

  The method setOnCheckedChangeListener(RadioGroup.OnCheckedChangeListener)
  in the type RadioGroup is not applicable for the arguments (new
  CompoundButton.OnCheckedChangeListener(){})

  Here's the code

  package com.dewsworld.android.practise;

  import java.util.Date;

  import android.app.Activity;
  import android.content.Intent;
  import android.content.res.Resources.Theme;
  import android.graphics.drawable.GradientDrawable.Orientation;
  import android.os.Bundle;
  import android.os.Process;
  import android.provider.ContactsContract;
  import android.util.Log;
  import android.view.View;
  import android.view.View.OnClickListener;
  import android.widget.AutoCompleteTextView;
  import android.widget.Button;
  import android.widget.CheckBox;
  import android.widget.Checkable;
  import android.widget.CompoundButton;
  import android.widget.CompoundButton.OnCheckedChangeListener;
  import android.widget.EditText;
  import android.widget.Gallery;
  import android.widget.LinearLayout;
  import android.widget.ProgressBar;
  import android.widget.QuickContactBadge;
  import android.widget.RadioGroup;
  import android.widget.TextView;
  import android.widget.Toast;
  import android.widget.ToggleButton;
  import android.widget.SimpleAdapter.ViewBinder;

  public class EntryPointActivity extends Activity {
   @Override
   protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.main) ;
   RadioGroup radioGroup = (RadioGroup)this.findViewById(R.id.rg) ;
   radioGroup.setOnCheckedChangeListener( new OnCheckedChangeListener() {
    @Override
   public void onCheckedChanged(RadioGroup group, int checkedId) {
   // ... :(
   }
   });
   }
  }

  Any kind of help is much more appreciated. Thanks

  --

         * Shamir Shakir*
          L-2, T-2, Grad. Student, B. Sc., Dept. of CSE,
          Military Institute of Science and Technology (MIST),
          Mirpur Cantonment, Dhaka, Bangladesh.

         www.dewsworld.info| dewswo...@gmail.com

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

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

 _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.0
 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] NullPointerException in WebView [onWindowFocusChanged WebView.java:4177]

2011-10-06 Thread Mark Wyszomierski
Hi,

I'm seeing a bug in webview, same as in this thread:

  
https://groups.google.com/group/android-developers/browse_thread/thread/92d6f063682d2ca4/2c56e6e85c51e507

I've found that someone has posted a workaround, wondering if anyone
has tried it?:

  http://www.zubha-labs.com/workaround-for-null-pointer-excpetion-in-webv
  
http://stackoverflow.com/questions/6525005/npe-at-android-webkit-webview-onwindowfocuschanged

Out of the crash reports I'm seeing in marketplace, 75% of them are
coming from Droids, the rest from other,

I'm hesitating to try the above workaround if it'll break other
clients for which the problem doesn't seem to exist?

Thanks

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


Re: [android-developers] Re: OnCheckedChangeListener not working on RadioGroup

2011-10-06 Thread KK
I got it!. during creating the oncheckedchangelistener(), specifying
new  RadioGroup.OnCheckedChangeListener() instead of
just  OnCheckedChangeListener() fixed the problem.

Adding the sample code for others reference.

RadioGroup rdGroup = (RadioGroup) findViewById(R.id.rdbGp1);
rdGroup.setOnCheckedChangeListener(*new RadioGroup.OnCheckedChangeListener()
* {

@Override
public void onCheckedChanged(RadioGroup group, int checkedId) {
 // TODO Auto-generated method stub

}
});


Thanks to all of you.

--KK

On Thu, Oct 6, 2011 at 8:54 PM, KK dioxide.softw...@gmail.com wrote:

 Would appreciate if someone could explicitly mention what exactly is
 the fix for this error. As, I don't see any mention of compoundbutton
 and the user has correctly used  RadioGroup.OnCheckedChangeListener
 I'm stuck at the same point.

 Thanks

 On Aug 12, 3:58 pm, Mark Murphy mmur...@commonsware.com wrote:
  The error message is self-explanatory. You are trying to use
  a CompoundButton.OnCheckedChangeListener() in a place that takes
  a RadioGroup.OnCheckedChangeListener.
 
 
 
 
 
 
 
 
 
  On Fri, Aug 12, 2011 at 12:58 AM, shamir shakir dewswo...@gmail.com
 wrote:
   Hello,
   I was trying to add the CheckedChangeListner for RadioGroup and it's
 not
   working ... :(
   I'm using eclipse IDE. And I'm getting this error
 
   The method
 setOnCheckedChangeListener(RadioGroup.OnCheckedChangeListener)
   in the type RadioGroup is not applicable for the arguments (new
   CompoundButton.OnCheckedChangeListener(){})
 
   Here's the code
 
   package com.dewsworld.android.practise;
 
   import java.util.Date;
 
   import android.app.Activity;
   import android.content.Intent;
   import android.content.res.Resources.Theme;
   import android.graphics.drawable.GradientDrawable.Orientation;
   import android.os.Bundle;
   import android.os.Process;
   import android.provider.ContactsContract;
   import android.util.Log;
   import android.view.View;
   import android.view.View.OnClickListener;
   import android.widget.AutoCompleteTextView;
   import android.widget.Button;
   import android.widget.CheckBox;
   import android.widget.Checkable;
   import android.widget.CompoundButton;
   import android.widget.CompoundButton.OnCheckedChangeListener;
   import android.widget.EditText;
   import android.widget.Gallery;
   import android.widget.LinearLayout;
   import android.widget.ProgressBar;
   import android.widget.QuickContactBadge;
   import android.widget.RadioGroup;
   import android.widget.TextView;
   import android.widget.Toast;
   import android.widget.ToggleButton;
   import android.widget.SimpleAdapter.ViewBinder;
 
   public class EntryPointActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main) ;
RadioGroup radioGroup = (RadioGroup)this.findViewById(R.id.rg) ;
radioGroup.setOnCheckedChangeListener( new OnCheckedChangeListener() {
 @Override
public void onCheckedChanged(RadioGroup group, int checkedId) {
// ... :(
}
});
}
   }
 
   Any kind of help is much more appreciated. Thanks
 
   --
 
  * Shamir Shakir*
   L-2, T-2, Grad. Student, B. Sc., Dept. of CSE,
   Military Institute of Science and Technology (MIST),
   Mirpur Cantonment, Dhaka, Bangladesh.
 
  www.dewsworld.info| dewswo...@gmail.com
 
--
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-developers@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  Mark Murphy (a Commons Guy)http://commonsware.com|
 http://github.com/commonsguyhttp://commonsware.com/blog|http://twitter.com/commonsguy
 
  _The Busy Coder's Guide to *Advanced* Android Development_ Version 2.0
  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
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

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

Re: [android-developers] how to get current sampling rate and pitch from audio

2011-10-06 Thread TreKing
On Thu, Oct 6, 2011 at 12:35 AM, sourabh sahu souruit...@gmail.com wrote:

 how to get current sampling rate and pitch from audio?


This isn't really Android specific. Did you try a Google search?

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] File Hoasting Issue

2011-10-06 Thread TreKing
On Thu, Oct 6, 2011 at 3:04 AM, rahul verma rahulsgonnar...@gmail.comwrote:

 Friends ,is there any file hosting place where anybody can
 upload files(Particularly images) on a single account .(peferable
 without authentication)


A - You could probably find a ton via a simple search.
B - This has zero to do with Android development.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

[android-developers] Image dpi, does Android care about it?

2011-10-06 Thread dara kok
It's said that dpi is only relevant when printing a document, not when 
viewing the image on screen.

in my case, i have an image created with regular resolution, 70 dpi. when i 
put and display it on a phone with size set to wrap content. it shows a bit 
stretched out and the edge is blurry.

but when i increase resolution of the same image, say 300 dpi, and display 
it in my app again, it shows  a smaller image with crisp edge.

so it seems image resolution has an effect here. but i just can't understand 
how Android interpret the change in resolution.

Can anyone here help me understand this?


Thanks,
dara kok 

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

[android-developers] Re: ListView Row not firing the click event

2011-10-06 Thread dilo.mt
Hi,

There is nothing wrong with the code above. You have said when the
image button clicks, it works.
And you need to make the whole entry clickable. all the buttons by
default clickable.

I think you have image button and text or what ever inside a linear
layout or relative layout.
make sure the container of image button and text (i.e. layout)
setClickable(true) then you will be oki.

On Oct 6, 3:51 pm, NaveenShrivastva kumarnaveen.si...@gmail.com
wrote:
 i have two view one is Expandablelist and other is listview plz
 guideline me how to handle here facing listchildclick event

 On Thu, Oct 6, 2011 at 8:17 PM, dinesh adwani







 mail.dineshadw...@gmail.com wrote:
  If you have added any other view like radio button make it
  setfocasable(false)

  On Oct 6, 2011 3:46 PM, Naveen kumarnaveen.si...@gmail.com wrote:

  i am using custom list , it's
  l1.setAdapter(new EfficientAdapter(this));

                 l1.setFocusable(true);
         l1.setClickable(true);
                 l1.setOnItemClickListener(new OnItemClickListener() {
             @Override
             public void onItemClick(AdapterView? adapter, View
  view,      int pos, long id) {
         Log.i(listview, clicked1);

                                 Toast.makeText(getApplicationContext(),
                                                 Child ItemClicked  + pos
  ,
                                                 Toast.LENGTH_SHORT).show();

             }
         });

  it's not working

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

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

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


Re: [android-developers] Re: Setting Screen Orientation in Service!!

2011-10-06 Thread Sebastian Tomaszewski
Anyone?

On Wed, Oct 5, 2011 at 11:50 AM, Sebastian Tomaszewski 
stomasze101...@gmail.com wrote:

 BTW, where can I find that APP, I can't find it


 On Wed, Oct 5, 2011 at 11:45 AM, Sebastian Tomaszewski 
 stomasze101...@gmail.com wrote:

 Thank you for your reply... I will look on this


 On Tue, Oct 4, 2011 at 11:27 PM, Vishal Keshav bulletcr...@gmail.comwrote:

 you need to install an application called sbj screen

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





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

[android-developers] Re: Two onCreate (and onDestroy) invocations on orientation chage

2011-10-06 Thread Reinaldo Holanda Carlos
//Create spinner and I save the spinner position in a public variable

Spinner s = (Spinner) findViewById(R.id.lstForma);
ArrayAdapterCharSequence adapter = ArrayAdapter.createFromResource(
this, R.array.vetor_forma, android.R.layout.simple_spinner_item);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
s.setAdapter(adapter);
s.setOnItemSelectedListener(
new AdapterView.OnItemSelectedListener() {

public void onItemSelected(AdapterView? parent, View v, int posicao, long id) 
{

strForma = parent.getItemAtPosition(posicao).toString();
strFormaID = posicao; //here i save the spinner position in a public variable

if (strForma.equals(Outra)) {
edtFormaOutros.setEnabled(true);
edtFormaOutros.requestFocus();
}
else {
edtFormaOutros.setEnabled(false);
}

}//Fim do método onItemSelected()

public void onNothingSelected(AdapterView? arg0) {

}//Fim do método onNothingSelected()

}
);//Fim do método setOnItemSelectedListener()

2 step - On method… 
@Override
protected void onSaveInstanceState( Bundle savedInstanceState){
super.onSaveInstanceState(savedInstanceState);

//Save the spinner position in a savedInstaceState variable… se the code below:
savedInstanceState.putInt(strFormaID , strFormaID);
3 step - On method
@Override 
protected void onRestoreInstanceState( Bundle savedInstanceState){
super.onRestoreInstanceState(savedInstanceState); 
//Return the spinner state to the public variable
strFormaID=savedInstanceState.getInt(strFormaID);
//recreate the spinner and set the state with public variable strFormaIF
Spinner s = (Spinner) findViewById(R.id.lstForma);
ArrayAdapterCharSequence adapter = ArrayAdapter.createFromResource(
this, R.array.vetor_forma, android.R.layout.simple_spinner_item);
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
s.setAdapter(adapter);

s.setSelection(strFormaID); //here i set the position 
Easy! now you can rotate as fast as you can, and the state will persist!
Reinaldo Holanda Carlos 
www.flavorsys.com.br

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


[android-developers] Re: Image dpi, does Android care about it?

2011-10-06 Thread Studio LFP
Check out this documentation:

http://developer.android.com/guide/practices/screens_support.html#qualifiers

Different image densities can be stored in different folders so Android can 
pick the best one suited for the device. Android also scales images when 
loaded unless they are stored in the drawable-nodpi folder when used in XML.

You can control the scaling of images if you use the BitmapFactory by using 
BitmapFactory.Options and set isScaled to false.

http://developer.android.com/reference/android/graphics/BitmapFactory.Options.html#inScaled

Steven
Studio LFP
http://www.studio-lfp.com


On Thursday, October 6, 2011 10:52:26 AM UTC-5, dara kok wrote:

 It's said that dpi is only relevant when printing a document, not when 
 viewing the image on screen.

 in my case, i have an image created with regular resolution, 70 dpi. when i 
 put and display it on a phone with size set to wrap content. it shows a bit 
 stretched out and the edge is blurry.

 but when i increase resolution of the same image, say 300 dpi, and display 
 it in my app again, it shows  a smaller image with crisp edge.

 so it seems image resolution has an effect here. but i just can't 
 understand how Android interpret the change in resolution.

 Can anyone here help me understand this?


 Thanks,
 dara kok 


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

[android-developers] [Video Player] Question on Audio Timestamps

2011-10-06 Thread Ganesh
Dear Experts,

I have a question on the Audio-Video synchronization in an audio-
visual file playback on Gingerbread. From the sources, we can observe
that the video sub-system reads the timestamp from the audio sub-
system to take decisions on whether to delay/render/drop a frame. I am
referring to the AwesomePlayer::onVideoEvent method, in which the
TimeSource ts is set to mTimeSource which is nothing but mAudioPlayer
object.

The method used to retrieve the time is getRealTimeUs which basically
returns the timestamp based on the last known packet read from the
Audio Decoder as part of fillBuffer. From a practical perspective,
though this packet might have been read, it may not have been rendered
due to the buffering in the system. Hence, the time returned as part
of this call may not exactly match with the actual audio sample being
rendered.

Hence, my questions are:

1) Why did Android choose to use this as the Audio time reference and
not the underlying HAL or Audio driver time reference?

2) If the rationale is to have an uniform reference across multiple
HAL or low lying implementations, what are the design assumptions made
as part of this design?

3) AudioPlayer::fillBuffer is more of a pull model concept, where it
is scheduled as part of a callback implementation. If this is the
case, what should be the intervals (minimum and maximum allowed) at
which this callback/fillBuffer should be invoked?

Your answers would be helpful for understanding and analyzing the
system better. I look forward to your expert views and comments.

Many thanks in advance.

Best Regards,
Ganesh

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


[android-developers] Enabling/Disabling features in Andorid

2011-10-06 Thread Priyank
I would like to know if these features can be turned on/off (or block)
from an application.. I am trying to build a security related
application.

1. Camera
2. Tethering
3. USB
4. Data Roaming.
5. Installing non-market apps.
6. Mobile access points

I was able to enable/disable Bluetooth and WiFi.

Any help on this would be great..
Thanks,
Priyank

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


Re: [android-developers] Enabling/Disabling features in Andorid

2011-10-06 Thread Kristopher Micinski
On Thu, Oct 6, 2011 at 1:30 PM, Priyank priyankvma...@gmail.com wrote:
 I would like to know if these features can be turned on/off (or block)
 from an application.. I am trying to build a security related
 application.

 1. Camera
 2. Tethering
 3. USB
 4. Data Roaming.
 5. Installing non-market apps.
 6. Mobile access points

 I was able to enable/disable Bluetooth and WiFi.

 Any help on this would be great..
 Thanks,
 Priyank

Priyank,

You can't ``block'' these resources to the rest of the system.

However, you can remove a permission from any given app and block it
from that app.

But I think the answer to your question is no, you can't block access
to other apps from your app, this would be a big security hole indeed
if you could.

Kris

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


[android-developers] activities with different screen orientation OR rotated alert dialog.

2011-10-06 Thread gg9h0st
hi.

I'm dealing with rotating alert dialog which impossible according to
forum search.
so now I'm trying to make a tranculcent activity(rotated) and shows
dialog.

It is ok so far, shows rotated alert dialog.
but the problem is the behind activity(portrait) is rotating landscape
although I set it's screenOrientation=portrait.
and look very ugly because forward activity is transparent.

Why the Portrait ONLY behind activity rotates and Landscape?
(android:screenOrientation=portrait)

A(android:screenOrientation=portrait)
B(android:screenOrientation=landscape)

A startActivity B  causing  AB landscape.

Please give me something to do this.
- A portrait whatever happened.
or
- rotated alert dialog.

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


[android-developers] Re: Enabling/Disabling features in Andorid

2011-10-06 Thread Priyank
Thanks for the reply..
I understand that blocking could be a security issue. But enabling/
disabling should not be a problem.
For example, if the app disables the 'installing non-market apps
feature from my app, the user can go to settings and enable it back.
Something like this would do..
Coz I know that this is possible for bluetooth n wifi.. The
application could be the device admin if needs to..

Thanks,
Priyank



On Oct 6, 2:01 pm, Kristopher Micinski krismicin...@gmail.com wrote:
 On Thu, Oct 6, 2011 at 1:30 PM, Priyank priyankvma...@gmail.com wrote:
  I would like to know if these features can be turned on/off (or block)
  from an application.. I am trying to build a security related
  application.

  1. Camera
  2. Tethering
  3. USB
  4. Data Roaming.
  5. Installing non-market apps.
  6. Mobile access points

  I was able to enable/disable Bluetooth and WiFi.

  Any help on this would be great..
  Thanks,
  Priyank

 Priyank,

 You can't ``block'' these resources to the rest of the system.

 However, you can remove a permission from any given app and block it
 from that app.

 But I think the answer to your question is no, you can't block access
 to other apps from your app, this would be a big security hole indeed
 if you could.

 Kris

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


Re: [android-developers] Re: Enabling/Disabling features in Andorid

2011-10-06 Thread Kristopher Micinski
On Thu, Oct 6, 2011 at 2:17 PM, Priyank priyankvma...@gmail.com wrote:
 Thanks for the reply..
 I understand that blocking could be a security issue. But enabling/
 disabling should not be a problem.
 For example, if the app disables the 'installing non-market apps
 feature from my app, the user can go to settings and enable it back.
 Something like this would do..
 Coz I know that this is possible for bluetooth n wifi.. The
 application could be the device admin if needs to..

 Thanks,
 Priyank


It doesn't matter if you're the device admin or not, there's just
simply no way to turn off the camera, etc.. from all apps, it's just
not possible..

You can block it from certain apps, but only if you rip their guts out
and physically remove the permission from them.

So your app can't, at runtime, remove abilities from other apps, that
relate to hardware resources.

Even if you turn the Bluetooth off, somebody else can turn it back on,
so you're not really blocking it :-/

Kris

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


[android-developers] Garbage collector running every second... Normal?

2011-10-06 Thread Jean-Michel
Hi guys,
my app was all working well, but I have added a few features and now
the emulator runs my PC CPU fairly hot, I had a couple of ANR
exceptions, and the garbage collector is running every second.

I assume this is not really normal.

Unless you thinnk it is (right) could you please tell me how to track
the cullprit?
I am not really sure to start.

Many thanks in advance.
JM

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


[android-developers] Json - 2 Emulators

2011-10-06 Thread Diogo Salaberri
Hello guys, I want to transfer data from a emulator to another emulator,
running on the same machine. But when the SMS was received, the message
isn't like the message was send. Looks like a encode problem.

1) Is other method to do this data transfer ?

2) Over SMS, this is a recognized problem ?

Thanks, bye.

-- 
Atenciosamente;
Diogo Bonoto Salaberri
Bacharel em Ciência da Computação - UFPel
Compasso - Software Developer

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

[android-developers] Re: Garbage collector running every second... Normal?

2011-10-06 Thread Jean-Michel
Forgot to paste my logcat output :
10-06 18:44:21.072: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2294
objects / 83544 bytes in 141ms
10-06 18:44:22.350: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2288
objects / 82976 bytes in 221ms
10-06 18:44:23.360: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 3141
objects / 119880 bytes in 136ms
10-06 18:44:24.320: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2405
objects / 88208 bytes in 155ms
10-06 18:44:25.372: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2298
objects / 83872 bytes in 156ms
10-06 18:44:26.399: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2294
objects / 83368 bytes in 137ms
10-06 18:44:27.930: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2299
objects / 83920 bytes in 153ms
10-06 18:44:28.890: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2294
objects / 83552 bytes in 150ms
10-06 18:44:29.910: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2312
objects / 84432 bytes in 148ms
10-06 18:44:30.960: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2296
objects / 83536 bytes in 160ms

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


Re: [android-developers] Re: Garbage collector running every second... Normal?

2011-10-06 Thread Kristopher Micinski
Lots of crappy allocations and memory leaks?

What type of app do you have?

This is kind of a high level app problem, probably caused by the way
you lay out your memory, or just the fact that you're manipulating
large structures, which might perhaps lead to a redesign of major
parts of the app..

Of the top of my head, images, dom trees, etc... all seem like they
could cause something like this...

Kris

On Thu, Oct 6, 2011 at 2:45 PM, Jean-Michel jeanmichel.caz...@gmail.com wrote:
 Forgot to paste my logcat output :
 10-06 18:44:21.072: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2294
 objects / 83544 bytes in 141ms
 10-06 18:44:22.350: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2288
 objects / 82976 bytes in 221ms
 10-06 18:44:23.360: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 3141
 objects / 119880 bytes in 136ms
 10-06 18:44:24.320: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2405
 objects / 88208 bytes in 155ms
 10-06 18:44:25.372: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2298
 objects / 83872 bytes in 156ms
 10-06 18:44:26.399: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2294
 objects / 83368 bytes in 137ms
 10-06 18:44:27.930: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2299
 objects / 83920 bytes in 153ms
 10-06 18:44:28.890: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2294
 objects / 83552 bytes in 150ms
 10-06 18:44:29.910: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2312
 objects / 84432 bytes in 148ms
 10-06 18:44:30.960: DEBUG/dalvikvm(6417): GC_EXTERNAL_ALLOC freed 2296
 objects / 83536 bytes in 160ms

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

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


[android-developers] Re: Garbage collector running every second... Normal?

2011-10-06 Thread Jean-Michel
It is a navigation app.

Basiaclly I have a service that gets GPS location every second, stores
it in an array, and that array is passed  to the display activity thru
a bundle (using IPC)...

So yes a fairly large amount of data.

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


Re: [android-developers] Garbage collector running every second... Normal?

2011-10-06 Thread Latimerius
Use DDMS's Allocation Tracker.  It's very cool, you can run your app
normally, just click Start Tracking, then Get Allocations and you get
a list of all allocation requests, complete with call stacks so you
even know where the request came from.

On Thu, Oct 6, 2011 at 8:32 PM, Jean-Michel jeanmichel.caz...@gmail.com wrote:
 Hi guys,
 my app was all working well, but I have added a few features and now
 the emulator runs my PC CPU fairly hot, I had a couple of ANR
 exceptions, and the garbage collector is running every second.

 I assume this is not really normal.

 Unless you thinnk it is (right) could you please tell me how to track
 the cullprit?
 I am not really sure to start.

 Many thanks in advance.
 JM

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

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


Re: [android-developers] Email formate validation

2011-10-06 Thread Jim Graham
On Thu, Oct 06, 2011 at 07:06:36PM +0530, Devendran Raju wrote:
 I want to validate of email formate in my app. Anyone having sample
 code for that.

Start with RFC 822.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| Peter da Silva:  No, try rm -rf /
spooky1...@gmail.com| Dave Aronson:As your life flashes before
 Running FreeBSD 7.0  |  your eyes, in the unit of time known as an
ICBM / Hurricane:   |  ohnosecond (alt.sysadmin.recovery)
   30.44406N 86.59909W  |

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


Re: [android-developers] Re: Garbage collector running every second... Normal?

2011-10-06 Thread Kristopher Micinski
Great,

So break it up into smaller amounts of data, and destroy more
frequently?  I mean, actually, you're probably doing hella
allocations, right?

Instead of allocating a new huge array, how about a small array that you reuse?

(I.e., if you're allocating in a loop, or allocating something huge,
do something that's not that.)

Kris

P.s., Latimerius's suggestion is good, take it.

On Thu, Oct 6, 2011 at 3:17 PM, Jean-Michel jeanmichel.caz...@gmail.com wrote:
 It is a navigation app.

 Basiaclly I have a service that gets GPS location every second, stores
 it in an array, and that array is passed  to the display activity thru
 a bundle (using IPC)...

 So yes a fairly large amount of data.

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

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


Re: [android-developers] Email formate validation

2011-10-06 Thread Kostya Vasilyev

RFC 822 has been obsolted by 2822...

But a more relevant issue is that not all email addresses in the real 
world (tm) are RFC compliant (just like email processing, in general).


I'd recommend going with a more forgiving validation than one strictly 
based on RFC BNFs.


Googling for email regular expression returns a lot of possibilities, 
here is a page with 38 of them:


http://regexlib.com/DisplayPatterns.aspx?cattabindex=0categoryId=1 
http://regexlib.com/DisplayPatterns.aspx?cattabindex=0categoryId=1


Or one could just use the parser built into Android:

http://developer.android.com/reference/android/text/util/Rfc822Tokenizer.html

-- Kostya

06.10.2011 23:47, Jim Graham пишет:

On Thu, Oct 06, 2011 at 07:06:36PM +0530, Devendran Raju wrote:

I want to validate of email formate in my app. Anyone having sample
code for that.

Start with RFC 822.

Later,
--jim



--
Kostya Vasilyev

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


Re: [android-developers] Re: Garbage collector running every second... Normal?

2011-10-06 Thread Kostya Vasilyev

Is your service local? Running within the same process?

If so, there shouldn't be any need to use IPC.

And once you get rid of that, you could reuse your data objects by 
allocating them from a pool to take the load off the GC.


-- Kostya

06.10.2011 23:17, Jean-Michel пишет:

It is a navigation app.

Basiaclly I have a service that gets GPS location every second, stores
it in an array, and that array is passed  to the display activity thru
a bundle (using IPC)...

So yes a fairly large amount of data.



--
Kostya Vasilyev

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


Re: [android-developers] Email formate validation

2011-10-06 Thread Jim Graham
On Fri, Oct 07, 2011 at 12:02:03AM +0400, Kostya Vasilyev wrote:
 RFC 822 has been obsolted by 2822...

True, but it's a good start, at least for the basics.  That's why
I said to START with RFC-822.  At least, I think that's how I left
it when I exited out of vim.

 But a more relevant issue is that not all email addresses in the
 real world (tm) are RFC compliant (just like email processing, in
 general).

If they want to be able to communicate reliably with other e-mail
clients, they will be.  If not, screw 'em.  The e-mail related RFCs
clearly define the format of e-mail headers, including addresses.  If you
don't follow the relevant RFCs, don't be surprised if your e-mail doesn't
get to where it's supposed to.

 I'd recommend going with a more forgiving validation than one
 strictly based on RFC BNFs.

While it is true that the RFCs clearly state that they are not a
hard-set standard, they ARE treated as such.  Standards compliance
is necessary for communications.  Even IBM, who once stated in a
telecommunications standards meeting that they'd follow the standard,
IF AND ONLY IF it was THEIR standard, eventually learned this lesson
(they almost went bankrupt as end users worldwide began to move toward
standard-compliant networking exclusively).  I watched it all happen
in the late 80s and early 90s  Sadly for DEC, they never quite
learned that lesson...and they no longer exist.  That may not be
the only thing that brought them down, but it was a part.

If, within your own private network, you want to go non-standard,
that's your choice.  If you choose to go non-standard OUTSIDE of
your own private network, you never know who will and who will not
communicate with you.

Follow standards to be safe.  Ignore them at your own risk.  It's
that simple.

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| This 'telephone' has too many
spooky1...@gmail.com| shortcomings to be seriously considered
 Running FreeBSD 7.0  | as a means of communication.  The device
ICBM / Hurricane:   | is inherently of no value to us.
   30.44406N 86.59909W  | (Western Union internal memo, 1876)

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


Re: [android-developers] Email formate validation

2011-10-06 Thread Latimerius
On Thu, Oct 6, 2011 at 10:25 PM, Jim Graham spooky1...@gmail.com wrote:
 Follow standards to be safe.  Ignore them at your own risk.  It's
 that simple.

While I agree it should be like this I will say Kostya has a point
here. Five years ago I worked on an e-mail parser for an antivirus
package.  As it turned out, one of the most widely used MUAs, Outlook
Express, is so insanely non-standard that there were numerous times
when I asked myself if it was still just incompetence, or if it was
broken deliberately.

However, you totally can't afford not to parse a message if a MUA
does.  You can argue that the message is incomplete, ambiguous and
unparseable until you're blue in the face, if there's  MUA that parses
it *somehow* and shows a potentially infected attachment to the user
you'd better parse it too so that it can be scanned ...

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


Re: [android-developers] Email formate validation

2011-10-06 Thread Jim Graham
On Thu, Oct 06, 2011 at 10:56:16PM +0200, Latimerius wrote:
 On Thu, Oct 6, 2011 at 10:25 PM, Jim Graham spooky1...@gmail.com wrote:
  Follow standards to be safe. ?Ignore them at your own risk. ?It's
  that simple.
 
 While I agree it should be like this I will say Kostya has a point
 here. Five years ago I worked on an e-mail parser for an antivirus
 package.  As it turned out, one of the most widely used MUAs, Outlook
 Express, is so insanely non-standard that there were numerous times
 when I asked myself if it was still just incompetence, or if it was
 broken deliberately.

I strongly suspect it's a combination of a LOT of both

 However, you totally can't afford not to parse a message if a MUA
 does.

When we're talking about headers, that non-standard e-mail might not
ever make it as far as the MUA on the other end, and even if it
does, there is *NO* guarantee that it will be parsed correctly.
You can cry, scream, and stomp your feet  about it all you want,
that won't change the fact that not everyone is going to give a
rat's ass about your non-standard crap.

It may get bounced by either end's MTA.  The fact that some non-standard
POS is out there does NOT require the rest of the world to support it.
Maybe it will, and maybe it won't.  If you follow standards, you're safe.
If you don't, you take your chances on the good will of the rest of the
world.

This reminds me of something an IBM rep told me when I was at my
first job out of college.  I'd run into a non-standard problem
with their POS, AIX (which I'd been stuck with...not my choice
at the time).  He said, Just because the rest of the
world does something a certain way does NOT make it a standard[1].  WE
decided that OUR WAY is better.  We're right, the rest of the world
is wrong, and WHO THE HELL DO YOU THINK YOU ARE QUESTIONING IBM's
WAY OF DOING THINGS?

A little later, their on-site systems engineer stopped by and
asked if I still had a problem I needed help with.  I pointed at
the new NON-IBM BSD system on my desk and said, Nope, not anymore.
He grumbled something and walked off.

About that same time, we (a Fortune 10 company) were pushing really
hard on all of our vendors to follow standards or get the  out
of our network...IBM included.  We didn't care if they used proprietary
protocols internally, but externally, they HAD to follow standards
or get out.  Some (like IBM) had protocol conversion hardware, but
they DID at least meet our demands.  And at that time, we were FAR,
FAR from being the only ones making those demands.  It was more or
less global among end-user companies.  We were also looking various
products for at what was to eventually become 10Base-T.  If any
product failed to state that they absolutely would follow the
standard, once finalized, and would replace their interim stuff
with fully-compliant equipment at that time, they were immediately
told to leave our building and NEVER come back.  Security was
informed that reps from those companies were never to be allowed
back in the building.

Again, internally, do what you want.  Standard, non-standard, whatever.
Externally, if you care about whether or not some site in the path
your data takes just dumps your non-standard crap onto the floor,
you'll follow standards.  If you don't, you take your chances...even
if you're Mickeysoft.

Later,
   --jim

[1] That is technically true...it may not have been a true standard,
but it was, at the very least, a {de facto} standard.

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)MiSTie #49997   Running FreeBSD 7.0 
spooky1...@gmail.com ICBM/Hurricane: 30.44406N 86.59909W

Do not look into waveguide with remaining eye!

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


[android-developers] Several Apps and a widget

2011-10-06 Thread Brad Gies

I'm just wondering if anyone has any best practices advice for having a 
common widget for several apps. I'm working for a company that has several 
apps on the market (and many more to come). They all target the same age 
group, and most users of one app will potentially be interested in the other 
apps. We also have a blog and other content that might interest users of any 
of the apps. 

So what we want to do is to install a widget, either with the first app 
they download (and potentially as a separate widget) that will give the 
users the blog news etc. and an option to download any of the apps. 

What I'm wondering if whether we should just create a separate widget and 
check to see if it's installed and ask the user if they want to download it 
if it's not, or can we create a shared (among the apps) App Widget, and what 
are the best practices for this. 

As always, any help/opinions welcome :) 

Thanks,

Brad



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

Re: [android-developers] Several Apps and a widget

2011-10-06 Thread Kostya Vasilyev
Well, an app widget still needs to be installed as part of *some* package
(Market application from the user's view), so ...

... unless you have one mandatory (primary, hub type) application, I'd say,
package the widget as a separate application, have all the non-widget ones
check for it and prompt the user to install it ...

... and probably have the widget do the opposite - check for the other apps
and tell the user about them.
07.10.2011 1:34 пользователь Brad Gies rbg...@gmail.com написал:

 I'm just wondering if anyone has any best practices advice for having a
 common widget for several apps. I'm working for a company that has several

 apps on the market (and many more to come). They all target the same age
 group, and most users of one app will potentially be interested in the
other
 apps. We also have a blog and other content that might interest users of
any
 of the apps.

 So what we want to do is to install a widget, either with the first
app
 they download (and potentially as a separate widget) that will give the
 users the blog news etc. and an option to download any of the apps.

 What I'm wondering if whether we should just create a separate widget and
 check to see if it's installed and ask the user if they want to download
it
 if it's not, or can we create a shared (among the apps) App Widget, and
what
 are the best practices for this.

 As always, any help/opinions welcome :)

 Thanks,

 Brad



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

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

Re: [android-developers] Re: Home Button

2011-10-06 Thread Sami Pardhan
IcedNet, how did you guys implement the plastic shield to keep fingers away
from the System Bar?

On Thu, Oct 6, 2011 at 6:39 AM, IcedNet d...@icednet.info wrote:

 They won't view it as a bug, but yes, I suppose in your case, you
 could see it as such.
 It's only a bug if the behavior is not what they desire it to be.
 We have used a plastic shield to keep fingers away from the System Bar
 and disabled the action bar in our kiosk apps, perhaps you can discuss
 limitations of the platform with your client
 -- Apple won't let you mess with their Big Button, either  ;)

 On Oct 6, 9:36 am, Ubiracy ubiracy@gmail.com wrote:
  I have a native app and i need this :( my tablet only do this ( open
  application on boot and don't close ), but when i use  the progressdialog
  this lock  method  doesn't work.. bugs?!

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


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

Re: [android-developers] Re: EditText and the unwanted Quick Search Box

2011-10-06 Thread Eric Carman
Hello Alvaro,

I'm glad you got this worked out. This whole thing with the Edit Text is 
weird in so many ways. Like you I ended up getting around it after a lot of 
trial and error.

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

Re: [android-developers] Re: Setting Screen Orientation in Service!!

2011-10-06 Thread Kristopher Micinski
I don't think anyone has any advice because this is just a bad idea...

A service shouldn't directly touch the UI, it just doesn't make sense...

The point of a service is to *not* touch the UI...

Somebody already told you this, yet you brushed off their comment and
asked again.

If you want to change the UI, and need to do it from a service, send a
message to some UI code that tells it to make the necessary changes.

Kris

On Thu, Oct 6, 2011 at 12:17 PM, Sebastian Tomaszewski
stomasze101...@gmail.com wrote:
 Anyone?

 On Wed, Oct 5, 2011 at 11:50 AM, Sebastian Tomaszewski
 stomasze101...@gmail.com wrote:

 BTW, where can I find that APP, I can't find it

 On Wed, Oct 5, 2011 at 11:45 AM, Sebastian Tomaszewski
 stomasze101...@gmail.com wrote:

 Thank you for your reply... I will look on this

 On Tue, Oct 4, 2011 at 11:27 PM, Vishal Keshav bulletcr...@gmail.com
 wrote:

 you need to install an application called sbj screen

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


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

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


Re: [android-developers] Email formate validation

2011-10-06 Thread Bob Kerns
Re: But a more relevant issue is that not all email addresses in the real 

world (tm) are RFC compliant (just like email processing, in general).

I'd recommend going with a more forgiving validation than one strictly 
based on RFC BNFs.

As someone long involved in this, going back to RFC733 (predecessor to 
RFC822), I would be very cautious about offering that advice.

Jon Postel famously said *Be liberal in what you accept, and conservative 
in what you send.* [RFC 760]. However, while this has a good deal of 
short-term pragmatics behind it, long experience has shown it not to be a 
good long-term strategy.

Notably, this was applied to the HTML standard, with disastrous results we 
are still recovering from. People send all kinds of invalid craps, and 
browsers and the like are expected to deal with them, and they cannot ever 
manage to all deal with them the same way. As a strategy, this can turn into 
a race for the bottom.

A lot would depend exactly why you're validating. If you're sending it on to 
somewhere else, I VIGOROUSLY urge you to do fully strict validation. This 
will help to prevent mishandling further down the line.

In fact, I find it hard to make any case at all for loose validation. 
There's valid, and invalid. Postel's law applies more to parsing, than 
validation.

But even then, you acceptance of invalid input risks misinterpretation, and 
you have to weight the risks vs benefits. Not such a problem for dates,say, 
but a huge problem if you deliver a message to the wrong recipient.

In the Real World, people do NOT have invalid email addresses. There once 
was a time when that was common -- but now, you REALLY,REALLY do NOT WANT an 
invalid address, because you will not even be able to enter your email 
address as an email address in many, many contexts.


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

[android-developers] Re: Email formate validation

2011-10-06 Thread Bob Kerns
I'm sorry, but this does not even come close to matching more than a tiny 
subset.

On Thursday, October 6, 2011 7:12:06 AM UTC-7, Chris wrote:

 This regex pattern should match email addresses:


 [A-Za-z0-9_]+([-+.'][A-Za-z0-9_]+)*@[A-Za-z0-9_]+([-.][A-Za-z0-9_]+)*\.[A-Za-z0-9_]+([-.][A-Za-z0-9_]+)*


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

Re: [android-developers] Re: trrying to switch between multiple activitiies

2011-10-06 Thread jimmy kay
No, I have notbut I will surely try now something like that..Can you
please refer me some reading material where I can study about it


Thanks
Jim

On Fri, Sep 30, 2011 at 4:45 PM, Joao Braga jp.am.br...@gmail.com wrote:

 Have you tried to build a singleton that carries the data for every
 activity - like a context holder ?

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


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

[android-developers] Why does Android use float instead of integer as the coordinate system?

2011-10-06 Thread byhesed
Why does Android use float instead of integer as the coordinate
system?

Isn't it too slow if using float variables instead of integer
variables?

Anybody know why Android use float variables instead of integer
variables?

Thank you 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
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Why does Android use float instead of integer as the coordinate system?

2011-10-06 Thread Jim Graham
On Thu, Oct 06, 2011 at 07:17:09PM -0700, byhesed wrote:
 Why does Android use float instead of integer as the coordinate
 system?

Obviously, because latitude and longitude (and other coordinate systems)
are not always integers.

For example, my location (well, close enough):  30.44406N 86.59909W

Do those look like integers to you?  I certainly hope not

Later,
   --jim

-- 
THE SCORE:  ME:  2  CANCER:  0
73 DE N5IAL (/4)| Peter da Silva:  No, try rm -rf /
spooky1...@gmail.com| Dave Aronson:As your life flashes before
 Running FreeBSD 7.0  |  your eyes, in the unit of time known as an
ICBM / Hurricane:   |  ohnosecond (alt.sysadmin.recovery)
   30.44406N 86.59909W  |

Android Apps Listing at http://www.jstrack.org/barcodes.html

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


Re: [android-developers] Why does Android use float instead of integer as the coordinate system?

2011-10-06 Thread Dianne Hackborn
Android primarily uses ints.

On Thu, Oct 6, 2011 at 10:17 PM, byhesed ideemons...@gmail.com wrote:

 Why does Android use float instead of integer as the coordinate
 system?

 Isn't it too slow if using float variables instead of integer
 variables?

 Anybody know why Android use float variables instead of integer
 variables?

 Thank you 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
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




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

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

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

Re: [android-developers] Re: Home Button

2011-10-06 Thread Dianne Hackborn
This will be fixed in ICS.

On Thu, Oct 6, 2011 at 11:12 AM, TreKing treking...@gmail.com wrote:

 On Thu, Oct 6, 2011 at 8:36 AM, Ubiracy ubiracy@gmail.com wrote:

 I have a native app and i need this :( my tablet only do this ( open
 application on boot and don't close ), but when i use  the progressdialog
 this lock  method  doesn't work.. bugs?!


  The bug is probably allowing you to hack / exploit the keyguard setting to
 prevent the Home key from doing its thing.


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices


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




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

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

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

Re: [android-developers] Re: Home Button

2011-10-06 Thread Ubiracy
I try this, but doesnt work. Im coding in the 2.2 version. The home button is 
disabled, but when I use progressdialog it enables the *home* button. I 
tried in many ways, I could not intercept the button in this case. =/.  
I'll try to modify the keyboard layout by disabling home. Any ideas?

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

Re: [android-developers] Re: Home Button

2011-10-06 Thread Kristopher Micinski
Uff...

You can't do it, you just can't, and if you're designing your stuff so
that you should, you're doing it wrong :-(...

Try another design approach?

Kris

On Thu, Oct 6, 2011 at 10:48 PM, Ubiracy ubiracy@gmail.com wrote:
 I try this, but doesnt work. Im coding in the 2.2 version. The home button
 is disabled, but when I use progressdialog it enables the home button. I
 tried in many ways, I could not intercept the button in this case. =/.
 I'll try to modify the keyboard layout by disabling home. Any ideas?

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

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


Re: [android-developers] Re: Home Button

2011-10-06 Thread TreKing
On Thu, Oct 6, 2011 at 9:48 PM, Ubiracy ubiracy@gmail.com wrote:

 I tried in many ways, I could not intercept the button in this case. =/.


Good. You're not supposed to be able to do this. What you currently doing is
an exploit which Dianne just confirmed will be fixed soon, so your app is
going to break in the future regardless.

Why are you trying to do this?

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: Home Button

2011-10-06 Thread Ubiracy Santos
Because this application will runing in taxi cars on tablets ( Native mode ) 
=/

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

Re: [android-developers] Re: Home Button

2011-10-06 Thread TreKing
On Thu, Oct 6, 2011 at 10:06 PM, Ubiracy Santos ubiracy@gmail.comwrote:

 Because this application will runing in taxi cars on tablets ( Native mode
 ) =/


I don't know what Native mode is but maybe you can make your own Home
Screen?

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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

Re: [android-developers] Re: Home Button

2011-10-06 Thread Ubiracy Santos
the users cannot exit. the application in other words will be a embedded 
software

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

  1   2   >