[android-beginners] Please improve the UI performance of Android2.0

2009-11-09 Thread pushkar bandi
Hi,

I am working on Android.

When user selects the irrelevant network, UI displays a pop-up  your
simcard doesnot allow a connection to this network.

When the user tries to navigate back, the pop-up appears for a long time.

The performance of a time-out pop-up is not good.

Thanks.

Regards
Pushkar Setty

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

Re: [android-beginners] Re: Suggestions on tutorials

2009-11-09 Thread Justin Anderson
Perhaps if you hadn't been so rude about not using XML from your very first
post you wouldn't have gotten such a smattering of responses about XML.

The use of all caps like you were yelling at us and using a sweeping
generalization to say that XML has no benefits and if you think it does then
you are wrong was just plain uncalled for and rude.

Even if I felt the same way about XML as you do (which I don't) I wouldn't
have wanted to help you.  Maybe, before you post again, you should take a
class or two in manners and etiquette.

Thanks,
Justin

P.S. Just as an aside about one of your rants on the use of XML with Android
(I'm sure I could come up with a few more counter-arguments for most of
yours)...  Since the XML is compiled down to java, then the issue of it
being a bloated format isn't really an issue when it comes to using it in
Android, is it?

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Sun, Nov 8, 2009 at 8:07 AM, Kingcrowley kingcrow...@gmail.com wrote:

 This returns to the argument that always comes up in programming.is A
 better than B or B better than A. In this case XML has some advantages
 but of course sometimes you need to do things through code. I would
 review your approach and think maybe i should take off my blinkers and
 look at XML (as making an XML menu layout takes seconds in Android
 once you have done one you have done them all), maybe you won't use
 XML 80-90% of the time but for simple menus and things like that
 writing code to do it is much more time consuming and error prone,
 especially as the Eclipse enviroment and Android plugins really aid
 the development.
 As a side note about the magic of XML allowing you to
 redesign an app without coding.  If you change your ui
 there is a 99% chance you are changing some logic behind
 the scenes as well.  But now you have XML to change and
 make sure the R.class gets gened and that you used the
 write keyword from the R.class in your code.   You see you
 have increased the likelihood of an error 3x. 
 you say this - but with the Android Development tools this isn't an
 issue that i have seen.
 The XML in android is not read in at runtime like a CSS might
 be in HTML but is used to build java classfiles.  And as far as I
 have seen the XML does not link data in from a model to fields.
 So really all the XML can do is provide some format and ordering
 support.  Seems like a lot of effort and points of failure for such
 little return. 

 this is a classic argument - but as an older programmer with C/C++
 background and Java background for embedded devices, i could state
 that Java is slow/with bad memory management and we should be using C/C
 ++ to develop, but sometimes it is just quicker to use Java! which is
 the basic argument for using XML

 Regards,

 David



 On Nov 8, 6:43 am, sfitzjava sfitzj...@gmail.com wrote:
  Hmmm. Learn android, that was kind of the idea.
  And all of the intros to android brag there are 2 way
  to do it, all I ask is to find the information on the non-XML
  way.
  Looks like niko20 knows how to ask mr google better than
  I can, and knows how to answer the key question.
  I had hoped not to have the XML zealots trying to push
  the koolaid on me.
 
  On Nov 7, 7:00 pm, Kingcrowley kingcrow...@gmail.com wrote:
 
   maybe you are just looking at this wronginstead of trying to mash
   your knowledge into Android development, maybe you should learn
   Android...
 
   On Nov 7, 10:01 pm, sfitzjava sfitzj...@gmail.com wrote:
 
Wow thanks David that was so helpful.
 
If there were tutorials that weren't made up of 99% XML I could.
Here let's take LinearLayout.
 
LinearLayout xmlns:android=http://schemas.android.com/apk/res/
android
  android:layout_width=fill_parent
  android:layout_height=fill_parent
  android:orientation=vertical 
 
So I can find a LinearLayout class.  Great, now where is the setWidth
()... None
Ok is is setLayoutWidth()  Fail again.   Hmm... Wait there is nothing
in the LinearLayout
class that sets anything related to the width.  Oh wait it must be in
the constructor, sure
there is an Attribute object.  I must have to set it there... what is
this...
The Attribute class is.. A collection of attributes, as found
associated with a tag in an XML document.
Noo... XML document again.  Well isn't that just fun.   I
 love
how XML is so similar to the API.
Not to mention the xmlns and having to prefix everything with
android:.
Wow could this be more seamless and fluid to understand... Sorry I
meant confusing.
 
So you see I don't have time to weed through all the chaff to figure
out
which of the mickey mouse  XML file goes in what special

Re: [android-beginners] This class was probably produced by a broken compiler.

2009-11-09 Thread Justin Anderson
We're going to need more information... perhaps some code and the logcat
output.

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Sun, Nov 8, 2009 at 11:08 AM, Marton Kodok pentiu...@gmail.com wrote:

 After I redownloaded eclipse and the newest SDK,
 I have this problem...

 Waiting for HOME ('android.process.acore') to be launched...
 warning: Ignoring InnerClasses attribute for an anonymous inner class that
 doesn't come with an associated EnclosingMethod attribute. (This class was
 probably produced by a broken compiler.)
 warning: Ignoring InnerClasses attribute for an anonymous inner class that
 doesn't come with an associated EnclosingMethod attribute. (This class was
 probably produced by a broken compiler.)
 warning: Ignoring InnerClasses attribute for an anonymous inner class that
 doesn't come with an associated EnclosingMethod attribute. (This class was
 probably produced by a broken compiler.)
 warning: Ignoring InnerClasses attribute for an anonymous inner class that
 doesn't come with an associated EnclosingMethod attribute. (This class was
 probably produced by a broken compiler.)
 emulator-5554 disconnected! Cancelling '...'!

 Please help...

 --
 Márton

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

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

