[android-beginners] Is there a concept like DLL in Andoirds?

2010-04-15 Thread Prashant Shelar
Hello,

I know that we can use a concept "Java Package" but I just wanted to
know that whether Android has provided a DLL concept where I can my
most of the functionality.

Is there any concept like DLL on Android OS?

Can we develop a DLL for better modularization and other benefits on
Android?

Thanks and Regards,
Prashant.

-- 
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: How to close activities in the navigation "stack"?

2010-04-15 Thread Kitzy
Also look into the different flags you can set when you start an
activity, under Intent.java

-Kitzy

On Apr 15, 12:30 pm, Stormtap Studios 
wrote:
> Oh that does sound like a much better way to do it.  Thanks!
>
> On Apr 15, 8:59 am, "~ TreKing"  wrote:
>
>
>
> > On Wed, Apr 14, 2010 at 4:55 PM, Stormtap Studios
> > wrote:
>
> > > Does this make sense?
>
> > I think you might run into trouble if Android kills your activities on the
> > bottom of your custom stack. Then when you press back from the top, you'd
> > "skip" a few and may end up closing your app completely instead of going
> > down the stack ... I think.
>
> > Is there a better way?
>
> > I would just use startActivityForResult() for each activity that gets
> > started along the way. If you need to immediately drop down to the root
> > activity, just pass a flag back in your result to indicate the previous
> > activity should immediately flag its own previous activity and finish()
> > itself, until you get back to the root.
>
> > --- 
> > --
> > TreKing - Chicago transit tracking app for Android-powered 
> > deviceshttp://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: How to get child Activity?

2010-04-15 Thread Kitzy
What if you start your activity after release?  Or use a broadcast
receiver?

Why do you need the new activity to know when you release?

-Kitzy

On Apr 15, 10:35 am, Rodrigo Chiossi  wrote:
> I have already tried 3 different approaches to the problem:
> The first was this one i described previously, which would be the
> ideal for my app.
> The second one, i created an ActivityGroup which was responsible for
> starting two activities and on LongClick event I was swaping the
> DecorViews of the activities. Still, the same problem happened: the
> ACTION_UP was being delivered to the wrong activity.
> My last approach was to create a single activity and call
> setContentView to swap between the two layouts, and still, the event
> was not delivered to the right view.
> I'm just wondering if there is a way for an Activity to request Input
> events...
>
> @Mark: you are right, i messed those approaches a little. I have the
> getParent only when I use an ActivityGroup.
>
> On Apr 15, 12:23 pm, Mark Murphy  wrote:
>
>
>
> > Rodrigo Chiossi wrote:
> > > First, the user press a button on the main Activity. When the
> > > LongClick triggers, I start the second Activity wich also has a button
> > > which should be pressed when the activity starts and should only be
> > > released when the user takes his finger off the screen.
>
> > Why are you using multiple activities? UI events are not designed to
> > span multiple activities.
>
> > > In order to triggers the onTouch of the button in the second activity,
> > > i create a copy of the MotionEvent in the first activity and send it
> > > as an Intent Extra to the second activity which call it's own onTouch
> > > passing this MotionEvent as parameter.
>
> > Ick.
>
> > > Oh, and btw, I call it a 'child' activity since it has a "getParent()"
> > > method which returns the main activity...
>
> > Then you are not starting the "child activity" via startActivity().
>
> > --
> > Mark Murphy (a Commons 
> > Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> > _Android Programming Tutorials_ Version 2.0 Available!

-- 
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] Camera Digital zooming..

2010-04-15 Thread SaiKiran
Hi,

As per the Android SDK, it was mentioned that from 2.0 onwards it
supports the camera digital zooming, but i could not find anything
related to this in the entire SDK, so did anybody use this feature?,
if yes, please let me know how to achieve the camera digital zooming
using Android SDK 2.0 or 2.1.

Thanks in Advance,

Sai Kiran V

-- 
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: Add two buttons to a graphics view?

2010-04-15 Thread BobG
So I have a class graphicsView that extends View, and in that I do
that @Override onDraw(Canvas canvas) and start drawing my picture with
a paint and canvas.drawRect and drawLine and drawText.. So how would
one add a couple buttons to this canvas, since I declared it
programmatically, I cant look it up in findViewById(R.id,Button01)?
Seems like I need a 'graphics button' rather than a 'text button'?? I
dont have a good model of this yet as you can see. Insight
appreciated.

