[android-beginners] how to unedrline text?

2010-04-27 Thread David Fire
hi
i need some help.
how i do an underline text?
i was looking for it but i didnt foun how...
i was here http://www.droiddraw.org/widgetguide.html and on the android
site...
the best will be if the under line is blue or how can i use an image to
underline a text view?
thanks!!!
David

-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Changing the APN settings!!

2010-02-26 Thread David Fire
look the source code of apndroid
http://code.google.com/p/apndroid/

2010/2/26 rocky84 rocky84 hulkman...@gmail.com

 hi,

 can anybody suggest me how can i change the APN parameters in android
 for activating the PDP context automatically?

 i need it from scratch as being new to android..


 regds
 rakesh

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Transmit serialized object via HTTP in Android?

2010-02-22 Thread David Fire
why you want to do such effort if you can transmit it using xml or json or
something like that?


2010/2/22 Ray da Costa raydaco...@gmail.com

 Mostrar romanização
  Hi

 Personnel possibility exists to transmit serialized object via HTTP in
 Android? I'm trying to use the HttpURLConnection but I get an exception
 saying that does not support


 --
 Ray da Costa
 The best way to predict the future is to invent it.
 Alan Kay

 --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android

 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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] online seminar

2010-02-09 Thread David Fire
this link is a online realtime android seminar
http://training.oreilly.com/androidapps-java/
start today 16:00 (GTM -3)

-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 is getting me mad plase help

2010-02-03 Thread David Fire
i didnt do it yet.
but you can get a sample from here, i am folowing this book
http://apress.com/book/downloadfile/4433
there is a zip file, extract it and navigate to FancyLists\RateList\. there
you have a full and working example.

please send the question to the list wo everyone can get the answer
2010/2/3 Abhi abhinay.pothuga...@gmail.com


 Hi David,

 Are you able to capture the checkbox click in the list view ?if so can
 you pls send me the code

 I am also facing the same problem as you are facing,
 I am having a list view with Checkbox,If user clicks on the listrow
 then the checkbox needs to get selected and on further click it needs
 to unselect

 Can you pls help me in solving this

 On Jan 31, 9:32 pm, David Fire ddf...@gmail.com wrote:
  SOLVED
  all the items in the row must be facusable=false
 
  i just put it
  David
 
  2010/1/31 free1000 prwfree...@googlemail.com
 
 
 
   Just out of curiosity why do you have this in the ListView definition
 
   android:isScrollContainer=true
 
   Not saying it has anything to do with your problem,just wondering. The
   list knows how to scroll without this attribute being set.
 
   P
 
   On Jan 30, 5:08 pm, David Fire ddf...@gmail.com wrote:
hi
i cant press any item on my listview nor in the emulator nor in a
 real
phone.
 
item layout
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=
 http://schemas.android.com/apk/res/android;
android:id=@+id/LinearLayout01 android:layout_width=wrap_content
android:layout_height=wrap_content
 android:orientation=horizontal
  CheckBox android:id=@+id/RuleEnable android:text=
android:layout_width=wrap_content
   android:layout_height=wrap_content/CheckBox
 
  TextView android:id=@+id/RuleName
android:layout_width=wrap_content
 android:layout_height=wrap_content
android:text= android:focusable=true /TextView
 
/LinearLayout
 
listview layout
ListView android:id=@+id/Listado
 android:layout_width=fill_parent
android:layout_height=250px  android:isScrollContainer=true
android:drawSelectorOnTop=false
android:choiceMode=singleChoice/ListView
 
some code
public class GuiActivity extends Activity implements
   View.OnClickListener,
