Is there a way to skip proguard from obfuscating the Volley and Gson including the class using them ? My build.gradle file: Here the Proguard config: Errors returned for Volley: NB: Application work well without proguard. Signed APK generated with proguard but class using Volley + Gson still not working Answe…
Tag: android
Do I need Java JDK for using Android Studio?
I’m learning Android Studio and the tutorials on youtube like: https://www.youtube.com/watch?v=QAbQgLGKd3Y&list=PL6gx4Cwl9DGBsvRxJJOzG4r4k_zLKrnxl say I need the Java JDK. Yet when I went through the tutorial at the website: https://developer.android.com/training/basics/firstapp/creating-project.htm…
Runtime Change Android material theme
I have one setting screen for change app themes at runtime. I know how to create material design theme. I have create one in my style.xml file Here is code of my style.xml: Now I want to change runtime app theme from green to purple or yellow. Anything can any one tell me how can I create a color picker
Method invocation ‘toString’ may produce ‘java.lang.NullPointerException’?
When I start the application, everything works normal, but when I press the button enter, it closes alone. I do not know what could be the problem I think this is it, could you please help me I have this code Method invocation ‘toString’ may produce ‘java.lan.NullPointerException’ Can …
android.support.v7.widget.AppCompatButton cannot be cast to android.widget.LinearLayout
I’m developing an app and I had some errors. When I run on the tablet it gives this error, but when I go to mobile it works perfectly. I already tried to clean and rebuild and tried to reboot the computer but I’m still having errors. See the code below: XML And the others linearlayout is the same,…
Failed to create JVM; JVM path C:Program FilesAndroidAndroid Studiojrejre
When I start Android Studio I am facing this error. It was working properly until today. But Today I searched for speeding up Android Studio and applying 2nd option of this solution and after that android studio starts throwing this error. I searched a lot but couldn’t find the proper solution. I also c…
SeekBar – Can’t set starting point
When I first start my app, before the Shared Preferences are created, I want my seekbar to be set on 300px (max 600). It seems simple, as all I need to do is use setProgress and give it a value of 300. But for some reason this is not working in my code, and whatever I do, the starting point
Fragment class not found
I’ve just started working on my first Android app and my focus is the main activity of the app, MathleteIDActivity, which includes a fragment TextFragment which displays some text. The project builds fine, but crashes as soon as the app is launched. This happens on two different phones running Android 4…
How to call activity from a library module in android studio
I am trying to call an activity from a library module in my application. I keep getting the error android.content.ActivityNotFoundException: Unable to find explicit activity class {com.nextgis.mobile/…
Android Custom Camera – Crop image inside Rectangle
I have a custom camera app which have a centered rectangle view, as you can see below: When I take a picture I want to ignore everything outside the rectangle. The view hasn’t any connection with the Camera Preview or SurfaceView in my XML view, as follows: Can somebody help me how to crop the image pro…