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. Any way to add team members so they can see Android Market data?

Let's say that you have a team that develops Android applications and
you want each team member to be able to see the crash reports on the
Android Developer Console.

Is there any way to do that?

I am told that such a thing exists for IPhone and in fact you can even
set up roles with different levels of authority. I'd just be happy if
there is a way to specify a group of people who has access to a
companies view into the Developer Console!

Thanks.

-- 

2. Developer sign up is account registered to credit card owner

I am creating an android developer account to put an app I made on the
market.  I was an unwise {*filter*}ager with my financial self many years
ago and thus do not have a credit card.  My significant other was more
than willing to help out.  However it appears that by signing up under
my Google account but using her cc it seems to want to register the
account in her name.  It might just be deceiving but after submitting
payment I get to the screen asking me to accept this: "I agree and I
am willing to associate my credit card and account registration above
with the Android Market Developer Distribution Agreement."  However in
the box above it says "Registered To: XXX" where XXX is my significant
others name.  I'd like everything to remain in my name and use my bank
account but for the credit card payment I'm getting outside help.  It
seems Google does not support this or am I reading all this wrong?  It
also turns out I might have a cc of my own in 2-3 weeks but would
prefer not to wait that long.  So if in the future I can change the
credit card associated that would work too.  I do not want to screw
this up since I'd prefer not to lose $25.


Thanks!

-- 

3. getWindowManager in server?

4. How can I draw/move a point on screen ?!

5. Private Storage with App2sd.

6. A timer thread and url fetch thread in same activity.

7. how to remove a view