OnItemClickListener{
 //lista means list in spanish
lista = (ListView)findViewById(R.id.Listado);
RuleList = new ArrayListSMSRule();
loadRuleList();
adapter=new SMSRuleAdaptor(this,RuleList);
lista.setAdapter(adapter);
lista.setOnItemClickListener(this);
 
this method is never called
public void onItemClick(AdapterView? arg0, View arg1, int arg2,
   long
id) {
enable.setText(id: +id);
 
}
 
--
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.
 
   --
   You received this message because you are subscribed to the Google
   Groups Android Developers group.
   To post to this group, send email to
 android-develop...@googlegroups.com
   To unsubscribe from this group, send email to
   android-developers+unsubscr...@googlegroups.comandroid-developers%2bunsubscr...@googlegroups.com
 android-developers%2bunsubscr...@googlegroups.comandroid-developers%252bunsubscr...@googlegroups.com
 
   For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en
 
  --
  (\__/)
  (='.'=)This is Bunny. Copy and paste bunny into your
  ()_()signature to help him gain world domination.




-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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 is getting me mad plase help

2010-02-02 Thread David Fire
hi
i cant press any item on my listview nor in the emulator nor in a real
phone.


item layout
?xml version=1.0 encoding=utf-8?
LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
android:id=@+id/LinearLayout01 android:layout_width=wrap_content
android:layout_height=wrap_content android:orientation=horizontal
  CheckBox android:id=@+id/RuleEnable android:text=
android:layout_width=wrap_content android:layout_height=wrap_content
/CheckBox
  TextView android:id=@+id/RuleName
android:layout_width=wrap_content android:layout_height=wrap_content
android:text= android:focusable=true /TextView

/LinearLayout

listview layout
ListView android:id=@+id/Listado android:layout_width=fill_parent
android:layout_height=250px  android:isScrollContainer=true
android:drawSelectorOnTop=false
android:choiceMode=singleChoice/ListView

some code
public class GuiActivity extends Activity implements View.OnClickListener,
OnItemClickListener{
 //lista means list in spanish
lista = (ListView)findViewById(R.id.Listado);
RuleList = new ArrayListSMSRule();
loadRuleList();
adapter=new SMSRuleAdaptor(this,RuleList);
lista.setAdapter(adapter);
lista.setOnItemClickListener(this);


this method is never called
public void onItemClick(AdapterView? arg0, View arg1, int arg2, long
id) {
enable.setText(id: +id);

}



-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] listview is getting me mad plase help

2010-02-02 Thread David Fire
SOLVED
all the items in the row must be facusable=false

2010/2/2 Yousuf Faheem yousuf.syed@gmail.com

 Hi,

 try writting onClick event within getView method of the adapter


 Thanks  Regards,
 Yousuf



 On Sat, Jan 30, 2010 at 11:08 AM, David Fire ddf...@gmail.com wrote:

 hi
 i cant press any item on my listview nor in the emulator nor in a real
 phone.


 item layout
 ?xml version=1.0 encoding=utf-8?
 LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
 android:id=@+id/LinearLayout01 android:layout_width=wrap_content
 android:layout_height=wrap_content android:orientation=horizontal
   CheckBox android:id=@+id/RuleEnable android:text=
 android:layout_width=wrap_content android:layout_height=wrap_content
 /CheckBox
   TextView android:id=@+id/RuleName
 android:layout_width=wrap_content android:layout_height=wrap_content
 android:text= android:focusable=true /TextView

 /LinearLayout

 listview layout
 ListView android:id=@+id/Listado android:layout_width=fill_parent
 android:layout_height=250px  android:isScrollContainer=true
 android:drawSelectorOnTop=false
 android:choiceMode=singleChoice/ListView

 some code
 public class GuiActivity extends Activity implements View.OnClickListener,
 OnItemClickListener{
  //lista means list in spanish
 lista = (ListView)findViewById(R.id.Listado);
 RuleList = new ArrayListSMSRule();
 loadRuleList();
 adapter=new SMSRuleAdaptor(this,RuleList);
 lista.setAdapter(adapter);
 lista.setOnItemClickListener(this);


 this method is never called
 public void onItemClick(AdapterView? arg0, View arg1, int arg2, long
 id) {
 enable.setText(id: +id);

 }



 --
 (\__/)
 (='.'=)This is Bunny. Copy and paste bunny into your
 ()_()signature to help him gain world domination.

  --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android


 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com

 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en


  --
 You received this message because you are subscribed to the Google
 Groups Android Beginners group.

 NEW! Try asking and tagging your question on Stack Overflow at
 http://stackoverflow.com/questions/tagged/android


 To unsubscribe from this group, send email to
 android-beginners+unsubscr...@googlegroups.comandroid-beginners%2bunsubscr...@googlegroups.com

 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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


Re: [android-beginners] Creating Database with big amount of data

2009-12-22 Thread David Fire
save the file using utf8 encode this solved similar issues on diferent
plataforms.


2009/12/20 Thomas thomas.bruye...@gmail.com

 Hi all,

 The database of my application need to be filled with a lot of data,
 so during onCreate(), it's not only some create table sql
 instructions, there is a lot of inserts. The solution I chose is to
 store all this instructions in a sql file located in res/raw and which
 is loaded with Resources.openRawResource(id).

 It works well but I face to encoding issue, I have some accentuated
 caharacters in the sql file which appears bad in my application. This
 my code to do this :

  public String getFileContent(Resources resources, int rawId) throws
 IOException
  {
InputStream is = resources.openRawResource(rawId);
int size = is.available();
// Read the entire asset into a local byte buffer.
byte[] buffer = new byte[size];
is.read(buffer);
is.close();
// Convert the buffer into a string.
return new String(buffer);
  }

 public void onCreate(SQLiteDatabase db) {
try {
// get file content
String sqlCode = getFileContent(mCtx
.getResources(),
 R.raw.db_create);
// execute code
for (String sqlStatements :
 sqlCode.split(;)) {
db.execSQL(sqlStatements);
}
db.execSQL(HappyContactsDb.DB_CREATE);
Log.v(Creating database done.);
} catch (IOException e) {
// Should never happen!
Log.e(Error reading sql file  +
 e.getMessage(), e);
throw new RuntimeException(e);
} catch (SQLException e) {
Log.e(Error executing sql code  +
 e.getMessage(), e);
throw new RuntimeException(e);
}

 The solution I found to avoid this is to load the sql instructions
 from a huge static final string instead of a file, and all
 accentutated characters appears well.

 But Isn't there a more elegant way to load sql instructions than a big
 static final String attribute with all sql instructions ?

 Thanks in advance

 Thomas

 --
 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.comandroid-beginners%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-beginners?hl=en




-- 
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
()_()signature to help him gain world domination.

-- 
You received this message because you are subscribed to the Google
Groups Android Beginners group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

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