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
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
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
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
java
asked Nov 9 at 10:58
Edward M
85
85
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
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown