http://www.mimirsoft.com In this tutorial, I cover how to create a button in an activity to launch another activity.
UPDATED 2016/08/17
Download it from my website http://mimirsoft.com/wp-content/uploads/2011/06/Tutorial2.zip
follow me on twitter at https://twitter.com/KevinMilhoan if you would like more, or have requests.
Thank your for this video.
This is very help full to me
Thank your for this video.
This is very help full to me.
thanks
Why the 0??
thx for your tutorial, this is really help me!!!
Ty god …..u save me a lot of time !!!
Hi, how open a module whit a button?
(importer module in the proyject)
This video tutorial is amazing!!! Thanks bro, you saved me
thanks !
i am working on a project and am late !! but you saved me 🙂
which terms to import like import button,etc ?
Please
Thank you for this tutorial. Quick and straight to the point. No fluff.
Thanks. this was great help 🙂
Hi thanx for the video. I'd like to do this same thing but inside of a tab, the problem is that i'm not able to make it work. I know it's not the subject of this video but could anyone help me? I would really appreciate it.
Simple and to the point. Thanks!! 😀
Hi Thank you very much. very nice video.
Hi I copied the exact same code, however I get a java.lang.NullPointerException, any help?
Thank you
Thank you so much, this video realy helped me.
More than one button on a page would be a more helpful tutorial.
but what if theres many button?? do you have a video for that??
You my friend are a genius.
log ccat
java.lang.ClassCastException: com.transfig.m1
12-07 06:04:51.412: E/AndroidRuntime(418): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
12-07 06:04:51.412: E/AndroidRuntime(418): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
12-07 06:04:51.412: E/AndroidRuntime(418): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
12-07 06:04:51.412: E/AndroidRuntime(418): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
12-07 06:04:51.412: E/AndroidRuntime(418): at android.os.Handler.dispatchMessage(Handler.java:99)
12-07 06:04:51.412: E/AndroidRuntime(418): at android.os.Looper.loop(Looper.java:123)
12-07 06:04:51.412: E/AndroidRuntime(418): at android.app.ActivityThread.main(ActivityThread.java:4627)
12-07 06:04:51.412: E/AndroidRuntime(418): at java.lang.reflect.Method.invokeNative(Native Method)
12-07 06:04:51.412: E/AndroidRuntime(418): at java.lang.reflect.Method.invoke(Method.java:521)
12-07 06:04:51.412: E/AndroidRuntime(418): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
12-07 06:04:51.412: E/AndroidRuntime(418): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
12-07 06:04:51.412: E/AndroidRuntime(418): at dalvik.system.NativeStart.main(Native Method)
12-07 06:04:51.412: E/AndroidRuntime(418): Caused by: java.lang.ClassCastException: com.transfig.m1
12-07 06:04:51.412: E/AndroidRuntime(418): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
12-07 06:04:51.412: E/AndroidRuntime(418): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
12-07 06:04:51.412: E/AndroidRuntime(418): … 11 more
12-07 06:05:13.833: I/Process(418): Sending signal. PID: 418 SIG: 9
unfortinatly i tried it and it reflect stopped unexpectedly please try again
i will be glad for your feedback .
thanks a lot
How do you make a button play a sound file?
why you import activity? where it is came from?
Good tutorial too btw, I had a couple issues but quickly figured them out. My only real question though is, why not give the button on activity2 the ability to go back to tutorial2 instead of using back button and android?
It looks like a lot of people have issues getting these 'red lines' or errors. You should have explained that you have to import libraries.. you can't just run your code and expect it to work without included these. details mate
Thanks, for your help, you were the only place I could find a simple solution 🙂
is there any tutorial java files that can be downloaded?
Didn't liked that tutorial. You only show people what you have wrote. I rewrite your code and keep seeing red lines. You even dont show what you included to the code. Next time please do step-by-step tutorials…
why you didn't include the 1st steps? the making of second activity.. because your tutorial direct on the codes.. hope you could include that.. thank you
best and simple
excellent tutorial
great tutorial, just what i was looking for
Because Java is not HTML? HTML is a stactic format for displaying information. The actual work of turning HTML into an image on your screen is done by your browser, not by the HTML page. In android, it is more like writting the browser, page, and how the browser works the page all in one. Completely different paradigm.
why can't buttons just link to another page like in HTML
I dont get how the bracets work in the Tutorial2.java file?
Thank you soooooooo much, took me a little while to understand it though.
omg some much code for just a button click dammm were is href….???