[android-developers] Pipe separator | in sms

2010-02-01 Thread Dmitry Zelenetskiy
I am receive sms from server with | delimeter, but android make it
unreadable. Can I make something with this?
Thanks.

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


[android-developers] Re: changing the background color of an activity

2010-02-01 Thread guich
Already found the answer:

 android:theme=@android:style/Theme.Black.NoTitleBar 

Works great, thanks!

guich

-- 
You received this message because you are subscribed to the Google
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 sqlite unable open database problem

2010-02-01 Thread Per Sandström
you could simplify your code by using openOrCreateDatabase
(DATABASE_NAME, Context.MODE_PRIVATE, null); instead. :) Maybe then
the problem will resolve itself.

Cheers,
Per Sandström

On Jan 29, 5:52 pm, Josema jose.maria.estr...@gmail.com wrote:
 Hi,

 im doing debug with my mobile. My code works in the past, but now is not
 working and i dont know why i cant create or open an existing database.

 Here is my 
 code:http://stackoverflow.com/questions/2163100/creating-database-in-android

 Could you help me about how to solve this problem?

 I read that there is an option from the command line:

 emulator -wipe-data but since im not using an emulator to debug the
 application (im using my own android mobile), im lost about how to solve the
 problem.

 Thanks in advance.
 Best Regards.
 Josema.

-- 
You received this message because you are subscribed to the Google
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 Programming Class

2010-02-01 Thread ko5tik


On Feb 1, 12:23 am, Kevin Duffey andjar...@gmail.com wrote:

 Now.. on that note, slightly off topic.. I hope Android (and google) sees an
 opportunity for potential Android devices that would allow someone like one
 of us to write some software that prevents the camera/video camera/audio
 recorder to work at set times.. so that they can't go film video or take
 pictures of kids in the bathroom and get expelled!! I have a difficult time
 finding any phone that doesn't have camera/video capabilities now. But
 anyway...

I remember my school days - we had PDP 11 with RSX, and it took
(usually) about
15 seconds after class begin for the first privileged user to emerge
and to lock teacher
out of system till the end of class - I do not think any
countermeasures on phone would
last significantly longer.
Go the pirate party way - just flood a room in question with near
infrared - LEDs are cheap
and cameras on phones are crappy enough to be fooled easily.

regards,

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


[android-developers] listing /data/data device's contents

2010-02-01 Thread guich
Hi,

I'm trying to get a list of folders in /data/data that starts with
totalcross. Is this possible? All i get is permission denied.

All these folders are signed with the same key and have the same user
id.

thanks

   guich

-- 
You received this message because you are subscribed to the Google
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: Particular Tag Parsing

2010-02-01 Thread Sasikumar.S
Thank U for responding previous Questions.

One more thing Guys.

Now i'm getting one more doubt in that.

I need to parse the below XML file:

item
22item/2
33item/3
11item/1
44item/4
/item

In that i'm fetching data from 1, 2,3  4.
But i'm getting value as 2, 3, 1  4 in order wise.

How to get in my wish order?.

Please give some idea guy?..


On Mon, Feb 1, 2010 at 10:29 AM, Frank Weiss fewe...@gmail.com wrote:

 SAXParser does NOT parse line by line. That's incorrect. What you need is
 something like this:

  @Override
  public void characters(char[] ch, int offset, int count) {
   sb.append(ch, offset, count);
  }
 @Override
  public void endElement(String namespaceUri, String localName, String
 qName) {
   if (localName.equals(title))
title = sb.toString();




 --
 You received this message because you are subscribed to the Google
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




-- 
Thanks  Regards
Sasikumar.S

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

2010-02-01 Thread Ingar Arntzen
ListView ...
   android:drawSelectorOnTop=false
   ...
/

Does the trick, but that removes the selector completely, not only the
first default selection.

On Jan 29, 11:44 am, Ingar Arntzen ingar.arnt...@gmail.com wrote:
 Hi.

 SETUP : I'm using ListActivity and an ArrayAdapter to show alistof
 items - straight forward.

 OBSERVATION : When the application starts thelistshows up with the
 first entry lit up in bright orange. At this point the ListView is not
 in Touch Mode, so I'm thinking that this represents the default
 selection of the ListView.
 ( If I enter Touch Mode the selection goes away as expected, and if I
 exit touchmode again the selection is back on)

 PROBLEM : However, I would like to see the listview (in non-touch-
 mode) without this default selection. My first intuition was to try
 to set the selection to some magic value setSelection(NO_SELECTION).
 Yet, the documentation of setSelection() tells me that parameters less
 than 0 will be replaced by 0. Also - playing with the setSelection()
 method does not seem to have any effect (even though I'm in non-touch-
 mode). This puzzles me.

 QUESTION : So, this seems like an easy thing, still after having spent
 some time researching selection/focus/touchmode I'm still confused
 about how to approach this.

 - What am I missing here?
 - Alternatively, is my desire not to show the default selection
 inherently unwise for some reason?

-- 
You received this message because you are subscribed to the Google
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 finding a contact when ID is known

2010-02-01 Thread andrew android
Could you help give some example? Some Example how you use it?
Thanks!

On Jan 31, 8:34 pm, Dmitri Plotnikov ()  dplotni...@google.com
wrote:
 You don't need to create it.  It is column on the Contacts table. There is
 also a conenience method on Contacts that will retrieve it for you.

 On Jan 31, 2010 3:43 PM, andrew android andygoldm...@gmail.com wrote:

 Please tell me, though, how do you create a lookup key?  Can you give
 or point me to a good example?

 On Jan 31, 12:47 pm, Dmitri Plotnikov ()  dplotni...@google.com
 wrote:



  Contact IDs are volatile, they often change as a result of aggregation.
  You
  need to store the l...
  On Jan 31, 2010 9:42 AM, andrew android andygoldm...@gmail.com wrote:

  I am having a proble...
  android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsubs 
  cr...@googlegroups.comandroid-developers%2Bunsubs

 cr...@googlegroups.com For more options, visit this group athttp://

 groups.google.com/group/android-developers?hl=en

 --

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

-- 
You received this message because you are subscribed to the Google
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] Service - Need Info

2010-02-01 Thread android beginner
Hi,

I created remote service and wanted to get the data from MyActivity's
onCreate().

Below bindService returns true but ServiceConnection() is not called.
Hence testService remains null and I couldn't get the data I want from
onCreate.

Any Suggestion?

public class MyActivity extends Activity
{
private ITestInterface testService = null;
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
 bindService(new Intent(ITestInterface.class.getName()),
serConn, Context.BIND_AUTO_CREATE);
 }
 private ServiceConnection serConn = new ServiceConnection()
{
@Override
public void onServiceConnected(ComponentName name, IBinder service)
{
testService = ITestInterface.Stub.asInterface(service);
}

@Override
public void onServiceDisconnected(ComponentName name)
{
 }
};

}

-- 
You received this message because you are subscribed to the Google
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] listing /data/data device's contents

2010-02-01 Thread Mark Murphy
 I'm trying to get a list of folders in /data/data that starts with
 totalcross. Is this possible? All i get is permission denied.

Correct. You do not have the rights on a device to read the directory
contents of /data/data.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.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] Re: Integrate ImageButton with ListActivity failed - List no longer selectable.

2010-02-01 Thread qmwestview
Hi Chander,

thanks for your help.

I have added
android:focusable=false
to the layout xml file but the result appears to be the same.

I thought this type of listActivity working with buttons etc is
supposed to be straightforward. But I failed to find a working example
so far. I am stucked here.


On Jan 31, 8:22 am, Chander Pechetty cspeche...@gmail.com wrote:
 make sure your list item does not contains focusable children (like
 buttons, imageviews)
 setting android:focusable=false usually works for buttons and so
 on...

 On Jan 30, 2:42 pm, qmwestview qmwestv...@googlemail.com wrote:

  Hi,

  I have a workingListActivityclass. Each of the list item consists of
  an ImageView and a TextView.

  However, when I try to replace the ImageView withImageButton, The
  list becomes unselectable. The onListItemClick or any other function
  no longer get called when press a list item (Although the track ball
  can still focus a list item, but nothing more can be done).

  I have searched the forum and also the internet and failed to find any
  such working example, apart from one guy reporting a similar problem
  but with no answer.

  The following is my code:

  1.      The list_item.xml:

  ?xml version=1.0 encoding=utf-8?
  RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
  android
      android:layout_width=fill_parent
      android:layout_height=?android:attr/listPreferredItemHeight

      ImageButton
          android:id=@+id/refresh

          android:layout_width=wrap_content
          android:layout_height=fill_parent
          android:layout_alignParentTop=true
          android:layout_alignParentBottom=true
          android:src=@drawable/refresh /
      TextView
          android:id=@+id/title
          android:layout_width=fill_parent
          android:layout_height=fill_parent
                  android:layout_toRightOf=@id/refresh
          android:layout_alignParentBottom=true
          android:layout_alignParentRight=true
          android:singleLine=true/
  /RelativeLayout

  2.      the MainListActivityclass:

  import android.app.Dialog;
  import android.app.ListActivity;
  import android.content.Context;
  import android.os.Bundle;
  import android.util.Log;
  import android.view.KeyEvent;
  import android.view.LayoutInflater;
  import android.view.MenuItem;
  import android.view.View;
  import android.view.ViewGroup;
  import android.widget.BaseAdapter;
  import android.widget.Button;
  import android.widget.ImageButton;
  import android.widget.ImageView;
  import android.widget.ListView;
  import android.widget.TextView;

  public class TestListActivity extendsListActivityimplements
  Constants {

          @Override
          public void onCreate(Bundle savedInstanceState) {
                  super.onCreate(savedInstanceState);
                  setListAdapter(new EfficientAdapter(this));
          }

          @Override
          protected void onListItemClick(ListView l, View v, int index, long
  id) {
                  Log.i(, onListitemClick);
          }

          public boolean onContextItemSelected(MenuItem item) {
                  Log.i(, onContextItemSelected);
                  return false;
          }

          private class EfficientAdapter extends BaseAdapter implements
  Constants {
                  private LayoutInflater layoutInflater;

                  Context ctx;
                  public EfficientAdapter(Context context) {
                          // Cache the LayoutInflate to avoid asking for a 
  new one each time.
                          layoutInflater = LayoutInflater.from(context);
                          ctx = context;
                  }

                  @Override
                  public int getCount() {
                          Log.i(, getCount);
                          return SIZE;
                  }

                  @Override
                  public Object getItem(int position) {
                          Log.i(, getItem);
                          return TBD;         }

                  @Override
                  public long getItemId(int positin) {
                          Log.i(, getItemId);
                          return positin;
                  }

                  public void update(int position) {
                          notifyDataSetChanged(); // triggers the view data 
  to be refreshed!
                  }

                  /**
                   * Make a view to hold each list item
                   */
                  @Override
                  public View getView(int position, View convertView, 
  ViewGroup
  parent) {
                          Log.i(, getView);
                          ViewHolder holder;
                          if (convertView == null) {
                                  convertView = 
  this.layoutInflater.inflate(R.layout.list_item,
  parent, false);

                                  holder = new ViewHolder();
                                  holder.title = (TextView) 

Re: [android-developers] Service - Need Info

2010-02-01 Thread Mark Murphy

 Hi,

 I created remote service and wanted to get the data from MyActivity's
 onCreate().

 Below bindService returns true but ServiceConnection() is not called.
 Hence testService remains null and I couldn't get the data I want from
 onCreate.

 Any Suggestion?

Most likely, there is an Intent resolution problem. Look at LogCat at the
warning level and see if you get any messages from Android saying that it
could not resolve some Intent. You can also confirm that your service has
an intent-filter with an action that is equivalent to
ITestInterface.class.getName().

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.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] Re: GLSurfaceView problem/querry

2010-02-01 Thread satish bhoyar
Hi please tell me some thing about this problem...

thanks


On Fri, Jan 29, 2010 at 6:49 PM, satish bhoyar getsatonl...@gmail.comwrote:

 Hi all,

 I am developing the app where I want Text on GLSurfaceView. So I am using
 TextView on GLSurfaceView. I m able to do that properly.

 Now problem is  I want to translate both this views (TextView 
 GLSufaceView) to the position where i scroll. for this I am using the
 ViewGroup  onTouch method of that i am doing it, but both doesnt seems
 moving together.TextView is faster than that of GLSurfaceView.

 I think the co-ordinate system of the ViewGroup  that of the GLSurfaceView
 are different so it is calculation mistake but I am not sure.

 please help
 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] Re: Integrate ImageButton with ListActivity failed - List no longer selectable.

2010-02-01 Thread qmwestview
Update:

I found a way to intercept the key press, by just adding the following
code into getView(final int position, View convertView, ViewGroup
parent) method:

  convertView.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
  Log.i( onClick :, (new Integer(position)).toString
());
}
  });

The problem with this approach is when pressing a list item, the list
item no longer get highlighted.

Anyone knows how to manually highlight a list item (suppose we know
its position)? I have tried v.setSelected(true) but the effect appears
to be not good.

-- 
You received this message because you are subscribed to the Google
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] Emulating a Droid

2010-02-01 Thread Neilz
Please could anyone tell how to best set up an emulation of the
Motorola Droid within Eclipse?

-- 
You received this message because you are subscribed to the Google
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] EditText Handling while Orientation change

2010-02-01 Thread Muthu Kumar K.
Hi All,

I have EditText in my application. While entering the text i am
changing the portrait mode to landscape mode. Not the entered text is
resetting. Can any one tell me how do i handle this? Like if i change
the orientation what ever entered text should be remain as it is.

Thanks in Advance,
Muthu Kumar K.

-- 
You received this message because you are subscribed to the Google
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] isOverLink() function in android-webkit

2010-02-01 Thread Vivek Satpute
Hi All,

When we do single click on webpage, webkit checks whether click is
occurred on URL/link or not ? To check this it uses isOverLink()
function. Can anyone please explain me, does this function consider
(x,y) co-ordinates of click to take decision ? I tried to look in code
but did not get it properly. How does isOverLink() function work ?


Any suggestions will be appreciated..

Thanks in advance,
Vivek Satpute.

-- 
You received this message because you are subscribed to the Google
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] EditText Handling while Orientation change

2010-02-01 Thread Mark Murphy
 I have EditText in my application. While entering the text i am
 changing the portrait mode to landscape mode. Not the entered text is
 resetting. Can any one tell me how do i handle this? Like if i change
 the orientation what ever entered text should be remain as it is.

Android will automatically handle the contents of EditText on an
orientation change if you use all of the defaults and have all
uniquely-ID'd widgets. Hence, if it is not working for you, something is
incorrect inside of your app, such as:

-- You overrode onSaveInstanceState() and did not chain to the superclass

-- The EditText shares an android:id with some other widget in the layout

You are welcome to manually maintain the state of the EditText yourself
via onSaveInstanceState()/onRestoreInstanceState(), if the built-in
support does not meet your needs.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.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] android 2.0 images