-- 
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] Text Color

2010-04-15 Thread Kevin Brooks
I figured it out.  I was putting the Text Color at the Layout 
declaration instead of the element declaration. :)

On 4/15/2010 10:07 PM, Justin Anderson wrote:

If all you want is black you could do this:

android:textColor="@android:color/black"

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


On Thu, Apr 15, 2010 at 6:45 PM, Kevin Brooks > wrote:


I tried the FF00 and it is still Gray instead of black.  The
Background I have as FFDCDCDC so I get the background color I want.


On 4/15/2010 11:49 AM, Mark Murphy wrote:

Kevin Brooks wrote:

I want the text to be black.  It is coming out grey.

Try FF00 instead of 00.



-- 
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] Text Color

2010-04-15 Thread Justin Anderson
If all you want is black you could do this:

android:textColor="@android:color/black"

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


On Thu, Apr 15, 2010 at 6:45 PM, Kevin Brooks  wrote:

> I tried the FF00 and it is still Gray instead of black.  The Background
> I have as FFDCDCDC so I get the background color I want.
>
>
> On 4/15/2010 11:49 AM, Mark Murphy wrote:
>
>> Kevin Brooks wrote:
>>
>>
>>> I want the text to be black.  It is coming out grey.
>>>
>>>
>> Try FF00 instead of 00.
>>
>>
>>
>
> --
> 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] Text Color

2010-04-15 Thread Kevin Brooks
I tried the FF00 and it is still Gray instead of black.  The 
Background I have as FFDCDCDC so I get the background color I want.


On 4/15/2010 11:49 AM, Mark Murphy wrote:

Kevin Brooks wrote:
   

I want the text to be black.  It is coming out grey.
 

Try FF00 instead of 00.

   


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

2010-04-15 Thread anton.maximov
I try to start emulator and manually, over commandline, and over
Eclipse. And each time i see this problem (

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

To unsubscribe, reply using "remove me" as the subject.


[android-beginners] Re: How to close activities in the navigation "stack"?

2010-04-15 Thread Stormtap Studios
Oh that does sound like a much better way to do it.  Thanks!

On Apr 15, 8:59 am, "~ TreKing"  wrote:
> On Wed, Apr 14, 2010 at 4:55 PM, Stormtap Studios
> wrote:
>
> > Does this make sense?
>
> I think you might run into trouble if Android kills your activities on the
> bottom of your custom stack. Then when you press back from the top, you'd
> "skip" a few and may end up closing your app completely instead of going
> down the stack ... I think.
>
> Is there a better way?
>
>
>
> I would just use startActivityForResult() for each activity that gets
> started along the way. If you need to immediately drop down to the root
> activity, just pass a flag back in your result to indicate the previous
> activity should immediately flag its own previous activity and finish()
> itself, until you get back to the root.
>
> --- 
> --
> TreKing - Chicago transit tracking app for Android-powered 
> deviceshttp://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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-beginners] Any good site for searching Android API

2010-04-15 Thread Mark Murphy
Jacky Lam wrote:
> Dear all,
> 
>   Any good site or offline documentation which allow me to search and
> reference for Android API/Class/Object/Attribute?
> 
>   Thanks.

http://developer.android.com -- use the search field in the upper right
corner.

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

Android Consulting: http://commonsware.com/consulting

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

To unsubscribe, reply using "remove me" as the subject.


[android-beginners] How should I handle a DB Delete Confirmation?

2010-04-15 Thread Juan
Hey guys, I'm working on an application thats effectively a glorified
log book. It maintains each log item in an SQLite table row, and
displays the logs in a List among other activities.

I want to implement a delete confirmation dialog so that users avoid
losing a log if their finger slips to the delete button instead of
edit. I know it can be done several ways, I'm currently considering 2
options. First would be using a dialog popup from the List and View
activities where each activity then has to handle the db deletion
after hearing back from the dialog, or the second option is to trigger
an intent to a Delete activity (dressed up with Theme.Dialog) which
will handle the confirmation question and subsequent deletion.

Both methods will work, but which one is more appropriate to the
Android way? Does it make more sense to encapsulate the idea of
deleting into its own Activity, or is that too much effort for a
function that should be handled by a modal dialog in the List/View
activities?

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

To unsubscribe, reply using "remove me" as the subject.


[android-beginners] Re: Android emulator problem

2010-04-15 Thread tony obrien
Are you letting ECLIPSE start the emulator or are you trying to do it
manually?

On Apr 15, 12:56 am, "anton.maximov"  wrote:
> Hello.

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

To unsubscribe, reply using "remove me" as the subject.


[android-beginners] Re: Add two buttons to a graphics view?

2010-04-15 Thread tony obrien
Can't you add BUTTONs to whatever "main" layout your invoking?

On Apr 14, 12:16 pm, BobG  wrote:
> I have a little app that reads the accelerometer and draws a vector in
> graphics. Seems to be working ok, but I'd like to have a pair of
> buttons 'up' and 'dn' underneath it to inc and dec a variable, like a
> time picker, but just this one number 4 to 12 (represents height in
> ft). I'm stumped how to add the buttons, which are usually in a
> textview, to this graphics canvas view, so I guess I dont understand
> something fundamental. Good moment for me to learn something here if
> you've read my mind and can tell what I'm trying to do... 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

To unsubscribe, reply using "remove me" as the subject.


[android-beginners] Any good site for searching Android API

2010-04-15 Thread Jacky Lam
Dear all,

Any good site or offline documentation which allow me to search and
reference for Android API/Class/Object/Attribute?

Thanks.

BR,
Jacky

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-beginners] Is there a 'volume fader'?

