[android-developers] Looking for tutorials about java.util.Date class

2009-05-19 Thread daehoon
Hi. Is there anybody knows tutorial about Date class? or about using DateFormat.parse() --~--~-~--~~~---~--~~ 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] I can't get into developer.android.com site.

2009-05-19 Thread daehoon
When we Run as android application with nothing, Eclipse launch an Emulator. And we can see Alarm Clock in Home Sample, there are several alarms in Alarm Clock. I want to know source code about that(Alarm Clock), but I can't get into android website. Is there anyone who can send me the source

[android-developers] How to get list id from many list?

2009-05-19 Thread daehoon
hi all. I know in ListActivity use getListView().getSelectedItemId() can get it's id There are several lists in normal Activity class. how to get it's(cursor) id to delete, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[android-developers] How to use setOnItemClickListener ?

2009-05-18 Thread daehoon
Hi everyone. how to get list id from onItemClickListener? ListView ls=(ListView)findViewById(R.id.list); ls.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView? parent, View v, int position, long id) {

[android-developers] Re: How to use setOnItemClickListener ?

2009-05-18 Thread Daehoon Jeon
- -! sorry for such a stupid question. --~--~-~--~~~---~--~~ 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,

[android-developers] How to send a MessageBox when select a Menu item?

2009-05-18 Thread daehoon
hi`~ all I want to display an messagebox when select a menu item. The messagebox include a string , Ok button and Cancel button that I can choose one. public boolean onMenuItemSelected(int featureId, MenuItem item) { switch(item.getItemId()) { case INSERT_ID: //

[android-developers] Re: How to send a MessageBox when select a Menu item?

2009-05-18 Thread Daehoon Jeon
oh~~ thanks~~ --~--~-~--~~~---~--~~ 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] How to know it's week when input random date?

2009-05-18 Thread daehoon
Hi~~ everyone. 1. how to get it's week when we know a date, not current date. if I input 5-22, return Friday. 2. If I input 2 dates, 5-19 6-20, how to know how many days between them --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[android-developers] How to set some lists in one layout?

2009-05-17 Thread daehoon
How to set a few lists in one layout include their own data from DB? here is source code about set list in Android guide. List id is @android:list why the id must be android:list?, may I use my own id? If I can, how to set lists to main layout including their own data (title)? Cursor

[android-developers] Re: How to set some lists in one layout?

2009-05-17 Thread Daehoon Jeon
Can you show me a simple ex.? Actually I don't know how to use multiple ListView widget. If this is two lists in main xml. ListView android:id=@android:id/list1 android:layout_width=fill_parent android:layout_height=wrap_content / ListView

[android-developers] Re: How to set some lists in one layout?

2009-05-17 Thread Daehoon Jeon
If I write list ids like that I can't show list where I want to.I have to separate id to two ListView . ls1.setAdapter(notes); ls2.setAdapter(notes); this is not working. I should set list with setListAdapter, but ListView does not support setListAdaper. ls1.setListAdapter(notes);//The

[android-developers] Re: How to set some lists in one layout?

2009-05-17 Thread Daehoon Jeon
How do we get data from DB to the list?If I use setListAdapter I can get data from DB like this : Cursor notesCursor = mDbHelper.fetchAllNotes(); startManagingCursor(notesCursor); String[] from = new String[]{NotesDbAdapter.KEY_TITLE}; int[] to = new int[]{R.id.text1};

[android-developers] Re: How to set some lists in one layout?

2009-05-17 Thread Daehoon Jeon
It's very helpful for me. Thanks for help.there is another problem I can display lists, but I don't know how to set onItemClickListener ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group.

[android-developers] Set a few lists in one layout?

2009-05-15 Thread daehoon
How to set a few lists in one layout include their own data from DB? here is source code about set list in Android guide. List id is @android:list why the id must be android:list?, may I use my own id? If I can, how to set lists to main layout including their own data (title)? Cursor

[android-developers] Android-Calendar, How to get first day of week?

2009-05-14 Thread daehoon
Hi, all There is a string, it's value is 5-14-2009. we know 14 is Wed, so 12 is Monday. This week is begin by 12(Mon.). How to get first day of week, when we know one of the date in the week? --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] How to set two or more List in one layout?

2009-05-14 Thread daehoon
hi all,, I want to set some lists in one layout, but I found it's only recognize the first ListView . anyone help?? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send

[android-developers] Many Lists in one Layout ?

2009-05-14 Thread daehoon
hi all,, I want to set some lists in one layout, but I found it's only recognize the first ListView . how to write xml file ? anyone help? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To

[android-developers] Re: Many Lists in one Layout ?

2009-05-14 Thread Daehoon Jeon
Sorry for that I can't understand the source code you give totally. Did you have looked the sample in the Android named Notepad? It use SimpleCursorAdapter. Get cursor from NotesDbAdapter first. and use setListAdapter() to set list. It only recognize the first ListView of

[android-developers] About SQLite (query)

2009-05-13 Thread daehoon
Hi everyone. I know db.query was written like below in Android sample. I want to use other field instead of rowId witch is KEY_DATE, but it's not worked as well. public Cursor fetchNote(long rowId) throws SQLException { Cursor mCursor = mDb.query(true, DATABASE_TABLE, new

[android-developers] Re: About SQLite (query)

2009-05-13 Thread Daehoon Jeon
Thanks for help...I have already figure it out, thank you anyway. --~--~-~--~~~---~--~~ 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

[android-developers] Re: How to get id of array in spinner

2009-05-12 Thread Daehoon Jeon
I tried but,, it was not working,,, Someone on the internet said spinner doesn't support setOnItemClickListener(new OnItemClickListener() Is it true ? if it's true how do we set OnItemClickListener? --~--~-~--~~~---~--~~ You received this message because you are

[android-developers] Re: How to get id of array in spinner

2009-05-12 Thread Daehoon Jeon
It had exception error, something wrong with code, but i can't find out. Is there anyone help me? thank you private Spinner s; s = (Spinner) findViewById(R.id.dailylog_type); ArrayAdapter adapter = ArrayAdapter.createFromResource( this, R.array.planets_type,

[android-developers] Re: How to get id of array in spinner

2009-05-12 Thread Daehoon Jeon
would you mind show me an simple example about using setOnItemSelected() method with position parameter? --~--~-~--~~~---~--~~ 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] Re: How to get id of array in spinner

2009-05-12 Thread Daehoon Jeon
Oh,, I just found the problem. I have already change s.getSelectedItemPosition() to position... but it still didn't work. It wasn't a spinner problem. The problem was that the way I called class. Thank you for help. --~--~-~--~~~---~--~~ You received this message

[android-developers] Re: How to show two or more fields to list(Notepad Tutorial)?

2009-05-11 Thread Daehoon Jeon
Thank you for help... I tried, but it doesn't work.I wrote xml file like this... it has no error on it... TextView android:id=@+id/text1 xmlns:android= http://schemas.android.com/apk/res/android; android:layout_width=wrap_content android:layout_height=wrap_content TextView

[android-developers] Re: How to show two or more fields to list(Notepad Tutorial)?

2009-05-11 Thread Daehoon Jeon
Thank you very very much~~ can I ask some another question? I saw list was vertical. like this... title1 name1 -- title2 name2 I wanna change to like this.

[android-developers] Re: How to show two or more fields to list(Notepad Tutorial)?

2009-05-11 Thread Daehoon Jeon
Oh,,, i solved vertical problem,, change vertical to horizontal in xml file, it was working.But I still in trouble with add String to the list. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers

[android-developers] get id of array in spinner

2009-05-11 Thread daehoon
Here is code Spinner s = (Spinner) findViewById(R.id.spinner); ArrayAdapter adapter = ArrayAdapter.createFromResource( this, R.array.planets, android.R.layout.simple_spinner_item); adapter.setDropDownViewResource

[android-developers] How to get id of array in spinner

2009-05-11 Thread daehoon
Here is code Spinner s = (Spinner) findViewById(R.id.spinner); ArrayAdapter adapter = ArrayAdapter.createFromResource( this, R.array.planets, android.R.layout.simple_spinner_item); adapter.setDropDownViewResource (android.R.layout.simple_spinner_dropdown_item);

[android-developers] Re: How to get current date ??

2009-05-07 Thread Daehoon Jeon
In Android we can get current date like this : private TextView mDateDisplay; private Button mPickDate; private int mYear; private int mMonth; private int mDay; static final int DATE_DIALOG_ID = 0; @Override protected void onCreate(Bundle savedInstanceState) {

[android-developers] How to create and save data(DATE, TIME) to DB???

2009-05-05 Thread daehoon
Hi everyone. I found lots of samples on internet about DB, but most of all contain two String variables. like this : public static final String KEY_TITLE=title; public static final String KEY_BODY=body; create table notes (_id integer primary key autoincrement, + title text not

[android-developers] Re: How to get current date ??

2009-05-05 Thread Daehoon Jeon
Thanks for help, but I already completely done, I think Android is different from Java about get current date. Android site gives source exactly i want. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android

[android-developers] About SimpleCursorAdapter String[] from

2009-05-04 Thread daehoon
public SimpleCursorAdapter (Context context, int layout, Cursor c, String[] from, int[] to) Constructor. Parameters from --- A list of column names representing the data to bind to the UI Here is summary of SimpleCursorAdapter. I know it should write like this. String[] from_End_Time = new

[android-developers] How to change RadioButton size???

2009-05-04 Thread daehoon
How to change RadioButton size??? it's too big --~--~-~--~~~---~--~~ 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

[android-developers] Re: How to change RadioButton size???

2009-05-04 Thread Daehoon Jeon
Thanks --~--~-~--~~~---~--~~ 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] How to get current date ??

2009-05-04 Thread daehoon
How to use calendar.get(Calendar.DATE) I want to display current date, but it doesn't work. private void DateDisplay() { mDateDisplay.setText( new StringBuilder() .append(calendar.get(Calendar.DATE))); }

[android-developers] How to change RadioButton size?

2009-05-01 Thread Daehoon Jeon
How to change RadioButton size? It's too large. I want a small radioButton... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to