[android-beginners]

2009-08-16 Thread saurabh sinha

hello I have apk in android
How can I extract to views its content

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



[android-beginners] Re: Q) Adjusting textView font size.

2009-08-16 Thread Liviu Ungureanu
Hi.you can use yourTextView.setTextSize(size_of_text).

Thank you!

On Aug 16, 2009 6:16 AM, daum3...@yahoo.com daum3...@yahoo.com wrote:


Hello all,

I'm printing strings into a textView.

It works well, but the font size is very small to read.

Can I adjust the font size to be bigger?

Thank you for you help in advance.



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



[android-beginners] Re: draw text inside of view

2009-08-16 Thread Wouter

Thank you to share this!

Wouter

On Aug 15, 2:19 pm, Liviu Ungureanu smartli...@gmail.com wrote:
 im sorry...that is the good class..

 import android.content.Context;
 import android.graphics.Canvas;
 import android.graphics.Color;
 import android.graphics.Paint;
 import android.graphics.drawable.ShapeDrawable;
 import android.graphics.drawable.shapes.OvalShape;
 import android.graphics.drawable.shapes.RectShape;
 import android.view.View;

 public class ItemLine extends View{

     private ShapeDrawable mDrawable;

     public ItemLine(Context context,int width)  {
         super(context);

         int x = 0;
         int y = 0;
         int height = 1;

         mDrawable = new ShapeDrawable(new RectShape());
         mDrawable.getPaint().setColor(Color.BLACK);
         mDrawable.setBounds(x, y, x + width, y + height);
     }

     protected void onDraw(Canvas canvas) {
         mDrawable.draw(canvas);
     }

 }


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



[android-beginners] Accessing the text of a textview of an item in a listview that has been selected.

2009-08-16 Thread MMC2

I also want to remove an item from a listview. I am using a
simplecursoradapter. I store the id of each item in a textview which
is invisible. I want to access the id of the item that has been
selected by getting the text of this textview and converting it into a
long. Then I will remove the item with that id. How do I access the
text of a textview of the item in the listview that has been selected?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: Q) Adjusting textView font size.

2009-08-16 Thread tinyang

You can control textview text size with styles/themes through an xml file.
See the following link: 
http://developer.android.com/guide/topics/ui/themes.html

-Original Message-
From: android-beginners@googlegroups.com
[mailto:android-beginn...@googlegroups.com] On Behalf Of daum3...@yahoo.com
Sent: Saturday, August 15, 2009 11:16 PM
To: Android Beginners
Subject: [android-beginners] Q) Adjusting textView font size.


Hello all,

I'm printing strings into a textView.

It works well, but the font size is very small to read.

Can I adjust the font size to be bigger?

Thank you for you help in advance.



No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/15/2009
6:10 PM


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



[android-beginners] Re: Removing ListItems

2009-08-16 Thread Mark Murphy

Matt wrote:
 On 16 Aug., 03:07, Mark Murphy mmur...@commonsware.com wrote:
 You gave it an array. To be able to modify it at runtime, you need to
 give it an ArrayList.
 
 Alright, that did work. But why? Why is there an ArrayAdapter with a
 method called remove that you cannot use to remove an item from an
 array? The solution with that ArrayList seems to be not very obvious,
 if I may say so.

ArrayAdapter does not convert the array you hand it into an ArrayList.
Since you cannot remove from a Java array, ArrayAdapter cannot remove
it, either.

My guess is that the array-versus-ArrayList thing is an optimization for
short static lists, as arrays should take less memory and are probably
faster.

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

Looking for Android opportunities? http://wiki.andmob.org/hado

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



[android-beginners] surfaceview in a frame layout

2009-08-16 Thread tinyang
I followed the code sample at 
http://developer.android.com/guide/samples/ApiDemos/src/com/example/android/
apis/graphics/CameraPreview.html
 
but I'm wondering how I tie the camera preview surfaceview into my xml
layout gui.  Can anyone point me in the right direction for that?  Thanks.
 
-- 
:-) 
P Please don't print this e-mail unless you really need to. 
 
 

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



[android-beginners] TabHost problem with designing Tabs

2009-08-16 Thread Stefan

Hi,
i want to have two Tabs on my screen. I implement a small navi
software and so i decide to use the TabHost:
One tab for list view and one tab for MapView.
Now my problem:
In the MapView tab i want to show the Map and at the bottom of the
screen one row for showing the streetname and a picture for the
direction. I test it with a TextView and a MapView. I've read, that is
must use a Linear/Relative/...-Layout to get more widgets in one tab.
My xml file looks like:

?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

TabHost android:id=@+id/auswahl
android:layout_height=fill_parent
android:layout_width=fill_parent