2010-04-15 Thread Mark Murphy
BobG wrote:
> I'd like to have a 'volume control'... a vertical fader with a knob
> you can slide up and down. I think the horizontal version is a
> 'seekbar' right? Any way to specify a vertical seekbar?

Not that I am aware of.

> If not, whats the next step? Make a 'volume control' widget?

Or VerticalSeekBar. Try cloning what's there and rewriting it to work
the other direction. You'll need to mess around with touch events, but
you should see how SeekBar does it.

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

Android Consulting: http://commonsware.com/consulting

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

To unsubscribe, reply using "remove me" as the subject.


[android-beginners] Is there a 'volume fader'?

2010-04-15 Thread BobG
I'd like to have a 'volume control'... a vertical fader with a knob
you can slide up and down. I think the horizontal version is a
'seekbar' right? Any way to specify a vertical seekbar? If not, whats
the next step? Make a 'volume control' widget? Any links to where to
read about 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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-beginners] Text Color

2010-04-15 Thread Mark Murphy
Kevin Brooks wrote:
> I want the text to be black.  It is coming out grey.

Try FF00 instead of 00.

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

_Android Programming Tutorials_ Version 2.0 Available!

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-beginners] Text Color

2010-04-15 Thread Kevin Brooks
I want the text to be black.  It is coming out grey.

On Thu, Apr 15, 2010 at 10:23 AM, Justin Anderson
wrote:

> Well, what color are you wanting to make?
>
> http://developer.android.com/reference/android/graphics/Color.html says
> this:
>
> *The Color class defines methods for creating and converting color ints.
> Colors are represented as packed ints, made up of 4 bytes: alpha, red,
> green, blue. The values are unpremultiplied, meaning any transparency is
> stored solely in the alpha component, and not in the color components. The
> components are stored as follows (alpha << 24) | (red << 16) | (green << 8)
> | blue. Each component ranges between 0..255 with 0 meaning no contribution
> for that component, and 255 meaning 100% contribution. Thus opaque-black
> would be 0xFF00 (100% opaque but no contributes from red, gree, blue,
> and opaque-white would be 0x*
>
> --
> There are only 10 types of people in the world...
> Those who know binary and those who don't.
> --
>
>
> On Wed, Apr 14, 2010 at 9:28 PM, Kevin Brooks  wrote:
>
>> I am trying to make my text color.  I set the textColor to "00" in the
>> xml but I get a grey.  Any suggestions?
>>
>> --
>> 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
>>
>> To unsubscribe, reply using "remove me" as the subject.
>>
>
>  --
> 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
>



-- 
Kevin
Proverbs 21: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


[android-beginners] Re: How to get child Activity?

2010-04-15 Thread Rodrigo Chiossi
I have already tried 3 different approaches to the problem:
The first was this one i described previously, which would be the
ideal for my app.
The second one, i created an ActivityGroup which was responsible for
starting two activities and on LongClick event I was swaping the
DecorViews of the activities. Still, the same problem happened: the
ACTION_UP was being delivered to the wrong activity.
My last approach was to create a single activity and call
setContentView to swap between the two layouts, and still, the event
was not delivered to the right view.
I'm just wondering if there is a way for an Activity to request Input
events...

@Mark: you are right, i messed those approaches a little. I have the
getParent only when I use an ActivityGroup.

On Apr 15, 12:23 pm, Mark Murphy  wrote:
> Rodrigo Chiossi wrote:
> > First, the user press a button on the main Activity. When the
> > LongClick triggers, I start the second Activity wich also has a button
> > which should be pressed when the activity starts and should only be
> > released when the user takes his finger off the screen.
>
> Why are you using multiple activities? UI events are not designed to
> span multiple activities.
>
> > In order to triggers the onTouch of the button in the second activity,
> > i create a copy of the MotionEvent in the first activity and send it
> > as an Intent Extra to the second activity which call it's own onTouch
> > passing this MotionEvent as parameter.
>
> Ick.
>
> > Oh, and btw, I call it a 'child' activity since it has a "getParent()"
> > method which returns the main activity...
>
> Then you are not starting the "child activity" via startActivity().
>
> --
> Mark Murphy (a Commons 
> Guy)http://commonsware.com|http://twitter.com/commonsguy
>
> _Android Programming Tutorials_ Version 2.0 Available!

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-beginners] Is it necessary to know the Java APIs to create Android Applications?

