Questions tagged as 'android-activity'

0
answers

keep the data in a variable of the first act after returning from the second act by the up button

I have the following problem, I have a list view in act1 that depends on a variable to load, when I finish my act2 or I go back by the back button of the android (bottom button) the value of the variable is maintained, but when I return using th...
asked by 22.09.2016 / 22:42
1
answer

Error trying to write result to database

I would like to record the Contact Name and contact number in the bank. So I can use it in other activities. But when I return from the contact screen to the Activity in question, an error occurs, it seems to me that it does not find the Inte...
asked by 23.06.2016 / 17:00
1
answer

Background image covering the navdrawer

I have an activity with a navdrawer on it. And I would like to put a background image on this activity. But when I put the image, the nav disappears, the image is over it. The nav does not lose the function, if it clicks on the image it opens no...
asked by 20.05.2016 / 03:17
1
answer

Activity does not change

I'm a beginner on Android and am creating an app that has two activities ( SplashScreen and ActivityMain ). I was able to show SplashScreen after a lot of sacrifice, but when I install it on the device, the message appears...
asked by 26.03.2016 / 21:08
0
answers

Capture event of the android power button with the screen closed

I need to capture the event of the power off button on the android, and cause it to be pressed a certain number of times, an activty appears above the screen to enter password. Pressed the power button 5x Create activity If this is not...
asked by 03.11.2015 / 19:20
0
answers

Move Images from one screen to another Android

I'm having a problem with an application I'm creating. There is an application screen that takes data from parse.com, in the case an image, and wanted to pass it to another screen, but without losing quality. I even managed to move the image to...
asked by 07.11.2015 / 03:47
0
answers

Problem passing ArrayList to another Activity [closed]

Good evening, I'm having trouble passing a ListView from one Activity to another. The Activity code that passes to the other is as follows, called FiltrarImoveis.class: for (int i = 0; i < jsonArray.length(); i++) {...
asked by 16.10.2015 / 03:30
1
answer

call a main activity method from a Fragment button

I'm using a standard android activity, the "Navigation Drawer Activity", and there's a button in the navigation bar public boolean onOptionsItemSelected(MenuItem item) { if (mDrawerToggle.onOptionsItemSelected(item)) { return true;...
asked by 15.08.2014 / 17:01
1
answer

Do I use Activities or Fragments? [closed]

I'm with a project to develop a game guide app that will show images through a server and the tabs will be pdf files downloaded and opened by the app. The stream would be: List of consoles (Listview) - > Game List (GridView) - > Scre...
asked by 09.01.2018 / 02:16
0
answers

java.lang.RuntimeException: Unable to start activity

My logcat is acquiring a pointer error to start the activity Ouvir I'm seeing but I did not find the error. Exiting these messages when I run the application: 11-27 22:09:40.631: E/AndroidRuntime(1513): java.lang.RuntimeException: Unabl...
asked by 27.11.2014 / 23:22