[android-beginners] Re: How to use built in email application to send email from my application

2010-03-17 Thread Gulfam
Hi Satish

Check this working for me:

public void launchEmailActivity(){

final  Intent emailIntent = new
Intent(android.content.Intent.ACTION_SEND);
emailIntent .setType(plain/text);
emailIntent .putExtra(android.content.Intent.EXTRA_EMAIL, new
String[]{});
emailIntent .putExtra(android.content.Intent.EXTRA_SUBJECT, 
Test
Subject);
emailIntent .putExtra(android.content.Intent.EXTRA_TEXT, 
Testing
email text);
this.startActivity(Intent.createChooser(emailIntent, Send
mail...));
}

Best Regards,
Gulfam Hassan


On Mar 11, 5:40 pm, Satish satishkolaw...@gmail.com wrote:
 Hello,

                 I want is to automatically compose an e-mail with a
 subject line, recipient address and an image attachment, and an e-mail
 app should then pop up with this                 automatically
 composed  message, to let the user decide whether to send, edit or
 discard the message.

 Thanks

-- 
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] how to implement facebook login integration with my android app ???

2010-03-17 Thread wahib

hello experts ! I have posted this problem twice previously and doing
it once again. kinldy help me out if any1 has been successful
implementing facebok login facility in its app. I tried with fb-
connect api but its not working on my end .. just stuck !! :S

regards,
wahib

-- 
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: Importing a class from another project in Eclipse. Application fails to run with ClassNotFoundException

2010-03-17 Thread Dan Liew
Thanks for the reply. Yes my activity is listed in the manifest file.
It's definitely a problem with using 'RectangleDrawer' which is in
another project because if I remove all references to that class from
'HelloAndroid' then it will run without errors.

On Mar 16, 6:10 pm, brucko geoff.bruck...@gmail.com wrote:
  E/AndroidRuntime( 2976): java.lang.RuntimeException: Unable to
  instantiate activity ComponentInfo{com.example.helloandroid/
  com.example.helloandroid.HelloAndroid}:
  java.lang.ClassNotFoundException:
  com.example.helloandroid.HelloAndroid in loader
  dalvik.system.pathclassloa...@44948c38
  E/AndroidRuntime( 2976): Caused by: java.lang.ClassNotFoundException:
  com.example.helloandroid.HelloAndroid in loader
  dalvik.system.pathclassloa...@44948c38

 If you haven't had this run before...Did you remember to put
 HelloAndroid in your manifest?

-- 
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: possible to send an xml file via HttpClient?

2010-03-17 Thread KC Dev Android 06
Any suggestions?

On Mar 16, 4:45 pm, KC Dev Android 06
kc.dev.android...@googlemail.com wrote:
 Hi, as the title says, is it possible to do so? in the examples found
 herehttp://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4

 It seems that HttpClient only accepts a String as its parameter? how
 do i go about sending/uploading a xml file using http?

 thanks in advance.

-- 
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] Re: possible to send an xml file via HttpClient?

2010-03-17 Thread Chris Ross

  You probably want to look at HttpPost or HttpPut, which implement 
HttpRequest, which is an available parameter to the execute() method in the 
HttpClient interface.

  Not 100% sure what you're trying to do, but that's the path of investigation 
I'd suggest.

   - Chris

On Mar 17, 2010, at 5:14 AM, KC Dev Android 06 wrote:
 Any suggestions?
 
 On Mar 16, 4:45 pm, KC Dev Android 06
 kc.dev.android...@googlemail.com wrote:
 Hi, as the title says, is it possible to do so? in the examples found
 herehttp://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4
 
 It seems that HttpClient only accepts a String as its parameter? how
 do i go about sending/uploading a xml file using http?
 
 thanks in advance.
 
 -- 
 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

-- 
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: possible to send an xml file via HttpClient?

2010-03-17 Thread KC Dev Android 06
What im trying to do is simply send a xml file that i have created
into a http server. The way i understand http is that the request and
any kind of data ie a name value pair such as a username can be added
and included in the actual url string.

my question is, how do you go about constructing a url connection with
an xml file added to it?

On Mar 17, 2:23 pm, Chris Ross cross+goo...@distal.com wrote:
   You probably want to look at HttpPost or HttpPut, which implement 
 HttpRequest, which is an available parameter to the execute() method in the 
 HttpClient interface.

   Not 100% sure what you're trying to do, but that's the path of 
 investigation I'd suggest.

                        - Chris

 On Mar 17, 2010, at 5:14 AM, KC Dev Android 06 wrote:

  Any suggestions?

  On Mar 16, 4:45 pm, KC Dev Android 06
  kc.dev.android...@googlemail.com wrote:
  Hi, as the title says, is it possible to do so? in the examples found
  herehttp://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4

  It seems that HttpClient only accepts a String as its parameter? how
  do i go about sending/uploading a xml file using http?

  thanks in advance.

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

