Questions tagged as 'android-activity'

1
answer

How to make only one user access to activity?

I need your help because I'm having a hard time making only one user access to a certain activity. Ex: I am developing an App where settings screen only I will have access with my user, no other. I want to leave this set up in code just my us...
asked by 07.11.2018 / 11:57
1
answer

Button to return to an attempt

My problem is: Return from an Activity to an intent. I have the following sequence of pages: -MainActivity -Intent(Escolher foto) -DadosActivity In MainActivity I have a button to open an intent for the user to select a photo, with the f...
asked by 23.10.2018 / 12:51
1
answer

Open APK settings via API

I'd like to know how to drop the user's APK settings via API , for example, the user put the "Do not ask me again" option, in the permissions of the application, and I open an alertDialog that causes the user to go to the settings of the allo...
asked by 01.06.2018 / 17:01
2
answers

Create frame for item list

I need to create a frame for an item in a listView but I have no idea how to do this     
asked by 25.04.2018 / 05:38
1
answer

Shared Preferences with Radio Button

I have a set of RadioGroup with 3 radios buttons, and I need to save it in a shared preferences. XML: <RadioGroup android:id="@+id/radioGroupOpcoes" android:layout_width="wrap_content" android:layout_height="wrap_content"...
asked by 17.04.2018 / 17:07
1
answer

Application closes when opening activity

The application simply closes when I press TextView . It should move to another Activity . I've tried it in many ways and it keeps crashing. package com.example.evellyn.auris; import android.content.Intent; import android.su...
asked by 02.04.2018 / 21:03
1
answer

ExpandableListView - change background color header title group

I need to change the background color of the header group from my ExpandableListView to a green color. Does anyone have any ideas? ExpandableListAdapterpublicclassExpandableListAdapterextendsBaseExpandableListAdapter{StringheaderTitle;privateCo...
asked by 26.02.2018 / 15:41
2
answers

Data sent from one activity to another arrives null

My Activity I am displaying the database data in the listview @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_tela_visualizar_clientes); final Lis...
asked by 05.03.2018 / 20:32
1
answer

How to put only real items in the second Activity?

I'm trying to make a Favorites Activity, I'll follow the example of this guy here . In the second Activity I will create as I would to put these items set as true in a listview? and playing them normally would I have to re-create all the playba...
asked by 13.01.2018 / 18:51
1
answer

Make a method in onCreate run only once [duplicate]

In my mainActivity I have the method: player.setPlayWhenReady (true) which is responsible for getting the player to start playing and continues to run in the background while I'm browsing between my Activity, the problem occurs when I try t...
asked by 14.11.2017 / 20:08