[android-developers] Re: How to configure the sampling rate/period while audio capture?

2009-09-24 Thread Vishal.Android

How to capture the audio data from mic into a buffer instead of a
file?

On Sep 23, 2:43 pm, Vishal Gaonkar vishal.andr...@gmail.com wrote:
 I am working on a VOIP based application. I need to capture the audio
 from mic at 8000 hz sampling rate, get the 20msec packets, encode and
 send the packets over the network.

 Can somebody tell me how to configure the mic for the desired sampling
 rate?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 have a horizontal scroll view with multiple buttons?

2009-09-18 Thread Vishal.Android

Tried this in the xml but am not able to get the scroll bars.
Any samples or pointers?

On Sep 14, 7:53 am, Samuel samuel...@gmail.com wrote:
 try HorizontalScrollView
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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 add an icon in the List view?

2009-09-03 Thread Vishal.Android
Thanks Greg, that was very helpful.

On Sep 2, 8:54 pm, greg sep...@eduneer.com wrote:
 Have you reviewed List14 in the API demos?

 On Sep 2, 11:47 am, Vishal Gaonkar vishal.andr...@gmail.com wrote:

  I am trying to add an icon in the list view.
  Below is my code snippet and realted xml, without the icon(i.e. just
  list view).

  Code:
  final View addUser = factory.inflate(R.layout.addusers, null);
                                  mEditText = (EditText)addUser.findViewById
  (R.id.EditText_UserName);

                                  builder = new AlertDialog.Builder(this);
                                  builder.setView(addUser);
                                  
  builder.setTitle(R.string.dialog_addusers_title);
                                  builder.setIcon(R.drawable.adduser);
                                  
  builder.setPositiveButton(R.string.button_ok,
                                                  new 
  DialogInterface.OnClickListener() {
                                                  public void 
  onClick(DialogInterface dialog, int id) {
                                                          mStrings.add(0, 
  mEditText.getText().toString());
                                                          
  mEditText.setText();
                                                          
  lap.notifyDataSetChanged();

                                          }
                                  });
                                  
  builder.setNegativeButton(R.string.button_cancel,null);
                                  alertDialog = builder.create();
                                  dialog = alertDialog;

                                  myListView = 
  (ListView)findViewById(R.id.ListView_UserList);

                                  lap = new ArrayAdapterString(this, 
  R.layout.userlist, mStrings);

  Original userlist.xml

  ?xml version=1.0 encoding=utf-8?
  TextView xmlns:android=http://schemas.android.com/apk/res/android;
                                          android:layout_width=fill_parent
                                          android:layout_height=wrap_content
                                          android:layout_marginTop=7dp
                                          android:singleLine=true/

  Then I tried to add the image view widget to add my icon in each list.
  Modified userlist.xml

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

                  ImageView 
  xmlns:android=http://schemas.android.com/apk/res/
  android
                                          android:id=@+id/ImageView_UserIcon
                                          android:layout_width=48dp
                                          android:layout_height=48dp
                                          
  android:layout_alignParentLeft=true
                                          android:layout_marginRight=7dp
                                          android:layout_marginTop=7dp
                                          android:scaleType=fitXY
                                          android:src=@drawable/carol/
                  TextView    android:id=@+id/TextView_UserName
                                          android:layout_width=fill_parent
                                          android:layout_height=wrap_content
                                          android:layout_marginTop=7dp
                                          android:singleLine=true/

  /LinearLayout

  But I am not successful. It is crashing. Any suggestion on how to add
  icons in the list view?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
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
-~--~~~~--~~--~--~---