TabWidget android:id=@android:id/tabs
android:layout_width=fill_parent
android:layout_height=wrap_content/

FrameLayout android:id=@android:id/tabcontent
android:layout_height=fill_parent
android:layout_width=fill_parent
android:paddingTop=62px

ListView
android:id=@+id/list
android:layout_height=fill_parent
android:layout_width=fill_parent
android:text=List/

RelativeLayout

xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=wrap_content
android:id=@+id/ll
com.google.android.maps.MapView
android:id=@+id/mapview
android:layout_width=fill_parent
android:layout_height=wrap_content
android:apiKey=...
/
TextView
android:id=@+id/text
android:layout_height=wrap_content
android:layout_width=fill_parent
android:text=Text
android:layout_below=@id/mapview
/
   /RelativeLayout
/FrameLayout
/TabHost

I only see the TextView, if i switch TextView with MapView (MapView
below TextView). How can I solve this problem??

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



[android-beginners] Re: Sample Code missing

2009-08-16 Thread bboyes

These apparently moved. The apress Pro Android book p31 says they are
in a subfolder off the SDK root, but they are not. They are here:
..\android-sdk-windows-1.5_r1\platforms\android-1.5\samples and oddly
there is an empty ..\android-sdk-windows-1.5_r1\docs\samples folder...
Google's reference sdk/platforms/android-version/samples/ at
http://developer.android.com/guide/samples/index.html is correct.

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



[android-beginners] Re: Q) Adjusting textView font size.

2009-08-16 Thread Daum

Hi timyang,

I taske the hints from the link, and it works.

I changed the Textview by inserting the line into my layout xml file
like bewlow, and it works.

Thank you.

  TextView
android:id=@+id/helloMyTextView
android:layout_width=wrap_content
android:textSize = 50sp   ==
android:layout_height=fill_parent
  /TextView

On Aug 16, 6:58 am, tinyang tiny...@earthlink.net wrote:
 You can control textview text size with styles/themes through an xml file.
 See the following 
 link:http://developer.android.com/guide/topics/ui/themes.html



 -Original Message-
 From: android-beginners@googlegroups.com

 [mailto:android-beginn...@googlegroups.com] On Behalf Of daum3...@yahoo.com
 Sent: Saturday, August 15, 2009 11:16 PM
 To: Android Beginners
 Subject: [android-beginners] Q) Adjusting textView font size.

 Hello all,

 I'm printing strings into a textView.

 It works well, but the font size is very small to read.

 Can I adjust the font size to be bigger?

 Thank you for you help in advance.

 No virus found in this incoming message.
 Checked by AVG -http://www.avg.com
 Version: 8.0.169 / Virus Database: 270.13.49/2293 - Release Date: 8/15/2009
 6:10 PM- Hide quoted text -

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



[android-beginners] Re: TabHost problem with designing Tabs

2009-08-16 Thread Stefan

I find a good solution for me. Here's my new code (only the code
between FrameLayout):

FrameLayout android:id=@android:id/tabcontent
android:layout_height=fill_parent
android:layout_width=fill_parent
android:paddingTop=62px

ListView
android:id=@+id/list
android:layout_height=fill_parent
android:layout_width=fill_parent
android:text=List/

RelativeLayout
xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=fill_parent
android:id=@+id/ll

LinearLayout

xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=wrap_content
android:id=@+id/unten
android:layout_alignParentBottom=true

TextView
android:id=@+id/text
android:layout_height=fill_parent
android:layout_width=fill_parent
android:text=Text
/
/LinearLayout

LinearLayout

xmlns:android=http://schemas.android.com/apk/res/android;
android:orientation=vertical
android:layout_width=fill_parent
android:layout_height=wrap_content
android:id=@+id/oben
android:layout_above=@id/unten

com.google.android.maps.MapView
android:id=@+id/mapview
android:layout_width=fill_parent
android:layout_height=wrap_content
android:enabled=true
android:clickable=true
android:apiKey=..
/
/LinearLayout
/RelativeLayout
/FrameLayout

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



[android-beginners] Re: How to set a text edit dialog box with a default text by program

2009-08-16 Thread Daum

Thanks.

To use below as you suggested, it worked.

===

 editInput = (EditText)findViewById(R.id.Port);
 
 editInput .setText(your String);


