syntax error with FOREIGN KEY in CREATE TABLE

I am getting following output on debugger. I am not sure what syntax is missing. The SQL code is: CREATE TABLE weeks(Week_Id INTEGER PRIMARY KEY, Day TEXT, Start_Time Text, End_Time Text, Break_Time Text ); CREATE TABLE projects(Project_Id INTEGER PRIMARY KEY, Name TEXT, Description Text, Client_Name Text, Location Text ); CREATE TABLE timesheets(Timesheet_Id INTEGER PRIMARY KEY, […]

Butterknife 8.1.0 not working with JDK 1.8 in Android Studio 2.1.2

I’m fairly new to Android, Android Studio, Butterknife and the Gradle build system. However, I’m not new to Java, or programming in general. I’m trying to build an Android app with JDK 1.8 and Butterknife version 8.1.0 , but the Gradle build keeps failing, saying: Error:Could not find property ‘options’ on task ‘:app:compileDebugJavaWithJack’. Note: My […]

Android TabWidget in Light theme

I have an application that targets the 1.5 framework and uses the default light theme. When using a tab widget with this theme, the tab images are barely visible, and the tab captions are quite impossible to discern, except for the currently active tab. In the default dark theme these tabs come through quite clearly, […]

Unable to compile my android project

When i try to compile my android project iam getting the following error. Error:A problem occurred configuring project ‘:app’. Could not resolve all dependencies for configuration ‘:app:_debugCompile’. Could not find com.android.support:appcompat-v7:21.0.1. Searched in the following locations: https://jcenter.bintray.com/com/android/support/appcompat-v7/21.0.1/appcompat-v7-21.0.1.pom https://jcenter.bintray.com/com/android/support/appcompat-v7/21.0.1/appcompat-v7-21.0.1.jar file:/home/baman/Android/Sdk/extras/android/m2repository/com/android/support/appcompat-v7/21.0.1/appcompat-v7-21.0.1.pom file:/home/baman/Android/Sdk/extras/android/m2repository/com/android/support/appcompat-v7/21.0.1/appcompat-v7-21.0.1.jar file:/home/baman/Android/Sdk/extras/google/m2repository/com/android/support/appcompat-v7/21.0.1/appcompat-v7-21.0.1.pom file:/home/baman/Android/Sdk/extras/google/m2repository/com/android/support/appcompat-v7/21.0.1/appcompat-v7-21.0.1.jar Required by: SriLankaTemples:app:unspecified Could not find com.android.support:recyclerview-v7:21.0.1. Searched in the following locations: https://jcenter.bintray.com/com/android/support/recyclerview-v7/21.0.1/recyclerview-v7-21.0.1.pom […]

Getting posts from WordPress in my android app

I am new in Android development and I am trying to make an app that will simply display the post categories and posts from a WordPress website. Can any one help me, please.

eclipse doesnt show my galaxy nexus with android 4?

i tried everything. Checked USB debugging and allowed unknown sources. (Android 4.0.1) When i connect galaxy nexus with the PC without USB debugging, it works. When i connect galaxy nexus with the PC with USB debugging, it doesn’t work. I can start my app on windows. I have Windows 7. Thnx

Integrate the dropbox in my applicaiton which show security alert

I have developed one application successfully i want to store the database in drop box.So i am using dropbox–android-sdk-1.5.4 example which is working fine to me. My problem is when i integrate this sdk example application in my application and make a login process at that time it show one error “Another app on your […]

Can't call void android.view.View.setElevation(float) on null object in lapism/SearchView

I am using library lapism/SearchView (https://github.com/lapism/SearchView) in my project. But i get following runtime exception only on Android 5.0: A/art: art/runtime/check_jni.cc:65] JNI DETECTED ERROR IN APPLICATION: can’t call void android.view.View.setElevation(float) on null object A/art: art/runtime/check_jni.cc:65] in call to CallVoidMethodV A/art: art/runtime/check_jni.cc:65] from void android.animation.PropertyValuesHolder.nCallFloatMethod(java.lang.Object, long, float) A/art: art/runtime/check_jni.cc:65] “main” prio=5 tid=1 Runnable A/art: art/runtime/check_jni.cc:65] | […]

BlackBerry class equivalent to AsyncTask?

My requirement is to have a thread that maintains a socket connection between a BlackBerry device and a server and exchanges commands, similar to request and response. My problem is that I need to have this thread running in the background all the time and keep the UI available to the user. So, when there […]

Android, the standalone version of traceview is deprecated

I want to see my traces. 1- In code, I have added these lines of code: // Start trace recording android.os.Debug.startMethodTracing(“hc_traceview”); and // Stop trace recording android.os.Debug.stopMethodTracing(); 2- I can see “hc_traceview.terac” in file explorer of DDMS. 3- Based on Viewing Trace Files in Traceview, I ran following command in terminal: @hesam-K5VD:~/Desktop/Eclipse/sdk/tools$ traceview /mnt/sdcard/hc_traceview But […]

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