I have a problem that I am trying to solve for few hours but cannot solve it and I need some help. I am trying to retrieve URL strings from a Login activity and trying to pass it to the Main activity using a parcelable object but I receive NullPointerException on getParcelable method. Following is the code th…
Tag: android
java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. Android 2.3
In my server (production server), I have a goDaddy ssl certificate. I have both iOS and Android apps connecting with the server, iOS connecting with no problems, android with versions 4.* everything is good, but with devices with 2.3.* I always get a SSLHandshakeException. I did exactly like on Android Develo…
KSoap2 on Android freezing the device instead of making a webservice call
I’m trying to connect to .NET 4.0 webservice I created for receiving SOAP-calls from Android-devices, now hosted on local IIS for testing purposes. I found out that ksoap2 would be an excellent class library for doing what i want to do. Downloaded the .jar package from https://code.google.com/p/ksoap2-a…
How to see if a texture is touched in libgdx?
pretty much i want my texture to move to a random position on the screen when its touched and when its missed i want to system.out(“missed”). I cant figure out how to see if its touched. right now i can only get if the screen is touch and it records about 10 touches for every one touch because it …
Assets folder in Android Studio Unit Test
I have a Gradle project with the following structure: Now I want to add a unit test which uses a resource (either “raw” or “asset”). I put my resource into project/androidTest/assets/test_file and access it with getContext().getResources().getAssets().open(“test_file”); (in…
With a DrawerLayout, how can I close the app on pressing Back no matter which screen is active?
I’m using a DrawerLayout for the navigation of my app: Taking this menu for the example: I’d like the Home button to launch the HomeActivity and so on. But clearing the activity stack, that is: If I press People, then Photos, then Locations and then the back button, the app should close. I’m…
Fullscreen WebView when landscape?
I’m trying to build an app with a webview which should go fullscreen when the orientation changes to landscape. I did the way with layout-land and main.xml where I just gave the WebView fill_parent and it was over all the other views. The problem with that was, that the WebView was lagging. I hope there…
JSON object from java ObjectName.toString
I have a java object witch generates this output when i type objectName.toString() : Is there a JSON parser that lets me make a JSON from the string that my object generates? something like: JsonObject x = new JsonObject(busObject.toString()) It is important for me to generate it from the string that i get wh…
Android Archive Library (aar) vs standard jar
I’ve been reading some articles about the new adoption of Gradle as the standard build system for Android apps. Well, coming from standard Java development I usually depend on jar files in order to build my project. However it seems that Android has also aar packages, which are the equivalent to the dll…
Error parsing data org.json.JSONException: End of input at character 0 of – Android
I’m developing a test Android application that must display some data from a mysql db. Here my logs: Here the class JSONParser.java Here the class I use to display the selected data: Here the php file: In addition, here the main Activity: I read various thread around the internet about this error, but i…