Transfer data beetwen activites

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Transfer data beetwen activites

Postby bialy16pl » Mon Mar 25, 2013 6:43 pm

Hi, I am new and I want to transfer some string from A.class to C.class, but after A.class I want to go to B.class and after it to C.class. I made code:
This is Nazwa.class (A.class)
Code: Select all
  final EditText Nazwa = (EditText)findViewById(;

    Button Przycisk_Nazwa = (Button)findViewById(;
    Przycisk_Nazwa.setOnClickListener(new View.OnClickListener() {

        public void onClick(View v) {
            Intent intent = new Intent(Nazwa.this, Ilosc.class);
            intent.putExtra("key", Nazwa.getText().toString());



This is Wydruk.class (C.class)
Code: Select all package com.example.slotki;

import; import android.os.Bundle; import android.widget.TextView;

public class Wydruk extends Activity {

protected void onCreate(Bundle savedInstanceState) {

    TextView tv = (TextView)findViewById(;



My problem is: or I can transfer data but I don't get C.class or I don't transfer data but I get B.class after A.class.
Once Poster
Once Poster
Posts: 1
Joined: Tue Feb 05, 2013 1:21 pm


Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 4 guests