Re: [android-beginners] extending PreferenceScreen with SeekBar

2009-11-09 Thread Justin Anderson
Here is a link that can probably get you started in the right direction...
This class extends PreferenceDialog, but gives the general idea...

http://code.google.com/p/netthreads-for-android/source/browse/trunk/bulletml/src/com/netthreads/android/bulletml/widget/SeekBarPreference.java?spec=svn14r=14

Thanks,
Justin

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Mon, Nov 9, 2009 at 12:35 AM, Marton Kodok pentiu...@gmail.com wrote:

 Hello,

 I am looking for a way to set a level with SeekBar on Preferences.
 I am wondering if I can extend the PreferenceScreen with SeekBar?

 --
 Márton

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

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

[android-beginners] how to pause emulator

2009-11-09 Thread Marton Kodok
When I run the emulator it eats 50% of the CPU continuously.
How can I pause it so I can work smoothly?

-- 
Márton

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

[android-beginners] Re: how to pause emulator

2009-11-09 Thread kiro
Don't know how to pause, but if use Multi-core processor (my 2 cores)
then you will develop with a pleasure ;)

On Nov 9, 5:24 pm, Marton Kodok pentiu...@gmail.com wrote:
 When I run the emulator it eats 50% of the CPU continuously.
 How can I pause it so I can work smoothly?

 --
 Márton

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


[android-beginners] How to receive and read an Email

2009-11-09 Thread jrichards1...@googlemail.com
Hi, i am wondering how its possible to receive
 incoming emails on an android device.

i can send out emails using

private void sendEmail(String[] address, String subject, String msg) {
Intent send = new Intent(Intent.ACTION_SEND);
send.putExtra(Intent.EXTRA_EMAIL, address);
send.putExtra(Intent.EXTRA_SUBJECT, subject);
send.putExtra(Intent.EXTRA_TEXT, msg);
send.setType(text/plain);
startActivity(Intent.createChooser(send, MySendMail));
}


But i cant seem find a way to actually receive incoming new emails or
even read emails stored in an inbox? the only inbox i have seen is the
ones for SMS but nothing for emails.

Not only for Emails but for SMS messages too. At first i thought i
found a way using the SMS_RECIEVED intent but i during further
investigation, this intent doesnt exist in the actual android SDK?

Surely there is a way to listen out for new incoming SMS and emails?
Thanks in advance.

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


Re: [android-beginners] How to receive and read an Email

2009-11-09 Thread Sean Hodges
SMS_RECEIVED definitely should be in the SDK, it is a frequently used
intent. An example of it's use can be found here:
http://davanum.wordpress.com/2007/12/15/android-listen-for-incoming-sms-messages/.
Double-check your spelling, I think you have an i and an e the
wrong way round.

As for emails, I'm not aware of any public intents in the GMail or
Email apps, and I'm not sure which one you intend to interface with.
How about using some simple IMAP client code to check an email account
periodically? Something like this:
http://eppleton.sharedhost.de/blog/?p=176


