[android-developers] Regarding toast messages

2010-10-11 Thread ameya dandekar
Hi,
In  my app , i have used 'Toast'  to show various messages for user on a
certain wrong action. It works absolutely perfectly on 1.5 devices but on
some devices of 2.1 like *samsung europa* etc. , the toast messages are
getting broken .
My code for creating toast and showing is as follows :
Toast t = Toast.makeText(this,Select a contact.,
Toast.LENGTH_SHORT);

t.setGravity(Gravity.CENTER_VERTICAL,Gravity.AXIS_CLIP,Gravity.AXIS_CLIP);
t.show();

If the text is little long then the issue is observed quite a lot.
What i need to change ?

Thanks ,
Ameya

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

2010-07-26 Thread ameya dandekar
Hi,
   I am currently working on the app in which my media player class is
singleton, and i want to play the video files. I use surfaceView for the
video display part. But the problem i m facing is when i change the
orientation , the previous playback disappears (if was playing) and the new
surface view is  getting created ..but  the callback method surface created
is not getting called in which i want to take further action. Where am i
going wrong ?

Regards,
Ameya

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

2010-07-19 Thread ameya dandekar
Hi,
 I am currently working on an app in which i use The VideoView for media
playback. I want to actually hide the play controls (i.e play/pause) when
the video starts and want them back on tap on the videoview .I used the
onTouchListener as well as onClickListener on VideoView .But they both seems
nt getting fired. Is there any other way ?

Thanks and Regards,
Ameya

-- 
You received this message because you are subscribed to the Google
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] Fwd: Regarding R class in application project

2010-07-16 Thread ameya dandekar
-- Forwarded message --
From: ameya dandekar ameya...@gmail.com
Date: Fri, Jul 16, 2010 at 12:02 PM
Subject: Regarding R class in application project
To: android-beginn...@googlegroups.com


Hi,
  I am currently working on application in which i use a library project
as android library and refer to its functionality in my application
project.But when i try to use a resource from library it gives error ...
R.id can not be resolved. Is it that i can not use the resouces and
layouts in library project, in app project ? What i need to do...?
  I m currently using android 1.6 and ADT 0.9.7 that supports building a
library project.

Thanks and Regards,
Ameya

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

2010-07-08 Thread ameya dandekar
Hi,
I am currently working on application in which i need to display
lists in different languages, so , is there any API to get the supported
language list for android ?
I am currently using sdk 1.5. And it is observed that Hindi and
Hebrew are not supported.
So , i need to avoid such languages to be displayed on UI.

Thanks and Regards,
Ameya

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

2010-06-30 Thread ameya dandekar
Hi..
I am currently working on an application in which i am using the
seek bar for showing progress of the song playing, i m using the in built
seek bar of our android , in which instead of the default thumb image of
android , i have an custom image for that in my application, it works
perfectly for 1.5 but for android sdk 2.1 and 2.2, half of that image is
displayed , i.e. thumb is displayed partly outside the screen (for the start
i.e. at 0th pos).I have used android:thumboffset  attribute in xml to
adjust the thumb , but still its not working on 2.1 and 2.2.
So, What can i do for this  ?

Regards,
Ameya

-- 
You received this message because you are subscribed to the Google
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] Fwd: Regarding thumb of the seek bar

2010-06-30 Thread ameya dandekar
Hi..
I am currently working on an application in which i am using the
seek bar for showing progress of the song playing, i m using the in built
seek bar of our android , in which instead of the default thumb image of
android , i have an custom image for that in my application, it works
perfectly for 1.5 but for android sdk 2.1 and 2.2, half of that image is
displayed , i.e. thumb is displayed partly outside the screen (for the start
i.e. at 0th pos).I have used android:thumboffset  attribute in xml to
adjust the thumb , but still its not working on 2.1 and 2.2.
So, What can i do for this  ?

Regards,
Ameya

-- 
You received this message because you are subscribed to the Google
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 email and phone number from contact

2010-06-09 Thread ameya dandekar
Hi,
   I am currently working on SDK 1.5 , and in my app i want to read the
phone number and email address of the person from contacts. I got the
solution to read phone no using following :
  phoneid =
phoneBookCursor.getInt(phoneBookCursor.getColumnIndex(People.PRIMARY_PHONE_ID));
and

   phoneno =
phoneBookCursor.getString(phoneBookCursor.getColumnIndex(People.NUMBER));


  But i couldnt found any way to read email id from cursor since
People.email is not available.

Is there any alternate way to do this?