2010-02-01 Thread Shrenik Vikam
can we use the images come at diretory  $android_home\platforms
\android-2.0\images to install on adp  device?

-- 
You received this message because you are subscribed to the Google
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: Integrate ImageButton with ListActivity failed - List no longer selectable.

2010-02-01 Thread qmwestview
Adding android:focusable=false does work with CheckBox (tested: just
replace ImageButton with CheckBox in layout xml file).

On Feb 1, 11:12 am, qmwestview qmwestv...@googlemail.com wrote:
 Hi Chander,

 thanks for your help.

 I have added
     android:focusable=false
 to the layout xml file but the result appears to be the same.

 I thought this type oflistActivityworking with buttons etc is
 supposed to be straightforward. But I failed to find a working example
 so far. I am stucked here.

 On Jan 31, 8:22 am, Chander Pechetty cspeche...@gmail.com wrote:

  make sure your list item does not contains focusable children (like
  buttons, imageviews)
  setting android:focusable=false usually works for buttons and so
  on...

  On Jan 30, 2:42 pm, qmwestview qmwestv...@googlemail.com wrote:

   Hi,

   I have a workingListActivityclass. Each of the list item consists of
   an ImageView and a TextView.

   However, when I try to replace the ImageView withImageButton, The
   list becomes unselectable. The onListItemClick or any other function
   no longer get called when press a list item (Although the track ball
   can still focus a list item, but nothing more can be done).

   I have searched the forum and also the internet and failed to find any
   such working example, apart from one guy reporting a similar problem
   but with no answer.

   The following is my code:

   1.      The list_item.xml:

   ?xml version=1.0 encoding=utf-8?
   RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
   android
       android:layout_width=fill_parent
       android:layout_height=?android:attr/listPreferredItemHeight

       ImageButton
           android:id=@+id/refresh

           android:layout_width=wrap_content
           android:layout_height=fill_parent
           android:layout_alignParentTop=true
           android:layout_alignParentBottom=true
           android:src=@drawable/refresh /
       TextView
           android:id=@+id/title
           android:layout_width=fill_parent
           android:layout_height=fill_parent
                   android:layout_toRightOf=@id/refresh
           android:layout_alignParentBottom=true
           android:layout_alignParentRight=true
           android:singleLine=true/
   /RelativeLayout

   2.      the MainListActivityclass:

   import android.app.Dialog;
   import android.app.ListActivity;
   import android.content.Context;
   import android.os.Bundle;
   import android.util.Log;
   import android.view.KeyEvent;
   import android.view.LayoutInflater;
   import android.view.MenuItem;
   import android.view.View;
   import android.view.ViewGroup;
   import android.widget.BaseAdapter;
   import android.widget.Button;
   import android.widget.ImageButton;
   import android.widget.ImageView;
   import android.widget.ListView;
   import android.widget.TextView;

   public class TestListActivity extendsListActivityimplements
   Constants {

           @Override
           public void onCreate(Bundle savedInstanceState) {
                   super.onCreate(savedInstanceState);
                   setListAdapter(new EfficientAdapter(this));
           }

           @Override
           protected void onListItemClick(ListView l, View v, int index, long
   id) {
                   Log.i(, onListitemClick);
           }

           public boolean onContextItemSelected(MenuItem item) {
                   Log.i(, onContextItemSelected);
                   return false;
           }

           private class EfficientAdapter extends BaseAdapter implements
   Constants {
                   private LayoutInflater layoutInflater;

                   Context ctx;
                   public EfficientAdapter(Context context) {
                           // Cache the LayoutInflate to avoid asking for a 
   new one each time.
                           layoutInflater = LayoutInflater.from(context);
                           ctx = context;
                   }

                   @Override
                   public int getCount() {
                           Log.i(, getCount);
                           return SIZE;
                   }

                   @Override
                   public Object getItem(int position) {
                           Log.i(, getItem);
                           return TBD;         }

                   @Override
                   public long getItemId(int positin) {
                           Log.i(, getItemId);
                           return positin;
                   }

                   public void update(int position) {
                           notifyDataSetChanged(); // triggers the view data 
   to be refreshed!
                   }

                   /**
                    * Make a view to hold each list item
                    */
                   @Override
                   public View getView(int position, View convertView, 
   ViewGroup
   parent) {
                           Log.i(, getView);
                           

[android-developers] Re: Integrate ImageButton with ListActivity failed - List no longer selectable.

2010-02-01 Thread qmwestview
Tried again and this time successful. Instead of doing it in xml file,
do it in code does the trick:

holder.imageButton.setFocusable(false);

Problem solved!

-- 
You received this message because you are subscribed to the Google
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: OpenGL poor performance with textures?

2010-02-01 Thread Mario Zechner
i'm working a prototype game that has a very similar setup to yours. I
have a 2048x2048 big background texture which i load in 32-bit argb
mode (i have yet to discover what format to use for 16-bit rgb 565,
png doesn't support it, didn't care yet though). I split up this big
thing into 256x256 pixel chunks for visibility culling so i only draw
those chunks on screen. Additionally i have a second layer of 256x256
chunks in 16-bit rgba  for which i also do culling. i have up to
1000 sprites on the screen, those are 12by12 pixels big. The sprites
each consist of 2 triangles. All sprite triangles i write into a
dynamic VBO each frame which is extremely fast to my surprise (write
to temporary float array then pass that to the VBO). Everything is
rendered in ortho mode using pixel perfect projection except for the
sprites which use a lower mipmap level due to me still not sure on how
big they should get. The two layers of background use linear filtering
for both min and mag.

On my droid i get between 35-45fps, rendering and simulating the scene
(and the simulation of the sprites takes quiet some time as it does
pixel perfect collisions on a collision map of 2048x2048 bytes). On my
hero i can get 60fps with the sprites turned of. The MSM7200 seems to
have an optimization for axis aligned triangles in there that makes it
blazingly fast. The droid gets around 50fps if i turn the sprites off.
Note that i use 32-bit argb for the first layer which waste a lot of
bandwidth and memory.

The problem on the droid is sampling the texture. The portions of your
quad that are not visible will of course not fetch any texels, try the
following to see that effect:

- let the quad fill the whole screen
- the the quad fill 3/4 of the screen
- let the quad fill 1/2 of the screen

you only have 4 vertices to be transformed so you are clearly not
transform bound. However, as you fill less and less space on the
screen your framerate increases indicating that you are fillbound. For
an ortho setup mipmapping won't help you as all texels will be fetched
from the original size level 0. Linear filtering will also scrap some
fps as you sample 4 textels for each pixel on screen. Nearest
filtering might be the best option and will look as good as mipmapping
(which is essentially linear filtering in your case) or linear filter
as your quad is pixel perfect and screen aligned. Another way to
reduce the texel fetch pressure is to use lower bit-depth textures, 16-
bit argb or rgb565 as less bytes have to go over the bus (if they
do). There is simply no way on the droid to get around the fill rate
issue. Switching to compatibility density mode which is around 540x320
pixels (from the top of my head this figure is for sure not correct)
will get you another 2-3fps, but compared to the native screen res it
looks worse and is not worth the extra fps. From this it is clear that
the problem is probably not related to actually filling the
framebuffer but only to fetching texels.

To summarize:
- use mipmapping for scaled down quads, nearest filtering for pixel
perfect screen aligned quads
- use 16-bit argb/rgb textures instead of 32-bit argb textures

That's all you can do. The PowerVR in the droid is a beast and will
happily transform as many vertices as you throw at it, i have yet to
encounter an issue with that rendering stage. Fetching texels is
expensive though so avoid it at all cost :)

On 1 Feb., 07:22, Robert Green rbgrn@gmail.com wrote:
 The texture memory copy / fill bottleneck has been fairly consistent
 across all chips so far.  It's more pronounced on the MSM7200 chips
 but is clearly still there.  The good news is that while you might not
 be able to get your upper FPS that you were hoping for, you probably
 will be able to get a fairly good and stable framerate with a far more
 complex scene.  I was surprised at how no matter what I did, I
 couldn't get my environment rendering over 40FPS with low res
 textures, mipmap/nearest and no special effects, yet with a full scene
 of monsters, HUD, multitextured environment, weapons, explosions,
 fire, etc running with large textures with trilinear filtering on, I
 got 30FPS.  Crazy, huh?  I think there is a LOT going on in terms of
 optimizations and I wouldn't necessarily expect slowdown to be linear.

 On Jan 31, 10:14 pm, Federico Carnales fedecarna...@gmail.com wrote:

  Hi Lance,

  I doubt that's going to change much, I'm not doing any complex
  geometry or anything. Just to make sure, I removed the glClear,
  glActiveTexture, and glBindTexture calls from the draw method, and the
  performance is exactly the same.

  The performance hit seems to come from using heavy textures, not from
  excessive GL calls or state changes.

  Thanks,

  Federico

  On Feb 1, 12:52 am, Lance Nanek lna...@gmail.com wrote:

   If the final is only a non-transparent background and a couple
   sprites, you may actually get it to perform slightly better than the
   benchmark, not worse. The 

[android-developers] Re: listing /data/data device's contents

2010-02-01 Thread guich
Well, i'll add a RFE so that it could list at least the folders with
the same user id.

guich

-- 
You received this message because you are subscribed to the Google
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: Performance issue: Dalvik VM is 20x slower than most modern Java VMs

2010-02-01 Thread guich
 Just following up to my initial post, I have implemented the above
 look in native code using Android's SDK.  The native code performs in
 a few milliseconds as hoped.  This goes to confirm that for compute
 intensive tasks, Dalvik can be hundreds of times slower than native.

Hi,

Can you provide me with your Java test code? I just finished porting
TotalCross to Android and i would like to know how fast is my virtual
machine comparing with Dalvik's. And your program could be a good
start.

You can send me it privately.

cheers

 guich
 http://www.totalcross.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: listing /data/data device's contents

2010-02-01 Thread Mark Murphy

 Well, i'll add a RFE so that it could list at least the folders with
 the same user id.

Why? You don't need it. You already know what your applications are. Just
construct the proper directory for each and see if the file exists. Or,
use PackageManager to see if your other applications are installed.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.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] Re: Flipping view upside down

2010-02-01 Thread satish bhoyar
hi guys please help...


On Mon, Feb 1, 2010 at 11:40 AM, satish bhoyar getsatonl...@gmail.comwrote:

 hi all,

 i want to make my textview flip upside down. i tried using the
 rotateanimation i can do it on side but how we can do it upside down?

 please give suggestion.

 thanks,
 satish


-- 
You received this message because you are subscribed to the Google
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: OpenGL poor performance with textures?

2010-02-01 Thread guich
Hi Federico,

I tried during weeks to get a working code for the opengles. The idea
was to draw an offscreen bitmap into the screen (i do all the graphics
rendering by myself). Then someone told me that using textures for
this was not a good idea, because it takes time to make the texture
get into the video card and then displayed.

Since my knowledge of opengl is near 0, i gave up and used the
SurfaceView approach. I also published the code here:

This goes at surfaceChanged:

  sScreenBuff = ShortBuffer.allocate(w * h);
  sScreenBitmap = Bitmap.createBitmap(w, h,
Bitmap.Config.RGB_565);

And this is my updateScreen method:

   static void updateScreen()
   {
  try
  {
 if (sScreenBitmap == null)
return;
 Canvas canvas = surfHolder.lockCanvas();
 if (canvas == null)
return;
 instance.nativeOnDraw(sPixels); // call Native C code
 sScreenBuff.put(sPixels);
 sScreenBuff.rewind();
 sScreenBitmap.copyPixelsFromBuffer(sScreenBuff);
 canvas.drawBitmap(sScreenBitmap, 0, 0, null);
 surfHolder.unlockCanvasAndPost(canvas);
  }
  catch (Throwable t)
  {
 debug(Log.getStackTraceString(t));
  }
   }

Have you done something different to achieve the 60fps?

Btw, i can test your code in two devices, the G2 Ion and the Motorola
Milestone (A853).

thanks and regards,

   guich

-- 
You received this message because you are subscribed to the Google
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: adding a quick add event to the Calendar

2010-02-01 Thread Jonathan Epstein
I've followed this discussion with interest, and have looked every few
days for your Pro version, i.e. Target Date Pro, but it's still
not available in the Market.  I would really like to try it, although
I have some concerns that it won't fit well into my workflow.

I have come to be a big fan of Pure Calendar, and would very much like
to see this functionality integrated there.  I've written to the
author on his forum, but so far no response.



On Jan 22, 8:49 am, andrew android andygoldm...@gmail.com wrote:
 I understand where you are coming from...
 In my app - Target Date Pro -  it is possible now to do this quick
 event addition and also jump to a specific event.  Inclusion of
 reminder to the quickly added event is a likely future enhancement.

 On Jan 13, 8:26 am, Jonathan Epstein jae6...@gmail.com wrote:

  I am an experienced developer, but an Android newbie.  I have a Droid
  Eris (Android 1.5), and the awkwardness of adding events to a calendar
  is driving me nuts.  I already made a feature request, but wonder
  whether (a) newer versions of Android already have something like this
  OR (b) if I could get some implementation advice on the following
  idea.  In particular, I wonder if there is a hook available for me to
  receive the necessary trigger when the user selects a time from the
  Calendar Day View, as described below, along with the necessary
  parameters (day and time that the user requested).

  Alternatively, perhaps the Calendar source code is available, and I
  should modify that.

  Thanks in advance for your advice.

  

  When adding an event (in Android 1.5) from the Day View, we currently
  get the full event-add dialog, say for Thursday at 4pm.  An additional
  simple interface would make it much easier to add events to calendars,
  as described below.

  Assume that the event is being added to the default calendar (e.g.,
  your Google Calendar).

  The first line in the screen contains 5 buttons for times in 30-minute
  increments around the initial time.  E.g., in the 4pm example the
  buttons read: 3:30, 3:45, 4:00 (highlighted), 4:15 and 4:30.

  The second line shows an event-duration.  There are only four choices
  (0, 30min, 60min, all day).

  Below that is the event description.

  Below that is a popup menu forreminders(same as on the current event
  add-screen).

  Below that are the opportunities to SaveCancel.

  Note that event location and event description are omitted.

  If there's room above, there could be a button to take you to the full-
  blown event entry 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: Application not run in the background

2010-02-01 Thread nikhil
call your sendsms method inside onStart

On Feb 1, 1:34 am, pramod.deore deore.pramo...@gmail.com wrote:
 Hello everybody, In my application I want to send sms, but the
 application must have to run in the background. It send the sms but it
 is not run in the background. I have following code.

 //Background.java

 package com.micro;

 import android.app.Activity;
 import android.content.Intent;
 import android.os.Bundle;

 public class Background extends Activity {
     /** Called when the activity is first created. */
     @Override
     public void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.main);

         startService(new Intent(this, MyService.class));
     }

 }

 ##
 My Service class look like this

 //MyService.java

 package com.micro;

 import android.app.Activity;
 import android.app.PendingIntent;
 import android.app.Service;
 import android.content.BroadcastReceiver;
 import android.content.Context;
 import android.content.Intent;
 import android.content.IntentFilter;
 import android.media.MediaPlayer;
 import android.os.IBinder;
 import android.telephony.gsm.SmsManager;
 import android.util.Log;
 import android.widget.Toast;

 public class MyService extends Service
 {
                 @Override
                 public IBinder onBind(Intent intent)
                 {
                         return null;
                 }

                 @Override
                 public void onCreate()
                 {
                         sendSMS(9960510915,Pramod Deore);

                 }

                 @Override
                 public void onDestroy()
                 {

                 }

                 @Override
                 public void onStart(Intent intent, int startid)
                 {

                 }

                  public  void sendSMS(String phoneNumber, String message)
                     {
                         String SENT = SMS_SENT;
                         String DELIVERED = SMS_DELIVERED;

                         PendingIntent sentPI = 
 PendingIntent.getBroadcast(this,
 0,new Intent(SENT), 0);

                         PendingIntent deliveredPI = 
 PendingIntent.getBroadcast(this,
 0,new Intent(DELIVERED), 0);

                         //---when the SMS has been sent---
                         registerReceiver(new BroadcastReceiver(){

                             public void onReceive(Context arg0, Intent arg1)
                             {
                                 switch (getResultCode())
                                 {
                                     case Activity.RESULT_OK:
                                         Toast.makeText(getBaseContext(), SMS
 sent,
                                                 Toast.LENGTH_SHORT).show();
                                         break;
                                     case 
 SmsManager.RESULT_ERROR_GENERIC_FAILURE:
                                         Toast.makeText(getBaseContext(), 
 Generic
 failure,
                                                 Toast.LENGTH_SHORT).show();
                                         break;
                                     case SmsManager.RESULT_ERROR_NO_SERVICE:
                                         Toast.makeText(getBaseContext(), No
 service,
                                                 Toast.LENGTH_SHORT).show();
                                         break;
                                     case SmsManager.RESULT_ERROR_NULL_PDU:
                                         Toast.makeText(getBaseContext(), Null
 PDU,
                                                 Toast.LENGTH_SHORT).show();
                                         break;
                                     case SmsManager.RESULT_ERROR_RADIO_OFF:
                                         Toast.makeText(getBaseContext(), 
 Radio
 off,
                                                 Toast.LENGTH_SHORT).show();
                                         break;
                                 }
                             }
                         }, new IntentFilter(SENT));

                         //---when the SMS has been delivered---
                         registerReceiver(new BroadcastReceiver()
                         {
                                 public void onReceive(Context arg0, Intent 
 arg1)
                                 {
                                         switch (getResultCode())
                                         {
                                         case Activity.RESULT_OK:
                                         Toast.makeText(getBaseContext(), SMS
 delivered,Toast.LENGTH_SHORT).show();
                                         break;
                                         case Activity.RESULT_CANCELED:
                                         Toast.makeText(getBaseContext(), SMS 
 not
 

Re: [android-developers] Re: Particular Tag Parsing

2010-02-01 Thread Kevin Duffey
You will have to sort your data once you get it. You can't control the order
it's processed. If you know for a fact that it will only be 4 items, you
could create an array of size 4, then stick the data in the specific index
spot of the array. Or you can add it to a list then sort it.  That is an odd
XML tho. I've not seen xml return something like that...are you responsible
for the XML being returned, or have no control over it?

On Mon, Feb 1, 2010 at 2:26 AM, Sasikumar.S sasikumar.it1...@gmail.comwrote:

 Thank U for responding previous Questions.

 One more thing Guys.

 Now i'm getting one more doubt in that.

 I need to parse the below XML file:

 item
 22item/2
 33item/3
 11item/1
 44item/4
 /item

 In that i'm fetching data from 1, 2,3  4.
 But i'm getting value as 2, 3, 1  4 in order wise.

 How to get in my wish order?.

 Please give some idea guy?..


 On Mon, Feb 1, 2010 at 10:29 AM, Frank Weiss fewe...@gmail.com wrote:

 SAXParser does NOT parse line by line. That's incorrect. What you need is
 something like this:

  @Override
  public void characters(char[] ch, int offset, int count) {
   sb.append(ch, offset, count);
  }
 @Override
  public void endElement(String namespaceUri, String localName, String
 qName) {
   if (localName.equals(title))
title = sb.toString();




 --
 You received this message because you are subscribed to the Google
 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.comandroid-developers%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en




 --
 Thanks  Regards
 Sasikumar.S

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@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] Recognizer Intent Question. Any help would be great. Thank you

2010-02-01 Thread chris harper
Hi

I am hoping that one of the google guys or someone else can help me
with one of the new features coming out with Eclair. Using the

 VOICE_UPLINK_INPUT = 1
 and
 VOICE_DOWNLINK_INPUT = 2
Attributes.

I know to recognize speech from the user holding the phone you can use
Recognizer Intent. Cool.

Has anyone tried (or is it possible) to use Recognizer Intent to
detect when someone on the phone is talking?

I imagine this would have to be tied somehow to:

 VOICE_UPLINK_INPUT = 1
 or
 VOICE_DOWNLINK_INPUT = 2

If not with RecognizerIntent is there any creative ideas on how it
might be done in real time like RecognizerIntent works?

Not by recording it to to a file with media recorder but in real
time.

I don't need anything fancy here. I do not need to recognize words and
all that.
All I need to do is to detect when the person on the phone is talking
vs not talking.

I am thinking there has to be a way. It's just a different audio
source. Right?

Thank you for any help
-Chris

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


[android-developers] Re: Wakelock and phone restarts

2010-02-01 Thread nikhil
Any one ?

On Jan 28, 11:18 am, nikhil nik...@gmail.com wrote:
 Hello Friends,

 I have a service which holds on to a wakelock and the code is similar
 to this,

 public class WakeLockService extends Service {

 PowerManager.WakeLock wl;

         @Override
         public IBinder onBind(Intent arg0) {
                 // TODO Auto-generated method stub
                 return null;
         }

         public void onCreate() {
                 PowerManager pm = (PowerManager) getSystemService
 (Context.POWER_SERVICE);
                 wl = pm.newWakeLock (PowerManager.PARTIAL_WAKE_LOCK,
 My Tag);

                 wl.acquire();
         }

         public void onDestroy() {
                 wl.release();
         }

 For past two days, my phone has been restarting randomly...Today it
 was worse, it kept restarting untill I uninstalled the app.

 I tried to search about this behaviour online and found that too many
 wakelocks may coz the phone to restart. Can there be any other reason?

 Is the above code right? Should make wl as a final variable? Does the
 service call onDestroy method when phone shuts down?

 I am using a broadcastreceiver to start my service at boot up as well.

 Any help would be appreciated.

 Thank You So Much

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


[android-developers] Re: AsyncTask and simultaneous network downloads

2010-02-01 Thread Bob Kerns
I don't understand. Why not just supply your own CookieStore -- why
rewrite so much? http://bit.ly/cymmRg

I don't recall having used this -- when I last used HttpClient, I
didn't have any need to share cookies.  So maybe I'm missing some
problem.

HttpClient is complex because HTTP is complex. I'm sure you only
handle a small subset of everything that's in the HTTP 1.1 spec.

If you have control over the server side as well as the client, or
only need a very limited set of functionality, that's fine. Simple
uses of HTTP are quite simple.

However, if you're making a reusable framework you not only need to
handle the full range of the spec -- you also need to give the user
the flexibility to configure and modify its behavior.

That's why there's stuff like setCookieStore(), and a similar stack of
configurable processors to what you'd find in a HTTP server such as
Tomcat or Jetty.

BTW, my preference would be to separate content handling from HTTP
access. Content handlers are useful in other circumstances, too. I bet
you actually made your content handling system separate, and made your
top HTTP layer use it. But you could get the same synergy with
HttpClient.

In fact, Content Handlers are so useful, that the Java library already
defines the java.net.ContentHandler interface.

So why did you drop all the way down to java.net.Socket, rather than
using java.net.HttpURLConnection, which already integrates with
content handling, handles the HTTP and HTTPS protocols, AND provides a
way to set the cookie handling? It sounds like you've pretty much
duplicated its functionality.

You can even write one-liners:
   new URL(http://www.example.com/myresource;).getContent();


On Jan 28, 1:28 pm, Jason Proctor jason.android.li...@gmail.com
wrote:
 the main HttpClient showstopper for me was its buggy cookie
 implementation - i needed to share cookies between WebKit and
 HttpClient, and HttpClient wouldn't play nice. however, i also
 thought the API was awkward to use. last thing, i took a look at the
 code. someone really managed to turn something relatively simple into
 a gothic monstrosity.

 so i wrote my own (simple) HTTP implementation on top of
 java.net.Socket. it's very simple and doesn't support any fruity
 options, but it integrates with my progress reporting system, and
 automatically shares cookies with WebKit. it has a pluggable content
 handler system so you can easily get binary, JSON, strings, etc, from
 resources with one line of code.

 my apps now depend on it -- i use it from within AsyncTasks all the
 damn time and it's solid.





 Jason,

 Rolled your own? Can you share/elaborate? There seems to be other
 issues with HttpClient. I am looking at either integrating
 Jersey/JAX-B client side to send REST calls (my server side is all
 Jersey/JEE6/JAXB based), but if that is too bulky for the app, then
 I was looking at using URLConnection.. but I haven't tried using
 that for REST calls with Basic Auth, various headers, xml/json body,
 etc.

 On Thu, Jan 28, 2010 at 1:01 PM, Jason Proctor
 mailto:jason.android.li...@gmail.comjason.android.li...@gmail.com
 wrote:

 i hope not, because the code makes a new HttpClient instance per
 ArtRetrievalTask. i suppose it could be trying to be clever,
 realising that the requests are going to the same place, and
 utilising HTTP 1.1 to bundle the requests into the same connection.

 if that's really what's happening (and i suspect not, somehow), and
 maybe only the server logs can tell for sure, then i hereby state
 for the 67th time how happy i am that i dumped HttpClient and rolled
 my own HTTP.

 Perhaps the requests are being serialized by HttpClient? I wonder if
 there's a way to determine the actual thread a particular
 AsyncTask's doInBacground process runs on, like maybe a thread id?

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 mailto:android-developers@googlegroups.comandroid-develop...@googlegroup 
 s.com
 To unsubscribe from this group, send email to
 mailto:android-developers%2bunsubscr...@googlegroups.comandroid-develope 
 rs+unsubscr...@googlegroups.com
 For more options, visit this group at

 http://groups.google.com/group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=enhttp://groups.google.com/group/android-developers?hl=en

 --
 jason.vp.engineering.particle

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to
 mailto:android-developers@googlegroups.comandroid-develop...@googlegroup 
 s.com
 To unsubscribe from this group, send email to
 mailto:android-developers%2bunsubscr...@googlegroups.comandroid-develope 
 rs+unsubscr...@googlegroups.com
 For more options, visit this group at
 

[android-developers] Re: How to Put common header for entire application Like Android Market application

2010-02-01 Thread RamaMohan
Thanks for Your answer.
I am having a tab activity which has 5 tabs .
i done this with programming and i have not used any xml for this tab
activity.
So how can i include common header for this activity.
I want to add a Image button on the top bar.how to handle events for
this which should apply for all activities in application.

If possible send any tutorial or source code for my understanding.

Thanks
RamaMohan


On Jan 30, 6:29 pm, Al alcapw...@googlemail.com wrote:
 You can use the include / tab in your layout files. For each
 activity's layout file, have something like this:

 include layout=@layout/common_header /
 !-- activity specific layout here --
 include layout=@layout/common_footer /



 RamaMohan wrote:
  Hi all,
  I am Working on develop an application .In my application i want to
  Put application header as it look like Android Market Application .I
  need help on following issues.
  1)How to put all header same for all activities in the application.
  2)How to put the common header like in android market application.
  3)How to put a common footer for all activities in application.

  If any one knows solution,please tell me,if possible send source code
  for my understanding.

  Thanks in advance.
  RamMohan

-- 
You received this message because you are subscribed to the Google
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] Split and join files

2010-02-01 Thread Achanta
I have a large database and my plan is to supply it along with the app
so that the users need not wait for around 15 min for the initial
download, xml processing and creating the database.

I want to put the database files in the assets folder and copy them
when the user uses the app for the first time. But since there is a
filesize restriction on the files in assets folder, I want to split
the database files and then put them in the assets folder. Now when
the user opens the app for the first time all i want to do is join
these files and copy them to the device.

I have searched around and saw that a couple of posts which mentioned
that it is possible but did not find anything that explains how to do
split the files and join them.

please let me know how I can do this.

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 achieve ultra smooth OpenGL/ES animation

2010-02-01 Thread tomei.ninge...@gmail.com
Hello Android OpenGL/real-time gurus,

I am drawing a pretty simple scene, with one large texture the about
size of the screen (two triangles). I notice that the frame-rate is
irregular: in most of cases, a frame finishes in 17 ms. However, in
about 1 of 10 times, the frame finishes in 33ms.

My guess is probably some background services need to run. However,
the Linux scheduler is biased towards my FG app, so the BG services
are usually starved, until they can't take it anymore and they grab
the CPU from my app 

I am seeing stuttering in the animation. Is this due to the irregular
frame rate? Should I delay each frame so that all frames are rendered
with 33ms frame time? If so, what's the best technique of achieving
this?

Is there an API that I can call to guarantee CPU resources for the
render thread  I really hope Android runs on some sort of real
time kernel ...

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] How to show a loading image or an animation?

2010-02-01 Thread Achanta
I have a search box and a web view in my activity.

I also have a search button which when someone clicks opens a the url
in the webview below the search box.

Everything is working fine except that it remains blank while the page
loads.
I want to show a loading message with a spinning icon/animation while
the page loads. [similar to one in the market app].

please let me know how to do it.
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


Re: [android-developers] Re: listing /data/data device's contents

2010-02-01 Thread Dianne Hackborn
Please don't.  The permissions are deliberately set up this way.

On Mon, Feb 1, 2010 at 4:41 AM, guich guiha...@gmail.com wrote:

 Well, i'll add a RFE so that it could list at least the folders with
 the same user id.

 guich

 --
 You received this message because you are subscribed to the Google
 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.comandroid-developers%2bunsubscr...@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

[android-developers] Dynamic compound drawables in TextView are invisible

2010-02-01 Thread Marco Alanen
Greetings.

I have a ListActivity which contains elements inside a table layout,
looking something like this:
LinearLayout
 ImageView
 TableView
 TableRow
 LinearLayout
 TextView
 TableRow
 LinearLayout
... (some more rows here)

Now I want to place an icon after the text in the TextView. This icon
may or may not be available depending on the input data, so I figured
the most optimal would be to show the icon as a compound drawable.
However, when doing this via code (setCompoundDrawables) the drawable
does not show up. If I do it via the UI editor it'll be there, on all
rows of course. I have a hunch that I need to re-layout the TextView
after changing compound drawables but neither requestLayout nor
invalidate solved it for me. I haven't tested this yet but slapping a
good old ImageView after the TextView will most likely do the trick.
If I DO have to re-layout the TextView and/or the TableView, will it
still be more optimal than the added view from an ImageView?

And oh, another question. Since this icon reduces the optimization
given by the view holder trick, are there any other ways of dealing
with list items which to some degree have dynamic number of visible
views?

-- 
You received this message because you are subscribed to the Google
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] Using bitmap data to copy pixels to a new bitmap

2010-02-01 Thread lyon
In ActionScript development, there are two classes, Bitmap, and
BitmapData. Bitmap uses information from BitmapData to create a
Bitmap. Is there an equivalent to BitmapData in the android API? I did
some digging and BitmapFactory seems to be the closest, however, I'm
facing problems with it.

I tried

Bitmap bitmap = BitmapFactory.decodeResource(getResources(),
R.drawable.buster);

As that was what I was seeing in most of the examples I came across,
but it is telling me that the method getResources is undefined. I'm
not really sure what is causing this as in another tutorial I did,
getResources didn't cause any problems.

I'm not looking to simply draw a bitmap to the screen, I want to copy
a section of the bitmap and place it on a new bitmap. In ActionScript,
the method is bitmapData.copyPixels(), and I'm looking for a similar
method in the Android API. The closest thing I could find was
copyPixelsToBuffer(), but I'm not really sure if that does what I
think it does.

Any help is greatly appreciated

-- 
You received this message because you are subscribed to the Google
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] RelativeLayout algorithm.

2010-02-01 Thread Michael Bailey
Is there any comprehensive documentation for the RelativeLayout layout
algorithm (besides javadoc and android blog examples)?

In this layout, the edittext is on top of the textview. This seems
wrong since the EditText has android:layout_below=@id/textview.

If I remove the android:layout_centerInParent=true on the TextView,
then the EditText is pushed below the TextView.

Can anyone explain the algorithm that causes this to happen?

?xml version=1.0 encoding=utf-8?
RelativeLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:layout_width=fill_parent
android:layout_height=fill_parent
android:id=@+id/main

RelativeLayout android:layout_width=wrap_content
android:layout_height=wrap_content
android:layout_centerInParent=true
android:id=@+id/inner

TextView
android:id=@+id/textview
android:layout_centerInParent=true
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=@string/hello
/
EditText
android:layout_below=@id/textview
android:id=@+id/textfield
android:layout_width=wrap_content
android:layout_height=wrap_content
android:text=@string/hello
/

/RelativeLayout
/RelativeLayout

-- 
You received this message because you are subscribed to the Google
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] Linking a Video to the Browser's Player

2010-02-01 Thread mistergoomba
Hello. I'm new to Android development and when I try to search for
this answer, I get pushed in a different direction.

I am putting together an app that will play videos. I've figured out
how to stream videos directly into the app from the web using a
URLConnection, however I'm having memory issues. I would like to
instead try linking the same URL I am streaming from to the browser so
that it will stream using the Android player.

For some reason I'm having problems just pushing a URL to the browser.
Can anyone point me in the right direction?

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] What does a good app review look like?

