Questions tagged as 'android-activity'

2
answers

Sending data between View and Edit Activity [closed]

I'm developing a service scheduling system and in a ListView I get the data from a client and move on to a Query Activity. I created an edit menu and would like to pass this same data to the new activity, but I can only open the Activity without...
asked by 18.10.2016 / 20:14
3
answers

Create an Activity and call multiple Layouts can be harmful?

As I'm still struggling in the study of Android applications and read things in this regard, I wonder if, for example, I have only one Activity and several layouts being called from it, there is a risk that the application will not agree with be...
asked by 27.10.2016 / 15:03
2
answers

How to use onActivityResult when there is more than one startActivityForResult

I need to check the status of user yes or in when requesting bluetooth. But I already use the same method for speech recognition. Here is my code: package com.example.audio_auto; import java.io.IOException; import java.io.InputStream;...
asked by 14.02.2015 / 19:06
1
answer

Android Studio error passing array between activity

I'm developing an application that reads an item's barcode and compares whether it exists in a list with bank data. When one of these items is not present in the database, it must write the data to an array and send it to another activity where...
asked by 18.05.2018 / 00:04
1
answer

How to send a json from an Activity to a Fragment?

I have an activity that adds a die in JsonObjetct. And as seen in the following code, I take it as string, but, my doubt, how do I by this JsonObject in the fragment so I can work with it, as Json? Follow the Activity code: ......... ob...
asked by 16.03.2017 / 18:17
1
answer

In an activity, first open method onCreate or class constructor?

In a scenario where you have an activity with a constructor (public, of course) and the onCreate method which is part of its lifecycle. Which of the two will run first?     
asked by 08.09.2016 / 18:45
1
answer

How to send a data to an already created activity?

I am in activity A and I sent a data by putExtras() to activity B that has not yet been created, in this case it worked, but now I have to send a given from activity B to activity A that has already been created and I can not give f...
asked by 07.08.2015 / 22:23
1
answer

Android - TextView Hyperlink to another Activity

Is there any way to format a TextView so that one of your words is a HyperLink for another app's Activity? In case it is a kind of Dictionary, where in the explanation of the word can have another word that is also registered, and clicking on...
asked by 29.09.2017 / 21:50
2
answers

How to restart an Activity?

I want to restart my activity without the help of buttons, I want it to restart automatically in a while. How do I do this?     
asked by 15.08.2017 / 07:27
1
answer

Connect when clicking a button

I would like to know how to make a telephone call to the number when clicking on a button. As I did, it calls the Action_Diall activity with the number already written, so the person must click again to make the call. Is it possible that c...
asked by 21.01.2017 / 18:00