Questions tagged as 'android-activity'

1
answer

ImageButton does not correctly display image background

I have a school system with schedule of each course and I have an activity where the user must select his course to have access to his schedule. This activity has 5 imageButtons but these imageButtons are not being displayed properly, eve...
asked by 03.08.2017 / 03:02
1
answer

How to get back to the top of an Activity?

Following material design standards, clicking a button in a Bottom Navigation that is already active should scroll to the top I have a FrameLayout with CoordinatorLayout, which in turn has a RecyclerView (a list of elements). My intention is t...
asked by 11.04.2017 / 15:30
1
answer

Regressive Clock [closed]

I'm developing a game. Usually in games there is a small clock that counts a few seconds to the contrary, type 10 to 0, and I would like to put one in my game. How can I do this? PS: I'm using Android Studio     
asked by 06.02.2017 / 23:30
1
answer

Insert image in ListView via JSON + SQL

I created a code that perfectly matches the results via JSON from my database and populates my ListView with Strings, but I'd like the database to bring it from the "image" column I created, the image-related address : link ) and the ListView l...
asked by 31.10.2016 / 12:29
1
answer

Change Fragment components through an Activity

I'm doing an application with NavigationDrawer , and to not always create another activity , I'm using fragments , where at every click I make replace in FrameLayout that I left set as main. How do I access the co...
asked by 30.08.2016 / 18:36
1
answer

Crashing when 2nd activity starts

The first screen is a login, normal logon, communicates with the server and such, there goes to the second, there is a fragment of google maps, when it will go to second crash the app, the error that appears is this (senai world is the name of t...
asked by 14.09.2016 / 01:07
1
answer

In-app connections

I am trying to make my application make an emergency call and call a pre-defined emergency number, but when I open Activity it simply to have already looked and refiled the code 3 times, but the error persists, it presents the following e...
asked by 11.09.2016 / 07:07
1
answer

How to reuse code from one activity to another?

I am creating an application in android studio where I have a menu, I am using this menu in several activities using "include", so in each activity I need to rewrite the functions of the menu buttons, how could I do a separate method that worked...
asked by 26.08.2016 / 01:13
1
answer

How to change the Activity inside a fragment with Button?

I have a simple App, it has two areas, one with the Fragment and the other with a Button Group How to do so that by clicking the buttons I can change which Activity will be loaded in Fragment? And how to keep save the state of the las...
asked by 27.06.2016 / 09:28
1
answer

How to open a Dialog without darkening the Android background screen [closed]

I have an Activity, and in this I call a Dialog, but when I open this 'popup' the Background Activity screen that called it darkens, but I wish it did not happen. Can you do that?     
asked by 30.10.2015 / 13:38