Questions tagged as 'android-activity'

1
answer

Android - Transfer data and change Fragment per Click

Hi, guys. I need help transferring from Fragment when I click on my button inside a ListView. Currently I have a MainActivity (extends AppCompatActivity) to manage the Fragments. Below are some screenshots of how the App is Fragment 1:...
asked by 02.06.2016 / 17:42
2
answers

Error trying to start another activity through a button

My program runs, but when I click the q button it should open a new activity, the program closes saying that it hears an error.    FATAL EXCEPTION: main                                                                              Process: com...
asked by 06.01.2016 / 20:08
1
answer

Hold the image and send it to the link in Android Studio

Hold the image and send it to the link in Android Studio I use an ImageView that when it clicks it performs a function, but I would like that when the image was pressed, another action was taken, which would be different than just a simple touch...
asked by 14.09.2018 / 16:17
1
answer

Attach File in Gmail via Intent

I have a problem ... When I try to open Gmail via Intent to attach a file, it appears the part of writing a new email, but it does not attach my file. The PDF is inside a folder of the app itself with this path.:(/storage/emulated/0/Android/data...
asked by 05.11.2017 / 00:31
1
answer

How to recover several actions from one activity to another?

How to send url from one activity to another with different click actions (multiple buttons)? I tried to use intent.putextra but I can not resort to the urls of the other buttons, in the case I am using two activities the second this with...
asked by 14.08.2017 / 05:27
1
answer

java.lang.NullPointerException: button returning null

Good morning, How do I reference a button in another activity? In main, I'm using another layout to inflate my list, and the button event is obviously returning null because it's not finding the view. Help. private static String pesquisarDa...
asked by 04.05.2017 / 17:33
1
answer

How not to use so many Activities?

Hello, I'm starting to program something on android a few days ago (a simple but extensive shell identification program, in it you have 5 options, within these 5 plus a few depending on the species, and inside more options until you reach in a sp...
asked by 04.04.2017 / 13:12
1
answer

Convert activity to fragments

Hello, I'm in need of a lot of help, I'm developing an application for my TCC, I've already assembled most of the features and now that I've been messing with the visual part I had problems, I wanted to use TabsLayouts, which use fragments from...
asked by 21.04.2017 / 23:47
1
answer

Is it normal to not show anything indicating that I have implemented ads correctly in my application?

Obviously I do not expect any real ads to appear, but some indication that I've done the procedure correctly to find out if that's all right. First image (Preview Android Studio) 2ndimage(Virtualmachineapplication) Asshownnothingappears,s...
asked by 14.08.2017 / 02:20
0
answers

How to modify the Navigation Drawer to call an Activity

People I created a navigation drawer through the google gallery (Navigation Drawee Activity) and I would like to modify it for when I click the menu instead of calling an extent fragment file to call a normal Activity, the traditional way using...
asked by 18.12.2017 / 15:50