-- 
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] Re: possible to send an xml file via HttpClient?

2010-03-17 Thread Chris Ross

  You can send parameters encoded in the url of an HTTP GET operation, but I 
wouldn't suggest using anything long.  I would suggest using an HTTP POST 
operation, or if you actually want to treat it as a file, rather than a blob 
of XML data, an HTTP PUT.  Most any web server software will know how to 
handle an HTTP POST, for sure.

  The question is, what does the server expect?  This is much more an HTTP 
question than an android question.

  - Chris

On Mar 17, 2010, at 10:38 AM, KC Dev Android 06 wrote:
 What im trying to do is simply send a xml file that i have created
 into a http server. The way i understand http is that the request and
 any kind of data ie a name value pair such as a username can be added
 and included in the actual url string.
 
 my question is, how do you go about constructing a url connection with
 an xml file added to it?
 
 On Mar 17, 2:23 pm, Chris Ross cross+goo...@distal.com wrote:
   You probably want to look at HttpPost or HttpPut, which implement 
 HttpRequest, which is an available parameter to the execute() method in the 
 HttpClient interface.
 
   Not 100% sure what you're trying to do, but that's the path of 
 investigation I'd suggest.
 
- Chris
 
 On Mar 17, 2010, at 5:14 AM, KC Dev Android 06 wrote:
 
 Any suggestions?
 
 On Mar 16, 4:45 pm, KC Dev Android 06
 kc.dev.android...@googlemail.com wrote:
 Hi, as the title says, is it possible to do so? in the examples found
 herehttp://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4
 
 It seems that HttpClient only accepts a String as its parameter? how
 do i go about sending/uploading a xml file using http?
 
 thanks in advance.
 
 --
 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
 
 -- 
 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

-- 
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: Audio Processing

2010-03-17 Thread Kingcrowley
thanks for the reply. I was looking for help to design/make an
application that does some/all of those things. Anyone have any advice
or experience in making Audio Processing on Android?

On Mar 17, 12:46 am, BobG bobgard...@aol.com wrote:
 Hit the icon labeled 'market' on the front of the phone search for
 audio there's a good signal generator that does any waveform
 20-20k, white noise pink noise, and there;s a cool real time analyzer
 with 30 bands for free... those used to cost $2000 not long ago...

-- 
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] What will happen to my activity incase of incoming phone call

2010-03-17 Thread TreKing
On Fri, Mar 12, 2010 at 1:09 AM, Pria pri...@gmail.com wrote:

 I want to know that what will happen to my activity incase of an
 incoming phone call?


The exact same thing that will happen if any other app is started over your
app.
http://developer.android.com/intl/de/reference/android/app/Activity.html#ActivityLifecycle


 Will the state of my activity be saved or I have to explicitly save it?


Android will save the state of any views (like the text in a TextView or
EditText). You're responsible for saving anything else you need.
http://developer.android.com/intl/de/reference/android/app/Activity.html#onSaveInstanceState(android.os.Bundle)


 Another question is that will the activity resume after the call is
 disconnected?


If it's the next thing on the stack after the call ends and goes away, yes.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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: possible to send an xml file via HttpClient?

2010-03-17 Thread KC Dev Android 06
The server basically expects the contacts stored on a android device
in an xml file.

So in a HTTP get operation i can send any parameters i want be in a
xml file, string, int etc?

On Mar 17, 2:44 pm, Chris Ross cross+goo...@distal.com wrote:
   You can send parameters encoded in the url of an HTTP GET operation, but I 
 wouldn't suggest using anything long.  I would suggest using an HTTP POST 
 operation, or if you actually want to treat it as a file, rather than a blob 
 of XML data, an HTTP PUT.  Most any web server software will know how to 
 handle an HTTP POST, for sure.

   The question is, what does the server expect?  This is much more an HTTP 
 question than an android question.

                           - Chris

 On Mar 17, 2010, at 10:38 AM, KC Dev Android 06 wrote:

  What im trying to do is simply send a xml file that i have created
  into a http server. The way i understand http is that the request and
  any kind of data ie a name value pair such as a username can be added
  and included in the actual url string.

  my question is, how do you go about constructing a url connection with
  an xml file added to it?

  On Mar 17, 2:23 pm, Chris Ross cross+goo...@distal.com wrote:
    You probably want to look at HttpPost or HttpPut, which implement 
  HttpRequest, which is an available parameter to the execute() method in 
  the HttpClient interface.

    Not 100% sure what you're trying to do, but that's the path of 
  investigation I'd suggest.

                         - Chris

  On Mar 17, 2010, at 5:14 AM, KC Dev Android 06 wrote:

  Any suggestions?

  On Mar 16, 4:45 pm, KC Dev Android 06
  kc.dev.android...@googlemail.com wrote:
  Hi, as the title says, is it possible to do so? in the examples found
  herehttp://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4

  It seems that HttpClient only accepts a String as its parameter? how
  do i go about sending/uploading a xml file using http?

  thanks in advance.

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

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