On Mon, Nov 9, 2009 at 4:37 PM, jrichards1...@googlemail.com
jrichards1...@googlemail.com wrote:
 Hi, i am wondering how its possible to receive
  incoming emails on an android device.

 i can send out emails using

 private void sendEmail(String[] address, String subject, String msg) {
 Intent send = new Intent(Intent.ACTION_SEND);
 send.putExtra(Intent.EXTRA_EMAIL, address);
 send.putExtra(Intent.EXTRA_SUBJECT, subject);
 send.putExtra(Intent.EXTRA_TEXT, msg);
 send.setType(text/plain);
 startActivity(Intent.createChooser(send, MySendMail));
 }


 But i cant seem find a way to actually receive incoming new emails or
 even read emails stored in an inbox? the only inbox i have seen is the
 ones for SMS but nothing for emails.

 Not only for Emails but for SMS messages too. At first i thought i
 found a way using the SMS_RECIEVED intent but i during further
 investigation, this intent doesnt exist in the actual android SDK?

 Surely there is a way to listen out for new incoming SMS and emails?
 Thanks in advance.

 --
 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.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.
To post to this group, send email to android-beginners@googlegroups.com
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: How to receive and read an Email

2009-11-09 Thread jrichards1...@googlemail.com
Thanks. Sorry but the sdk definetly doesnt have that intent anymore

http://developer.android.com/search.html#q=SMS_RECEIVED%20t=0

On Nov 9, 5:12 pm, Sean Hodges seanhodge...@googlemail.com wrote:
 SMS_RECEIVED definitely should be in the SDK, it is a frequently used
 intent. An example of it's use can be found 
 here:http://davanum.wordpress.com/2007/12/15/android-listen-for-incoming-s
 Double-check your spelling, I think you have an i and an e the
 wrong way round.

 As for emails, I'm not aware of any public intents in the GMail or
 Email apps, and I'm not sure which one you intend to interface with.
 How about using some simple IMAP client code to check an email account
 periodically? Something like this:http://eppleton.sharedhost.de/blog/?p=176

 On Mon, Nov 9, 2009 at 4:37 PM, jrichards1...@googlemail.com

 jrichards1...@googlemail.com wrote:
  Hi, i am wondering how its possible to receive
   incoming emails on an android device.

  i can send out emails using

  private void sendEmail(String[] address, String subject, String msg) {
  Intent send = new Intent(Intent.ACTION_SEND);
  send.putExtra(Intent.EXTRA_EMAIL, address);
  send.putExtra(Intent.EXTRA_SUBJECT, subject);
  send.putExtra(Intent.EXTRA_TEXT, msg);
  send.setType(text/plain);
  startActivity(Intent.createChooser(send, MySendMail));
  }

  But i cant seem find a way to actually receive incoming new emails or
  even read emails stored in an inbox? the only inbox i have seen is the
  ones for SMS but nothing for emails.

  Not only for Emails but for SMS messages too. At first i thought i
  found a way using the SMS_RECIEVED intent but i during further
  investigation, this intent doesnt exist in the actual android SDK?

  Surely there is a way to listen out for new incoming SMS and emails?
  Thanks in advance.

  --
  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.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.
To post to this group, send email to android-beginners@googlegroups.com
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: Phone to phone communication

2009-11-09 Thread Roman ( T-Mobile USA)
If you want to use Wifi as radio interface you have the option to

+ setup a client/server infrastructure
+ or use the IP broadcast address

In a client/server setup the server would be the central component
which keeps track of your clients within the wireless LAN. You would
have to implement registration/unregistration. Also a mechanism has to
be implemented whether clients are still alive.

In case of you are using a broadcast IP address, a device could
broadcast a Hello I am alive message in your wireless LAN. Each
device which is listening on the broadcast address would receive the
message and would know about the presence of the new device. You could
think of to add to this message the local IP address of the device.
Other devices could use the IP address for direct communication (of
course going over the AP).

--
Roman Baumgaertner
Sr. SW Engineer-OSDC
·T· · ·Mobile· stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On Nov 8, 11:52 am, David Kebo davidk...@gmail.com wrote:
 Hello,
 I’m writing an application that requires 2 or multiple phones to talk
 to each other ? Phones are on the same Wi-Fi network and will send
 simple status messages to each other.  I’m thinking of client-server ,
 with one phone as server and the others as clients, but i'm not sure.
 Please provide some suggestions or references, if possible.

 Thanks in advance

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


Re: [android-beginners]

2009-11-09 Thread Justin Anderson
A pending intent essentially gives something that is not your application
permissions to do stuff as if it were your application.

This is most often used with notifications in the status bar or with views
that are part of a widget.  The intent is executed when some action takes
place, such as a click of a button on a widget or a click on the status bar
notification.

Hope that helps.

Thanks,
Justin

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Sat, Nov 7, 2009 at 12:03 AM, saurabh sinha saurso...@gmail.com wrote:

 what is difference between intent and pending intent

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

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

