[android-beginners] What is a toast?

2009-11-10 Thread pushkar bandi
Hi, Could somebody give me some detailed information about toast? I got a comment saying that This is called a toast and cannot be dismissed by the user. Toasts are dismissed automatically after a fixed period of time. Then why the period of time for a toast is more, which degrades the user

Re: [android-beginners] What is a toast?

2009-11-10 Thread Marton Kodok
Think of Toast like a subtitle in movies. It's a simple text that shows for X seconds. It has no buttons, it's like a bubble that tells you something happened, then vanishes out. If you setup a long period for a toast, that will be visible too long and will degrade the user experience, as in

Re: [android-beginners] What is a toast?

2009-11-10 Thread Sean Hodges
From the dev guide (http://developer.android.com/reference/android/widget/Toast.html): A toast is a view containing a quick little message for the user. The toast class helps you create and show those. When the view is shown to the user, appears as a floating view over the application. It will

[android-beginners] Help with creating a sport scoring application

2009-11-10 Thread Sam
Hi community I am new to programming...i have this idea of creating a sport scoring app but i have no idea how to do the coding i knw some basic concepts of object oriented programming but i want to knw how to layout the structure of the programming if anyone wants to join me (can share the

[android-beginners] Re: play video encounter PV SW DECODER IS USED FOR MPEG4

2009-11-10 Thread lei
I am using the Android SDK 1.6. On Nov 10, 6:18 pm, lei eirst...@gmail.com wrote: I wrote a media player for playing video, but it encounter an error of PV SW DECODER IS USED FOR MPEG4 when I try to play back a 3gp format video, anyone knows what is it? How to solve this problem? I paste my

[android-beginners] changing a package name

2009-11-10 Thread jbrohan
Hello This is more a Java question than Android I have a graphing routine AChartEngine (very very good by the way). Now I want to link this with another routine say a sound recording activity. They are in different packages and different projects. AChartEngine has lots of Lib's and Referenced

[android-beginners] getApplicationContext() AlertDialog.Builder

2009-11-10 Thread Matt
Hi everybody, can somebody please explain why AlertDialog.Builder b = new AlertDialog.Builder(getApplicationContext ()); will result in a runtime error, while AlertDialog.Builder b = new AlertDialog.Builder(this); will run just fine? I can use this and getApplicationContext() with

Re: [android-beginners] getApplicationContext() AlertDialog.Builder

2009-11-10 Thread Justin Anderson
That's interesting. I've never run into that problem before. It probably has something to do with what classes you are in or something like that. Here's a question... did you try the Toast in the same place where using AlertDialog.Builder gives an error or were they in different parts of your

[android-beginners] Re: getApplicationContext() AlertDialog.Builder

2009-11-10 Thread Matt
I have all the following code in my onCreate() method. Toast.makeText(getApplicationContext(), Hello World!, Toast.LENGTH_SHORT).show(); AlertDialog.Builder b = new AlertDialog.Builder(getApplicationContext ()); [Dialog configuration] b.show(); While the Toast message gets displayed right

Re: [android-beginners] Re: how to call a function after taking snap from camera?? plz help

2009-11-10 Thread wahib haq
hi Chris !! Its after a long time i am responding to your suggestion :S. I was out of this task for a while. I tried your suggestion that to use StartActivityForResult and then calling mufunction() in an override of onActivityResult(). But its not working and being a newbie its tough to find the

[android-beginners] How to use startActivityForResult() onActivityResult() ??

2009-11-10 Thread wahib
Hi Ev1 !! I am stuck with an issue with Camera built-in app. I intend to call built-in camera app from my app and then as user takes a snap it should quit camera app and return back to execute my decode() function. Rite now the camera app is successfully opened but after taking one snap the

[android-beginners] Mobile web pages

2009-11-10 Thread Eros Stein
Hi all. I've been searching how to develop mobile web pages but I haven't got ... yet. Does anyone know how to do it? I already know I got to make a CSS specific for that page. Any more info? Thanks. -- Eros Eduardo Stein Técnico de Informática / Em breve analista. USE http://www.ekaaty.org

Re: [android-beginners] Mobile web pages

2009-11-10 Thread Justin Anderson
This isn't really the place for this type of question But essentially all you need to do is design your website to look good on small screen resolutions. You probably don't want to have too many images, etc... Here are some links that may help:

[android-beginners] Re: getApplicationContext() AlertDialog.Builder

2009-11-10 Thread Matt
I should mention that the runtime error does not occur in this line here AlertDialog.Builder b = new AlertDialog.Builder(getApplicationContext ()); but when calling b.show() later on. According to DDMS, the WindowManager crashes because it is trying to add a new Window (the dialog) with a

Re: [android-beginners] Re: getApplicationContext() AlertDialog.Builder

2009-11-10 Thread Justin Anderson
This may seem weird, but try doing this: b.create().show(); I have never actually used the show method on the Builder class (I didn't realize it existed) and have never had any problems displaying a dialog. -- There are only 10

[android-beginners] Re: getApplicationContext() AlertDialog.Builder

2009-11-10 Thread Matt
I tried b.create().show(); but that did not solve the problem. This is very strange. If I can use 'getApplicationContext()' and 'this' interchangeably when dealing with Toast messages, I assume that those two are in fact pretty much the same. Now, on the other hand, when dealing with that

[android-beginners] Re: Unable to select build target for new Android project

2009-11-10 Thread mconstant
I need help with this, too On Nov 5, 1:31 pm, Songmak kevinve...@gmail.com wrote: I am using Ubuntu 9.10 and Eclipse 3.5.  After getting everything setup, the new Android project wizard screen is not allowing me to select a buildtargetfrom the list.  The targets are there and installed but

[android-beginners] Re: Unable to select build target for new Android project

2009-11-10 Thread mconstant
Figured it out. I use a netbook. The resolution was set so that it squished the box. I fixed it by changing the screen orientation. Good luck! On Nov 5, 1:31 pm, Songmak kevinve...@gmail.com wrote: I am using Ubuntu 9.10 and Eclipse 3.5.  After getting everything setup, the new Android

[android-beginners] Problem in GPS while running in timer

2009-11-10 Thread Nemat
Hi frinds.. I am presently working on GPS.I have to start GPS periodically.I mean I want GPS to start after a particular intervel,get Location value and then stop taking location updates.For this,I m calling requestLocationUpdates( , , ) method in a timer.Then in onLocationChanged(), I stop

[android-beginners] Buttons within custom dialog?

2009-11-10 Thread Jeffrey
I am trying to get a custom dialog to have buttons that manipulate the progress of a seekbar. I've set up the dialog layout through xml but I can't get the buttons to work. This is the code I'm getting stuck on: protected Dialog onCreateDialog(int id) { Dialog WoundSlider = new