2010-04-15 Thread Mark Murphy
ajb468 wrote:
> I have studied core Java very well but very little of the Java APIs.
> Should I learn them before I start programming in Android or will
> knowing the Android APIs be enough? Is there any benefit to using the
> Java APIs in an Android app. If so, can someone give me an example?

That depends on what you mean by "the Java APIs". After all, anything
that is a class inherits from Object, which is a class supplied by "the
Java APIs".

Here are the packages I recommend developers be familiar with before
getting into Android:

java.io
java.lang
java.net
java.util
java.util.concurrent

While there are many other Java packages included in Android, those are
the most important five, IMHO.

I apologize if that is not what you mean by "the Java APIs".

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

Android Training in NYC: 30 April-2 May 2010: http://guruloft.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

To unsubscribe, reply using "remove me" as the subject.


[android-beginners] Is it necessary to know the Java APIs to create Android Applications?

2010-04-15 Thread ajb468
I have studied core Java very well but very little of the Java APIs.
Should I learn them before I start programming in Android or will
knowing the Android APIs be enough? Is there any benefit to using the
Java APIs in an Android app. If so, can someone give me an example?

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

To unsubscribe, reply using "remove me" as the subject.


[android-beginners] Re: KML maps activity

2010-04-15 Thread Sebastián Treu
sh*t...I hate myself...Was the server, I changed server and works ...

I apologize the noise...again.
Regards,
-- 
If you want freedom, compile the source. Get gentoo.

Sebastián Treu
http://labombiya.com.ar

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

To unsubscribe, reply using "remove me" as the subject.


[android-beginners] KML maps activity

2010-04-15 Thread Sebastián Treu
Hi,

Is it possible to start maps activity with an KML file? I have tried
but always I get an error. I read this:

http://stackoverflow.com/questions/2470948/getting-maps-to-accept-a-dynamically-generated-kml-file

withous luck, but instead a .php I put the .kml file directly (same as
the example).

I have also tried this with an exception error saying that it doesn't
know that mime type.

myIntent = myIntent.setType("application/vnd.google-earth.kml+xml");

Any ideas? Thanks,

-- 
If you want freedom, compile the source. Get gentoo.

Sebastián Treu
http://labombiya.com.ar

-- 
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] How to close activities in the navigation "stack"?

2010-04-15 Thread ~ TreKing
On Wed, Apr 14, 2010 at 4:55 PM, Stormtap Studios
wrote:

> Does this make sense?
>

I think you might run into trouble if Android kills your activities on the
bottom of your custom stack. Then when you press back from the top, you'd
"skip" a few and may end up closing your app completely instead of going
down the stack ... I think.

Is there a better way?
>

I would just use startActivityForResult() for each activity that gets
started along the way. If you need to immediately drop down to the root
activity, just pass a flag back in your result to indicate the previous
activity should immediately flag its own previous activity and finish()
itself, until you get back to the root.

-
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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-beginners] Re: How to get child Activity?

2010-04-15 Thread Mark Murphy
Rodrigo Chiossi wrote:
> First, the user press a button on the main Activity. When the
> LongClick triggers, I start the second Activity wich also has a button
> which should be pressed when the activity starts and should only be
> released when the user takes his finger off the screen.

