Questions tagged as 'android'

1
answer

Retrofit, response body always null but on server is status 200

I am implementing an Android application using Retrofit 2, the service is generic the server side is working. The problem is: The response.body () is always null, I can never get json, even though I can print it with OKHTTP. How to solve t...
asked by 20.11.2016 / 12:13
1
answer

Error: A problem occurred configuring root project 'MyProject'

I'm trying to use the Firebase from Android Studio but I've made the settings on the Google website itself, and the message that appears to me is: Gradle 'MeuProjeto' project refresh failed Error:A problem occurred configuring root project 'M...
asked by 19.11.2016 / 20:58
1
answer

Error in getWritableDatabase ()? [closed]

I'm doing a job for college. My project until a few minutes ago was working normally, inserting User and Book, but out of nowhere it started to give error in getWritableDatabase() and I have no idea what is causing it. BANK connection...
asked by 19.11.2016 / 06:19
2
answers

Map does not appear in app

I'm adding a function in a my app that will show specific places near the user. ( Here is the example that I embedded ) Follow screen print in activity: EDIT:E/GoogleMapsAndroidAPI(21658):Authorizationfailure.PleaseseetheGoogleConsolef...
asked by 19.12.2016 / 21:08
0
answers

Read sqlite3 database in the Assets folder

Most examples and tutorials on Android applications around assume that you want to create and populate your database at runtime and will not use a standalone database with your application. I created a database in sqlite3 which is called FOPAGRH...
asked by 18.12.2016 / 00:10
1
answer

WebView on android shows HTML

I'm developing an android app, I use a webservice to pick up news from a website and play pro app. This news comes in HTML and I get a webview and I get the HTML for it, and it works perfectly at the API's level > = 19. I'm using wbConteud...
asked by 16.11.2016 / 17:24
1
answer

Add Bookmark with click

How do I add a bookmark to the map with a click? public class MapsActivity extends FragmentActivity implements OnMapReadyCallback { private GoogleMap mMap; @Override protected void onCreate(Bundle savedInstanceState) { super.onCr...
asked by 21.11.2016 / 20:25
1
answer

How do I save an image to a folder newly created by my code?

I have problems when storing my photo, I create a folder using mkdir and through a string, I get the contents of an EditText from my application, to give the name of the folder. After starting the camera I wanted to save the photo in the same fo...
asked by 03.11.2016 / 19:53
1
answer

How can I parse an xml that has a vector inside another vector?

I'm having a question about how I can parse an xml that the server is sending me.     I can get the data up to the Cobranca tag after this tag has another array that I can not get. Here's the one part of xml: <return xsi:type="SOAP-E...
asked by 11.11.2016 / 14:51
1
answer

PreferenceActivity # findPreference () returns null

Could anyone help with the error below? I'm a beginner with android and I could not identify where I went wrong. Thank you! Log Error 01-22 11:45:32.722 13037-13037/com.example.android.sunshine.app E/AndroidRuntime: FATAL EXCEPTION: m...
asked by 22.01.2017 / 11:53