[android-beginners] Re: how to get notified(or Listen) for the changes in SD card

2009-08-16 Thread Harshit Mapara
Hello Lutz, Can you please give me a short tutorial, how to use FileObservor ? Because I can not get much about FileObservor example on internet nor in android ref guide. And I tried, but it didnt work. If you know any link, then also it's very fine. Thanks On Aug 14, 3:20 am, Lutz Schönemann

[android-beginners] Location updates in 1.5

2009-08-16 Thread sheikahmed
Hi, i just switched my example program to get location updates from android sdk 1.1 to sdk 1.5... the code worked well in 1.1 but i have problem doing the same in sdk 1.5 ... i am getting only the first location update...i dont know where the problem exists.. i have added all the needed permiss

[android-beginners] Re: GPS location does not work on real device

2009-08-16 Thread sheik
Hi, i just switched my example program to get location updates from android sdk 1.1 to sdk 1.5... the code worked well in 1.1 but i have problem doing the same in sdk 1.5 ... i am getting only the first location update...i dont know where the problem exists.. i have added all the needed permiss

[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" wrote: Thanks. To use below as you suggested, it worked. === editInput = (EditText)findViewById(R.id.Port);

[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 wrote: > > > http://d.android.com/reference/android/view/KeyEvent.html#getUnicodeChar(int) > > :) > > On Sun, Aug 16, 2009 at 8:48 PM, manjunath > chandrashekar wrote: > > > > Th

[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 chandrashekar wrote: > > Thanks a lot for the quick reply, Is there anyway to convert Keycode to > unicode? > > > Android Contributor > Manjunath > > On Mon, Aug 17, 2009 a

[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 wrote: > > Hi, > > It's neither, the keycode is the code of the key as defined in the > KeyEvent class. For instance keyCode == KeyEvent.KE

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

[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 chandrashekar wrote: > Hi All, > In the API onKey(int primaryCode, int[] key

[android-beginners] OnKey API

2009-08-16 Thread manjunath chandrashekar
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. pl

[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

[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. > @Override > public void onCreate(Bundle sav

[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. http://schemas.android.com/apk/res/ android" android:orientation="vertical"

[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 wrote: > Yep, you can do this. You can do this in the code > > Somewhere in your code: > >  protected EditText editInp

[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): http://schemas.android.com/apk/res/android"; android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_par

[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. On Aug 16, 6:58 am, "tinyang" wrote: > You can control textview text size with styles/themes thr

[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 /p

[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

[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. -- :-)

[android-beginners] Re: Removing ListItems

2009-08-16 Thread Mark Murphy
Matt wrote: > On 16 Aug., 03:07, Mark Murphy 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 >

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

[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

[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 wrote: > i"m 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.ShapeDrawa

[android-beginners] Re: [android-beginners]

2009-08-16 Thread Jens Vegeby
Use your favorite unzip application. On Aug 16, 2009 9:36 AM, "saurabh sinha" wrote: 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 Begi

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

[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