Why are you using multiple activities? UI events are not designed to
span multiple activities.

> In order to triggers the onTouch of the button in the second activity,
> i create a copy of the MotionEvent in the first activity and send it
> as an Intent Extra to the second activity which call it's own onTouch
> passing this MotionEvent as parameter.

Ick.

> Oh, and btw, I call it a 'child' activity since it has a "getParent()"
> method which returns the main activity...

Then you are not starting the "child activity" via startActivity().

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

_Android Programming Tutorials_ Version 2.0 Available!

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-beginners] Text Color

2010-04-15 Thread Justin Anderson
Well, what color are you wanting to make?

http://developer.android.com/reference/android/graphics/Color.html says
this:

*The Color class defines methods for creating and converting color ints.
Colors are represented as packed ints, made up of 4 bytes: alpha, red,
green, blue. The values are unpremultiplied, meaning any transparency is
stored solely in the alpha component, and not in the color components. The
components are stored as follows (alpha << 24) | (red << 16) | (green << 8)
| blue. Each component ranges between 0..255 with 0 meaning no contribution
for that component, and 255 meaning 100% contribution. Thus opaque-black
would be 0xFF00 (100% opaque but no contributes from red, gree, blue,
and opaque-white would be 0x*

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


On Wed, Apr 14, 2010 at 9:28 PM, Kevin Brooks  wrote:

> I am trying to make my text color.  I set the textColor to "00" in the
> xml but I get a grey.  Any suggestions?
>
> --
> 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
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
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: How to get child Activity?

2010-04-15 Thread Justin Anderson
Not sure how well it would work, but if you REALLY want to do something like
this, you cold possibly try to just change the view of your current activity
instead of starting a new activity.

I wouldn't recommend it and I'm not sure if that will really work... There
are lots of people who have problems trying to change the view of an
activity and the solution is usually to create a new activity instead of
changing the view.  In your case, however, it might be worth it to look
into...

All that being said, I think you may want to look at re-designing the
workflow of your app

Hope that helps somewhat,
Justin

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


On Thu, Apr 15, 2010 at 8:56 AM, Rodrigo Chiossi  wrote:

> Thanks for the Answers, but none of them really seems like an option
> for me.
> Giving more details about what I am doing:
> First, the user press a button on the main Activity. When the
> LongClick triggers, I start the second Activity wich also has a button
> which should be pressed when the activity starts and should only be
> released when the user takes his finger off the screen.
> In order to triggers the onTouch of the button in the second activity,
> i create a copy of the MotionEvent in the first activity and send it
> as an Intent Extra to the second activity which call it's own onTouch
> passing this MotionEvent as parameter.
> The problem is: Even with the second Activity up and running, when the
> user takes his finger off the screen for the first time, the
> MotionEvent ACTION_UP is delivered to the main activity instead of the
> second one. I don know exactly why this happens, but I need to forward
> this event to the second activity in order to release the button.
> Oh, and btw, I call it a 'child' activity since it has a "getParent()"
> method which returns the main activity...
>
> On Apr 15, 5:56 am, Sebastián Treu  wrote:
> > On Wed, Apr 14, 2010 at 3:03 PM, Rodrigo Chiossi 
> wrote:
> > > Hi there!
> >
> > > I have a main Activity and I'm starting a child activity with
> > > startActivity(intent).
> > > I want to get the Activity Object created for the child. How can I do
> > > it?
> >
> > I don't know for what, as when you start the new "child" activity you
> > are in it's context and the other is stopped. Although, If you want
> > this, an ugly solution can be to have a Main class that extends
> > Application and you implement a tree or a list or whatever you want of
> > activities, and everytime you launch a new activity you add it to that
> > tree, list or whatever. I don't know for what you will want to, but I
> > think you can do that UGLY solution. Then, you add the Main class name
> > to the xml manifest, and that class is instanciated before anything.
> > You can access public methods with getApplication().
> >
> > --
> > If you want freedom, compile the source. Get gentoo.
> >
> > Sebastián Treuhttp://labombiya.com.ar
>
> --
> 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
>
> To unsubscribe, reply using "remove me" as the subject.
>

-- 
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: How to get child Activity?

2010-04-15 Thread Rodrigo Chiossi
Thanks for the Answers, but none of them really seems like an option
for me.
Giving more details about what I am doing:
First, the user press a button on the main Activity. When the
LongClick triggers, I start the second Activity wich also has a button
which should be pressed when the activity starts and should only be
released when the user takes his finger off the screen.
In order to triggers the onTouch of the button in the second activity,
i create a copy of the MotionEvent in the first activity and send it
as an Intent Extra to the second activity which call it's own onTouch
passing this MotionEvent as parameter.
The problem is: Even with the second Activity up and running, when the
user takes his finger off the screen for the first time, the
MotionEvent ACTION_UP is delivered to the main activity instead of the
second one. I don know exactly why this happens, but I need to forward
this event to the second activity in order to release the button.
Oh, and btw, I call it a 'child' activity since it has a "getParent()"
method which returns the main activity...

On Apr 15, 5:56 am, Sebastián Treu  wrote:
> On Wed, Apr 14, 2010 at 3:03 PM, Rodrigo Chiossi  wrote:
> > Hi there!
>
> > I have a main Activity and I'm starting a child activity with
> > startActivity(intent).
> > I want to get the Activity Object created for the child. How can I do
> > it?
>
> I don't know for what, as when you start the new "child" activity you
> are in it's context and the other is stopped. Although, If you want
> this, an ugly solution can be to have a Main class that extends
> Application and you implement a tree or a list or whatever you want of
> activities, and everytime you launch a new activity you add it to that
> tree, list or whatever. I don't know for what you will want to, but I
> think you can do that UGLY solution. Then, you add the Main class name
> to the xml manifest, and that class is instanciated before anything.
> You can access public methods with getApplication().
>
> --
> If you want freedom, compile the source. Get gentoo.
>
> Sebastián Treuhttp://labombiya.com.ar

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

To unsubscribe, reply using "remove me" as the subject.


[android-beginners] Gmail code not working with android

2010-04-15 Thread Imran Tanveer
Hello,

I have trying for many days but gmail code is not working with
android.Anybody plz help me.This is what i get when run my code


I/SSLSocketFactory(  335): Using factory
org.apache.harmony.xnet.provider.jsse.opensslsocketfactoryi...@40160710
E/SendMail(  335): Could not connect to SMTP host: smtp.gmail.com, port: 25
E/SendMail(  335): javax.mail.MessagingException: Could not connect to SMTP
host: smtp.gmail.com, port: 25;
E/SendMail(  335):   nested exception is:
E/SendMail(  335): java.net.ConnectException:
smtp.gmail.com/74.125.43.109:25 - Connection refused
E/SendMail(  335): at
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1391)
E/SendMail(  335): at
com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:412)
E/SendMail(  335): at javax.mail.Service.connect(Service.java:310)
E/SendMail(  335): at javax.mail.Service.connect(Service.java:169)
E/SendMail(  335): at javax.mail.Service.connect(Service.java:118)
E/SendMail(  335): at javax.mail.Transport.send0(Transport.java:188)
E/SendMail(  335): at javax.mail.Transport.send(Transport.java:118)
E/SendMail(  335): at
com.example.emailproject.GMailSender.sendMail(GMailSender.java:66)
E/SendMail(  335): at
com.example.emailproject.emailsender$1.onClick(emailsender.java:24)
E/SendMail(  335): at android.view.View.performClick(View.java:2344)
E/SendMail(  335): at android.view.View.onTouchEvent(View.java:4133)
E/SendMail(  335): at
android.widget.TextView.onTouchEvent(TextView.java:6510)
E/SendMail(  335): at
android.view.View.dispatchTouchEvent(View.java:3672)
E/SendMail(  335): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
E/SendMail(  335): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
E/SendMail(  335): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
E/SendMail(  335): at
android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:882)
E/SendMail(  335): at
com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchTouchEvent(PhoneWindow.java:1712)
E/SendMail(  335): at
com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1202)
E/SendMail(  335): at
android.app.Activity.dispatchTouchEvent(Activity.java:1987)
E/SendMail(  335): at
com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchTouchEvent(PhoneWindow.java:1696)
E/SendMail(  335): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1658)
E/SendMail(  335): at
android.os.Handler.dispatchMessage(Handler.java:99)
E/SendMail(  335): at android.os.Looper.loop(Looper.java:123)
E/SendMail(  335): at
android.app.ActivityThread.main(ActivityThread.java:4203)
E/SendMail(  335): at java.lang.reflect.Method.invokeNative(Native
Method)
E/SendMail(  335): at java.lang.reflect.Method.invoke(Method.java:521)
E/SendMail(  335): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
E/SendMail(  335): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
E/SendMail(  335): at dalvik.system.NativeStart.main(Native Method)
E/SendMail(  335): Caused by: java.net.ConnectException:
smtp.gmail.com/74.125.43.109:25 - Connection refused
E/SendMail(  335): at
org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:237)
E/SendMail(  335): at
org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:521)
E/SendMail(  335): at java.net.Socket.connect(Socket.java:1019)
E/SendMail(  335): at java.net.Socket.connect(Socket.java:960)
E/SendMail(  335): at
com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:233)
E/SendMail(  335): at
com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:163)
E/SendMail(  335): at
com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1359)
E/SendMail(  335): ... 29 more
D/dalvikvm(   95): GC freed 4789 objects / 273648 bytes in 65ms
D/dalvikvm(  213): GC freed 43 objects / 2080 bytes in 61ms
D/dalvikvm(  167): GC freed 6439 objects / 406632 bytes in 107ms
I/ActivityManager(   52): Stopping service:
com.fsck.k9/.service.SleepService
E/k9  (  167): Stripping host/port from ConnectionException for
conn1132482704
E/k9  (  167): java.net.ConnectException:
pop.gmail.com/74.125.43.109:995 - Connection refused
E/k9  (  167): at
org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:237)
E/k9  (  167): at
org.apache.harmony.luni.net.PlainSocketImpl.connect(PlainSocketImpl.java:521)
E/k9  (  167): at java.net.Socket.connect(Socket.java:1019)
E/k9  (  167): at
com.fsck.k9.mail.store.ImapStore$ImapConnection.open(ImapStore.java:1894)
E/k9  (  167): at
com.fsck.k9.mail.store.ImapStore$ImapConnection.sendCommand(ImapStore.java:2309)
E/k9  (  167): at
com.fsck.k9.mail.store.ImapStore$ImapConnection.executeSimpleCommand(ImapStore.java:2374)
E/k9  (  167):