On Jul 27, 4:42 pm, Roman roman.baumgaert...@t-mobile.com wrote:
 Yep, you can do this. You can do this in the code

 Somewhere in your code:

  protected EditText editInput;

  

  editInput = (EditText)findViewById(R.id.Port);
  

  editPort.setText(your String);

 or in your layout xml file:

 For example you would add to the section

 EditText

 a text attribute

    EditText
         android:id=@+id/username_edit
         android:text=NAME
  /// Add this
         android:layout_height=wrap_content
         android:layout_width=fill_parent
         android:layout_marginLeft=20dip
         android:layout_marginRight=20dip
         android:scrollHorizontally=true
         android:autoText=false
         android:capitalize=none
         android:gravity=fill_horizontal
         android:textAppearance=?android:attr/textAppearanceMedium /

 With doing this you should see the default text.

 --
 Roman Baumgaertner
 Sr. SW Engineer-OSDC
 ·T· · ·Mobile· stick together
 The views, opinions and statements in this email are those of the
 author solely in their individual capacity, and do not necessarily
 represent those of T-Mobile USA, Inc.

 On Jul 24, 4:58 pm, daum3...@yahoo.com daum3...@yahoo.com wrote:



  Hello all,

  I'm trying to set a text editdialogbox with a default text by
  program.
  (I'm using the text editdialogbox  from the AlertDialogSamples
  prorgam)

  Can a text editdialogbox be set with a default text before a user
  input his/her own text into the text editdialogbox?

  If I can, how should I do?

  Thank you.- Hide quoted text -

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



[android-beginners] ListView with addHeaderView Example?

2009-08-16 Thread chinchin

Hello,
I'm trying to modify the HelloListView example to use addHeaderView or
addFooterView. Unfortunately I am unable to get this working. Is
anyone able to provide any help?
Here is my code, thanks in advance.

?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

TextView
android:id=@+id/textDisplay
android:layout_width=fill_parent
android:layout_height=wrap_content
android:text=Hello!
/
/LinearLayout

public class HelloListView extends ListActivity {
private TextView test;

/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);

  test = (TextView) findViewById(R.id.textDisplay);

  getListView().addHeaderView(test);
  setListAdapter(new ArrayAdapterString(this,
  android.R.layout.simple_list_item_1, COUNTRIES));
  getListView().setTextFilterEnabled(true);
}

static final String[] COUNTRIES = new String[] {
Afghanistan, Albania, Algeria, American Samoa, Andorra,
Angola, Anguilla, Antarctica, Antigua and Barbuda,
Argentina
  };

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



[android-beginners] Re: ListView with addHeaderView Example?

2009-08-16 Thread Mark Murphy

chinchin wrote:
 Hello,
 I'm trying to modify the HelloListView example to use addHeaderView or
 addFooterView. Unfortunately I am unable to get this working. Is
 anyone able to provide any help?
 Here is my code, thanks in advance.

snip

   @Override
   public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 
 test = (TextView) findViewById(R.id.textDisplay);
 
 getListView().addHeaderView(test);

Dynamically create your TextView in Java, or inflate it from a separate
layout XML file via getLayoutInflater().inflate(). You cannot move a
widget that is outside the list into the list in the fashion you are
trying to.

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

Android Development Wiki: http://wiki.andmob.org

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



[android-beginners] How do I use FileObservor ?

2009-08-16 Thread Harshit Mapara

Hi All,

I want to observ file changes, and I found FileObservor class in
android.os package, but I could not find any of it tutorial on the
internet nor in android reference documents.

I tried it but could not succeed.
Can you please explain me using a simple example how do I use it? Any
link if you know, please let me know.

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



[android-beginners] Re: OnKey API

2009-08-16 Thread Romain Guy

Hi,

It's neither, the keycode is the code of the key as defined in the
KeyEvent class. For instance keyCode == KeyEvent.KEYCODE_ENTER means
the pressed key was the enter key.

On Sun, Aug 16, 2009 at 8:06 PM, manjunath
chandrashekarmanjunath@gmail.com wrote:
 Hi All,
 In the API onKey(int primaryCode, int[] keyCodes)  ; of
 KeyboardView.OnKeyboardActionListener class. What does the Keycodes means?
 Is it ASCII code or Unicode. please help.


 Android Contributor
 Manjunath.

 




-- 
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 Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] ExpandableList With ContextMenu

2009-08-16 Thread Jose Ayerdis
How can i add a ContextMenu only to the child in the ExpandableList and not
to the parent in each???

-- 
Atte

[[Jose Luis Ayerdis Espinoza]]
http://blognecronet.blogspot.com

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



[android-beginners] OnKey API

2009-08-16 Thread manjunath chandrashekar
Hi All,
In the API 
onKeyhttp://developer.android.com/reference/android/inputmethodservice/KeyboardView.OnKeyboardActionListener.html#onKey(int,
int[])(int primaryCode, int[] keyCodes)  ; of
KeyboardView.OnKeyboardActionListener class. What does the Keycodes means?
Is it ASCII code or Unicode. please help.