Re: [android-beginners] Re: modular programming (design pattern)

2009-11-09 Thread Justin Anderson
Are you going to be the only person developing these modules, or are you
planning on creating some sort of a framework that other developers will be
able to tap into?
--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Sun, Nov 8, 2009 at 4:23 AM, Marton Kodok pentiu...@gmail.com wrote:

 For example if I have a main app and three modules in mind, such as:
 audio, video, and calendar (The modules itself does nothing. They're useful
 only when called by the main app)

 1. how will the main app know that those modules are installed on the
 phone, and can call them? how do I get a list of modules (mine) ?
 2. also how do I make my modules hidden to user, they should not be visible
 for launch, and should not be able to launched by an icon, only by my app?

 2009/11/8 RichardC richard.crit...@googlemail.com

 Read all about Intents.  Here are a few links to get you started:

 http://developer.android.com/guide/topics/fundamentals.html
 http://developer.android.com/guide/appendix/g-app-intents.html
 http://code.google.com/p/openintents/

 --
 RichardC


 On Nov 8, 10:50 am, Marton Kodok pentiu...@gmail.com wrote:
  Hello,
 
  I am planning to build my app in modular way. I am thinking that
 whenever a
  user adds a new component/module that will be recognized by my main app.
  Can someone point me in the best direction to read more about design
  patterns for this approach for Android?
 
  Are there any examples out there?
 
  --
  Márton

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




 --
 Márton

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


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

Re: [android-beginners] Re: modular programming (design pattern)

2009-11-09 Thread Marton Kodok
I will be the only who will develop the modules, no framework in mind.

2009/11/9 Justin Anderson janderson@gmail.com

 Are you going to be the only person developing these modules, or are you
 planning on creating some sort of a framework that other developers will be
 able to tap into?
 --
 There are only 10 types of people in the world...
 Those who know binary and those who don't.
 --


 On Sun, Nov 8, 2009 at 4:23 AM, Marton Kodok pentiu...@gmail.com wrote:

 For example if I have a main app and three modules in mind, such as:
 audio, video, and calendar (The modules itself does nothing. They're
 useful only when called by the main app)

 1. how will the main app know that those modules are installed on the
 phone, and can call them? how do I get a list of modules (mine) ?
 2. also how do I make my modules hidden to user, they should not be
 visible for launch, and should not be able to launched by an icon, only by
 my app?

 2009/11/8 RichardC richard.crit...@googlemail.com

 Read all about Intents.  Here are a few links to get you started:

 http://developer.android.com/guide/topics/fundamentals.html
 http://developer.android.com/guide/appendix/g-app-intents.html
 http://code.google.com/p/openintents/

 --
 RichardC


 On Nov 8, 10:50 am, Marton Kodok pentiu...@gmail.com wrote:
  Hello,
 
  I am planning to build my app in modular way. I am thinking that
 whenever a
  user adds a new component/module that will be recognized by my main
 app.
  Can someone point me in the best direction to read more about design
  patterns for this approach for Android?
 
  Are there any examples out there?
 
  --
  Márton

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




 --
 Márton

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


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




-- 
Márton

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

Re: [android-beginners] Re: How to receive and read an Email

2009-11-09 Thread Sean Hodges
Do you mean the intent no longer works, or that it is simply not documented on 
the Android dev site any more?

Sorry, I would usually write a quick JUnit test myself, but my time is 
currently consumed by other development work... I would be interested to hear 
your findings though.

On Monday 09 Nov 2009 17:27:53 jrichards1...@googlemail.com wrote:
 Thanks. Sorry but the sdk definetly doesnt have that intent anymore
 
 http://developer.android.com/search.html#q=SMS_RECEIVED%20t=0
 
 On Nov 9, 5:12 pm, Sean Hodges seanhodge...@googlemail.com wrote:
  SMS_RECEIVED definitely should be in the SDK, it is a frequently used
  intent. An example of it's use can be found
  here:http://davanum.wordpress.com/2007/12/15/android-listen-for-incoming-
 s Double-check your spelling, I think you have an i and an e the
  wrong way round.
 
  As for emails, I'm not aware of any public intents in the GMail or
  Email apps, and I'm not sure which one you intend to interface with.
  How about using some simple IMAP client code to check an email account
  periodically? Something like
  this:http://eppleton.sharedhost.de/blog/?p=176
 
  On Mon, Nov 9, 2009 at 4:37 PM, jrichards1...@googlemail.com
 
  jrichards1...@googlemail.com wrote:
   Hi, i am wondering how its possible to receive
