Questions tagged as 'android'

1
answer

How to transition to the previous fragment when you press the back button?

I'm having the following problem: I have an activity, in which I call a fragment as follows: FragmentManager fm = getSupportFragmentManager(); Fragment frag = new MyFragment(); FragmentTransaction ft = fm.beginTransaction(); ft...
asked by 07.08.2018 / 22:54
1
answer

Activity with background drawing

Good morning! Friends, I need a light to carry out the development of an Activity with the following layout, as below. The area in the orange color should be drawn programmatically according to the screen size of the device. In th...
asked by 28.09.2016 / 14:48
3
answers

Call a method of an inner class from outside

I have a class B and in this class I need to call a method, getSomething(type, option) , which is defined in a class A that is a class that extends AsyncTask and that is within class C. My class C is defined as follows: public...
asked by 27.07.2016 / 16:20
0
answers

Android kills a tcpdump process

I have an app in Java that runs on Android. This app starts a Tcpdump Process process = Runtime.getRuntime().exec("su -c tcpdump -s 0 -v -w /sdcard/capture.pcap . This works and generates the file, capturing the passing packets on the devi...
asked by 27.07.2016 / 20:26
2
answers

Android - How to access an Activity through a Papplet?

I have a class with extends PApplet and I want to migrate from it to another with extends Activity I tried through Intent but could not. Body of class PApplet: public class CamMain extends PApplet { public void...
asked by 28.07.2016 / 21:00
0
answers

Database with QRCODE [closed]

Good morning, I want to generate a QRCODE that pulls information from a database, in android I will make the QRCODE reader using some api zxing or barcode. Has anyone done anything like this? example, step the product id in the QRCODE, and the r...
asked by 27.07.2016 / 15:17
1
answer

With filling a spinner with a field of an object

I have a Spinner in my Activity , I need to make your items the names (field) of an ArrayList object, and which when selected, is returned the id of the same to be able to perform a new operation. For example: My contact object publ...
asked by 14.01.2016 / 23:03
0
answers

Response retrofit arriving as null

I am trying to make a call via retrofit of a list of objects (Cadastros) and in the HttpLogginInterceptor the response is appearing normally. What could be happening? My call: CadastroApi cadastroApi = retrofit.create(CadastroApi.class);...
asked by 11.01.2016 / 17:42
0
answers

FragmentTransacion with Fragment Activity

I'm using the NavigationDrawer to display the page options, I've adapted one of them to FragmentActivity to call some functions to work. But when I declare the transaction of the screens, it does not allow this, only with the Fragment without th...
asked by 22.12.2015 / 01:18
0
answers

Not doing fragment replace

Hello, I have an app that, when it is accessed, loads a feed, initializing an AsyncTask, but if the user clicks on one of the drawer options before the task finishes, the app does not replace it and hangs, progressBar spinning and nothing happens...
asked by 01.12.2015 / 00:17