[android-beginners] Re: How to begin with android

2009-11-08 Thread RichardC
If you want to develop Android applications then all you need is Java,
the SDK and Eclipse (or Ant) and this is the right group to discuss
getting started.  However if you want to work on the kernel then I
sugguest you visit and have a read of:

http://groups.google.com/group/android-kernel
http://groups.google.com/group/android-platform
http://groups.google.com/group/android-porting

--
RichardC

On Nov 8, 7:23 am, Niamathullah sharief android...@gmail.com wrote:
 I have some doubts. From where we will get this android kernel part? is it
 nessary to learn java to work in android kernel part?

 On Wed, Oct 28, 2009 at 7:46 PM, Kumaravel Kandasami 

 kumaravel.kandas...@gmail.com wrote:
  Congratulations on starting with Android -

  Books there are many good books which could ramp up your learning curve -
  personally I like the book from Mark Murphy
 http://commonsware.com/

  Kumar    _/|\_
 www.saisk.com
  ku...@saisk.com
  making a profound difference with knowledge and creativity...

  On Wed, Oct 28, 2009 at 9:06 AM, Niamathullah sharief 
  android...@gmail.com wrote:

  Its not a hard thing to do. You have to do this. If you feel this is hard?
  Then you cant handle the developing things.

  On Wed, Oct 28, 2009 at 11:02 AM, android beginner 
  mirra07aurobin...@gmail.com wrote:

  dont worryinstall the sdkit took some 1 hour...after that install
  the things with eclipse plug in.then started to run it.

  --~--~-~--~~~---~--~~
  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] modular programming (design pattern)

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

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

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

[android-beginners] SDK and AVD manager fails to retain settings

2009-11-08 Thread yogeshK
I am trying to install android on Ubuntu 9.1. Whenever I start sdk and
avd manager to get components first it cannot connect to https url
even if I force it to use http and when I add http urlit dose not
retain the settings.

Its not installing new platforms either...I am not sure whether its a
issue with Ubuntu 9.1 and android sdk 2. combination.

-- 
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: SDK and AVD manager fails to retain settings

2009-11-08 Thread yogeshK
Found solution

In Tools directory  Start android using GDK_NATIVE_WINDOWS = true ./
android  for more info see following thread

http://groups.google.com/group/android-beginners/browse_thread/thread/5cb26ca8584678b2



On Nov 8, 8:18 am, yogeshK yogeshko...@gmail.com wrote:
 I am trying to install android on Ubuntu 9.1. Whenever I start sdk and
 avd manager to get components first it cannot connect to https url
 even if I force it to use http and when I add http urlit dose not
 retain the settings.

 Its not installing new platforms either...I am not sure whether its a
 issue with Ubuntu 9.1 and android sdk 2. combination.

-- 
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-08 Thread Kingcrowley
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
   directory, and where to find all the XML attributes and sub-tags
   associated with a parent-tag.  If Android was really Java then
   there would be no problem, or if there was a book/tutorial that
   would go through the various APIs and options to set up things
   it would be a home run.  But there isn't, or that I've found.

   Now you want to help or just be a smartazz?!

   I'm writing in JavaME, Java, RIM-BB, Obj-C, RevTalk all in the same
   day,
   and don't feel I need to waste time on some squirrelly XML mess when
   I already know all that I should need to with java.

   Regards,
   -Shawn

   On Nov 7, 3:31 pm, Kingcrowley kingcrow...@gmail.com wrote:

well someone with your knowledge of Java should be able to use the
Android API with the tutorials available to learn android in no time!

Regards,

David

On Nov 7, 9:20 pm, sfitzjava sfitzj...@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 

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

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

[android-beginners] Re: How to build EditText view like that in Android Market where X button appears for clearing text?

2009-11-08 Thread westmeadboy
I've just been playing around with this solution and it works, sort
of, but feels a little hacky.

I was wondering if this alternative might work:

1. Use a LinearLayout and set the background to be the same
StateListDrawable used by EditText - I can't get this to work, but
then again I'm a newbie when it comes to StateListDrawables.
2. Add an EditText as the first child of the LinearLayout. Set the
background of the EditText to transparent.
3. Add an ImageView as the second child of the LinearLayout. Set the
src to be the X drawable.

This has the advantage of not having views on top of each other (where
one provides the image, and the other listens for the events).

Also, if, for example, the text is empty, then we can set the
visibility of the ImageView to GONE, so that the cross is no longer
visible AND the hint text has more space.

If this is a sensible approach, would appreciate some pointers on how
to configure the LinearLayout so its behaves like an EditText...