-- 
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] Email Accounts

2010-03-17 Thread Ali Asghar
Is there any way that i can access the email accounts that are saved
in the default email client of android.

Basically i want to access the inbox and display their mails without
asking for username and password.

Does AccountManager class thats available in android version 2 answer
my query? and if yes then is there any alternative for v1.5 or v1.6.

-- 
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] Re: possible to send an xml file via HttpClient?

2010-03-17 Thread Chris Ross

  But, do you know exactly what sort of HTTP operation is expected by the 
server, and how it expects the xml file to be encoded and transmitted?  If 
you do not know these answers, very precisely, you won't know how to code you 
client.

  As for HTTP and your second question, see 
http://www.w3.org/Protocols/rfc2616/rfc2616.html and a quick google finds 
http://www.jmarshall.com/easy/http/ which might be at least as valuable.

   - Chris

On Mar 17, 2010, at 10:50 AM, KC Dev Android 06 wrote:
 The server basically expects the contacts stored on a android device
 in an xml file.
 
 So in a HTTP get operation i can send any parameters i want be in a
 xml file, string, int etc?
 
 On Mar 17, 2:44 pm, Chris Ross cross+goo...@distal.com wrote:
   You can send parameters encoded in the url of an HTTP GET operation, but I 
 wouldn't suggest using anything long.  I would suggest using an HTTP POST 
 operation, or if you actually want to treat it as a file, rather than a 
 blob of XML data, an HTTP PUT.  Most any web server software will know how 
 to handle an HTTP POST, for sure.
 
   The question is, what does the server expect?  This is much more an HTTP 
 question than an android question.
 
   - Chris
 
 On Mar 17, 2010, at 10:38 AM, KC Dev Android 06 wrote:
 
 What im trying to do is simply send a xml file that i have created
 into a http server. The way i understand http is that the request and
 any kind of data ie a name value pair such as a username can be added
 and included in the actual url string.
 
 my question is, how do you go about constructing a url connection with
 an xml file added to it?
 
 On Mar 17, 2:23 pm, Chris Ross cross+goo...@distal.com wrote:
   You probably want to look at HttpPost or HttpPut, which implement 
 HttpRequest, which is an available parameter to the execute() method in 
 the HttpClient interface.
 
   Not 100% sure what you're trying to do, but that's the path of 
 investigation I'd suggest.
 
- Chris
 
 On Mar 17, 2010, at 5:14 AM, KC Dev Android 06 wrote:
 
 Any suggestions?
 
 On Mar 16, 4:45 pm, KC Dev Android 06
 kc.dev.android...@googlemail.com wrote:
 Hi, as the title says, is it possible to do so? in the examples found
 herehttp://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4
 
 It seems that HttpClient only accepts a String as its parameter? how
 do i go about sending/uploading a xml file using http?
 
 thanks in advance.
 
 --
 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
 
 --
 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
 
 -- 
 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

-- 
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] Email Accounts

2010-03-17 Thread Mark Murphy
Ali Asghar wrote:
 Is there any way that i can access the email accounts that are saved
 in the default email client of android.

The email applications are not part of the official SDK.

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

Android App Developer Books: http://commonsware.com/books

-- 
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: Prevent uninstallation of app?

2010-03-17 Thread Kitzy
In theory... how many users use a single cell phone?  Even if I let
someone else use my phone, I don't have a way to let my phone know
that it should currently be in different-user-mode.

If the user has downloaded a tool ti help with keeping the programs in
order, and that program uninstalls your program, isn't that the same
thing as your user uninstalling it?

If you, however' are thinking of a different exmaple, please
elaborate.

Sincerely,
-Kitzy

On Mar 14, 11:51 am, Richard Roe codesqu...@gmail.com wrote:
 Hey,

       I'm trying to make it so an app is uninstallable by anyone
 except for the user who installed it in the first place.  Is there any
 way to password protect it, or give the app higher security settings
 in order to prevent unauthorized uninstallation?

 Thanks.

-- 
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: possible to send an xml file via HttpClient?

2010-03-17 Thread KC Dev Android 06
i dont know specificaly from the server guys but they said most likely
all i need from them is a http url. They have not indicated how they
will export the xml stuff but tbh why should i know such things? my
task is to simply send them data in a specific format and that format
is a xml file customized xml tags that will later be designed.

All im expecting from them is maybe some call back saying that the
data i sent to them is fine. thats all i am expecting and i therefore
dont see the need to know exactly what they will do with that xml
data.

i should only be concerned on What data and what format they want from
the android device.