Android Contributor
Manjunath.

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



[android-beginners] Re: OnKey API

2009-08-16 Thread manjunath chandrashekar
Thanks a lot for the quick reply, Is there anyway to convert Keycode to
unicode?


Android Contributor
Manjunath

On Mon, Aug 17, 2009 at 8:51 AM, Romain Guy romain...@google.com wrote:


 Hi,

 It's neither, the keycode is the code of the key as defined in the
 KeyEvent class. For instance keyCode == KeyEvent.KEYCODE_ENTER means
 the pressed key was the enter key.

 On Sun, Aug 16, 2009 at 8:06 PM, manjunath
 chandrashekarmanjunath@gmail.com wrote:
  Hi All,
  In the API onKey(int primaryCode, int[] keyCodes)  ; of
  KeyboardView.OnKeyboardActionListener class. What does the Keycodes
 means?
  Is it ASCII code or Unicode. please help.
 
 
  Android Contributor
  Manjunath.
 
  
 



 --
 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 Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: OnKey API

2009-08-16 Thread Romain Guy

http://d.android.com/reference/android/view/KeyEvent.html#getUnicodeChar(int)

:)

On Sun, Aug 16, 2009 at 8:48 PM, manjunath
chandrashekarmanjunath@gmail.com wrote:

 Thanks a lot for the quick reply, Is there anyway to convert Keycode to
 unicode?


 Android Contributor
 Manjunath

 On Mon, Aug 17, 2009 at 8:51 AM, Romain Guy romain...@google.com wrote:

 Hi,

 It's neither, the keycode is the code of the key as defined in the
 KeyEvent class. For instance keyCode == KeyEvent.KEYCODE_ENTER means
 the pressed key was the enter key.

 On Sun, Aug 16, 2009 at 8:06 PM, manjunath
 chandrashekarmanjunath@gmail.com wrote:
  Hi All,
  In the API onKey(int primaryCode, int[] keyCodes)  ; of
  KeyboardView.OnKeyboardActionListener class. What does the Keycodes
  means?
  Is it ASCII code or Unicode. please help.
 
 
  Android Contributor
  Manjunath.
 
  
 



 --
 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
 




-- 
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 Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: OnKey API

2009-08-16 Thread manjunath chandrashekar
Thanks a ton, its quite useful :)

Cheers
Android Contributor.
Manjunath

On Mon, Aug 17, 2009 at 9:25 AM, Romain Guy romain...@google.com wrote:



 http://d.android.com/reference/android/view/KeyEvent.html#getUnicodeChar(int)

 :)

 On Sun, Aug 16, 2009 at 8:48 PM, manjunath
  chandrashekarmanjunath@gmail.com wrote:
 
  Thanks a lot for the quick reply, Is there anyway to convert Keycode to
  unicode?
 
 
  Android Contributor
  Manjunath
 
  On Mon, Aug 17, 2009 at 8:51 AM, Romain Guy romain...@google.com
 wrote:
 
  Hi,
 
  It's neither, the keycode is the code of the key as defined in the
  KeyEvent class. For instance keyCode == KeyEvent.KEYCODE_ENTER means
  the pressed key was the enter key.
 
  On Sun, Aug 16, 2009 at 8:06 PM, manjunath
  chandrashekarmanjunath@gmail.com wrote:
   Hi All,
   In the API onKey(int primaryCode, int[] keyCodes)  ; of
   KeyboardView.OnKeyboardActionListener class. What does the Keycodes
   means?
   Is it ASCII code or Unicode. please help.
  
  
   Android Contributor
   Manjunath.
  
   
  
 
 
 
  --
  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
  
 



 --
 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 Beginners group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: How to set a text edit dialog box with a default text by program

2009-08-16 Thread Liviu Ungureanu
U can use yourTextEdit.setHint(some text).this method will put some text in
your edittext but when the user write something it will be hidden.

On Aug 17, 2009 1:13 AM, Daum daum3...@yahoo.com wrote:


Thanks.

To use below as you suggested, it worked.

===

editInput = (EditText)findViewById(R.id.Port); 
 editInput .setText(your String);

On Jul 27, 4:42 pm, Roman roman.baumgaert...@t-mobile.com wrote:  Yep,
you can do this. You can...
  I'm trying to set a text editdialogbox with a default text by
  program.
  (I'm using the text editdialogbox  from the AlertDialogSamples
  prorgam)

  Can a text editdialogbox be set with a default text before a user

  input his/her own text into the text editdialogbox?If I can, how
should I do? 
  Thank you.- Hide quoted text -

 - Show quoted text -

--~--~-~--~~~---~--~~ You received this
message because you are subs...

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