Questions tagged as 'android'

1
answer

I'm having trouble opening a new activity after taking a photo with android studio

Code public class primeiraTela extends AppCompatActivity { ImageView imageView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_p...
asked by 12.06.2018 / 17:12
0
answers

Click button notification

builder = new NotificationCompat.Builder(Objects.requireNonNull(getContext()),"M_CH_ID"); builder.setSmallIcon(R.drawable.icon_notificacao) .setContentTitle("RPfm 105.3") .setContentText("Ao Vivo") .setAuto...
asked by 23.05.2018 / 07:27
1
answer

Converting JSON to arraylist android

Good afternoon!    I am trying to consume an API in android but I am having difficulty because in the JSON file it brings a category, I tried to add the variable "acronym" but it did not work; the JSON returned in the variable response is this:...
asked by 21.04.2018 / 22:46
0
answers

Error creating project in android studio

When I create a new project in Android Studio the following error appears:    project location should not contain whitespace, this can cause problems with the ndk tools The page is First Name Last Name (with space). Okay, but I cou...
asked by 17.04.2018 / 20:52
1
answer

Autofocus in EditText does not work

I have a EditText that always needs to be in focus, and a Button any: <EditText android:id="@+id/edtCod" android:layout_width="match_parent" android:layout_height="wrap_content" android:inputTyp...
asked by 17.04.2018 / 16:02
0
answers

How to use a Figma layout in Android Studio?

I have a project in Figma with some screens, for example that of the image below: FigmageneratestheXMLorSVGcodeofeachcomponent,suchasthe"screen": <!-- layout/*.xml --> <RelativeLayout xmlns:android="http://schemas.android.com/...
asked by 24.03.2018 / 16:34
0
answers

Insert additional data in Firebase

I'm developing an app that is composed of 3 Fragments of register, here given the example of A, B, C, where B and C is dependent on A. What is the best way to enter data that is populated in B and C in the same Child of Fragment A within Fire...
asked by 28.03.2018 / 03:17
1
answer

How do I get the value of a selected checkbox in mainActivity3 and 4 and show this selected item in a textView in main Activity1?

I'm doing a college job where I have to develop an application for ordering in a bar, I've created 5 activity where the first one is a home screen and the other checkboxes with orders, how do I get the selected items in the checkbox of all main...
asked by 28.03.2018 / 01:23
0
answers

Keep focus on edittext after pressing Enter

I have a barcode reader that does the action of placing text in edittext and pressing enter automatically, implemented the function while reading but would like the focus on edittext to continue. My code: final EditText codBarras = (EditText)...
asked by 20.04.2018 / 16:12
0
answers

How to pass an object to another Activity [duplicate]

public class Despesa { private long id ; private Date data; private String local; private String endereco ; private String cnpj ; private LinkedList <Item> itens; private Str...
asked by 29.03.2018 / 03:34