Android Studio stuck on gradle resolving dependencies

I’m new to Android Studio and while creating a new project it stuck at resolving dependencies :app:_debugCompile. I waited for too long and even tried to create a new project, but that didn’t worked. Here’s a screenshot of the window: Here’s the contents of build.gradle file: // Top-level build file where you can add configuration […]

How To Show and hide ActionBar with AppCompat v.7

I have a simple app that displays text. The app starts with a main screen with a few options (ex. an info button that leads to info about the app, a browse button that allows the user to see all the individual pieces of text that can be displayed). The main button leads to another […]

How to set dropdown arrow in spinner?

I tried to set spinner with drop down arrow but i couldn’t fix it can anyone help me with this? I have attached the source code.I tried with the below link but couldnt fix the issue my class file: import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.EditText; import android.widget.Spinner; import […]

How to create custom palette with custom color for Material Design App?

How could I generate a custom material design palette like the following one? Is there a tool around or something?

Session 'app': Error Launching activity

After the Android Studio 2.0 update while the gradle build finishes I get this : Session ‘app’: Error Launching activity . It prevents the app from starting but it’s installed in my emulator. This is what comes up in the Run tab : Unexpected error while executing: am start -n “com.example.user.ypologismosmoriwn/com.example.user.ypologismosmoriwn.MainActivity” -a android.intent.action.MAIN -c android.intent.category.LAUNCHER […]

Cannot deserialize instance of object out of START_ARRAY token in Spring Webservice

I’m m currently having trouble connecting to my webservice on android. I use jackson-core/databind/annotation-2.2.4 and Spring RESTWebService. If I access the URL from browser I can see the JSON response: (server return List\Shop\ looks like:) [{“name”:”shopqwe”,”mobiles”:[],”address”:{“town”:”city”, “street”:”streetqwe”,”streetNumber”:”59″,”cordX”:2.229997,”cordY”:1.002539}, “shoe” [{“shoeName”:”addidas”,”number”:”631744030″,”producent”:”nike”,”price”:999.0, “sizes”:[30.0,35.0,38.0]}] From a Client endpoint (Android application) I receive this error message: 08-26 17:43:07.406: E/AllShopsAsyc(28203): Could […]

SharedPreferences and Thread Safety

Looking at the SharedPreferences docs it says: “Note: currently this class does not support use across multiple processes. This will be added later.” So in and of itself it doesn’t appear to be Thread Safe. However, what kind of guarantees are made in regards to commit() and apply()? For example: synchronized(uniqueIdLock){ uniqueId = sharedPreferences.getInt(“UNIQUE_INCREMENTING_ID”, 0); […]

Theme not applying to DialogFragment on Android

I’m switching my old Dialogs to DialogFragment, but the themes and styles don’t seem to be working. I’m using the DialogFragment from the compatibility library v4, and in the onCreate method I’ve tried calling setStyle(style, theme); with a lot of different themes, but the dialog always shows as an “old” dialog in the emulator running […]

Wifi Connect-Disconnect Listener

Which listener does my class have to implement inorder to automatically check code if the wifi connects/disconnects ? I’m able to manually check for wifi connection/disconnection but each time i need to connect/disconnect WIFI from android settings and then run my program for the result. Please help. Thanx in advance. My current code is as […]

java Lang UnsupportedClassVersion Error in Xamarin Studio

I am getting the following error when I am building my project . How do I correct this ? C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(3,3): Error: java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0 (FGH) My version information from Help > About > Show Details: Xamarin.Android Version: (Starter Edition) Android SDK: C:\Users\Admin\AppData\Local\Android\android-sdk Supported Android versions: 4.0.3 (API level […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.