I will check out the above links and see how far that goes for me. i
just wanted to know really if its possible to send an xml file via
http. If not then i may need to do it via socket connection.

On Mar 17, 3:03 pm, Chris Ross cross+goo...@distal.com wrote:
   But, do you know exactly what sort of HTTP operation is expected by the 
 server, and how it expects the xml file to be encoded and transmitted?  If 
 you do not know these answers, very precisely, you won't know how to code you 
 client.

   As for HTTP and your second question, 
 seehttp://www.w3.org/Protocols/rfc2616/rfc2616.htmland a quick google 
 findshttp://www.jmarshall.com/easy/http/which might be at least as valuable.

                - Chris

 On Mar 17, 2010, at 10:50 AM, KC Dev Android 06 wrote:

  The server basically expects the contacts stored on a android device
  in an xml file.

  So in a HTTP get operation i can send any parameters i want be in a
  xml file, string, int etc?

  On Mar 17, 2:44 pm, Chris Ross cross+goo...@distal.com wrote:
    You can send parameters encoded in the url of an HTTP GET operation, but 
  I wouldn't suggest using anything long.  I would suggest using an HTTP 
  POST operation, or if you actually want to treat it as a file, rather than 
  a blob of XML data, an HTTP PUT.  Most any web server software will know 
  how to handle an HTTP POST, for sure.

    The question is, what does the server expect?  This is much more an HTTP 
  question than an android question.

                            - Chris

  On Mar 17, 2010, at 10:38 AM, KC Dev Android 06 wrote:

  What im trying to do is simply send a xml file that i have created
  into a http server. The way i understand http is that the request and
  any kind of data ie a name value pair such as a username can be added
  and included in the actual url string.

  my question is, how do you go about constructing a url connection with
  an xml file added to it?

  On Mar 17, 2:23 pm, Chris Ross cross+goo...@distal.com wrote:
    You probably want to look at HttpPost or HttpPut, which implement 
  HttpRequest, which is an available parameter to the execute() method in 
  the HttpClient interface.

    Not 100% sure what you're trying to do, but that's the path of 
  investigation I'd suggest.

                         - Chris

  On Mar 17, 2010, at 5:14 AM, KC Dev Android 06 wrote:

  Any suggestions?

  On Mar 16, 4:45 pm, KC Dev Android 06
  kc.dev.android...@googlemail.com wrote:
  Hi, as the title says, is it possible to do so? in the examples found
  herehttp://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4

  It seems that HttpClient only accepts a String as its parameter? how
  do i go about sending/uploading a xml file using http?

  thanks in advance.

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

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

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

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

[android-beginners] Re: possible to send an xml file via HttpClient?

2010-03-17 Thread KC Dev Android 06
damm i just reported one of your posts as spam  by accident. mods
ignore that request!

On Mar 17, 3:22 pm, KC Dev Android 06
kc.dev.android...@googlemail.com wrote:
 i dont know specificaly from the server guys but they said most likely
 all i need from them is a http url. They have not indicated how they
 will export the xml stuff but tbh why should i know such things? my
 task is to simply send them data in a specific format and that format
 is a xml file customized xml tags that will later be designed.

 All im expecting from them is maybe some call back saying that the
 data i sent to them is fine. thats all i am expecting and i therefore
 dont see the need to know exactly what they will do with that xml
 data.

 i should only be concerned on What data and what format they want from
 the android device.

 I will check out the above links and see how far that goes for me. i
 just wanted to know really if its possible to send an xml file via
 http. If not then i may need to do it via socket connection.

 On Mar 17, 3:03 pm, Chris Ross cross+goo...@distal.com wrote:

    But, do you know exactly what sort of HTTP operation is expected by the 
  server, and how it expects the xml file to be encoded and transmitted?  
  If you do not know these answers, very precisely, you won't know how to 
  code you client.

    As for HTTP and your second question, 
  seehttp://www.w3.org/Protocols/rfc2616/rfc2616.htmlanda quick google 
  findshttp://www.jmarshall.com/easy/http/whichmight be at least as valuable.

                 - Chris

  On Mar 17, 2010, at 10:50 AM, KC Dev Android 06 wrote:

   The server basically expects the contacts stored on a android device
   in an xml file.

   So in a HTTP get operation i can send any parameters i want be in a
   xml file, string, int etc?

   On Mar 17, 2:44 pm, Chris Ross cross+goo...@distal.com wrote:
     You can send parameters encoded in the url of an HTTP GET operation, 
   but I wouldn't suggest using anything long.  I would suggest using an 
   HTTP POST operation, or if you actually want to treat it as a file, 
   rather than a blob of XML data, an HTTP PUT.  Most any web server 
   software will know how to handle an HTTP POST, for sure.

     The question is, what does the server expect?  This is much more an 
   HTTP question than an android question.

                             - Chris

   On Mar 17, 2010, at 10:38 AM, KC Dev Android 06 wrote:

   What im trying to do is simply send a xml file that i have created
   into a http server. The way i understand http is that the request and
   any kind of data ie a name value pair such as a username can be added
   and included in the actual url string.

   my question is, how do you go about constructing a url connection with
   an xml file added to it?

   On Mar 17, 2:23 pm, Chris Ross cross+goo...@distal.com wrote:
     You probably want to look at HttpPost or HttpPut, which implement 
   HttpRequest, which is an available parameter to the execute() method 
   in the HttpClient interface.

     Not 100% sure what you're trying to do, but that's the path of 
   investigation I'd suggest.

                          - Chris

   On Mar 17, 2010, at 5:14 AM, KC Dev Android 06 wrote:

   Any suggestions?

   On Mar 16, 4:45 pm, KC Dev Android 06
   kc.dev.android...@googlemail.com wrote:
   Hi, as the title says, is it possible to do so? in the examples found
   herehttp://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4

   It seems that HttpClient only accepts a String as its parameter? how
   do i go about sending/uploading a xml file using http?

   thanks in advance.

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

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

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

