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. (CLOSED) WTA: PRL SMART

Sudah dapat...  :-)

Thanks ya buat semua yg sudah japri

*i love this milis*

:-)

~A-Sty
HTC Desire with HTC Sense-Froyo
Baseband Version: 32.43.00.32U_5.09.00.20
Kernel Version: 2.6.32.15
Build Number: 2.06.832.1
NeoPhyTe ROM 1.4a Sense FroYo FRF91




-- 
"Indonesian Android Community [id-android]" 

2. Frozen Eclair Beta 4

As subject sudah bisa di download di forum.samdroid.net

-- 
"Indonesian Android Community [id-android]" 

3. ada yang punya app2card v1.5.1?

4. Apps2SD di Milestone XT720

5. Eclair porting on SH4 architecture

6. Deletion of a folder

7. Authenticating apps sending intents on the receiving en