Adding a button which opens another screen

by Justin Anderson » Sat, 26 Jun 2010 01:23:34 GMT


Sponsored Links
 > Thank you for that, so the other screen doing what I want it to do
would be a whole other Java File?
*
The other screen would be a completely separate Activity, which would be a
separate java file.

*> How do I set up a listener on the button as there is already a
listener on the gallery?
*
Look at the documentation for Button... It gives this very example right at
the top of the page:
http://developer.android.com/reference/android/widget/Button.html

*> Sorry if this soulds basic, but I am just learning ;-)*

We all have to start somewhere... Most start with basic. ;-)

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


On Fri, Jun 25, 2010 at 9:35 AM, Justin <justinbrett1...@gmail.com> wrote:

> > >



Adding a button which opens another screen

by Justin Anderson » Tue, 29 Jun 2010 04:35:07 GMT


 irst, make sure you add the new activity to your application's manifest
file. If it is not there you will not be able to launch it.

Second, the Intent class (which is used to start the second activity) has
methods for storing and retrieving certain types of data. You can store the
id in the intent and retrieve it in the second activity to display the
appropriate image.

Hope that helps,
Justin

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


On Sat, Jun 26, 2010 at 9:12 AM, Justin <justinbrett1...@gmail.com> wrote:

>


Sponsored Links


Other Threads

1. AudioRecord + Android 1.5 = Error

Hi, I'm using the AudioRecord to capture raw PCM sound data. On both
1.5 devices (Motorola Cliq, and Droid Eris) I get:

AudioRecord(28661): Error obtaining an audio buffer, giving up.I/
AudioHardwareMSM72XX( 2224): AudioHardware PCM record is going to
standby.

Any ideas why?

-- 

2. how to intergrate a graphic card driver to Android Kernel

make sure you have brought up the lcd in the kernel...
and you can get more support by accessing marvell extranet login...

Steven




-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. view lifecycle

4. Any way to uninstall application with "persistent=true"?

5. Ga bisa nge-fave di htc mail?

6. The Phone Without Compromise! *ratjoen Mode : ON... :D

7. How do you change EditText's popup list text colour?