2010-02-01 Thread AppRoasters
What does a good application review look like?  From a dev's
perspective, it's whatever brings the users.  From the user's
perspective, things need to be informative and entertaining at the
same time.

We're trying to carve a niche out for app reviews at approaster.com,
but I'm really interested in hearing devs perspectives on what makes a
good review.  What's the right length?  How much information is too
much?  How long do you get activity out of a review?

Thanks for your input!

-- 
You received this message because you are subscribed to the Google
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] SharedPreferences can not create the xml file

2010-02-01 Thread Shahin
Hi
I have been trying to fix this problem for 3 days now and still no
luck. I am trying to save some preferences of my app (just a few
integers and strings), but I notice that SharedPreferences never
creates any xml file. So far I have tried the followings:
1) In my AndroidManifest, I set Persistent to true.
2) To be more cautious, my preference file is all lower case, even
though I did not think it was necessary.
3) Interestingly enough edit().commit() returns true, but I do not see
the xml file anywhere in my computer. And when I try to read the
values from the preferences, I get the default values that I have in
my getInt() or getString().
4) I ran my app in the debugger and I saw no errors in the log related
to this.
5) I tried running it in 2 different emulator running Android 1.5 and
2.0, same result.

Here is a gist of my code:
SharePreferences x = this.getSharedPreferences
(Configuration.PREFFILE, Context.MODE_PRIVATE);
int level = x.getInt(LEVEL, 1);
..
x.edit().putInt(LEVEL, level);
if ( !x.edit().commit() )
Log.e(Configuration.TAG, setLevel failed to commit);