-- 
You received this message because you are subscribed to the 

[android-beginners] mapview: what might cause the google logo to show up as a red box?

2010-03-17 Thread Michael Dorin
Seems this is a Cliq issue...but wondering if anybody has any idea how
to get rid of it?

Basically a red box shows up where the google logo should be on maps.

Here is a link to t-mobiles forum for another description.
http://forums.t-mobile.com/t5/MOTOROLA-CLIQ-CLIQ-XT/Google-Maps-Red-square-on-map-problem/m-p/253881/highlight/true#M7723

Thanks,
 Mike

-- 
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: Alignment problem of EditText and Button in LinearLayout

2010-03-17 Thread Kitzy
I'm not 100% sure on your problem, but you could simplify thing
emenssly by using a RelativeLayout, and that may help you problem at
the same time.

See: 
http://developer.android.com/resources/articles/layout-tricks-efficiency.html

-Kitzy

On Mar 10, 6:24 am, Sven Jacobs sven.jac...@web.de wrote:
 Hi all,

 this is the first time I'm developing an Android app so please bear with me
 ;)

 I've put an EditText and Button into a horizontal LinearLayout but
 unfortunately the button is not aligned with the text field. In the
 Hierarchy Viewer the text field has a absolute_y of 30 while the button has
 32. Please see screenshots of the Hierarchy Viewer 
 here:http://picasaweb.google.com/sj1981/Android

 The XML looks like this:

 LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
               android:orientation=vertical
               android:layout_width=fill_parent
               android:layout_height=fill_parent
               
     LinearLayout
         android:orientation=horizontal
         android:layout_width=fill_parent
         android:layout_height=wrap_content
         android:layout_marginTop=5sp
         EditText
             android:id=@+id/search_text
             android:layout_width=wrap_content
             android:layout_height=wrap_content
             android:layout_weight=1
             android:hint=@string/search_hint
             android:singleLine=true
             /
         Button
             android:id=@+id/search_button
             android:layout_width=wrap_content
             android:layout_height=wrap_content
             android:drawableLeft=@drawable/magnifier
             /
     /LinearLayout
     LinearLayout
         android:id=@+id/results_container
         android:orientation=vertical
         android:layout_width=fill_parent
         android:layout_height=fill_parent
         /
 /LinearLayout

 What's the problem here?

 Many thanks,
 Sven

-- 
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: What am I missing? arrays.xml help

2010-03-17 Thread Kitzy
What does you errorlog file say? It's the best and fastest way to find
a problem.

-Kitzy

On Mar 16, 5:47 am, Soren soren.wins...@comcast.net wrote:
 I am just trying to display a list from an array that I have in my
 arrays.xml. When I try to run it in the emulator, I get a force close
 message.

 If I define the array in the java file (String[] testArray =
 one,two,three,etc;) it works, but when I use String[]
 testArray = getResources().getStringArray(R.array.testArray);  it
 doesnt work.

 Here is my Java file:

     package com.xtensivearts.episode.seven;

     import android.app.ListActivity;
     import android.os.Bundle;
     import android.widget.ArrayAdapter;

     public class Episode7 extends ListActivity {
         String[] testArray =
 getResources().getStringArray(R.array.testArray);

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

                 super.onCreate(savedInstanceState);

                 // Create an ArrayAdapter that will contain all list items
                 ArrayAdapterString adapter;

                 /* Assign the name array to that adapter and
                    also choose a simple layout for the list items */
                 adapter = new ArrayAdapterString(
                                 this,
                                 android.R.layout.simple_list_item_1,
                                 testArray);

                 // Assign the adapter to this ListActivity
                 setListAdapter(adapter);
         }

     }

 Here is my arrays.xml file
         ?xml version=1.0 encoding=utf-8?
         resources
             array name=testArray
                   itemfirst/item
                   itemsecond/item
                   itemthird/item
                   itemfourth/item
                   itemfifth/item
             /array
         /resources