[android-beginners] A Free Business Directory with Trading Platform. Add your Company

2010-04-15 Thread Web
A Free Business Directory with Trading Platform. Add your Company
Complete Profile, Add your Product/Service with keywords.
Visit http://addhand.com , Register and trade with world for FREE.

Regards
John Moore

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

To unsubscribe, reply using "remove me" as the subject.


Re: [android-beginners] How to get child Activity?

2010-04-15 Thread Sebastián Treu
On Wed, Apr 14, 2010 at 3:03 PM, Rodrigo Chiossi  wrote:
> Hi there!
>
> I have a main Activity and I'm starting a child activity with
> startActivity(intent).
> I want to get the Activity Object created for the child. How can I do
> it?

I don't know for what, as when you start the new "child" activity you
are in it's context and the other is stopped. Although, If you want
this, an ugly solution can be to have a Main class that extends
Application and you implement a tree or a list or whatever you want of
activities, and everytime you launch a new activity you add it to that
tree, list or whatever. I don't know for what you will want to, but I
think you can do that UGLY solution. Then, you add the Main class name
to the xml manifest, and that class is instanciated before anything.
You can access public methods with getApplication().

-- 
If you want freedom, compile the source. Get gentoo.

Sebastián Treu
http://labombiya.com.ar

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

To unsubscribe, reply using "remove me" as the subject.


[android-beginners] Re: what's vanilla andriod?

2010-04-15 Thread a2ronus
I think Vanilla Android is just the standard Android:
http://androidforums.com/htc-incredible/55162-vanilla-android-vs-htc-sense-ui.html.

On 8 apr, 07:22, Tao  wrote:
> I heart andriod 1.5,1.6,2.0,2.1;but do not hear vanilla andriod, is
> there anybody know that? Thank you.

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

To unsubscribe, reply using "remove me" as the subject.


[android-beginners] set network operator via own programm

2010-04-15 Thread jeth

Hello All!

I'm thinking about a projekt and until now i can't figure out if it's 
possible to change the network operator via a programm. I know one can 
do this by hand using the settings-dialog.


One part of my project is to change the network operator (one by one) 
and read the signal strength. OK, there exists the class SignalStrength 
in android.telephony.


But there is no class to change the network operator. Now i wonder, if i 
can reuse (and in what way) the android settings-dialog.

Or do i have to send AT-commands to the RIL-daemon?

Hope this list is the right place.


jeth

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

To unsubscribe, reply using "remove me" as the subject.