Questions tagged as 'android'

1
answer

Implement token's in web services with php and json

I have created several web services to consult data from my database from an android application, the web services are already working, they return the information to me and it is already shown in the application, but I want to implement token's...
asked by 29.12.2018 / 16:12
2
answers

Summation variables in java

I have a double variable declared inside a for loop, this variable returns different values according to the loop through the list array. for(int i = 0; i < ticketAdapter.mTicket.mLines.size(); i++){ double totalNoVATt = tic...
asked by 05.12.2018 / 09:54
2
answers

Change screen (Toolboard button)

I have the following part of my code: @Override public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.barra_superior, menu); // toolboard return sup...
asked by 17.10.2018 / 10:39
1
answer

Print to console db.execSQL on Android

How can I get this chain by console? I want to take the console and see if I generate the sentence well. I do not know what parameter to use to load it in the System.out.print db.execSQL(String.format("CREATE TABLE %s (%s INTEGER PRIMARY KEY A...
asked by 16.05.2017 / 08:17
1
answer

Build JSONArray from SQLite database

I have a method with which I want to put some records of the BD in a JSON array, for this I first created a JSON Object for each field name to have its value, the detail that I have 50 records and it creates me a JSON array with 50...
asked by 28.09.2018 / 21:40
1
answer

Concatenate TextView Fixed with String from Android Thread

I have a layout where I have a text set. <TextView android:id="@+id/activityStockValorAnoTop_textView" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="Ma...
asked by 12.05.2017 / 08:50
2
answers

Get user id

I would like you to help me I am making a mobile application and I have two tables in my database one called "users" and the other "activities" inside this second table I have a foreign key of the user id, what I want is get the id of the logged...
asked by 18.09.2018 / 06:22
2
answers

Problem with preview interface in Android studio

The fact is that when I create a project when adding any component to the preview interface it does not let me see it, it only lets me see it if I execute the application in an emulator. Then I will leave a photo so it can be clearer. If anyo...
asked by 16.09.2018 / 20:09
2
answers

Error lint when creating apk android studio

This error appears when I compile an apk    Lint found fatal errors while assembling to release target.       To proceed, either fix the issues identified by lint, or modify your   build script as follows: ... android { lintOptions {...
asked by 03.12.2018 / 17:41
1
answer

Android Studio two buttons reproduce same file

Hello, how are you? I am trying to make a button of sounds in Android Studio and I put two buttons "btn1" and "personasjitos" (I leave the code below) when trying the application any of the two buttons I played the same file, Android Studio I do...
asked by 25.09.2018 / 04:33