-- 
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] Re: Alignment problem of EditText and Button in LinearLayout

2010-03-17 Thread Luca Bedogni
Also adding layout_gravity to the button could help.


On Wed, Mar 17, 2010 at 4:27 PM, Kitzy kitzyk...@gmail.com wrote:
 I'm not 100% sure on your problem, but you could simplify thing
 emenssly by using a RelativeLayout, and that may help you problem at
 the same time.

 See: 
 http://developer.android.com/resources/articles/layout-tricks-efficiency.html

 -Kitzy

 On Mar 10, 6:24 am, Sven Jacobs sven.jac...@web.de wrote:
 Hi all,

 this is the first time I'm developing an Android app so please bear with me
 ;)

 I've put an EditText and Button into a horizontal LinearLayout but
 unfortunately the button is not aligned with the text field. In the
 Hierarchy Viewer the text field has a absolute_y of 30 while the button has
 32. Please see screenshots of the Hierarchy Viewer 
 here:http://picasaweb.google.com/sj1981/Android

 The XML looks like this:

 LinearLayout xmlns:android=http://schemas.android.com/apk/res/android;
               android:orientation=vertical
               android:layout_width=fill_parent
               android:layout_height=fill_parent
               
     LinearLayout
         android:orientation=horizontal
         android:layout_width=fill_parent
         android:layout_height=wrap_content
         android:layout_marginTop=5sp
         EditText
             android:id=@+id/search_text
             android:layout_width=wrap_content
             android:layout_height=wrap_content
             android:layout_weight=1
             android:hint=@string/search_hint
             android:singleLine=true
             /
         Button
             android:id=@+id/search_button
             android:layout_width=wrap_content
             android:layout_height=wrap_content
             android:drawableLeft=@drawable/magnifier
             /
     /LinearLayout
     LinearLayout
         android:id=@+id/results_container
         android:orientation=vertical
         android:layout_width=fill_parent
         android:layout_height=fill_parent
         /
 /LinearLayout

 What's the problem here?

 Many thanks,
 Sven

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

-- 
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: What will happen to my activity incase of incoming phone call

2010-03-17 Thread Kitzy
When a call comes in, you'r activity will call onPause() when the call
ends, it will call onResume(). You can test this in the emulator as
well.

-Kitzy

On Mar 12, 12:09 am, Pria pri...@gmail.com wrote:
 I want to know that what will happen to my activity incase of an
 incoming phone call? Will the state of my activity be saved or I have
 to explicitly save it?

 Another question is that will the activity resume after the call is
 disconnected?

 Please help..!

-- 
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: Audio Processing

2010-03-17 Thread Kingcrowley
thanks for the reply. I was looking for help to design/make an
application that does some/all of those things. Anyone have any advice
or experience in making Audio Processing on Android?

On Mar 17, 12:46 am, BobG bobgard...@aol.com wrote:
 Hit the icon labeled 'market' on the front of the phone search for
 audio there's a good signal generator that does any waveform
 20-20k, white noise pink noise, and there;s a cool real time analyzer
 with 30 bands for free... those used to cost $2000 not long ago...

-- 
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] Long Press on Options Key - v 2.1

2010-03-17 Thread TreKing
On Wed, Mar 10, 2010 at 9:26 AM, David R. david.b.raistr...@gmail.comwrote:

 We are trying to figure out the reason why a long press on the Options
 Key brings up a keyboard.


Devices without physical keyboards probably need *some* way to bring up the
virtual keyboard at any time like one would by flipping out a physical one.
This would be needed to execute application shortcuts, or initiate a global
search if there was not dedicated button, for example. Long pressing on the
options key is as good a way to do this as any.

-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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] How to know the size of a file in adb shell prompt

2010-03-17 Thread rocky84 rocky84
*Hello all,

i want to extract the size of a file in adb shell using some perl utility.

this works fine for me as below in windows but does not work in adb shell
prompt (#)

i used this function in windows stat($filename);

can anybody please let me know how can i get file size in #prompt?

regds
rocky
*

-- 
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: Serial Data Transfer via Bluetooth

2010-03-17 Thread BobG
Hi Don. I think you need 2.0 or higher to run the bluetooth chat
example.. wish it wasnt so... I have a dev phone 2 (Google Ion? Does
it have other names? HTC something? TI something?) with 1.6. Someone
know how to use the bt backport examples? What dir do I put the jar
file in?

-- 
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] using java classes

2010-03-17 Thread Alex Hall
Hi all,
As an exercise, I am trying to add a date field to the database in
notepadv2 (the tutorial), and methods to sort or reverse sort notes by
date modified. However, I am not getting anywhere after trying to add
the Date and DateFormat objects to my application. I have imported
java.util.* and java.text.DateFormat, but I get an error that, for
example:
date=new Date();
cannot find variable date