I can not think of any reason that causes this. Any help is greatly
appreciated.
Thanks



-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
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 display unicode text received from a web API

2010-02-01 Thread Marko Anastasov
Hello,

I'm fetching some data from my web API that returns XML with content
which includes escaped unicode characters. So there is content such as
Izlo#382;ba which I need to display in a TextView as word
Izložba. How can I do this? Right now these characters are either
ommitted or displayed as that raw escaped value.

-- 
You received this message because you are subscribed to the Google
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] ADB and Windows Hibernate?

2010-02-01 Thread dph
Since starting to develop with the Android SDK, I have noticed that
Hibernate on Windows 7 is failing to occur as expected.

I have figured out that the problem is ADB which evidently never stops
running.
If I first kill ADB, then hibernation works as expected.

Has anybody else seen this problem?

Does anybody have any suggestions as to how to fix this problem?
(Having to remember to kill adb.exe whenever I walk away from my PC is
not acceptable).

Thanks for the help,

Dan

-- 
You received this message because you are subscribed to the Google
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: Equally spaced TableLayout grid

2010-02-01 Thread Ivan
I have exactly the same requirement. I need to create a 2x2 layout of
4 buttons where each button must be the same size. I tried TableLayout
and LinearLayout combos without any luck so far.

On Jan 29, 11:42 am, ClarkBattle clarkbat...@gmail.com wrote:
 I have a TableLayout where each cell of the table contains a single
 button or textView.  I want to make sure that every cell has the same
 height and the same width.  In other words all column widths are the
 same and all row heights are the same.  Of course, it has to do this
 while resizing the TableLayout to its given layout_width and
 layout_height.  Do I have to do the math myself and set each cell
 manually or is there an automatic way to do it?

 Thanks.

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


[android-developers] Re: TableLayout set column width by using layout_weight

2010-02-01 Thread arberg
I believe I found a solution to your problem. The weight attribute of
linearlayouts (http://d.android.com/reference/android/widget/
LinearLayout.LayoutParams.html) unfortunately only extends views, and
therefore the your attempt does not work, because the textviews are to
wide to begin with. I found that it worked to simply set
android:width=0px, and then let the weight-attribute do its work.

?xml version=1.0 encoding=utf-8?
TableLayout
  xmlns:android=http://schemas.android.com/apk/res/android;
  android:layout_width=fill_parent
  android:layout_height=wrap_content 
  TableRow
TextView
  android:text=ab ab abc abcabc ab
  android:background=#
  android:width=0px
  android:gravity=center
  android:layout_weight=0.5/
TextView
  android:text=ab ab abc abcabc in a  aa a
aa
  android:width=0px
  android:background=#FF00
  android:layout_weight=0.5
  android:gravity=center/
  /TableRow
/TableLayout

On 14 Jan., 06:47, kknight kknight2...@gmail.com wrote:
 I want to create atablewith one row and two column. Each column is a
 TextView. I want to give50% width to each of the column, though each
 column has different length. I tried to set column width using
 layout_weight. But in the result, column 1 is much short than column
 2. Can someone point out what is wrong, and how to force each column
 to have the same width?

 The XML is like below:

 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/
 android
         android:orientation=vertical android:layout_width=fill_parent
         android:layout_height=fill_parent

         TableLayout android:layout_width=fill_parent
                 android:layout_height=wrap_content
 android:background=#ff
                 TableRow android:weightSum=1.0
                         LinearLayout android:orientation=vertical
                                 android:background=#ff
 android:layout_column=0
                                 android:layout_weight=0.5
                                 TextView
 android:layout_width=fill_parent

 android:layout_height=wrap_content
                                         android:text=ab ab abc abcabc
 ab 
                                         android:textColor=#231ACC
 android:padding=3dip /
                         /LinearLayout
                         LinearLayout android:orientation=vertical
                                 android:background=#ff
 android:layout_column=1
                                 android:layout_weight=0.5
                                 TextView
 android:layout_width=fill_parent

 android:layout_height=wrap_content
                                         android:text=ab ab abc abcabc
 in a  aa a aa
                                         android:textColor=#231ACC
 android:padding=3dip /
                         /LinearLayout
                 /TableRow
         /TableLayout

 /LinearLayout

 The results is like:

 Column1:
 ab ab
 abc
 abcabc
 ab

 Column 2:
 ab ab abc abcabc in a  aa
 a aa

-- 
You received this message because you are subscribed to the Google
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] Example for Contacts.PresenceColumns

2010-02-01 Thread hacksoft
Hi,

I'm using OS 1.6 and targeting my T-Mobile HTC G1 phone.  I'm trying
to get the IM fields from contact info, but none of the queries I
build to use Contacts.PresenceColumns work.

Does anyone know how to construct the projection/query to get the
PresenceColumns info (IM_ACCOUNT, IM_HANDLE) for a contact ID?

thanks,

John 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] BitmapFactory.decodeByteArray gives pixelated bitmap

2010-02-01 Thread michael
Hi,

I am working on an app that displays photos which are downloaded from
Flickr. I obtain a Bitmap object from a byte array, which in turn is
read from the relevant Flickr URL, as follows:

Bitmap bitmap = BitmapFactory.decodeByteArray(data, 0, data.length);

The problem is that the resulting bitmap is pixelated and I can't
figure out why. To demonstrate, here is an example of a picture
created via BitmapFactory.decodeByteArray versus the original picture
obtained directly from the relevant Flickr URL:

http://homepages.inf.ed.ac.uk/s0677975/bad.jpg
http://homepages.inf.ed.ac.uk/s0677975/good.jpg

Look e.g. at the clouds in the top-left corner to see the difference.

Can anybody give me a hint as to why this is happening?

Below are some additional details. The byte array is obtained as
follows; this is based on code from the Photostream app by Romain Guy:

InputStream in = new BufferedInputStream(url.openStream(),
IO_BUFFER_SIZE);
final ByteArrayOutputStream dataStream = new ByteArrayOutputStream();
out = new BufferedOutputStream(dataStream, IO_BUFFER_SIZE);
copy(in, out);
out.flush();
final byte[] data = dataStream.toByteArray();

Note that the more direct approach using e.g.
BitmapFactory.decodeStream() does not work; see e.g. the following
discussion for details:

http://markmail.org/message/m2m3cpkh6ggrvj43#query:BitmapFactory.decodeStream%20vs%20BitmapFactory.decodeByteArray+page:1+mid:ebetxxb3tkngpe7s+state:results

Here is the code I used for writing the bitmap to the JPG file linked
to above, with no compression:

String filename = test ;
ContentValues values = new ContentValues();
values.put(Images.Media.TITLE, filename);
values.put(Images.Media.DATE_ADDED, System.currentTimeMillis());
values.put(Images.Media.MIME_TYPE, image/jpeg);

Uri uri = mCtx.getContentResolver().insert
(Images.Media.EXTERNAL_CONTENT_URI, values);
try {
  OutputStream outStream = mCtx.getContentResolver().openOutputStream
(uri);
  bitmap.compress(Bitmap.CompressFormat.JPEG, 100, outStream);
  outStream.flush();
  outStream.close();
} catch (FileNotFoundException e) {}
  catch (IOException e) {}


Any help on this matter would be greatly appreciated.
Thanks and best regards,
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] Re: Layout problems: AbsoluteLayout deprecated, how to do it now?

2010-02-01 Thread kaasinees
try making a new view that is centered in the layout than use the
margin attributes like mentioned before to position the buttons inside
that  view.

this way it could work on all screen sizes.

 On Jan 30, 9:23 am, Martin google-gro...@digle.de wrote:
 Hi!

 For my game Leonard Frog - Beta in the market, I use an
 AbsoluteLayout to place all the buttons in the correct position like
 in the following image:http://digle.de/friends/LeonardFrogBig.jpg

 Now the AbsoluteLayout is deprecated. How can I place these buttons
 now in the right position like in the image without using the
 AbsoluteLayout? (I don't want to cover the frog and other things of my
 background image).

 The other problem with my AbsoluteLayout was that my main page of the
 game looks like this on smaller 
 devices:http://digle.de/friends/LeonardFrogSmall.jpg

 I hope, there is a solution for this.

 Greetings, Martin

-- 
You received this message because you are subscribed to the Google
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] Help me in TextMessage and DataMessage

2010-02-01 Thread aishwarya shukla
Hello Everyone
I am unable to use the sendTextMessage Function of the smsManager class
successfully.
The other emulator is not reporting the message received. No notification
comes on it.
However i am able to send the Text Messages normally using the built in
Messaging App in the Application.

Also i downloaded and tried the SMS tutorials in the mobiforge and other
websites, the tutorial program is crashing.
// Code is as given below


package sms.app;

import android.app.Activity;
import android.telephony.*;
import android.os.Bundle;
import android.widget.Toast;
import android.content.Intent;
import android.app.PendingIntent;
import android.content.Context;
public class smsapplication extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
SmsManager s=SmsManager.getDefault();
Intent intent=new Intent();
int requestCode=0;
int flags=0;
PendingIntent si=PendingIntent.getActivity(getApplicationContext(),
requestCode, intent, flags);


   try{
 s.sendTextMessage(5554, null, This is my string, si, null);
}
catch(IllegalArgumentException e)
{
 Toast.makeText(getBaseContext(), Exception caught,
Toast.LENGTH_SHORT).show();
}
finally
{
 Toast.makeText(getBaseContext(), Exception not caught,
Toast.LENGTH_SHORT).show();
}

  final int genfailure=s.RESULT_ERROR_GENERIC_FAILURE;
  if (genfailure==1)
   Toast.makeText(getBaseContext(), GENREIC_FAILURE,
Toast.LENGTH_SHORT).show();
  final int noservice=s.RESULT_ERROR_NO_SERVICE;
  if (noservice==4)
   Toast.makeText(getBaseContext(), NO SERVICE,
Toast.LENGTH_SHORT).show();
  final int nullpdu=s.RESULT_ERROR_NULL_PDU;
  if (nullpdu==3)
   Toast.makeText(getBaseContext(), NULL PDU,
Toast.LENGTH_SHORT).show();
  final int radiooff=s.RESULT_ERROR_RADIO_OFF;
  if (radiooff==2)
   Toast.makeText(getBaseContext(), RADIO OFF,
Toast.LENGTH_SHORT).show();
  final int iccunsent=s.STATUS_ON_ICC_UNSENT;
  if (iccunsent==7)
   Toast.makeText(getBaseContext(), ICC unsent,
Toast.LENGTH_SHORT).show();
  final int iccsent=s.STATUS_ON_ICC_SENT;
  if (iccsent==7)
   Toast.makeText(getBaseContext(), ICC sent,
Toast.LENGTH_SHORT).show();


}
}


