android intent - How do I pass two different edit-text by a button, to a new activity with a text-view as a result? -


i'm new @ programming android studio, , i'm trying is, when type first name in edit text , last name in edit text on mainactivity, click button , shows full name textview in secondactivity.

as know know, searches i've made, need use intent pass down information between activities, , button work need use "onclick" on layout xml, , setonclicklistener on mainactivity ? don't where.

but main thing want know here, how two edit text, intent, show on new activity, click of button.

i've tried example found online, crashes on bq aquaris e4,5 (api 19), not sure why.

also tried doing myself, using of previous example , video youtube video

but got rather confusing, since video ain't want exactly, other example wanted, didn't work, it's 1 tuturial passing data between activities

if can me out described in beginning work, grateful.

thanks in advance, best regards, sir rudi

edit: wrote on android manifest, on example tried:

<activity         android:name=".viewactivity"         android:label="@string/app_name"         android:parentactivityname=".mainactivity"         android:theme="@style/theme.appcompat"  >         <meta-data             android:name="android.support.parent_activity"             android:value="ace_of_spades_inc.mynameapp.mainactivity" />     </activity> 


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -