[android-beginners] play mp4 files within application

2010-07-29 Thread Kyle
I've created an application that loads a website using WebView.
Everything works fine except that I'm unable to play any video files
within the application. So, what I'm looking for help on is getting my
application to launch the mediaplayer when clicking on a link with
a .mp4 video. Any help and tips would be much appreciated!


Thanks,
-Kyle

-- 
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 hide keyboard when done typing

2009-11-11 Thread Kyle
Yup just hit the back button


On Nov 7, 1:03 am, Marton Kodok  wrote:
> Hello,
>
> Whenever a keyboard shows up, how can I hide it after I finished my typing.
> For example when I run the SkeletonActivity, I can type in some text, but
> how do I hide the keyboard when I'm done
>
> --
> 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] EditText getText() to string for notification

2008-04-22 Thread Kyle

Hi, I have my application set to grab the text from an EditText field,
but for some reason even if I convert it "toString", the returned
string always comes back blank. Here is my code:

Button button;
EditText text;

button = (Button) findViewById(R.id.btnOK);
text = (EditText) findViewById(R.id.txtCustomerName);
final String message = text.getText().toString();
button.setOnClickListener(new Button.OnClickListener() {
  public void onClick(View v) {
Toast.makeText(HelloWorld.this, message,
Toast.LENGTH_SHORT).show();
  }
});

Sorry for the bad code organization, but copy and paste didn't really
work out the way I imagined, Haha. Any help would be great. Also, I
tried searching, but for some reason I just can't find a solution.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: EditText getText() to string for notification

2008-04-22 Thread Kyle

Oh boy, so simple, why didn't I think of it, trying to get something
that doesn't exist... Thanks a ton Dan, I'll try to stay within
reality next time, haha.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] EditText to String to int

2008-04-24 Thread Kyle

Hi, I've been looking for a way of doing this, maybe it's just my lack
of thought, or maybe I'm just too noob at Java, but I'm trying to get
EditText text (can do this), send to a string (can also do this)
convert to int, add to a global int, and then write the global int to
a TextView. Here is my code:

final int totalCost=0;
btnAddCost.setOnClickListener(new Button.OnClickListener() {
public void onClick(View v) {
final String value = btnAddCost.getText().toString();
totalCost = Integer.parseInt(value);
txtTotalCost.setText("$"+totalCost);
}
});

Eclipse returns an error saying:
The final local variable totalCost cannot be assigned, since it is
defined in an enclosing type

Any ideas? Basically what it is, is a price updater, adds the amount
of money you typed in, to the TextView (txtTotalCost)
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: EditText to String to int

2008-04-24 Thread Kyle

Ok I rearranged my code a bit and put the triggered code into public
voids. Here is the code that fires my function:

final String value = btnAddCost.getText().toString();
addCost(Integer.parseInt(value));

and here is the addCost() function:

public int totalCost=0;

public void addCost(int cost)
{
final TextView txtTotalCost;

txtTotalCost = (TextView) findViewById(R.id.txtTotalCost);

totalCost = totalCost + cost;
txtTotalCost.setText("$"+totalCost);
}

this all compiles fine, has no errors, and no warnings; yet when I
enter a valid integer, (edittext is numeric only) it crashes the app.
Any ideas? I don't really know how to use the debugger yet.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] Re: EditText to String to int

2008-04-24 Thread Kyle

Oh my god... You know Dan, you've been a great sport to me, I can't
thank you enough, I should really open my eyes a little more, I'm so
very sorry for wasting your time, haha, I feel incredibly stupid...
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~--~~~~--~~--~--~---



[android-beginners] 3 by 3 grid?

2009-05-12 Thread Kyle Murph

I'm trying to create a 3 by 3 grid, so 9 boxes total (white interior,
black borders).  When I click on one of the boxes, I want the interior
to become gray, and when I click on one of the gray-filled boxes, for
it to become white.

What is the best way to go about this?  A TableView with buttons, or
is that not what buttons are meant for?

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