Also i have given the SMS_SEND permission in the manifest file.
I tried the same code in different machine too, it doesnt work.
Also most of the tutorials in the net use the deprecated function
android.telephony.gsm.SmsManager and not the new one
android.telephony.SmsManager.

For my project work i have to use a datasms . Can anyone help me with a
working sample app in Android 2.0 or 2.1  which uses data message.
Further how i am not able to figure out how to register my recipent
application to a particular port to which i am sending a data message using
another instance of the emulator.

I need to solve this issue fast. I am stuck at this place for my project,

Any Help would be highly appreciated.

-- 
You received this message because you are subscribed to the Google
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: Problematic HTTPS Posts, help needed

2010-02-01 Thread Siarhei Dudzin
Just to let you know I also had problems with URLConnection when using
https. Eeentually I had to switch to http client wich works fine.

Regards,
Siarhei

On Jan 29, 8:32 pm, Kai kai.umez...@hotmail.jcom wrote:
 Thank you very much for those suggestions, I will definitely take a
 look at them.

 Have your worked at all with httpS though? and if so, are there any
 differences in the implementation. As mentioned in the original post,
 I have no problem getting HTTP to work, it is only when I switch to
 HTTPS that I start having problems.

 On Jan 27, 2:46 pm, WoodManEXP woodman...@gmail.com wrote:



  Hello,

  I have done a lot of work with the Android communicating via http, Get
  and Post, with servers. Most of it seems to work pretty much the same
  as the org.apache.http.* libraries on other platforms (which is in
  itself pretty neat!).

  Couple of things that might be helpful

  - Do the http work off the UI thread because of the way server
  communication delays and times-out and such. Otherwise the Android app
  manager will freak-out and the ANR dialog will appear (App not
  responding).

  - This may be wrong but our apps tend to create and dispose of
  DefaultHttpClients often, rather then keeping them around for re-use.
  We experienced problems trying to reuse object like these (kind of
  like to describe with the java.io.IOExceptions)

  On Jan 27, 11:30 am,Kaikai.umez...@hotmail.com wrote:

   Hi all,

   I'm in the middle of developing my first android application and have
   finally hit a significant roadblock that I can't seem to figure a way
   around.

   The application involves HTTPS posting from an activity within the app
   to my test server. While I've worked around accepting the self-signed
   certificate, the behavior of the post and response has been
   problematic and non-standard and so I'm wondering if this issue is
   android related and what some possible solutions might be.

   Essentially this transaction is completed on a click. On the click I
   create and connect a HttpsURLConnection to the server, setting
   DoOutput and DoInput to true. I get the connection output stream and
   wrap it in a  BufferedOutputStream. I write the transaction to the
   BuffStream, flush and close it.

   Then I handle the response. If the response is HTTP_OK, I get and wrap
   the connection input stream in a BufferedInputStream. I then take the
   input and put it into a byte array to be handled by the app and close
   the input stream.

   Now this all seems straight forward but when tested doesn't work
   properly. From the activity, the process is always successful on the
   first try, but then from the same activity if I wait a few seconds
   then click again, the same process will fail claiming a
   java.io.IOException(stream is closed), and then if I wait a few more
   seconds and try again it will work and this pattern continues on. To
   make things even more confusing, if I execute all of the clicks in
   rapid succession they will all work. It only complains if I wait in
   between transactions. I've come to think that the problem has
   something to do with Android HTTPS as when I try just a simple HTTP
   post, everything works fine. I also don't think it has anything to do
   with my custom certificate accepting as when I removed that and tried
   HTTPS posting to a trusted well known certificate, the problem still
   occurred.

   I'm leaning towards the thought that this has something to do with
   setting up and tearing down HTTPS connections in android, but as I do
   this all in an onClick event I'm not sure why I'm experiencing
   problems half the time. I'm also inclined to think its the inputStream
   that is having issues as the server seems to recieve the transactions.

   Anyone with any ideas as to what could be going wrong, or anyone who
   can outline how they went about setting up an HTTPS post on click
   would be greatly appreciated!

   Thanks so much for your time and consideration.

-- 
You received this message because you are subscribed to the Google
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 submit an issue for priority elevation? Issue# 5669

2010-02-01 Thread ZeppelinJ0
I'm wondering what the process is for elevation of a bug report at
http://code.google.com/p/android/issues/detail?id=5669

There is a severe bug in the Android 2.0.1 software running on MOTO
DROID which is causing myself and hundreds of other peoples TXT/SMS
Conversations to be completely deleted, even if messages are NOT
marked to be auto-deleted or if the messages are locked.  In addition,
whatever bug is causing the message deletions is also causing other
files and phone settings to be removed or re-set.

This is a critical bug, many people rely on their TXT messages and
need to know that their messages will be reliably stored on the
phone.  I know I've lost many important bits of contact information
and messages of personal value.

If anyone can help get this issue noticed and at least help flush out
what is causing the problem I know there's a ton of people that would
rest easy and be more comfortable with their phones.  I'm not very
code-savvy and the problem seems intermittent for the ~160 people that
have commented on the issue so maybe somebody that is more code-savvy
can root it out through the code

Thanks for your time!

-- 
You received this message because you are subscribed to the Google
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] uncaught timeoutexception in socket

2010-02-01 Thread Lara
Hey,
I want to connect my client via socket to a server. If I don't start
the server (to test my error-handlung) the client crashes because of
an uncaught timeout exception.

The socket creation is in a try-catch block, but the timeout-exception
is not caught.

try {
InetAddress serverAddr = 
InetAddress.getByName(SERVERIP);
Log.i(LOG_TAG, Connecting..);

clientSocket = new Socket(serverAddr, PORT); - 
Timeoutexception
Log.i(LOG_TAG, Connection done!);

// open OutputStream and InputStream
Log.i(LOG_TAG, Open data streams);
out = new 
DataOutputStream(clientSocket.getOutputStream());
in  = new 
DataInputStream(clientSocket.getInputStream());

Log.i(LOG_TAG, Set client keep-alive);
clientSocket.setKeepAlive(true);

} catch (UnknownHostException e) {
Log.v(LOG_TAG, e.toString());
statusCode = Protocol.UNKNOWN_HOST;

}catch (SocketException e) {
Log.v(LOG_TAG, e.toString());
statusCode = Protocol.SOCKET_ERROR;

}catch (IOException e) {
Log.v(LOG_TAG, e.toString());
statusCode = Protocol.IO_ERROR;

}catch (Exception e) {
Log.v(LOG_TAG, e.toString());
statusCode = Protocol.SOCKET_ERROR;
}

Has anybody experienced the same problem?

Thanks in advance and regards,
Lara

-- 
You received this message because you are subscribed to the Google
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] Notepad tutorial revised with hosted database

2010-02-01 Thread Brent Hamby
After reading the Nodepad tutorial for Android, which uses the SQLlite
database, I decided to write a version of the same app that uses an
off-board database.  I replaced the SQLlite database adapter class
with a NextDBAdapter class that communicates with the NextDB.net
servers to execute queries, inserts, updates and deletes.  I also
enhanced the example code to make the database calls outside the main
thread, using AsyncTask.  The code is intentionally simple and short,
but it provides a good starting point to using the NextDB.net system
to store application data off-board-- in the cloud (I apologize for
the buzzwordery).

Here is the code:

http://code.google.com/p/nextdb/source/browse/#svn/trunk/mobile/android/

The benefits of using an off-board database, over the on-board SQLlite
database is that the data can be shared with other apps, allowing
phone to phone communication.  Also since NextDB has both REST and
AJAX API's, you can also communicate between the phone and the web.
This is an overview on the NextDB.net wiki:

http://nextdb.net/wiki/en/Android

Enjoy,

Brent

-- 
You received this message because you are subscribed to the Google
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] Empty contact list after adding contacts via insert query

2010-02-01 Thread James
I added some contacts via content resolver queries, but they are not
showing up in the phone's Contact application.  However, when I go
over the database with a cursor, they show up.

Could this be an issue with the emulator?  I don't have a device to
test on at the moment.  Also, the contact was added using the code
below.  I then used that URI to associate a new number with the
contact.

Anyone have any ideas what might be going on?  Thanks!


ADD CONTACT:
values.put(Contacts.People.NAME, name);
Uri record = mContext.getContentResolver().insert
(Contacts.People.CONTENT_URI, values);


LOOP THROUGH DB:
Cursor c = this.getContentResolver().query
(Contacts.People.CONTENT_URI, null, null, null, null);
c.moveToPosition(-1);
while (c.moveToNext()) {
Log.d(DEBUG,c.getLong(c.getColumnIndexOrThrow(Contacts.People._ID))
+:+c.getString(c.getColumnIndexOrThrow
(Contacts.People.DISPLAY_NAME)));
}

-- 
You received this message because you are subscribed to the Google
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] Regarding relative layout problem

2010-02-01 Thread kumar
Hiii

i am new in android application developer.i had just created a one
application with relative layout.its run smoothly in emulator.i never
test this application on real android phone.there is no alignment
problem in emulator.can its given a problem in real phone.

plz reply me as soon as posiable.
thank you in advance.

bhavesh

-- 
You received this message because you are subscribed to the Google
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] icons bigger than 48x48 pixels

2010-02-01 Thread jonesy
i have a rooted mytouch, i use bettercut, and i would like the icons
on my home screen to be able to be bigger than 48x48 pixels, i'd
prefer 60x60. i know there's something in the root folders i can edit
to make this possible, i think in framework-res.apk. but does anyone
have any idea what specific file i have to change, and how i could do
that?

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


[android-developers] Push Notification API

2010-02-01 Thread Alie Lee
Hi,

Is there any push notification API for Android... I tried search with Google
but couldnt find any.

Regards,
Alie

-- 
You received this message because you are subscribed to the Google
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] problems using the Android Manifest Editor

2010-02-01 Thread mdschiller
I'm new to Android development, created a project following the
instructions at: http://developer.android.com/guide/developing/eclipse-adt.html

And have not yet touched the source. I am having trouble using the
Android Manifest Editor to set my application to be debuggable.

I open my project's AndroidManifest.xml with the Android Manifest
Editor, then I switch to the Application tab. In the Application tab,
the Application Toggle is set to define an application tag. Under
Application Attributes, no value is chosen for Debuggable. I change
Debuggable to be true. At this point, I would expect that the xml on
the AndroidManifest.xml tab would change, or that I could manually
force a regeneration of the xml, or that I could save the file.
However, the xml does not automatically change, I can't seem to find a
way to force regeneration of the xml file, nor am I able to save the
file (File-Save is grayed out).

The only other fields with values in the Application Attributes
section are:
Label: @string/app_name
Icon: @drawable/icon

Curiously, the Name field is blank -- should it be populated?

I can edit the xml by hand, add the appropriate attribute, and debug
the application on my Droid, but it seems like a functional Android
Manifest Editor might be useful later on.

The current contents of the manifest are below. I'm running on OS X
using Eclipse with the ADT plugin.

Eclipse Version Info:
Version: 3.5.1.r351_v20090810-0600-7r88FEoFI0WTo6Az-1qFRHm37ChJ
Build id: M20090917-0800

ADT Version Info:
0.9.5.v200911191123-20404

The Android SDK I downloaded was android-sdk_r04-mac_86.zip

Thanks in advance,
Mike

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


[android-developers] Gallery crashing when scrolling using trackball

2010-02-01 Thread Fred
My app crashes whenever I try to use the trackball while the Gallery
has focus.  I can scroll by touch events just fine, but the trackball
crashes it.  I feel like there's something simple I'm overlooking.

Anyone that has some insight, please let me know.

Thanks,
Fred

-- 
You received this message because you are subscribed to the Google
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] Uploading Files in Nexus One

2010-02-01 Thread IdanAndroid
I was trying to upload files (images) to my wordpress blog through my
Nexus One mobile phone, but it shows 'Disabled' all the time, whether
I use the flash upload or the regular HTML upload contorl. I even
tried the Mobile admin Wordpress plugin with the same results.

Is there any option to enable upload files to wordpress using my Nexus
One phone, some settings that I need to change maybe ?


Idan

-- 
You received this message because you are subscribed to the Google
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] bug reporting

2010-02-01 Thread laphroaig15
I'd finished up my first android application, a simple power
management app, and was preparing to release it when I realized that I
didn't have a proper design or infrastructure for bug reporting.  One
of my pet peeves with the applications on the Android marketplace is
that there's inadequate visibility into the change logs from version
to version.  I get a notice to update app X, but I don't know if
that's fixing a bug that's been annoying me, adding/refreshing
advertising code, etc.  I dislike adding to chaos.

So, I started looking at my options.  Obviously, if I hosted my source
code somewhere then users could use the hoster's built-in bug tracking
facility to report bugs.  On the off chance that a mobile user took
the time to look up the project and submit a bug, I'd still be reliant
on the submitter to supply correct and relevant diagnostic
information.  I have my doubts that either would occur reliably.

I came across this thread [http://groups.google.com/group/android-
developers/browse_thread/thread/bae832439608ad2e/44d2e285da39aa57?
lnk=gstq=exception+handler#44d2e285da39aa57] detailing a simple
strategy for collecting information under the covers and posting an
exception to a remote server.  I see some issues with this strategy as
well:

1.  It doesn't engage the user to acknowledge that a problem has
occurred (mea culpa).
2.  It doesn't elicit contextual information from the user.
3.  It doesn't help to provide the user visibility into the state of
issues for the application (bugs nor enhancements).
4.  It requires that my application request internet permission.  If I
wanted to allow the user to opt-in to send some personally
identifiable information (say to support notification), then I'd need
to request profile permissions.  I dislike jumbling together a lot of
disparate concerns and then asking for every permission under the
sun.  This trend will lead to users totally disregarding the
permissions altogether.

So, my thought was to implement a separate Bug Reporting application
that handles bug tracking.  Other programs could elect to register
with this app.  The BR app accepts crash information from a calling
application, prompts the user to provide summary, description, and
priority information, then posts the issue to the developer's bug
server (indicated during registration).  The BR application could be
further enhanced to retain these issue ids and allow the user to
browse the state of them (by browsing to a well defined link or via
some well-defined exchange with the bug server).  Similar
functionality could be implemented to allow viewing change logs,
release road maps, etc. for the app.  Obviously, the integration b/t
the BR app and the client apps would be implemented in such a way that
there would be a transparent no-op if the user decided to uninstall or
never install the BR app (so as to not perpetuate a bad Vista-like
user experience).

It looks like I can license JIRA for $10 and open up anonymous issue
creation.  So, far I've prototyped a simple BR activity and a JIRA
plugin to accept BR submissions.  Obviously, the http protocol could
be openly defined in such as way as to allow integration with any
extensible bug tracking system.

I'd like to hear opinions on this strategy.  Has it already been
done?  Is it too intrusive or techy for users?  Do you agree or
disagree that visibility is an issue?  Is there simply a better
solution of which I'm unaware?  Ideally, such a thing would be
embraced by Android itself (or the market).

regards,

-Jess

-- 
You received this message because you are subscribed to the Google
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] Temperature Sensors

