Questions tagged as 'android'

1
answer

gps with NETWORK_PROVIDER

I am trying to position my location in an android application that I am developing. I was reading online that there are 3 types of providers and I read their differences so in the end I opted for NETWORK_PROVIDER but I can not understand if it i...
asked by 15.05.2016 / 21:03
1
answer

Problem with FirebaseListAdapter, the list does not appear

Why do not I see anything in the emulation with this code? Firebase rootRef = PantallaPrincipal.rootRef; ListView lista_cursos; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);...
asked by 24.05.2016 / 01:11
2
answers

Click on an item in a listview on Android?

I'm trying to make the onItemClickListener of a list that is updated through a database in android studio but I can not do it. What happens is that I'm doing something like that link but it does not let me in any way get the position...
asked by 17.05.2016 / 10:08
1
answer

E / AndroidRuntime: FATAL EXCEPTION: main, java.lang.NullPointerException: println needs a message

I have the following code: package org.jcloarca.laboratorio2; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.Ed...
asked by 22.05.2016 / 00:34
2
answers

Capture error and display a dialog to send report on Android

Hi, I have created an app for android and it works correctly, but sometimes it finds errors and a message to force close and send report, I noticed that in applications like facebook or whatsapp apart from showing the dialog with the buttons to...
asked by 21.05.2016 / 20:29
1
answer

Send data in Android app

I have the following method private void valida_webView() { lk="url-serv"; final WebView myBrowser; myBrowser = (WebView)findViewById(R.id.webView); final MyJavaScriptInterface myJavaScriptInterface = new MyJavaScriptInterface(...
asked by 13.05.2016 / 22:04
2
answers

Configure Android M to show unexpected closing errors in a Huawei

I have a "huawei g play mini" phone with android 6 but when I run my application I can not see the errors when the application is closed, try a "sony" with android 5 and if it shows me the errors in LogCat . There is the origin of my quest...
asked by 08.04.2016 / 00:24
2
answers

Android ListView: Adjust component height to the height of your parent layout

I have the following design to complete for items in a ListView the 3 bars on the right side are indicative that mean something to the user. The detail is that I can not get the bars to adjust to the height of the item (as required b...
asked by 11.04.2016 / 18:27
1
answer

EditText onEditorAction

I'm making an application where I enter the user code by means of a manual scanner, I need to trigger an event just when the EditText receives the barcode data. Deactivate the option to receive data through the keyboard so it is not di...
asked by 11.04.2016 / 19:04
3
answers

TextView dissipated

Hello everyone I have a question how I can make the end of my textView show dissipated or with some transparency for example to my textView I put a text that is long and my textView has a fixed size that I put it and I would like that instead of...
asked by 08.04.2016 / 14:02