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
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
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
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)
{
- -!
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,
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:
//
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
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
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
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
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
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};
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.
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
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
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
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
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
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
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
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
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,
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
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
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
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.
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
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
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);
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) {
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
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
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
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
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
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)));
}
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
37 matches
Mail list logo