Does android not like java classes? Thanks.

-- 
Have a great day,
Alex (msg sent from GMail website)
mehg...@gmail.com; http://www.facebook.com/mehgcap

-- 
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] using java classes

2010-03-17 Thread Mark Murphy
Alex Hall wrote:
 Hi all,
 As an exercise, I am trying to add a date field to the database in
 notepadv2 (the tutorial), and methods to sort or reverse sort notes by
 date modified. However, I am not getting anywhere after trying to add
 the Date and DateFormat objects to my application. I have imported
 java.util.* and java.text.DateFormat, but I get an error that, for
 example:
 date=new Date();
 cannot find variable date
 
 Does android not like java classes? Thanks.

Unless you have defined Date date elsewhere, that should be:

Date date=new Date();

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

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] using java classes

2010-03-17 Thread Alex Hall
That was it! I really hate it when it is such a glaringly obvious
error, yet you cannot see it. Oh well, that is not the first time and
I am sure it will not be the last...

On 3/17/10, Mark Murphy mmur...@commonsware.com wrote:
 Alex Hall wrote:
 Hi all,
 As an exercise, I am trying to add a date field to the database in
 notepadv2 (the tutorial), and methods to sort or reverse sort notes by
 date modified. However, I am not getting anywhere after trying to add
 the Date and DateFormat objects to my application. I have imported
 java.util.* and java.text.DateFormat, but I get an error that, for
 example:
 date=new Date();
 cannot find variable date

 Does android not like java classes? Thanks.

 Unless you have defined Date date elsewhere, that should be:

 Date date=new Date();

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

 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


-- 
Have a great day,
Alex (msg sent from GMail website)
mehg...@gmail.com; http://www.facebook.com/mehgcap

-- 
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] mapview: what might cause the google logo to show up as a red box?

2010-03-17 Thread TreKing
On Wed, Mar 17, 2010 at 10:25 AM, Michael Dorin bsddo...@gmail.com wrote:

 Seems this is a Cliq issue...but wondering if anybody has any idea how
 to get rid of it?


It is a Cliq problem and there does not seem to be anything you can do about
it.

Here's another forum on the topic:
http://forums.weatherbug.com/viewtopic.php?t=1219sid=e04f9f851426fbf7450fb10d2bb09221
http://forums.weatherbug.com/viewtopic.php?t=1219sid=e04f9f851426fbf7450fb10d2bb09221
-
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

-- 
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] Long Press on Options Key - v 2.1

2010-03-17 Thread Adrian Vintu
My Samsung Glaxy has no keyboard and I use this feature to filter in lists.
For example, in the Contacts list.

BR,
Adrian Vintu

http://adrianvintu.com

On Wed, Mar 17, 2010 at 5:28 PM, TreKing treking...@gmail.com wrote:

 On Wed, Mar 10, 2010 at 9:26 AM, David R. david.b.raistr...@gmail.comwrote:

 We are trying to figure out the reason why a long press on the Options
 Key brings up a keyboard.


 Devices without physical keyboards probably need *some* way to bring up the
 virtual keyboard at any time like one would by flipping out a physical one.
 This would be needed to execute application shortcuts, or initiate a global
 search if there was not dedicated button, for example. Long pressing on the
 options key is as good a way to do this as any.



 -
 TreKing - Chicago transit tracking app for Android-powered devices
 http://sites.google.com/site/rezmobileapps/treking

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

[android-beginners] sort order for sqlite query

2010-03-17 Thread Alex Hall
Hi all,
I am trying to sort the result set of an sql query, but google is not
telling me what I can put in for the sortOrder parameter of
mdb.query()
Which argument in the list is this sortOrder, and what do I put in
there for, say, an ascending sort of the modified column? Thanks!

-- 
Have a great day,
Alex (msg sent from GMail website)
mehg...@gmail.com; http://www.facebook.com/mehgcap

-- 
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] sort order for sqlite query

2010-03-17 Thread Mark Murphy
Alex Hall wrote:
 Hi all,
 I am trying to sort the result set of an sql query, but google is not
 telling me what I can put in for the sortOrder parameter of
 mdb.query()
 Which argument in the list is this sortOrder, and what do I put in
 there for, say, an ascending sort of the modified column? Thanks!

You put in modified. Or modified ASC, if you want, but ascending
order is the default, IIRC.

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

Android Training in US: 14-18 June 2010: http://bignerdranch.com

-- 
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] sort order for sqlite query

2010-03-17 Thread Alex Hall
Ah, so what about descending, and which argumnts of the query would
these (the column name and order) be?

