Print values from AppCompatActivity to a Tab
up vote
-1
down vote
favorite
As I said on title I have some variables that take them from a class that is extends AppCompatActivity
and I want to print them at the first tab of a Tabbed Activity which as I know can do it only from a class that is extends Fragment
.I haven't much knowledge on Android and I need some help.I have tried to send the data with Bundle
but it didn't works.
Another thought that I had it was if I can call the Activity from Fragment class and print the TextFields
from there.
Thank you
java android android-fragments
add a comment |
up vote
-1
down vote
favorite
As I said on title I have some variables that take them from a class that is extends AppCompatActivity
and I want to print them at the first tab of a Tabbed Activity which as I know can do it only from a class that is extends Fragment
.I haven't much knowledge on Android and I need some help.I have tried to send the data with Bundle
but it didn't works.
Another thought that I had it was if I can call the Activity from Fragment class and print the TextFields
from there.
Thank you
java android android-fragments
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
As I said on title I have some variables that take them from a class that is extends AppCompatActivity
and I want to print them at the first tab of a Tabbed Activity which as I know can do it only from a class that is extends Fragment
.I haven't much knowledge on Android and I need some help.I have tried to send the data with Bundle
but it didn't works.
Another thought that I had it was if I can call the Activity from Fragment class and print the TextFields
from there.
Thank you
java android android-fragments
As I said on title I have some variables that take them from a class that is extends AppCompatActivity
and I want to print them at the first tab of a Tabbed Activity which as I know can do it only from a class that is extends Fragment
.I haven't much knowledge on Android and I need some help.I have tried to send the data with Bundle
but it didn't works.
Another thought that I had it was if I can call the Activity from Fragment class and print the TextFields
from there.
Thank you
java android android-fragments
java android android-fragments
asked yesterday
Edward M
63
63
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53224408%2fprint-values-from-appcompatactivity-to-a-tab%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password