On Sep 28, 3:53 pm, Mark Murphy mmur...@commonsware.com wrote:
 mjc147 wrote:
  To answer my own question...

  Use TextView.setCompoundDrawables(null, null, null, null) to hide the
  cross.

  Next thing is to detect when the cross is pressed on.

  Currently I do this:

  mEditText.setOnTouchListener(new OnTouchListener() {
     public boolean onTouch(View v, MotionEvent event) {
             if (mEditText.getCompoundDrawables()[2] == null) {
                     // cross is not being shown so no need to handle
                     return false;
             }
             if (event.getAction() != MotionEvent.ACTION_DOWN) {
                     // only respond to the down type
                     return false;
             }
             if (event.getX()  mEditText.getMeasuredWidth() -
  mEditText.getPaddingRight() - x.getIntrinsicWidth()) {
                     mEditText.setText();
                     return true;
             }
             else {
                     return false;
             }
     }
  });

  This works but feels rather messy to me. Also, I'm not sure about the
  mEditText.getPaddingRight()...

  Is there a better way?

 Possibly, now that you sent the screenshot (thanks!). BTW, what you are
 seeing may be part of the HTC Sense UI -- it's certainly not what you
 get in ordinary Android.

 Regardless, here is how I would proceed to try to get this to work:

 Step #1: Keep your current Drawable code, but replace your X with a 100%
 transparent image of the same size. There might be a better way to
 accomplish this step, but I can't think of one off the top of my head.
 Basically, I am guessing that if you type a lot into that field on your
 Hero, the text does not wind up under the X, so you need a placeholder
 to keep the text to the left.

 Step #2: Wrap your EditText in a RelativeLayout. Put whatever layout
 rules you presently have on the EditText (layout_width, etc.) on the
 RelativeLayout, and set the EditText to be fill_parent/fill_parent for
 width/height.

 Step #3: In the same RelativeLayout, *after* the EditText in the XML,
 add an ImageView with your X, with layout_alignParentLeft=true and
 enough paddingRight to have it positioned properly. RelativeLayout, like
 FrameLayout, supports vertically stacking widgets, so by having your
 ImageView be after the EditText in the XML, it will float over the
 EditText and be visible/touchable.

 Step #4: Add an OnTouchListener to the ImageView in your code.

 A variation on this approach would be to use the X image in Step #1 and
 a transparent View in Step #3. This is the old hot-spot trick from a
 byegone programming era -- a background provides the image and you have
 something floating over top where things are touchable. If you specify a
 View with background=#, it should be invisible, and if you
 size/position it properly, it will sit over top your X. It's a bit more
 difficult to debug, though you could temporarily use a translucent
 background (say, #22FF for a slight red effect) until you get the
 hot-spot positioned properly.

 These approaches have the advantage of avoiding the OnTouchListener
 calculations you are doing in the EditText, which might have problems if
 EditText changes behavior in future releases. On the other hand, these
 approaches add a few more widgets and therefore take up a bit more memory.

 If the X appears to actually click when tapped on your Hero, then they
 may be using an ImageButton with a custom set of backgrounds rather than
 an ImageView. That is also possible to implement independently but gets
 decidedly more painful.

 Once I get my hands on an HTC Sense-ible device, I may try to cook up
 some canned widgets to offer some of their looks, like this one, in
 plug-and-play form.

 A question for you: does this X effect show up in places other than
 the Android Market search app on your Hero? Thanks!

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

 _Android Programming 

[android-beginners] Phone to phone communication

2009-11-08 Thread David Kebo
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


[android-beginners] HTC Hero does not support imeOptions =actionDone

2009-11-08 Thread brucko
Just discovered that with my Hero if you use

android:imeOptions=actionDone

in your XML for an EditText that when the app is run on a HTC Hero,
the Enter key does not change to Done as it does on emulator and my
onEditorActionListener will not capture EditorInfo.IME_ACTION_DONE as
it will on the emulator. Need to capture the enter key as well.

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

2009-11-08 Thread jaffachief
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey all,

I'm new to the android OS and I was wondering if someone could explain
what a primary or non-primary pointer is in the context of the
MotionEvent class.

Thanks,
Magnus
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.12 (MingW32)

iQEcBAEBAgAGBQJK92I9AAoJEGquKC+k5ys+DC0H/1b+qDFY/YdXAuevTaOmyDaH
FKMIjfZz0g7fYSemejWAqw5Ik9xkUBrC/oJASySqXpmZXiC6VifVYHfSIR3QxUcx
/xuPU+Fpjiz+DUmuA7nPiLReCZpATS8nkTgufCLCuNQnmCBRv9vLrz4WkXk0QTCq
+wQjHklwNcol4nP+Qvc9qZIn6ERVTnTFJh6NwBxKh7ZaS3rPYRIqd1HxOPYf0a+E
VtE3wBZ43U1qIStSO5kx0JQW05Iil5rthoU2wM1P0/hxrHb43/Iawj9PRyf2XllV
FMJreXnqsCK8NgKPtVXunKoNeE7IjvdqX1leCXKstUUg+4Mc6eOTwwg6Wte9qo4=
=N9Bp
-END PGP SIGNATURE-

-- 
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] free latest full movie download, free ads, free web search, unlimited earning

2009-11-08 Thread rose.aishwarya kerala
free latest full movie download, free ads, free web search, unlimited
earning http://www.southview.in/


*
*

http://www.southview.in/

*
*

-- 
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] extending PreferenceScreen with SeekBar

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