Thanks,
Ameya

-- 
You received this message because you are subscribed to the Google
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-beginners] Regarding enter key on virtual keyboard

2010-06-08 Thread ameya dandekar
Hi eudokija,
  Thanks for the reply, i have done the same thing in my layout
file,it works on the emulator and Motorola cliq/blur but for htc magic
device , which is having the ENTER key instead of NEXT , it does not take
any action.
So, is any there any alternate way to do this ?
Thanks,
Ameya


On Sat, Jun 5, 2010 at 5:56 PM, eudokija eudok...@gmail.com wrote:

 Set android:imeOptions=actionNext for username EditText and
 android:imeOptions=actionDone for password
 Check out
 http://developer.android.com/reference/android/widget/TextView.html#attr_android:imeOptionsfor
  further reference


 2010/6/3 ameya dandekar ameya...@gmail.com

 Hi,
 I am currently working on sdk 1.5, in which i want capture the Click event
 of Enter key on Virtual Keypad.
 My requirement is, for my Username/Password Login screen. Click on
 Username field. Cursor is displayed in Text entry box. Click on Enter key on
 Virtual Keypad. Cursor should be displayed in Password field. Take the
 cursor in Password field. Click on Enter key on Virtual Keypad. Virtual
 Keypad should be closed.
 I am testing the app on HTC Magic.

 Regards,
 Ameya.

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

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android


 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com

 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


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

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android


 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com

 For more options, visit this group at
 http://groups.google.com/group/android-beginners?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] Fwd: [android-beginners] Regarding enter key on virtual keyboard

2010-06-08 Thread ameya dandekar
-- Forwarded message --
From: ameya dandekar ameya...@gmail.com
Date: Tue, Jun 8, 2010 at 5:18 PM
Subject: Re: [android-beginners] Regarding enter key on virtual keyboard
To: android-beginn...@googlegroups.com, android-developers@googlegroups.com


Hi eudokija,
  Thanks for the reply, i have done the same thing in my layout
file,it works on the emulator and Motorola cliq/blur but for htc magic
device , which is having the ENTER key instead of NEXT , it does not take
any action.
So, is any there any alternate way to do this ?
Thanks,
Ameya



On Sat, Jun 5, 2010 at 5:56 PM, eudokija eudok...@gmail.com wrote:

 Set android:imeOptions=actionNext for username EditText and
 android:imeOptions=actionDone for password
 Check out
 http://developer.android.com/reference/android/widget/TextView.html#attr_android:imeOptionsfor
  further reference


 2010/6/3 ameya dandekar ameya...@gmail.com

  Hi,
 I am currently working on sdk 1.5, in which i want capture the Click event
 of Enter key on Virtual Keypad.
 My requirement is, for my Username/Password Login screen. Click on
 Username field. Cursor is displayed in Text entry box. Click on Enter key on
 Virtual Keypad. Cursor should be displayed in Password field. Take the
 cursor in Password field. Click on Enter key on Virtual Keypad. Virtual
 Keypad should be closed.
 I am testing the app on HTC Magic.

 Regards,
 Ameya.

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

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android


 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com

 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


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

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android


 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com

 For more options, visit this group at
 http://groups.google.com/group/android-beginners?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] Regarding enter key on virtual keyboard

2010-06-04 Thread ameya dandekar
Hi Rajiv,
   Thanks for the reply..but in my app i want to trap the
virtual keyboard keycodes ,
VK_RETURN etc, which i referred from this link
*http://www.codeweblog.com/virtual-keyboard-key-code-table/*
 which are not getting captured  by onKeyDown method.
How can i do that ?

Thanks in advance,
Ameya

On Fri, Jun 4, 2010 at 10:04 AM, Rajiv rajiv...@gmail.com wrote:

 Hi ameya,
 I think u may have did little bit mistake in your application, if you will
 implement these things in the following way, offcource you will got the
 solution.

 Suppose you are using Layout as *account* and Activity as *AccountActivity
 *, you need to do the following modification in there

 account.xml
  ?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


   ScrollView
android:layout_width=fill_parent
android:layout_height=wrap_content
   RelativeLayout
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=wrap_content
android:gravity=left


TextView
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:paddingTop=4dip
 android:paddingLeft=4dip
 android:text=Email address:
 android:id=@+id/emailtext/

 EditText
 android:id=@+id/email
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:layout_marginLeft=8dip
 android:layout_marginRight=8dip
 android:hint=Your email address
 android:inputType=textEmailAddress
 android:layout_below = @id/emailtext/

