Questions tagged as 'android'

1
answer

How to get the AppWidget id by clicking it?

I need the id of an AppWidget in specific to do certain action, example: widget 1- sair widget 2- entrar widget 3- nao faz nada Assume that the enter was selected I will use the ID of the WIDGET ENTER to do the action So far I have the c...
asked by 23.10.2017 / 18:55
1
answer

Make a method in onCreate run only once [duplicate]

In my mainActivity I have the method: player.setPlayWhenReady (true) which is responsible for getting the player to start playing and continues to run in the background while I'm browsing between my Activity, the problem occurs when I try t...
asked by 14.11.2017 / 20:08
1
answer

How do I change the AlertDialog buttons?

I wanted to change the buttons of my AlertDialog for example: I would like to change the positivebutton for a textview and thus put the onClick event on it. My java: MainActivity.java public void onBackPressed() { View view = this.ge...
asked by 20.10.2017 / 07:45
1
answer

How do I get the result of the window that asks to activate Bluetooth?

In an android application, I have a screen that requires that bluetooth is enabled, if it is disabled, the part of the code below asks the user to enable it: final BluetoothManager bluetoothManager = (BluetoothManager) context.getSystem...
asked by 06.11.2017 / 16:20
1
answer

How do I make two apps use the same database in firebase?

Good afternoon! I'm starting in the mobile development world. I would like to develop two apps. Where app A writes and reads certain data, and that data is viewed (read-only) by app B. I am using the Firebase service. Where do I start ??    ...
asked by 16.10.2017 / 20:15
1
answer

App database does not delete

I have a problem. I created an app and it uses sqlite local bank, the problem is the following, even I cleaning the data and uninstalling the app, when I install it again, it retrieves the old data that was in the database. Someone can help...
asked by 10.10.2017 / 17:00
1
answer

Monitor WebView url

Hello! I am doing some tests in my android application and in a certain activity I intend to put a webview. I would like to monitor the url of this webview, so when the user enters a predetermined url (example: www.google.com) the application pe...
asked by 10.10.2017 / 18:03
1
answer

Convert .Jar to .Dex

Speak up! I decompiled an apk and it generated a class.dex file. I managed to turn this file into .jar and now I want to go back to .dex. How to do this?     
asked by 15.10.2017 / 02:43
2
answers

Assigning values to the views of an AlertDialog

I created a custom layout for my AlertDialog with a TextView in it, and an image, but I can not put values in it. Does anyone know how to solve it? Follow the code: private void carregaAlert(){ View v = getLayoutInflater().inflate(R.lay...
asked by 14.10.2017 / 03:16
2
answers

Limit access in app areas for different users

I'm working on an app project for a company and I ended up getting into a problem I did not find how to fix it. I'd like to limit access to certain parts of the app to different users. Ex: I would like company administrators with their l...
asked by 28.09.2017 / 04:46