[android-developers] Re: Send email via ACTION SEND intent

2010-12-30 Thread nishu
private void sendMail(String mailID) { Intent emailIntent = new Intent(android.content.Intent.ACTION_SENDTO, Uri.fromParts("mailto", mailID, null)); startActivity(Intent.createChooser(emailIntent, "Send mail...")); } This will help u, http://nishantvnair.wordpress.com :)

[android-developers] Re: Getting Keyboard To Appear With Ought Having To Click on EditText

2010-11-15 Thread nishu
Hey u can do what @TreKing commented or Write this in u'r Android Manifest file android:windowSoftInputMode="stateVisible" or android:windowSoftInputMode="stateAlwaysVisible" Hope this helps u On Nov 15, 7:44 am, Prasanna Perera wrote: > Hello, > > I am using a custom layout on an AlertDialog.

[android-developers] Re: PNG file with transparent drop shadow that appears as solid

2010-10-05 Thread nishu
no its the default feature of android. option is to use image without shadow. i didn't got any pngfix which is used in html and css On Oct 4, 11:44 pm, avigadl wrote: > No one knows what to do? > > On Oct 3, 11:10 pm, avigadl wrote:> Hi, > > > I have a PNG file with drop shadow that is supposed

[android-developers] Re: EditText animation onTouch - Custom animation class or ViewSwitcher

2010-10-05 Thread nishu
why to use animation unnecessarily you can just write in on onClickListener edittext_object.setMinLines(5); here 5 represents number of lines, it depends on you. On Oct 5, 8:53 am, santoash wrote: > I have a imageView, editText and textView  within a LinearLayout. I > would like to animate the Ed

[android-developers] Re: Hide soft keyboard

2010-10-05 Thread nishu
hey this works for me you can write this in buttons onClickListener InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); imm.hideSoftInputFromWindow(editText_object.getWindowToken(), 0); write this in a class which extends activity. or u

[android-developers] Re: Problem with image button

2010-09-27 Thread nishu
try this http://schemas.android.com/apk/res/android";> On Sep 26, 6:11 pm, niko20 wrote: > The only thing I can think of is that the drawables in the selector > are taken in the order in which listed in the XML. So it it finds a > "match" for the state it will grab th

[android-developers] Re: linking HyperLinks to an Activity

2010-09-27 Thread nishu
onclick listener write this Intent n = new Intent(c, TestClass.class); c.startActivity(n); c is context On Sep 27, 10:55 am, Sudeep Jha wrote: > Hi All, >             I want to call another activity when the user clicks an > hyperlink. >             Can anybod

[android-developers] Re: TabHost text color

2010-09-27 Thread nishu
i used to do this way, may this help you TextView txtTab = new TextView(this); txtTab.setText(getString(R.string.people)); txtTab.setPadding(8, 4, 8, 4); txtTab.setTextColor(Color.BLACK); txtTab.setTextSize(16); txtTab.setBackgroundResource(R.drawab

[android-developers] custom font

2010-09-09 Thread nishu
hi! i want to use Algerian font in my application. i have tried TextView txt = (TextView) findViewById(R.id.text1); Typeface font = Typeface.createFromAsset(getAssets(), "@fonts/ ALGER.TTF"); txt.setTypeface(font); but no use. How could i do this, i use netbeans and android sdk Please help me.