incoming emails on an android device.
  
   i can send out emails using
  
   private void sendEmail(String[] address, String subject, String msg) {
   Intent send = new Intent(Intent.ACTION_SEND);
   send.putExtra(Intent.EXTRA_EMAIL, address);
   send.putExtra(Intent.EXTRA_SUBJECT, subject);
   send.putExtra(Intent.EXTRA_TEXT, msg);
   send.setType(text/plain);
   startActivity(Intent.createChooser(send, MySendMail));
   }
  
   But i cant seem find a way to actually receive incoming new emails or
   even read emails stored in an inbox? the only inbox i have seen is the
   ones for SMS but nothing for emails.
  
   Not only for Emails but for SMS messages too. At first i thought i
   found a way using the SMS_RECIEVED intent but i during further
   investigation, this intent doesnt exist in the actual android SDK?
  
   Surely there is a way to listen out for new incoming SMS and emails?
   Thanks in advance.
  
   --
   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.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.
To post to this group, send email to android-beginners@googlegroups.com
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: Suggestions on tutorials

2009-11-09 Thread Jeffrey Blattman
shawn,

you do not have to define your layout in XML. you are free to build it 
up your android layout view programmatically, if you so wish. as a side 
note, if you are doing any sort of development, on any platform, you 
will be hard pressed to avoid XML. that's just a fact so don't kill the 
messenger.

what XML is good at is providing an easily parsable machine 
communication mechanism. a lot of what you say is true, but only because 
XML is being misused. the ADT plugin provides GUI wrappers around most 
(all?) of the XML you need to write, but of course the plugin is lacking 
so you quickly get to a point where you need to get into the XML.

good luck.

