Questions tagged as 'android'

1
answer

Photo taken by my app does not appear in Gallery

When I generate the photo through my app, it correctly creates the folder and saves the photos taken there, but when I go to the Cell Gallery it is as if the photos did not exist, the default Android gallery does not recognize the files. p> Ca...
asked by 10.07.2014 / 13:39
1
answer

Make URL open in the same Activity

I'm creating a WebView for Android. When I load the App, the imported page works fine, but when I click on some link of the page, that same link opens in another browser.
asked by 18.08.2014 / 15:50
1
answer

onclick on dynamic button causes error "Can not resolve constructor Intent"

I'm trying to create a dynamic button, and put the click function on it. Button btnJogarNovamente; btnJogarNovamente = new Button(this); btnJogarNovamente.setLayoutParams(new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT, Fram...
asked by 17.07.2015 / 15:38
2
answers

Where to find the path of the android database?

SQLiteDatabase BancoDados = null; String NomeBanco = "Cadastro"; CriaBanco(); public void CriaBanco(){ try{ BancoDados = openOrCreateDatabase(NomeBanco, MODE_WORLD_READABLE, null); String SQL = "CREAT...
asked by 29.06.2015 / 20:56
1
answer

How to compare "set" images in Imagebuttons?

How do I compare if the drawable image "set" in an ImageButton is equal to null for example, or the other Image contained in another Imagebutton? ImageButton q1 = (ImageButton) findViewById(R.id.q1); ImageButton q2 = (ImageButton) findV...
asked by 02.05.2015 / 15:21
1
answer

Database on Android persists information?

Does the database lose its information when you close the application? Should this be an online database?     
asked by 14.12.2016 / 04:23
1
answer

Refresh in WebView when rotating device

I created my application via WebView , but when I rotate the screen the site gives refresh , that is back to login , my code: MainActivity: package com.sirseni.simpleandroidwebviewexample; import android.app.Activity; im...
asked by 05.06.2017 / 18:21
1
answer

How to get the battery percentage?

How do I get the battery percentage and report on a battery-style chart?     
asked by 11.09.2015 / 03:40
1
answer

How to reduce the size of a variable passed via POST by compressing it

My application in Android gets the String sends to the arquivo.php that processes the data. I soon saw that I could not pass the code in base64 to arquivo.php . I need some function in java that compre...
asked by 17.06.2015 / 20:34
1
answer

How do I get the predominant color in an image?

I'm taking a photo of a camera and passing it to a ImagemView and would like to take the predominant color of this image, how could I do this on Android? my class proximoLaiout (I wrote laiout with i for wanting kk) package com.exam...
asked by 05.08.2015 / 03:10