On 3/17/10, Mark Murphy mmur...@commonsware.com wrote:
 Alex Hall wrote:
 Hi all,
 I am trying to sort the result set of an sql query, but google is not
 telling me what I can put in for the sortOrder parameter of
 mdb.query()
 Which argument in the list is this sortOrder, and what do I put in
 there for, say, an ascending sort of the modified column? Thanks!

 You put in modified. Or modified ASC, if you want, but ascending
 order is the default, IIRC.

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

 Android Training in US: 14-18 June 2010: http://bignerdranch.com

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


-- 
Have a great day,
Alex (msg sent from GMail website)
mehg...@gmail.com; http://www.facebook.com/mehgcap

-- 
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: Serial Data Transfer via Bluetooth

2010-03-17 Thread DonFrench
Then we are out of my comfort zone.  You might check this site though,
http://www.amarino-toolkit.net/documentation.html.  According to
Bonifaz Kaufmann, the developer of Amarino, they are communicating via
Bluetooth SPP with   the following devices, all pre 2.0.

* HTC Dream (aka T-Mobile G1, firmware 1.1, 1.5 and 1.6)
* HTC Magic (firmware 1.5 and 1.6)
* HTC Tattoo (firmware 1.6)
* Huawei U8220 (aka T-Mobile Pulse, firmware 1.5)
* (partially tested) Samsung Galaxy (firmware 1.5)

You can find the entire source code of Amarino here: 
http://code.google.com/p/amarino/
and it includes all the Bluetooth related stuff as well.  Good luck.




On Mar 17, 12:05 pm, BobG bobgard...@aol.com wrote:
 Hi Don. I think you need 2.0 or higher to run the bluetooth chat
 example.. wish it wasnt so... I have a dev phone 2 (Google Ion? Does
 it have other names? HTC something? TI something?) with 1.6. Someone
 know how to use the bt backport examples? What dir do I put the jar
 file in?

-- 
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: Audio Processing

2010-03-17 Thread Kingcrowley
Well you can use the NDK for android which is C/C++ or iPhone
development is in a C-based language Objective C

On Mar 17, 6:59 pm, BobG bobgard...@aol.com wrote:
 I consider myself an Expert doing digital signal acquisition and
 processing on microcontrollers an PCs in c. Last few weeks I've found
 out that non of that helps me learn java. Zilch. Zero. Nada. I bet
 they used c in phones 10 years ago. Whose idea was it to switch
 everything to java?!?

-- 
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: Having trouble with the first hurdle: new AVDs

2010-03-17 Thread davemac
Are you sure that the Java JDK is installed? Go here to get it if you
need to:

http://developer.apple.com/java/download/

It's a good idea to set JAVA_HOME in your .profile (or .bashrc) as
well as add $JAVA_HOME/bin and the Android SDK tools folder to your
PATH. Something like this:

export JAVA_HOME=/Library/Java/Home
export PATH=$PATH:$HOME/android-sdk-macos/tools:$JAVA_HOME/bin

[ I'm not exactly sure on that PATH since I'm not on my Mac at the
moment ]

- dave

On Mar 16, 5:16 pm, Xavier Ducrohet x...@android.com wrote:
 On Sun, Mar 14, 2010 at 7:09 PM, KE power...@gmail.com wrote:
  Error: Unable to read AVDs
  Error: /Users/kevinpowers/.android/ is not a directory! This is the
  path of preference folder expected by the Android tools.

 It seems like the tools was unable to create .android in your home
 folder, and then everything breaks (because we probably don't properly
 handle this major but unlikely error).

 Do you know why it would fail to create the .android folder? Are you
 running the app with restricted priviledges?

 The Eclipse behavior is pretty standard. The same NPE exception is
 throw, Eclipse absorbs it and doesn't do anything.

 Xav
 --
 Xavier Ducrohet
 Android SDK Tech Lead
 Google Inc.

 Please do not send me questions directly. Thanks!

-- 
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: Android SDK Setup.exe error - GetTempFileName failed. The directory name is invalid

2010-03-17 Thread davemac
Just a guess here, but did you unzip your files into the top-level
directory of your C: drive? Try creating a C:\android_install folder,
or something like that to hold your files. Then try it again.

- dave

On Mar 10, 2:51 pm, dmagnum dsnyde...@yahoo.com wrote:
 I downloaded android-sdk_r05-windows.zip and extracted the files to my
 C: drive. When I try to launch the SDK Setup.exe file, I see an error
 message that says, GetTempFileName failed. The directory name is
 invalid.

 I have tried to delete all the files and then reinstall them. I even
 tried a different drive (D). I still get that error message. Has
 anyone else experienced this?

 Thanks.

-- 
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] Terminal type text output for debugging?

2010-03-17 Thread BobG
I notice when I use setText to output some text to a textview it
defaults to the top left. What class acts like a terminal window or
stdout? Would be useful for debugging I think. (Old c programmer
trying to grok java)

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