2010-02-01 Thread sam
Greetings,

I can't seem to find this info on the droids temperature sensor (the
one available in the SDK):

Does it indicate ambient temperature or is it the temperature of the
phone or chip?

Also, does the pressure sensor indicate atmospheric pressure?

regards,

Sam

-- 
You received this message because you are subscribed to the Google
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] please don't send the mail to me, thanks.

2010-02-01 Thread fangwei 00110357


**
 This email and its attachments contain confidential information from HUAWEI, 
which is intended only for the person or entity whose address is listed above. 
Any use of the information contained here in any way (including, but not 
limited to, total or partial disclosure, reproduction, or dissemination) by 
persons other than the intended recipient(s) is prohibited. If you receive this 
email in error, please notify the sender by phone or email
 immediately and delete 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] Builtin layout xml source code?

2010-02-01 Thread Mike Novak
source.android.com you can view the resources used in the core framework git 
repository.

On Jan 30, 2010, at 10:57 PM, scastria wrote:

 Anyway to see the source xml for
 android.R.layout.simple_expandable_list_item_2   ??
 
 -- 
 You received this message because you are subscribed to the Google
 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] Problem with TextView and multiple lines

2010-02-01 Thread Salvador Gironès
Hello to all,

I have a problem with TableRow and TextView. I'm trying to show a text
longer than screen, but It doesn't break in two lines. Isn't it automatic? I
have a ListView with TextView items and it break in multiple lines
automatically. This is my code:

TableLayout

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

  android:layout_width=fill_parent

  android:layout_height=fill_parent

  android:orientation=vertical

  android:padding=8px


   [...]

TableRow

TextView android:id=@+id/news_item_view_description

android:layout_column=1

android:textSize=12px

/

/TableRow

  [...]


 /TableLayout


I have tried with *android:layout_width=fill_parent *in TextView, but it
doesn't work.
Any solution?

Thanks.

-- 
Atentament,

Salvador Gironès

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

Re: [android-developers] VerifyError - how can I solve this error?

2010-02-01 Thread aishwarya shukla
Hello Everyone
I am unable to use the sendTextMessage Function of the smsManager class
successfully.
The other emulator is not reporting the message received. No notification
comes on it.
However i am able to send the Text Messages normally using the built in
Messaging App in the Application.

Also i downloaded and tried the SMS tutorials in the mobiforge and other
websites, the tutorial program is crashing.
// Code is as given below


package sms.app;

import android.app.Activity;
import android.telephony.*;
import android.os.Bundle;
import android.widget.Toast;
import android.content.Intent;
import android.app.PendingIntent;
import android.content.Context;
public class smsapplication extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
SmsManager s=SmsManager.getDefault();
Intent intent=new Intent();
int requestCode=0;
int flags=0;
PendingIntent si=PendingIntent.getActivity(getApplicationContext(),
requestCode, intent, flags);


   try{
 s.sendTextMessage(5554, null, This is my string, si, null);
}
catch(IllegalArgumentException e)
{
 Toast.makeText(getBaseContext(), Exception caught,
Toast.LENGTH_SHORT).show();
}
finally
{
 Toast.makeText(getBaseContext(), Exception not caught,
Toast.LENGTH_SHORT).show();
}

  final int genfailure=s.RESULT_ERROR_GENERIC_FAILURE;
  if (genfailure==1)
  Toast.makeText(getBaseContext(), GENREIC_FAILURE,
Toast.LENGTH_SHORT).show();
  final int noservice=s.RESULT_ERROR_NO_SERVICE;
  if (noservice==4)
  Toast.makeText(getBaseContext(), NO SERVICE,
Toast.LENGTH_SHORT).show();
  final int nullpdu=s.RESULT_ERROR_NULL_PDU;
  if (nullpdu==3)
  Toast.makeText(getBaseContext(), NULL PDU,
Toast.LENGTH_SHORT).show();
  final int radiooff=s.RESULT_ERROR_RADIO_OFF;
  if (radiooff==2)
  Toast.makeText(getBaseContext(), RADIO OFF,
Toast.LENGTH_SHORT).show();
  final int iccunsent=s.STATUS_ON_ICC_UNSENT;
  if (iccunsent==7)
  Toast.makeText(getBaseContext(), ICC unsent,
Toast.LENGTH_SHORT).show();
  final int iccsent=s.STATUS_ON_ICC_SENT;
  if (iccsent==7)
  Toast.makeText(getBaseContext(), ICC sent,
Toast.LENGTH_SHORT).show();


}
}


Also i have given the SMS_SEND permission in the manifest file.
I tried the same code in different machine too, it doesnt work.
Also most of the tutorials in the net use the deprecated function
android.telephony.gsm.SmsManager and not the new one
android.telephony.SmsManager.

For my project work i have to use a datasms . Can anyone help me with a
working sample app in Android 2.0 or 2.1  which uses data message.
Further how i am not able to figure out how to register my recipent
application to a particular port to which i am sending a data message using
another instance of the emulator.

I need to solve this issue fast. I am stuck at this place for my project,

Any Help would be highly appreciated.

-- 
You received this message because you are subscribed to the Google
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] onDestroy() called and activity cycles at lock screen

2010-02-01 Thread Martin
Hi,

I have an activity using a surfaceView for drawing various objects
onto, and have observed different behavior when running the app in the
emulator and on the handset. The handset is a G1, running Android rev.
1.5, and the emulator is also a rev. 1.5 AVD.

When the app is running in emulator and the lock-screen key is
pressed, the onSaveInstanceState() method is invoked - this is the
behavior I would expect. When the same is performed on the actual
handset onSaveInstanceState() is also invoked, however followed by
onDestroy(), and a cycle through the acitivity life cycle:

02-01 11:36:26.531: INFO/com.spigo.balloons.Balloons(22453):
onSaveInstanceState()::called
02-01 11:36:26.531: INFO/com.spigo.balloons.BalloonsGame(22453):
saveState():called
02-01 11:36:26.531: WARN/com.spigo.balloons.Level(22453): saveState
()::balloonsInLevel==null
02-01 11:36:26.541: INFO/com.spigo.balloons.Balloons(22453): onPause
()::called
02-01 11:36:27.531: INFO/WindowManager(90): Setting rotation to 0,
animFlags=0
02-01 11:36:27.551: INFO/WindowManager(90): Config changed:
{ scale=1.0 imsi=0/0 locale=en_US touch=3 key=2/1/2 nav=3 orien=1 }
02-01 11:36:27.591: INFO/WindowManager(90): Config changed:
{ scale=1.0 imsi=0/0 locale=en_US touch=3 key=2/1/2 nav=3 orien=1 }
02-01 11:36:27.951: WARN/InputManagerService(90): Starting input on
non-focused client android.view.inputmethod.InputMethodManager
$...@439cf618 (uid=1000 pid=90)
02-01 11:36:28.151: INFO/com.spigo.balloons.Balloons(22453): onDestroy
()::called
02-01 11:36:29.701: WARN/InputManagerService(90): Starting input on
non-focused client android.view.inputmethod.InputMethodManager
$...@439cf618 (uid=1000 pid=90)
02-01 11:36:32.581: WARN/SurfaceFlinger(90): timeout expired
mFreezeDisplay=1, mFreezeCount=0
02-01 11:36:32.681: WARN/WindowManager(90): App freeze timeout
expired.
02-01 11:36:32.691: WARN/WindowManager(90): Force clearing freeze:
AppWindowToken{43c60f20 token=HistoryRecord{43ab26f0
{com.spigo.balloons/com.spigo.balloons.Balloons}}}
02-01 11:36:33.481: INFO/com.spigo.balloons.Balloons(22453): onCreate
()::called - SIS is non-null
02-01 11:36:33.531: INFO/com.spigo.balloons.Balloons(22453): onResume
()::called - thread state: NEW
02-01 11:36:33.531: INFO/com.spigo.balloons.BalloonsGame(22453):
restoreState():called
02-01 11:36:33.541: INFO/com.spigo.balloons.Level(22453): restoreState
():called
02-01 11:36:33.571: INFO/com.spigo.balloons.Balloons(22453): onPause
()::called
02-01 11:36:33.571: INFO/com.spigo.balloons.BalloonsGame(22453):
saveState():called

The manifest states: android:screenOrientation=landscape, hence the
activity is forced into landscape nomatter the orientation.

A comparison report of the two logs is available at
http://dl.dropbox.com/u/253720/Report.html , the left hand side being
the emulator and the right being the handset.

Can it be related to the Low Memory: No more background processes.
or the App freeze timeout expired.?

Verbose logs are furthermore available at 
http://dl.dropbox.com/u/253720/logEmulatorFull.txt
and http://dl.dropbox.com/u/253720/logHandsetFull.txt

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


[android-developers] ACTION_BOOT_COMPLETED

2010-02-01 Thread Acer
Hello,

I'm new to Android. I'm trying to use the intent
android.content.Intent.ACTION_BOOT_COMPLETED in order to start a
activity/service as soon as the device is booted.The intent filter is
as below

receiver android:name=My2Receiver android:enabled=true
intent-filter
action
android:name=android.content.Intent.ACTION_BOOT_COMPLETED/
category android:name=android.intent.category.HOME/
/intent-filter
/receiver

Also the following is the code in My2Receiver

public void onReceive(Context context,Intent intent) {
Log.d(DEBUG,BOOT COMPLETED);
Intent myStarterIntent = new Intent(context, Hello.class);
/* Set the Launch-Flag to the Intent. */
myStarterIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
/* Send the Intent to the OS. */
context.startActivity(myStarterIntent);
}

But I do not see any debug messages like BOOT COMPLETED.

Target Version - Android 1.6 API Level 4.

Could anyone please help me know where I'm going wrong here.

-- 
You received this message because you are subscribed to the Google
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] Remote Log

2010-02-01 Thread Kimi
Hello everybody,

I have used Android's log all around my app to trace some important
events. As for development porpuse only, I would like to do one of the
following things:

1) redirect that log to a specific file in a SD-Card
2) locate the log file, if already exist

I both cases I will create another app that uploads the Log to a
server, using FTP or something.

Thanks very much,

Kimi

-- 
You received this message because you are subscribed to the Google
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] Programmatically turning off the screen and locking the phone

2010-02-01 Thread abhay
Hi All,
 As we know that Android phone gets locked after screen
timeout. But I want to lock the phone on demand as well. i.e. without
waiting for screen timeout to occur..  As in nexus android phone there
is hard button on top for making screen turn off and lock the phone.
i have to do same functionality but by using soft key i.e. in a
programmatic way. What are the APIs or routines that can help me ? Can
someone point me for getting this functionality ?


Thanks in advance,
Abhay

-- 
You received this message because you are subscribed to the Google
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] Save user name and password with SharedPreferences

2010-02-01 Thread kumar
Hii

   i want to save user Name and password in my android application
using the android save preference. but its not working.

code is here\\\


import android.content.SharedPreferences;

 protected void Savepreference()
{

   int mode = Activity.MODE_PRIVATE;
SharedPreferences mySharedPreferences = 
getSharedPreferences
(myprefs, mode);
SharedPreferences.Editor editor = 
mySharedPreferences.edit();
String sip = sipText.getText().toString();
String user = UserText.getText().toString();
String pass = passText.getText().toString();

editor.putString(sipid,sip );
editor.putString(userid,user );
editor.putString(passid,pass );
editor.commit();
}


  public void loadpreference()
   {
   int mode = Activity.MODE_PRIVATE;
   SharedPreferences mySharedPreferences = getSharedPreferences
(myprefs, mode);
   String sipid1 = mySharedPreferences.getString(sipid,
Sipid);
   String userid1 = mySharedPreferences.getString(userid, User
Name);
   String passid1 = mySharedPreferences.getString(passid,
Password);
   sipText.setText(sipid1);
   UserText.setText(userid1);
   passText.setText(passid1);

   }


Thank You in advance
bhavesh

-- 
You received this message because you are subscribed to the Google
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] Dev Tools app crashes on entering Dev Settings menu (htc tattoo)

2010-02-01 Thread Dan S
Hi -

On a HTC Tattoo (android 1.6) I install the Dev Tools app by copying
it out of an emulated 1.6 machine. Opening the app works, but then
when I go into the Development Settings menu it crashes with

  The application Dev Tools (process com.android.development) has
stopped unexpectedly. Please try again.

Using adb logcat I got the stack trace given below, suggesting a
security restriction. Is this fixable?

Thanks
Dan


D/WindowManager(   81): interceptKeyTq
event=android.view.rawinputev...@437f08f0 keycode=0 screenIsOn=true
keyguardShowing=false
D/KeyInputQueue(   81): DebugMonitor keycode=0 value=1
D/WindowManager(   81): interceptKeyTq
event=android.view.rawinputev...@437f08f0 keycode=0 screenIsOn=true
keyguardShowing=false
D/KeyInputQueue(   81): DebugMonitor keycode=0 value=0
I/ActivityManager(   81): Starting activity: Intent
{ act=android.intent.action.MAIN cat=[android.intent.category.TEST]
flg=0x1000 cmp=com.android.development/.DevelopmentSettings }
W/ServiceManager(   81): Permission failure:
android.permission.HARDWARE_TEST from uid=10049 pid=436
E/SurfaceFlinger(   81): Permission Denial: pid=436, uid=10049
D/AndroidRuntime(  436): Shutting down VM
W/dalvikvm(  436): threadid=3: thread exiting with uncaught exception
(group=0x4001db88)
E/AndroidRuntime(  436): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime(  436): java.lang.RuntimeException: Unable to resume
activity {com.android.development/
com.android.development.DevelopmentSettings}:
java.lang.SecurityException
E/AndroidRuntime(  436):at
android.app.ActivityThread.performResumeActivity(ActivityThread.java:
2931)
E/AndroidRuntime(  436):at
android.app.ActivityThread.handleResumeActivity(ActivityThread.java:
2953)
E/AndroidRuntime(  436):at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2489)
E/AndroidRuntime(  436):at android.app.ActivityThread.access
$2100(ActivityThread.java:123)
E/AndroidRuntime(  436):at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:1843)
E/AndroidRuntime(  436):at android.os.Handler.dispatchMessage
(Handler.java:99)
E/AndroidRuntime(  436):at android.os.Looper.loop(Looper.java:
123)
E/AndroidRuntime(  436):at android.app.ActivityThread.main
(ActivityThread.java:4321)
E/AndroidRuntime(  436):at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(  436):at java.lang.reflect.Method.invoke
(Method.java:521)
E/AndroidRuntime(  436):at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:791)
E/AndroidRuntime(  436):at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
E/AndroidRuntime(  436):at dalvik.system.NativeStart.main
(Native Method)
E/AndroidRuntime(  436): Caused by: java.lang.SecurityException
E/AndroidRuntime(  436):at android.os.BinderProxy.transact
(Native Method)
E/AndroidRuntime(  436):at
com.android.development.DevelopmentSettings.updateFlingerOptions
(DevelopmentSettings.java:246)
E/AndroidRuntime(  436):at
com.android.development.DevelopmentSettings.onResume
(DevelopmentSettings.java:169)
E/AndroidRuntime(  436):at
android.app.Instrumentation.callActivityOnResume(Instrumentation.java:
1225)
E/AndroidRuntime(  436):at android.app.Activity.performResume
(Activity.java:3559)
E/AndroidRuntime(  436):at
android.app.ActivityThread.performResumeActivity(ActivityThread.java:
2917)
E/AndroidRuntime(  436):... 12 more

