Questions tagged as 'android-studio'

1
answer

Error with RawQuery in SQLite

Good friends, I made my database to do the registration of users and their login, I used separate classes for the base: public class Usuario { private int id; private String nombre; private String password; public Usuario(int...
asked by 01.12.2017 / 09:48
1
answer

How can I add a second navigation drawer?

How can I add a second navigation drawer Convert part of onCreateOptionsMenu to navigation drawer public class Inicio extends AppCompatActivity implements NavigationView.OnNavigationItemSelectedListener {...
asked by 30.11.2017 / 20:31
3
answers

AndroidStudio error implementing GoogleMaps

Good morning and thanks in advance, I am implementing google maps in an application and the following petardazo appears: InflateException: Binary XML file line # 6: Binary XML file line # 6: Error inflating class fragment, I took a whole day giv...
asked by 19.12.2017 / 10:31
1
answer

Problem Android studio with Object Json

I have a problem with my Android Studio code. My application is based on a date selector in which when you select a date it will fill a table with a query with the database and fill in a table with the results obtained. The code of my onCreate m...
asked by 27.10.2017 / 07:35
2
answers

Get a response from USSD Android Studio

I am currently facing the problem of getting the answer from a USSD call, I have researched a bit and found that just from the API 26, OREON, Android I get an api called TelephonyManager.UssdResponseCallback link that the code to execute...
asked by 25.10.2017 / 14:23
2
answers

How to add parameters to a button from 'Java Code' in Android studio

This is something I can not get for more than I try, what I want is this: These properties add them but in the Java code ... Can you explain how I would do this ?, I want to add the android property: layout_weight to a Button t...
asked by 27.04.2017 / 18:00
1
answer

How can I make a Toolbar with a transparent gradient background?

I need to achieve this effect in the Toolbar: This is the code I use to call Toolbar : //... Toolbar myToolbar = (Toolbar) findViewById(R.id.toolbarMap); setSupportActionBar(myToolbar); myToolbar.setTitleTextColor(getResources()....
asked by 21.10.2017 / 19:43
2
answers

Error trying to load map in a fragment

I'm having a problem loading Maps, I'm using SupportMapFragment, it does not show any visible error in the code but in Logcat it shows me the following error:    java.lang.NullPointerException: Attempt to invoke virtual method 'void   com.goo...
asked by 01.11.2017 / 22:16
2
answers

Time limit, asynchronous reproduction

I am programming an audio streming app, everything works, the problem is that if one of the url is offline, it stays loading, I would like to set a time limit, for example if in 10 seconds it has not loaded, that stop trying and notify. my code:...
asked by 09.10.2017 / 12:34
1
answer

How can I access a folder in the internal memory in Android? [closed]

I can not find the way to access a folder on android. I have some images that I copy when I create my application in a route of the internal memory, I want that when pressing a button this folder is opened, but I do not know how to do it or wher...
asked by 18.09.2017 / 23:06