TextView
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:paddingTop=4dip
 android:paddingLeft=4dip
 android:text=Password:
 android:id=@+id/passwdtext
 android:layout_below = @id/email
 /

 EditText
 android:id=@+id/password
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:layout_marginLeft=8dip
 android:layout_marginRight=8dip
 android:hint=Your password
 android:inputType=textPassword
 android:layout_below = @id/passwdtext/


TextView
 android:layout_width=fill_parent
 android:layout_height=wrap_content
 android:paddingTop=2dip
 android:id=@+id/space1
 android:layout_below = @id/password
 /
Button
 android:id=@+id/validate
 android:layout_width=wrap_content
 android:layout_height=wrap_content
 android:text=continue
 android:layout_below = @id/space1
 android:layout_centerInParent = true/
   /RelativeLayout
   /ScrollView
  /LinearLayout


 AccountActivity

  //package
  //import


  public class AccountActivity extends Activity implements OnClickListener,
 AlertDialog.OnClickListener {


  private EditText userNameEditText;
  private EditText passwordEditText;

  private Button validateAccountButton;

  protected void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);

   setContentView(R.layout.account);

  userNameEditText = (EditText) findViewById(R.id.email);
  passwordEditText = (EditText) findViewById(R.id.password);

  validateAccountButton = (Button)
 findViewById(com.skyscape.packageajccsevenektwondata.android.voucher.ui.R.id.validate);
  validateAccountButton.setOnClickListener(this);

  }


  public void onClick(View view) {
  if (view == validateAccountButton) {
validate();
  }
  }

  protected void validate() {
 //Validate your Account
  }

  public boolean onKeyDown(int keyCode, KeyEvent event) {
   return super.onKeyDown(keyCode, event);
  }


  }

 If you implement in this way, i think you will got your desired result.
 Let me know if you still have doubt.

 Regards,
 Rajiv


 On Thu, Jun 3, 2010 at 7:17 PM, ameya dandekar ameya...@gmail.com wrote:

 Hi,
 I am currently working on sdk 1.5, in which i want capture the Click event
 of Enter key on Virtual Keypad.
 My requirement is, for my Username/Password Login screen. Click on
 Username field. Cursor is displayed in Text entry box. Click on Enter key on
 Virtual Keypad. Cursor should be displayed in Password field. Take the
 cursor in Password field. Click on Enter key on Virtual Keypad. Virtual
 Keypad should be closed.
 I am testing the app on HTC Magic.

 Regards,
 Ameya.

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

[android-developers] Regarding enter key on virtual keyboard

2010-06-03 Thread ameya dandekar
Hi,
I am currently working on sdk 1.5, in which i want capture the Click event
of Enter key on Virtual Keypad.
My requirement is, for my Username/Password Login screen. Click on Username
field. Cursor is displayed in Text entry box. Click on Enter key on Virtual
Keypad. Cursor should be displayed in Password field. Take the cursor in
Password field. Click on Enter key on Virtual Keypad. Virtual Keypad should
be closed.
I am testing the app on HTC Magic.

Regards,
Ameya.

-- 
You received this message because you are subscribed to the Google
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 maintaining the state of the activity on orientation change

2010-05-05 Thread ameya dandekar
Hi
  I am new to androidi m currently working on landscape mode for android
app in which i want to know
  how to maintain the state of the activity and views displayed on
orientation change i.e from portrait mode to landscape mode ?

Regards,
Ameya

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

2010-02-16 Thread ameya dandekar
Hi..i am ameya.
I am new to android...i am currently working on application in
which i am trying to play a online radio channel. i read on the forums abt
rtsp support in android for the video files of .3gp and .sdp. So, using
built in media player can we play the live radio channel? e.g
http://yp.shoutcast.com/sbin/tunein-station.pls?id=868885 was shoutcast's
one of the channelin vlc player it gets played...so can we play it using
android media player or any other ?...




Regards,
Ameya

-- 
You received this message because you are subscribed to the Google
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] Fwd: Question regarding media player android

2010-01-22 Thread ameya dandekar
Hi...i am ameya.
  I am new to android platform and i am currently working on
an application, in which i use android built in media player for playing the
song.But i want to control the buffering of media player when i pass a URL
to play for it. Is there a function or a method to do that ?or i need to
manually buffer the data.?i have read the *Android Tutorial 3: Custom
Media Streaming with MediaPlayer*,but that produces a pause in playing of
the song. * *


Regards,
Ameya

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