On 11/9/09 1:36 PM, Indicator Veritatis wrote:
 If you really want to learn to code using the  Android SDK, then you
 WILL use the XML. Otherwise, you simply are not using Android after
 all. In that case, you should give up your membership in the Google
 Beginner's group, since you will get nothing out of it.

 On Nov 7, 1:20 pm, sfitzjavasfitzj...@gmail.com  wrote:

 Wow thought I said I Please no .. benefits of XML (BECAUSE YOU
 ARE WRONG. [PERIOD]).
 So thanks for wasting my time reading your diatribe and you are wrong
 still.  Sadly you would jump over a cliff if some
 script kiddie told you it was the new thing to do.

 So to quickly cut through all of your BS.
 XML in android is processed down to Java at compile time.
 XML does not make your system any more flexible than writing it in
 standard java (unless you don't know how to program)
 XML is error prone
 XML is not a programming language
 XML is BLOATED!
 XML is a data description syntax for communication between
 heterogeneous system.
 XML is a data description syntax which supports data versioning.
 XML can not be debugged
 XML has to be gen'ed into the R.class
 XML tag has to match what is typed in the java code, and there is no
 validation since the R.class is not constantly regen'ed.
 XML is not validated, nor has any javadocs, nor has any code
 completion support.
 XML can not be visualized without building and running the app.

 Now if Google wants to make a decent tool such as Apple has with XCode
 InterfaceBuilder  (not calling xcode perfect but it does a very nice
 job) then I don't care what they save their files in, and I will
 happily jump back and forth if it saves me time, boilerplate coding,
 code bloat that gets in the way of debugging, and helps with the
 maintainability of the codebase.  To date XML in android does none of
 these.

 Also don't talk to me like I have no idea about technology, ESPECIALLY
 MOBILE!!!
 It is clear that you use technology and do not understand it.  Your
 use of the statement XML is used everywhere
 as some type of validation demonstrates that.  Millions of people
 believed for hundreds of years that the world was flat,
 that the earth was the center of everything, more recently that
 Quantum physics was a pipe-dream.
   If XML is the greatest then why was JSON developed?

 So unless you can answer my question you need not reply.
 Again to be clear the question is, Any tutorials for android that do
 not require XML.

 -Shawn

 On Nov 3, 12:33 am, confettidamcc...@gmail.com  wrote:

  
 Shawn,

  
 I'm not going to tell you that you should use xml because I'll be the
 first to admit, it's a hard thing to learn. However, saying there are
 absolutely no benefits to xml is wrong. There are benefits and costs
 to every computer related technology. Xml can offer a flexible, easy
 to change GUI. In android, it lets you define several different
 layouts for a single activity without ever having to change a piece of
 code.

  
 On the other hand, I also understand the benefits of hardcoding a UI.
 It requires less jumping between files, and less resource management
 (although android makes that very easy indeed).

  
 I would like to point out that rejecting a widely used technology like
 xml completely is going to make it very difficult for you to compete
 in today's tech industry. Xml is a part of everything. If you didn't
 know, Google Groups, gmail, iGoogle, bing, msn.com, and thousands of
 other websites use a technology called AJAX, in which xml is an
 integral part. Without it, we couldn't have the cool behaviors like
 partial-page refreshes. On the software side, xml is used in thousands
 of applications across the world as a standard for transferring data
 between places. Even Microsoft Office and OpenOffice.org save all of
 their documents and files in xml now.

  
 To answer your question, the only way to truly learn to program
 android applications is to do it. Just like with any language and
 platform, you can't become good at it without practice. I find the
 easiest way for me to learn is to come up with a tool that I want or
 need for my own convenience (music file organizer, flash card program,
 a findreplace function for files on the hard drive instead of text IN
 a file, 

[android-beginners] How to Help on traduction?

2009-11-09 Thread Felipe K. C.
Hi,

I like a lot this de Android project. How can I Help on translation to
brazilian portuguese? I see there is no option to this languages.

Thanks,
Felipe.

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

[android-beginners] Re: How to add a dialog in a AppWidget

2009-11-09 Thread Tikoze
You could set it up so that the widget just launches an activity, and
have that activity themed to look like a dialog...

On Oct 28, 6:11 pm, Carl vapor.trail@gmail.com wrote:
 Hi all,

 I am trying to add a dialog to a widget I made, in where when you
 press it, it displays two options, YES and NO. If the user presses
 YES, it will start an Activity.
 I tried to use android.app.Dialog but it looks like it only works with
 Activities. Is there any way of achieving this?

 Thanks.

 Carl

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


[android-beginners] Re: Rotate Activity screen

2009-11-09 Thread Batuka


On Nov 4, 10:30 pm, Tim tdh...@gmail.com wrote:
 On Nov 4, 9:02 am, Batuka batukali...@gmail.com wrote:

  i wont

  my activity start withrotatescreen
  like this --- setRequestedOrientation
  (ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
  its working
  but if i open the my G1 front side  (it means you will see the
  keyboard)
  then my activity starts again
  how do I troubleshoot it

 Perhaps this will 
 help:http://stackoverflow.com/questions/1664472/persisting-a-context-menu-...

 I.e. use add   android:configChanges=keyboardHidden|orientation   to
 your activity element in AndroidManifest.xml and then add an empty
 onConfigurationChange() method to your activity class:

 @Override
 public void onConfigurationChanged(Configuration newConfig)
 {

 }

 No idea if that's the right way. Worth a try though.

hey TIM thanks you so match
android:configChanges=keyboardHidden|orientation
its great its working now my activity no restart and LANDSCAPE thanks

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


[android-beginners] How to save Setings

2009-11-09 Thread Batuka
hi all and sorry my English

ok i wont to save my activitys setings
for example : my activity is start with sound
then i change sound after stop activity then start activity with
selected sound
how to do that

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


[android-beginners] Re: Rotate Activity screen

2009-11-09 Thread Samuh

 I have a related question. What exactly happens when the orientation
 changes? It isn't shown on the app lifecycle chart and I can't really
 find any reference to it in the documentation.

 Anyone?

Tim,

You might want to read the series of articles Mr. Mark Murphy posted
here: 
http://www.androidguys.com/2008/10/14/rotational-forceson-your-android-app/

Hope that helps.

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


[android-beginners] Desktop Widget Woes...

2009-11-09 Thread MagouyaWare
I just started working on a desktop widget for my application and,
even though I understand the need for security, and have been a little
disappointed with the RemoteViews functionality...

My widget consists of several ImageViews for which I do not have
resource identifiers (They are actually icons of other apps installed
on the phone).  Is there a way to update the ImageViews with a
Drawable???

I have a workaround but it is very ugly and I know it will be costly,
especially since it will be in a widget.  Currently I have to take the
drawable I have and cast it to a BitmapDrawable.  Then I call
createBitmap() or getBitmap() on it (I can't remember offhand what the
name of the actual method is).  After that I call
RemoteViews.setImageViewBitmap() in order to display the icon

There has got to be a better way to accomplish something like this...
Anyone have any ideas?

Thanks,
Justin

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


[android-beginners] Re: Suggestions on tutorials

2009-11-09 Thread sfitzjava
I think you are correct about the tools not being mature enough.
However it's a sad state of an OS where tools are require to develop
because the process has so many moving parts, like dominos ready
to fall.

This reminds me of JavaServerFaces (JSF).  Wow another XML debacle.
Or the ANT build system.  Once it got past javac/jar/  then you
had to start stacking on more and more tools such as antenna.

Oh well thanks to all the zealots that completely twisted this thread
into nothing but BS that didn't help anyone.  (except for Niko20 who
actually provided some real answers... thanks).

I'm done with droid, it's not worth it.  I'll wait till real tools are
ready or
they fix the metaphor.

-Shawn

In the land of the blind the one eyed man will be stoned as a
heretic.

On Nov 9, 4:22 pm, Jeffrey Blattman jeffrey.blatt...@gmail.com
wrote:
 shawn,

 you do not have to define your layout in XML. you are free to build it
 up your android layout view programmatically, if you so wish. as a side
 note, if you are doing any sort of development, on any platform, you
 will be hard pressed to avoid XML. that's just a fact so don't kill the
 messenger.

 what XML is good at is providing an easily parsable machine
 communication mechanism. a lot of what you say is true, but only because
 XML is being misused. the ADT plugin provides GUI wrappers around most
 (all?) of the XML you need to write, but of course the plugin is lacking
 so you quickly get to a point where you need to get into the XML.

 good luck.

 On 11/9/09 1:36 PM, Indicator Veritatis wrote:





  If you really want to learn to code using the  Android SDK, then you
  WILL use the XML. Otherwise, you simply are not using Android after
  all. In that case, you should give up your membership in the Google
  Beginner's group, since you will get nothing out of it.

  On Nov 7, 1:20 pm, sfitzjavasfitzj...@gmail.com  wrote:

  Wow thought I said I Please no .. benefits of XML (BECAUSE YOU
  ARE WRONG. [PERIOD]).
  So thanks for wasting my time reading your diatribe and you are wrong
  still.  Sadly you would jump over a cliff if some
  script kiddie told you it was the new thing to do.

  So to quickly cut through all of your BS.
  XML in android is processed down to Java at compile time.
  XML does not make your system any more flexible than writing it in
  standard java (unless you don't know how to program)
  XML is error prone
  XML is not a programming language
  XML is BLOATED!
  XML is a data description syntax for communication between
  heterogeneous system.
  XML is a data description syntax which supports data versioning.
  XML can not be debugged
  XML has to be gen'ed into the R.class
  XML tag has to match what is typed in the java code, and there is no
  validation since the R.class is not constantly regen'ed.
  XML is not validated, nor has any javadocs, nor has any code
  completion support.
  XML can not be visualized without building and running the app.

  Now if Google wants to make a decent tool such as Apple has with XCode
  InterfaceBuilder  (not calling xcode perfect but it does a very nice
  job) then I don't care what they save their files in, and I will
  happily jump back and forth if it saves me time, boilerplate coding,
  code bloat that gets in the way of debugging, and helps with the
  maintainability of the codebase.  To date XML in android does none of
  these.

  Also don't talk to me like I have no idea about technology, ESPECIALLY
  MOBILE!!!
  It is clear that you use technology and do not understand it.  Your
  use of the statement XML is used everywhere
  as some type of validation demonstrates that.  Millions of people
  believed for hundreds of years that the world was flat,
  that the earth was the center of everything, more recently that
  Quantum physics was a pipe-dream.
    If XML is the greatest then why was JSON developed?

  So unless you can answer my question you need not reply.
  Again to be clear the question is, Any tutorials for android that do
  not require XML.

  -Shawn

  On Nov 3, 12:33 am, confettidamcc...@gmail.com  wrote:

  Shawn,

  I'm not going to tell you that you should use xml because I'll be the
  first to admit, it's a hard thing to learn. However, saying there are
  absolutely no benefits to xml is wrong. There are benefits and costs
  to every computer related technology. Xml can offer a flexible, easy
  to change GUI. In android, it lets you define several different
  layouts for a single activity without ever having to change a piece of
  code.

  On the other hand, I also understand the benefits of hardcoding a UI.
  It requires less jumping between files, and less resource management
  (although android makes that very easy indeed).

  I would like to point out that rejecting a widely used technology like
  xml completely is going to make it very difficult for you to compete
  in today's tech industry. Xml is a part of everything. If you didn't
  know, Google Groups, gmail, 

Re: [android-beginners] Re: Suggestions on tutorials

2009-11-09 Thread Justin Anderson
Self-fulfilling prophecy

* I had hoped not to have the XML zealots trying to push
 the koolaid on me.
*
Not true.  From the very beginning you were egging us XML zealots on...
Had you been a little (ok, a LOT) nicer, maybe you would have gotten what
you wanted.  But know, I think you were just wanting to rant and rave about
how you hate XML because you have nothing better to do.

I don't know about the others, but I don't mind in the least that you are
done with droid

Later (and good riddance, unless you decide to be somewhat cordial),
Justin

--
There are only 10 types of people in the world...
Those who know binary and those who don't.
--


On Mon, Nov 9, 2009 at 9:50 PM, sfitzjava sfitzj...@gmail.com wrote:

 I think you are correct about the tools not being mature enough.
 However it's a sad state of an OS where tools are require to develop
 because the process has so many moving parts, like dominos ready
 to fall.

 This reminds me of JavaServerFaces (JSF).  Wow another XML debacle.
 Or the ANT build system.  Once it got past javac/jar/  then you
 had to start stacking on more and more tools such as antenna.

 Oh well thanks to all the zealots that completely twisted this thread
 into nothing but BS that didn't help anyone.  (except for Niko20 who
 actually provided some real answers... thanks).

 I'm done with droid, it's not worth it.  I'll wait till real tools are
 ready or
 they fix the metaphor.

 -Shawn

 In the land of the blind the one eyed man will be stoned as a
 heretic.

 On Nov 9, 4:22 pm, Jeffrey Blattman jeffrey.blatt...@gmail.com
 wrote:
  shawn,
 
  you do not have to define your layout in XML. you are free to build it
  up your android layout view programmatically, if you so wish. as a side
  note, if you are doing any sort of development, on any platform, you
  will be hard pressed to avoid XML. that's just a fact so don't kill the
  messenger.
 
  what XML is good at is providing an easily parsable machine
  communication mechanism. a lot of what you say is true, but only because
  XML is being misused. the ADT plugin provides GUI wrappers around most
  (all?) of the XML you need to write, but of course the plugin is lacking
  so you quickly get to a point where you need to get into the XML.
 
  good luck.
 
  On 11/9/09 1:36 PM, Indicator Veritatis wrote:
 
 
 
 
 
   If you really want to learn to code using the  Android SDK, then you
   WILL use the XML. Otherwise, you simply are not using Android after
   all. In that case, you should give up your membership in the Google
   Beginner's group, since you will get nothing out of it.
 
   On Nov 7, 1:20 pm, sfitzjavasfitzj...@gmail.com  wrote:
 
   Wow thought I said I Please no .. benefits of XML (BECAUSE YOU
   ARE WRONG. [PERIOD]).
   So thanks for wasting my time reading your diatribe and you are wrong
   still.  Sadly you would jump over a cliff if some
   script kiddie told you it was the new thing to do.
 
   So to quickly cut through all of your BS.
   XML in android is processed down to Java at compile time.
   XML does not make your system any more flexible than writing it in
   standard java (unless you don't know how to program)
   XML is error prone
   XML is not a programming language
   XML is BLOATED!
   XML is a data description syntax for communication between
   heterogeneous system.
   XML is a data description syntax which supports data versioning.
   XML can not be debugged
   XML has to be gen'ed into the R.class
   XML tag has to match what is typed in the java code, and there is no
   validation since the R.class is not constantly regen'ed.
   XML is not validated, nor has any javadocs, nor has any code
   completion support.
   XML can not be visualized without building and running the app.
 
   Now if Google wants to make a decent tool such as Apple has with XCode
   InterfaceBuilder  (not calling xcode perfect but it does a very nice
   job) then I don't care what they save their files in, and I will
   happily jump back and forth if it saves me time, boilerplate coding,
   code bloat that gets in the way of debugging, and helps with the
   maintainability of the codebase.  To date XML in android does none of
   these.
 
   Also don't talk to me like I have no idea about technology, ESPECIALLY
   MOBILE!!!
   It is clear that you use technology and do not understand it.  Your
   use of the statement XML is used everywhere
   as some type of validation demonstrates that.  Millions of people
   believed for hundreds of years that the world was flat,
   that the earth was the center of everything, more recently that
   Quantum physics was a pipe-dream.
 If XML is the greatest then why was JSON developed?
 
   So unless you can answer my question you need not reply.
   Again to be clear the question is, Any tutorials for android that do
   not require XML.
 
  

[android-beginners] Android Best Practices

2009-11-09 Thread jphani...@gmail.com
I have a question with respect to best practices in android? Which one
is more efficient? A ViewFlipper to go through multiple defined
layouts or have an activity for each layout and one main layout.
Please let me know if my question is not clear.

Thanks
Phani

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


[android-beginners] Tutorials: creating 9-patch drawables using SDK tools

2009-11-09 Thread Samuh
I am new to the concept of 9-patch drawables. In fact, I happened to
stumble upon them by chance.I skimmed through the following:
http://developer.android.com/guide/developing/tools/draw9patch.html

Now, I need some tutorial that can help me understand how to use the
draw9patch tool bundled with the SDK.

Please help.

Thanks.

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