Questions tagged as 'android'

2
answers

Problems with gradle.bundle libraries (Android Studio)

Good morning, I have a problem that always happens to me. It is with the issue of adding libraries to the project, it usually happens when I place several google libraries, when I run the compatibility error comes out in the libraries, I think i...
asked by 16.06.2016 / 17:02
1
answer

Detect Led Notifications Android Studio

I have a simple doubt, I am programming notifications, and I realize that when I involve the line of code: .setLights(Color.GREEN, 3000, 3000) It appears errors in cell phones that do not have the notification LED (such as cell phones with...
asked by 27.07.2018 / 08:18
1
answer

Android Studio preview error

My problem is that after installing and updating Android Studio, I see an error in the design tab that does not let me see the appearance of the app or the changes I made to it. PC specifications:    Intel i3 2328m    4 gb Ram    Wind...
asked by 23.06.2018 / 02:00
3
answers

Items are missing when receiving Array

Everything works correctly for me by only collecting the values of an array, but when I collect the data of the two that is what I want, I am missing data, as I can do it to have them in the same activity: @Override protected String doInBa...
asked by 03.01.2016 / 15:11
1
answer

Error in Android SQLite query

I want to make a query of the id_empresa of the table TABLE_CLIENTE , where the client_name is equal to what is inserted in the textView called et_searchClient , making the query INSIDE the activity. I already tried several...
asked by 27.08.2018 / 19:21
2
answers

ERROR: org.json.JSONException: Value ... of type java.lang.String can not be converted to JSONArray

I have this error:    org.json.JSONException: Value i201600010 of type java.lang.String   can not be converted to JSONArray My code is as follows: @Override public void onClick(View view) { Thread thread = new Thread(new Runnable()...
asked by 24.11.2016 / 07:03
3
answers

Error trying to query on Android

I have a problem trying to make a query in Android . My code is as follows: Method to make the query: public String c(){ /*ArrayList<String> getItemDetails(){ ArrayList<String> itemdetails=new ArrayList<String>();*/...
asked by 10.11.2016 / 17:47
2
answers

I need to use the GPS in Android when the phone is blocked or we exit the application

I have in Android a class Map that collects the points of latitude and longitude to be able to realize several calculations like speed, etc. The fact is that being an app to monitor a cycling route, the GPS should never stop working until the...
asked by 01.11.2016 / 19:22
1
answer

My BroadcastReceiver does not work in my Activity

I want to receive an alert when I get a sms and I intend to create it in the following way: public class MainActivity extends Activity { BroadcastReceiver receiver = null ; IntentFilter intentFilter; @Override protected vo...
asked by 07.11.2016 / 16:55
3
answers

Show a dialogue on android

I have a problem: I want to show a dialogue that I made from a layout that has a text and a button but I do not understand because it tells me that the application stopped. Code: public class MainActivity extends AppCompatActivity { Bu...
asked by 18.12.2016 / 17:36