-- 
You received this message because you are subscribed to the Google
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] Printing Array on Screen

2010-02-01 Thread Akki
Hi guys,

I want to print array on android device.Actually im generating Random
numbers and im displaying them one by one on screen.for tht im using
array.But im unable to display array on screen.Please help me in
random number generation using an array in android

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


[android-developers] iphone app development,outsource iphone development

2010-02-01 Thread Elan Emerging Technologies PVT Ltd.
Elan Emerging Technologies PVT Ltd. (EETPL) is an India based Software
Outsourcing Company offers Software Development and Web Development
Services. Elan Emerging Technologies provides services such as
Software Development, Web Development, Ecommerce Development, Web
Design and Development, Web Application Maintenance, ASP.NET
Development, Blackberry Application Development, Ecommerce Solutions,
joomla application development, Drupal website Development, Ajax Web
Development, PHP/MySQL Development, SEO Services, iPhone App
Development, outsource iphone development and Mobile Development to
clients in US, UK, Australia, Canada and Europe.

Elan Emerging Technologies uses following tools and technologies for
Web and Sofware Development:
1. Microsoft .NET Technology - ASP.NET, VB.NET, ADO.NET, Sharepoint,
C#, XML, Winforms, Web Servers and SQL Server Database
2. PHP Technology - PHP (Zend Framework, Zend MVC), MySQL, Ruby on
Rails (RoR), CakePHP, Open Source, Magento, Joomla, Oscommerce,
Drupal, Mambo, PHPNuke, PHPDocumentor, WordPress, PHPbb, Dolphin etc.
3. Web Designing, HTML, CSS, DHTML, Java Script, AJAX, Flex and Flex,
Web 2.0

Elan Emerging Technologies have expertise in different domain:
1. Ecommerce Sites, Job Portals, Auction Sites, Social Networking,
Community Sites, Real Estate Website, Travel and Hotel Booking
Websites etc.
2. CMS Solutions, CRM Applications, ERP, Supply Chain Management
System, POS, Business Intlligence Applications etc.
3. Flex Application, Rich Media Applications, Mobile and wireless
Applications, iPhone Applications etc.

Visit our Corporate Website to know more about our services and
projects we have done.

Elan Emerging Technologies PVT Ltd.
http://www.elantechnologies.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


[android-developers] Re: Android 2.0.1 SocketTimeoutException received with FTP Data channel

2010-02-01 Thread Ryu
Hello James,

Did you correctly add the TCP port in the URL entered in Runftp?
Like:

$ o sftp://hogeh...@blahblah.com:5

Also check to see if you enabled the port 5, meaning it is not
blocked
by a packet filter like iptables.
You could try FTPS which has easier setup in ProFTPD if you just want
security over your file transfer.

Ryu

-- 
You received this message because you are subscribed to the Google
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] switching between cellular network and wi-fi

2010-02-01 Thread subho
Does android framework support automatic switch to Wi-Fi when
detected, from cellular network ?
Please post your views.

-- 
You received this message because you are subscribed to the Google
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] Dynamic TableLayout problem

2010-02-01 Thread David Arm
Hi! Im having a problem with a tablelayout. Im trying to add rows
dinamically and display the content of these rows (there are not
content problems as T tested it and the app has all the data that it
needs).

This is the java code and the xml of the activity:


[code]import java.util.ArrayList;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;


public class DisplayResult extends Activity{

/** Called when the activity is first created. */

@SuppressWarnings(unchecked)
public void onCreate(Bundle savedInstanceState) {

System.out.println(2º actividad lanzada);

super.onCreate(savedInstanceState);
setContentView(R.layout.displayresults);
Bundle extras = getIntent().getExtras();


//this.setContentView(R.layout.main);

/* Find Tablelayout defined in main.xml */
TableLayout tl = (TableLayout)findViewById
(R.layout.displayresults);

ArrayList finalResults;

if(extras!=null){
finalResults = (ArrayList) (extras.getSerializable
(RemoteIR.RESULTS));

Iterator it = finalResults.iterator();

while(it.hasNext()) {
SearchResult result = ((SearchResult) it.next());

/* Create a new row to be added. */
TableRow tr = new TableRow(this);
tr.setLayoutParams(new LayoutParams(
   LayoutParams.FILL_PARENT,
   LayoutParams.WRAP_CONTENT));

TextView title = new TextView(this);
title.setText(result.title.toString());
//System.out.println(title.getText());

TextView author = new TextView(this);
author.setText(result.author.toString());

TextView file = new TextView(this);
file.setText(result.file.toString());

TextView modDate = new TextView(this);
author.setText(result.modDate.toString());

TextView size = new TextView(this);
size.setText(result.size.toString());

 title.setLayoutParams(new LayoutParams(
   LayoutParams.FILL_PARENT,
   LayoutParams.WRAP_CONTENT));

 author.setLayoutParams(new LayoutParams(
 LayoutParams.FILL_PARENT,
 LayoutParams.WRAP_CONTENT));

 file.setLayoutParams(new LayoutParams(
 LayoutParams.FILL_PARENT,
 LayoutParams.WRAP_CONTENT));

 modDate.setLayoutParams(new LayoutParams(
 LayoutParams.FILL_PARENT,
 LayoutParams.WRAP_CONTENT));

 size.setLayoutParams(new LayoutParams(
 LayoutParams.FILL_PARENT,
 LayoutParams.WRAP_CONTENT));

 tr.addView(title);
 tr.addView(author);
 tr.addView(file);
 tr.addView(modDate);
 tr.addView(size);


tl.addView(tr,new TableLayout.LayoutParams(
 LayoutParams.FILL_PARENT,
 LayoutParams.WRAP_CONTENT));

}

}


}

}[/code]

This is the xml:


[code]?xml version=1.0 encoding=utf-8?
TableLayout xmlns:android=http://schemas.android.com/apk/res/
android
android:id=@+id/DisplayResults
android:layout_width=fill_parent
android:layout_height=fill_parent


TableRow
TextView
android:layout_column=1
android:text=Title
android:padding=3dip /
TextView
android:text=Author
android:padding=3dip /
TextView
android:text=File
android:padding=3dip /
TextView
android:text=ModDate
android:padding=3dip /
TextView
android:text=Size
android:padding=3dip /
/TableRow


/TableLayout[/code]


And this is the error that is frustrating me :s

ERROR:

02-01 12:10:34.129: ERROR/AndroidRuntime(938): Uncaught handler:
thread main exiting due to uncaught exception
02-01 12:10:34.149: ERROR/AndroidRuntime(938): [b]
java.lang.RuntimeException: Unable to start activity ComponentInfo
{citic.android.remoteir/citic.android.remoteir.DisplayResult}:
java.lang.NullPointerException[/b]
02-01 12:10:34.149: ERROR/AndroidRuntime(938): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2496)
02-01 12:10:34.149: ERROR/AndroidRuntime(938): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2512)
02-01 12:10:34.149: ERROR/AndroidRuntime(938): at
android.app.ActivityThread.access$2200(ActivityThread.java:119)
02-01 12:10:34.149: ERROR/AndroidRuntime(938): at

[android-developers] How to make a flow text in a textview

2010-02-01 Thread goem
Hello,everyone

I want to  make a text  from left to right flow for definite
times in Textview . The text should automatic flow  if the text length
is very long.And only the text flow not the textview.But in
APIdemos/views/Animation/Push isn't what I want. Should I adopt the
animation(only  control the view not text)  or other ways?Thank you
very much.

Best Regards

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


[android-developers] Binding list views to large data sets

2010-02-01 Thread THill
I need to be able to scroll through a list with (up to) 20K rows,
backed by a cursor on a read-only db.

Testing 20K rows on a G1, the query takes approx .02s regardless of
table size, while binding the adapter to the list takes 4.5s.  Note
that this is before the view calls used in rendering.

What makes the binding delay more troublesome is that it blocks the UI
thread, and is incurred on every rotate.  Combine these, and doing a
rotate just after starting the bind results in a delay up to 9s.

I tried lazy loading with a base adapter, but that hits the same delay
in the underlying cursor.getCount(), and the overall user experience
isn't ideal.

I also considered using an ArrayAdapter, adding synthesized objects
from the cursor rows, but then I'd incur the overhead of creating up
to 20K objects (not to mention the additional memory requirements).

Any recommended alternatives or workarounds?

Thanks in advance,
Tim

-- 
You received this message because you are subscribed to the Google
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: Simple LinearLayout Question

2010-02-01 Thread jarnaud
Hello, yes, equal weights is the way to do it.
Could you share your layout code?
--
Jay
Complete Android Tutorials: http://android.voxisland.com

On Jan 31, 3:49 am, scastria scastria...@gmail.com wrote:
 Maybe I am missing something here:

 I have a simple horizontal LinearLayout with fill_parent set
 containing 3 TextViews inside it.  I have set each of the TextViews to
 have 1.0 weight.  My goal was to get each TextView to take up 33% of
 the LinearLayout.  This sort of works, but the TextView sizes change
 depending on the text of the TextView.  The TextView with the longest
 string is taking up slightly more space than the other two TextViews
 with shorter strings.  Since each of the TextViews have equal weights,
 they should be evenly distributed across their parent regardless of
 the text inside, correct?

-- 
You received this message because you are subscribed to the Google
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] Programmatically turning off the screen and locking the phone

2010-02-01 Thread Abhay dey
Hi All,
 As we know that Android phone gets locked after screen timeout. But
I want to lock the phone on demand as well. i.e. without waiting for screen
timeout to occur..  As in nexus android phone there is hard button on top
for making screen turn off and lock the phone.  i have to do same
functionality but by using soft key i.e. in a programmatic way. What are the
APIs or routines that can help me ? Can someone point me for getting this
functionality ?


Thanks in advance,
Abhay

-- 
You received this message because you are subscribed to the Google
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] Dynamic TableLayout problem

2010-02-01 Thread David Arm
Hi! Im having a problem with a tablelayout. Im trying to add rows
dinamically and display the content of these rows (there are not
content problems as T tested it and the app has all the data that it
needs).

This is the java code and the xml of the activity:

[syntax=java]import java.util.ArrayList;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;


public class DisplayResult extends Activity{

   /** Called when the activity is first created. */

   @SuppressWarnings(unchecked)
   public void onCreate(Bundle savedInstanceState) {

   System.out.println(2º actividad lanzada);

   super.onCreate(savedInstanceState);
   setContentView(R.layout.displayresults);
   Bundle extras = getIntent().getExtras();


   //this.setContentView(R.layout.main);

   /* Find Tablelayout defined in main.xml */
   TableLayout tl = (TableLayout)findViewById
(R.layout.displayresults);

   ArrayList finalResults;

   if(extras!=null){
   finalResults = (ArrayList) (extras.getSerializable
(RemoteIR.RESULTS));

   Iterator it = finalResults.iterator();

   while(it.hasNext()) {
   SearchResult result = ((SearchResult) it.next());

   /* Create a new row to be added. */
   TableRow tr = new TableRow(this);
   tr.setLayoutParams(new LayoutParams(
  LayoutParams.FILL_PARENT,
  LayoutParams.WRAP_CONTENT));

   TextView title = new TextView(this);
   title.setText(result.title.toString());
   //System.out.println(title.getText());

   TextView author = new TextView(this);
   author.setText(result.author.toString());

   TextView file = new TextView(this);
   file.setText(result.file.toString());

   TextView modDate = new TextView(this);
   author.setText(result.modDate.toString());

   TextView size = new TextView(this);
   size.setText(result.size.toString());

title.setLayoutParams(new LayoutParams(
  LayoutParams.FILL_PARENT,
  LayoutParams.WRAP_CONTENT));

author.setLayoutParams(new LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT));

file.setLayoutParams(new LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT));

modDate.setLayoutParams(new LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT));

size.setLayoutParams(new LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT));

tr.addView(title);
tr.addView(author);
tr.addView(file);
tr.addView(modDate);
tr.addView(size);


   tl.addView(tr,new TableLayout.LayoutParams(
LayoutParams.FILL_PARENT,
LayoutParams.WRAP_CONTENT));

   }

   }


   }

}[/syntax]


This is the xml:

[syntax=xml]
?xml version=1.0 encoding=utf-8?
TableLayout xmlns:android=http://schemas.android.com/apk/res/
android
   android:id=@+id/DisplayResults
   android:layout_width=fill_parent
   android:layout_height=fill_parent
   

   TableRow
   TextView
   android:layout_column=1
   android:text=Title
   android:padding=3dip /
   TextView
   android:text=Author
   android:padding=3dip /
   TextView
   android:text=File
   android:padding=3dip /
   TextView
   android:text=ModDate
   android:padding=3dip /
   TextView
   android:text=Size
   android:padding=3dip /
   /TableRow


/TableLayout[/syntax]


And this is the error that is frustrating me :s

ERROR:

02-01 12:10:34.129: ERROR/AndroidRuntime(938): Uncaught handler:
thread main exiting due to uncaught exception
02-01 12:10:34.149: ERROR/AndroidRuntime(938): [b]
java.lang.RuntimeException: Unable to start activity ComponentInfo
{citic.android.remoteir/citic.android.remoteir.DisplayResult}:
java.lang.NullPointerException[/b]
02-01 12:10:34.149: ERROR/AndroidRuntime(938): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2496)
02-01 12:10:34.149: ERROR/AndroidRuntime(938): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2512)
02-01 12:10:34.149: ERROR/AndroidRuntime(938): at
android.app.ActivityThread.access$2200(ActivityThread.java:119)
02-01 12:10:34.149: ERROR/AndroidRuntime(938): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
02-01 

