Questions tagged as 'activity'

1
answer

Change the theme of the activity from a fragment

I need you to change the theme of my MainActivity when entering a Fragment HomeFragment.java getActivity().setTheme(R.style.SoonticketThemeMain); So far that has not worked for me This is my Activity package com.soonticket.activity;...
asked by 28.11.2017 / 08:45
3
answers

Pass variable when clicking on a listView item to another activity [duplicated]

Good morning. I have this query because I am too new programming in Android Studio and I do not know where to go. I have a listView that I load with data from a database that I have on my PC and I obtain the data by a php file. That's ok, the...
asked by 22.05.2017 / 05:20
0
answers

Black screen when generating a new activity on android

! [I have problems creating a new activity on android, I do not enter any code or anything I just create a new activity and the Screen turns black. The issue is that generating the apk does not give problems but after installing it when I call t...
asked by 27.04.2017 / 05:44
1
answer

Send string of data received by bluetooth to another activity

Hello, I have the following code, and I am looking to send the String with the data I receive by bluetooth "recDataString" to a new Activity, and I do not know how to do it. Thanks. public class MainActivity extends Activity { ProgressBa...
asked by 10.05.2017 / 11:09
1
answer

Issue with permissions on Android Marshmallow [duplicated]

I am developing an application that allows you to upload a profile picture. For this I access the gallery through an intent. The problem comes with the read permissions, I solved them, in part, including in the manifest the following: <...
asked by 14.03.2017 / 20:46
0
answers

Tiny Fragment in ViewPager - Android

Good, I have the following problem, when inserting a listView in a fragment using a TabBar, the fragment comes out tiny even though I use match_parent in its attributes, thanks for the help. Activity Main: <?xml version="1.0" encoding="u...
asked by 24.11.2016 / 16:30
1
answer

You doubt when calling back the activity with a certain fragment from the notification bar

Good morning, I have an application that uses a layout in barra de notificaciones . Within the layout, I have a botón with an icon which if I put it is abre la aplicación with the main activity. The problem arises, because...
asked by 22.11.2016 / 14:32
1
answer

Problem with the use of switch in android studio

The problem in question is that I want to configure a switch to move from one activity to another. The thing is that the program compiles normal but at the time of using the switch it tells me that the application stopped. Current code: pa...
asked by 25.10.2018 / 09:19
2
answers

How to execute a method of an Activity from a service, in Android?

Hi guys and girls (of course) I have this situation: I have running a service in the background and a foreground activity, and I hope that at a specific time the activity executes a method on demand of the service. What I have done: Well t...
asked by 10.11.2017 / 19:42
2
answers

Error running Activity

When I click on a button, I send it to execute an activity where I show a layout, but when I try to execute it, I get the error: Java.Lang.ClassNotFoundException: md5f22d74140d7efc8f033f3e312f703c5e.NombreActivity This is the part where I s...
asked by 12.12.2017 / 00:11