[android-developers] Re: ANDROID_ID always null on devices

2010-02-01 Thread Rampanda
Hi,

having the exact same problem on a Droid 2.0.1 and HTC Hero 1.5. :

String androidID = Secure.getString(this.getContextResolver(),
android.provider.Settings.Secure.ANDROID_ID);
Toast.makeText(this, ANDROID_ID:  + androidID,
Toast.LENGTH_LONG).show();

consistently returns null on the devices and differences in OS and
device seem to indicate some sort of problem with the compiled code.

Not sure what is causing this, could be that the app erroneously
believes it is running on an emulator or for some other reason is
unable to retrieve the setting.

No uncaught exceptions or other error message are printed when making
these calls which help.

For our application to work we need to be 100% sure we have a unique
ID across all OS versions and device manufacturers, which is exactly
what androidID is for. We're using IMEI and some key voodoo to sort of
make it unique, but would prefer androidID to work. Also, it not
working may be caused by something else that is also breaking other
functionality.

Haven't found the cause yet, but as soon as something falls into place
I'll post it here. In the meantime, what is the name of the android
apps you're using? Would like to test with the exact same ones you're
testing on.

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] Using WifiManager to connect to a network

2010-02-01 Thread Daniel Rolph
Hello everyone,

I am using a Nexus One with 2.1 SDK. I am having problems with a module in my 
application connecting programmatically to a network/AP. The code snippet that 
I am using is:

WifiConfiguration wifiConfig = new WifiConfiguration();
wifiConfig.BSSID=00:0C:41:F5:B0:08;
wifiConfig.SSID=test;
WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE);
wifi.setWifiEnabled(true);
int netId = wifi.addNetwork(wifiConfig);
wifi.enableNetwork(netId, true);

Monitoring the network, I see probe requests transmitting from the device, but 
I do not see an Authentication/Association request to the access point that I 
specify in the BSSID. Ultimately, I will perform a scan to determine valid AP 
BSSIDs, but for testing, I simply want to connect to a test AP which is in 
close proximity to my Nexus One.

I have set the appropriate permissions in my manifest xml and am not seeing any 
negative log statements from adb.

Any pointers or suggestions with using WifiManager to perform this action would 
be very appreciated.

Thank you very much!

Dan

-- 
You received this message because you are subscribed to the Google
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] adb install gives Failure [-12] when deploying an application to phone

2010-02-01 Thread GSLDev
Hi,
I am new to Android development, was trying to deploy a simple
HelloWorld app to a G1 dev phone via USB cable using adb install. I
keep getting the following error:

 adb install HelloAndroid.apk
 250 KB/s (12008 bytes in 0.046s)
pkg: /data/local/tmp/HelloAndroid.apk
 Failure [-12]

I have tried the following:
1. Package the app as UnSign and do adb install
2. Package the app as Sign App and do adb install
3. Try Android 1.1  1.5 respectively
And they all yield the same error Failure[-12] error.

My questions are:
1. Since it is a development phone (G1 Dev Phone 1), should I package
it as Sign or Unsign application?
2. How do I know if the phone needs Android 1.1 or 1.5 or other
versions? In the Settings/About Phone, this is the info listed:
 Model Number: Android Dev Phone 1
 Firware Version: 1.0
 Baseband Version: 62.33.20.08H_1.22.12.29
 Kernel Version: apa27#6
 Build Number: dream_devphone_userdebug 1.0 UNLOCKED  test
keys
3. Any insights on what is causing this problem and how to fix it? Do
I have to flash a new image on the phone?

-- 
You received this message because you are subscribed to the Google
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_ID always null on devices

2010-02-01 Thread Rampanda
Hi fisobral,

Having the exact same problem using a Motorola Droid running 2.0.1 and
HTC Hero on 1.5.

Querying the Android ID consistently returns a null value, using
similar code to yours in the onCreate of the launcher Activity:

String androidID = Secure.getString(this.getContentResolver(),
android.provider.Settings.Secure.ANDROID_ID);
Toast.makeText(this, ANDROID_ID:  + androidID,
Toast.LENGTH_LONG).show();

We need the androidID to work, because our app needs to be 100% sure
the device ID is unique across all vendors and OS versions. We're now
using IMEI but from what I've been able to find up to this point, that
isn't guaranteed to be unique. That's what the android ID is for of
course.

Have you found the cause of this in the meantime? I'm wondering if the
app somehow thinks it is running on an emulator or if there is indeed
something in the compilation that's triggering this behavior. One clue
is that it is happening across different OS versions and devices
(Droid @ 2.01 and HTC Hero @ 1.5) so the one consistent factor is the
compiled code and APK.

Trying to fix, will keep you posted.

-- 
You received this message because you are subscribed to the Google
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] [TransitionDrawable ImageView] Bug fix on android 2.1 ?

2010-02-01 Thread Worgle
Hello,

It seams to me that a bug was fixed between android 2.0.1 and 2.1
about TransitionDrawable (or maybe ImageView).

When using TransitionDrawable in a ListView (with convert view
mechanism) in android 2.0.1 and below, I can't see the Transition if I
scroll rapidly to the end of the list, and then go back to the middle
(even through I'm calling startTransition). Note that my
TransitionDrawable is set as the image of an ImageView.
(Tested on emulators from 1.6 to 2.1, and on real devices : G2 with
1.5, G2 with 1.6 and Nexuos One with 2.1)

But with android 2.1, the bug magically disappeared ! I'm quite happy
but I still want backward compatibility...

So is there anyone on the android team a bit less busy than the others
who could run a diff on TransitionDrawable and ImageView between 2.01
and 2.1 and tell us what's going on ? :)

Of course the change could have occured on LayerDrawable or other
parent's classes as well...

Thanks,

Fabien

PS : here's part of my code

Drawable drawableOld = this.getDrawable();
Drawable drawableNew = new BitmapDrawable
(bitmap);
Drawable[] layers = {drawableOld, drawableNew};
TransitionDrawable transitionDrawable = new
TransitionDrawable(layers);
transitionDrawable.setCrossFadeEnabled(true);
setImageDrawable(transitionDrawable);
transitionDrawable.startTransition
(TRANSITION_DURATION);

-- 
You received this message because you are subscribed to the Google
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] About calling feature in android

2010-02-01 Thread saru
Look i need to develop a dialer software(in android-OS) where i need
to catch different calling features.So far i get notices of incoming
call, outgoing call and different call state.

But what is needed to me are
* my application can receive the call(Accept button in my application)
*my application can reject the call(Cancel button in my application)

 before posting here probably i searched every where in web but
failed.Please if u people out there have any idea how could i
implement accept and reject button in my application please let me
know.

-- 
You received this message because you are subscribed to the Google
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] Packing source code - Best practice

2010-02-01 Thread DevQuest
Hello,

What is best practice for an android application in terms of packing
the source code? It is recommended to use a single java package for
all the sources or create different java packages depending on classes
behavior/functionality?

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] How to show a loading image or an animation?

2010-02-01 Thread Temitope Akinwande
Hi,

You can check this out
http://developer.android.com/intl/fr/guide/topics/ui/dialogs.html#ProgressDialog
http://developer.android.com/intl/fr/reference/android/os/AsyncTask.html

From what I gather, you'll have to start a thread using AsyncTask and
that way you can show your progress dialog.
A search of progress dialog and async task should yield more results
as I'm sure this question has been asked before.

-Tope

On Mon, Feb 1, 2010 at 10:39 AM, Achanta krishna.acha...@gmail.com wrote:
 I have a search box and a web view in my activity.

 I also have a search button which when someone clicks opens a the url
 in the webview below the search box.

 Everything is working fine except that it remains blank while the page
 loads.
 I want to show a loading message with a spinning icon/animation while
 the page loads. [similar to one in the market app].

 please let me know how to do it.
 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

-- 
You received this message because you are subscribed to the Google
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] create images from jpg files

2010-02-01 Thread brandon
Hello,
i currently have a ListFiles which are all jpg format.  I am trying
to traverse through this list displaying each image using the
ImageView class.  I'm having a problem finding a way to create an
image to display out of the contents of the list.  I am new to android
and the java language :-/   I have tried using createBitmap but it
seems Bitmap doesn't really work with Files either.  Any ideas?

here is the function..

public View getView(int position, View convertView, ViewGroup parent)
{
ImageView i = new ImageView(mContext);

i.setImageBitmap(thumbs.get(position));
i.setAdjustViewBounds(true);
i.setLayoutParams(new Gallery.LayoutParams(
LayoutParams.WRAP_CONTENT,
LayoutParams.WRAP_CONTENT));
return i;
}

-- 
You received this message because you are subscribed to the Google
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] Where to correctly place xml containing data?

2010-02-01 Thread kaasinees
Greetings humane, I come in peace.

I have the following XML file which serves as database for my
application.

?xml version=1.0 encoding=UTF-8?
units
category id=0 text=Length base=metre
unit name=metre ratio=1 /
unit name=mile ratio=0.0006213711922373339 /
/category
category id=1 text=Area
/category
category id=2 text=Volume
/category
/units

I have placed this xml file under the src folder in my com package
where my MainActivity resides.
The compiler  however is giving me this following error:

ERROR Invalid start tag units   units.xml   /univerter/src/com/shinyu/
univerter   line 2  Android AAPT Problem

My xml is not placed in the right place, i believe. Where can i
correctly put it?

Android 1.5, Java, Eclipse.

-- 
You received this message because you are subscribed to the Google
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 achieve ultra smooth OpenGL/ES animation

2010-02-01 Thread fulanito
 I am drawing a pretty simple scene, with one large texture the about
 size of the screen (two triangles). I notice that the frame-rate is
 irregular: in most of cases, a frame finishes in 17 ms. However, in
 about 1 of 10 times, the frame finishes in 33ms.

This could be the garbage collector.
Whenever the garbage collector is called, you can see a message in the
logcat, under the tag dalvikvm, using log level debug.
If it is the GC, the way to fix it is to avoid allocating memory:
every time you allocate memory,
the GC wakes up to check if there is something to collect; just pre-
allocate all the objects you need,
and that´s it.
You can also call the GC manually, when the timing is good for you,
using the System.gc() call.

Fulanito.




-- 
You received this message because you are subscribed to the Google
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: Temperature Sensors

2010-02-01 Thread SIDIBE Ali-Broma

No device support temperature

On 29 jan, 21:29, sam s...@falaki.com wrote:
 Greetings,

 I can't seem to find this info on the droids temperature sensor (the
 one available in the SDK):

 Does it indicate ambient temperature or is it the temperature of the
 phone or chip?

 Also, does the pressure sensor indicate atmospheric pressure?

 regards,

 Sam

-- 
You received this message because you are subscribed to the Google
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 display unicode text received from a web API

2010-02-01 Thread Tommy Hartz
what are you using on your webside to generate the XML? You may need to do
special encoding of the text before sending it out.

On Sat, Jan 30, 2010 at 10:03 AM, Marko Anastasov marko.anasta...@gmail.com
 wrote:

 Hello,

 I'm fetching some data from my web API that returns XML with content
 which includes escaped unicode characters. So there is content such as
 Izlo#382;ba which I need to display in a TextView as word
 Izložba. How can I do this? Right now these characters are either
 ommitted or displayed as that raw escaped value.

 --
 You received this message because you are subscribed to the Google
 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.comandroid-developers%2bunsubscr...@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] [TransitionDrawable ImageView] Bug fix on android 2.1 ?

2010-02-01 Thread Romain Guy
Hi,

Why exactly do you need to know what the fix was? I don't remember
doing anything to fix TransitionDrawable so it's probably one of the
numerous fixes that went into ListView itself that's responsible for
the new correct behavior.

On Mon, Feb 1, 2010 at 8:39 AM, Worgle lewor...@gmail.com wrote:
 Hello,

 It seams to me that a bug was fixed between android 2.0.1 and 2.1
 about TransitionDrawable (or maybe ImageView).

 When using TransitionDrawable in a ListView (with convert view
 mechanism) in android 2.0.1 and below, I can't see the Transition if I
 scroll rapidly to the end of the list, and then go back to the middle
 (even through I'm calling startTransition). Note that my
 TransitionDrawable is set as the image of an ImageView.
 (Tested on emulators from 1.6 to 2.1, and on real devices : G2 with
 1.5, G2 with 1.6 and Nexuos One with 2.1)

 But with android 2.1, the bug magically disappeared ! I'm quite happy
 but I still want backward compatibility...

 So is there anyone on the android team a bit less busy than the others
 who could run a diff on TransitionDrawable and ImageView between 2.01
 and 2.1 and tell us what's going on ? :)

 Of course the change could have occured on LayerDrawable or other
 parent's classes as well...

 Thanks,

 Fabien

 PS : here's part of my code

                    Drawable drawableOld = this.getDrawable();
                    Drawable drawableNew = new BitmapDrawable
 (bitmap);
                    Drawable[] layers = {drawableOld, drawableNew};
                    TransitionDrawable transitionDrawable = new
 TransitionDrawable(layers);
                    transitionDrawable.setCrossFadeEnabled(true);
                    setImageDrawable(transitionDrawable);
                    transitionDrawable.startTransition
 (TRANSITION_DURATION);

 --
 You received this message because you are subscribed to the Google
 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




-- 
Romain Guy
Android framework engineer
romain...@android.com

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

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
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 show a loading image or an animation?

2010-02-01 Thread Achanta
Thank you for the reply,

 as I'm sure this question has been asked before.
I was also sure that it has been asked before because its a common
task, But searching the web or this group did not give me the
appropriate results.

 From what I gather, you'll have to start a thread using AsyncTask and
 that way you can show your progress dialog.
I may have to but I am not sure. Here I am loading a webpage and this
is happening in the same thread or it appears to be. I can also get
the progress of it from the WebView. I am not doing any background
activity like calculations or downloading stuff, but loading the page
which is on the same thread. So I am a little lost on how to get this
done.

Thanks again.


On Feb 1, 11:12 am, Temitope Akinwande takinwa...@gmail.com wrote:
 Hi,

 You can check this 
 outhttp://developer.android.com/intl/fr/guide/topics/ui/dialogs.html#Pro...http://developer.android.com/intl/fr/reference/android/os/AsyncTask.html

 From what I gather, you'll have to start a thread using AsyncTask and
 that way you can show your progress dialog.
 A search of progress dialog and async task should yield more results
 as I'm sure this question has been asked before.

 -Tope

 On Mon, Feb 1, 2010 at 10:39 AM, Achanta krishna.acha...@gmail.com wrote:
  I have a search box and a web view in my activity.

  I also have a search button which when someone clicks opens a the url
  in the webview below the search box.

  Everything is working fine except that it remains blank while the page
  loads.
  I want to show a loading message with a spinning icon/animation while
  the page loads. [similar to one in the market app].

  please let me know how to do it.
  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



-- 
You received this message because you are subscribed to the Google
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   3   >