Gradle Javadoc task without warnings

I generate a javadoc .jar file with Gradle for my Android project. I’m using a similar setup like in this instruction. But I’m getting a lot of warnings that many symbols are missing. I noticed that the javadoc task doesn’t find any of my dependencies. How can I add my dependencies to javadoc task’s classpath? […]

Unable to access App Engine Application running in Android Studio using Android Device Application in LAN

I am running Google App Engine application in Android Studio. Installing Android Application to my Android Device from the same Android Studio. appengine task configuration in build.gradle of GAE application is as follows: appengine { downloadSdk = true jvmFlags = [“-Ddatastore.backing_store=$localDbPath”] httpPort = 8888 httpAddress = “0.0.0.0” } Connecting both devices (“Laptop – which running […]

Get Mobile no from real device

I want to get the mobile number of a sim which is inserted into the device. I know as pr the android SDK TelephoneManger is the class by which we can get it by getLine1Number() method. but it always returns null values. Queries: Can i get mobile number from device? Is it a sim dependent […]

Is it impossible to make an Android game stutter-free? I am going crazy here

I have been working on an Android game for the past 6 months or so, and have posted on here several times about various lag issues that I cannot get rid of. I ended up grabbing the LunarLander example and stripping it down to its very core components to see if I could make anything […]

Longer screen timeout for a specific Android activity?

There are similar posts to this, but none are quite what I’m looking for. I’d like to change the screen timeout for a specific activity. I want to avoid using WakeLock if possible and I don’t want to change the device’s system-wide timeout delay setting. Is there any way of doing this short of manually […]

Android Studio build.gradle – Cannot resolve symbol 'android'

I’ve gone through the tutorial here and everything works except for my build.gradle. Everything in the ‘android‘ section is is underlined and displays a “Cannot resolve symbol” error message. This is in Android Studio 0.3.1. I’ve even tried re-installing Android Studio and it still doesn’t work. buildscript { repositories { mavenCentral() } dependencies { classpath […]

Maven: Using Java 8 libraries in applications instrumented with retrolambda-maven-plugin and DEX-ed with android-maven-plugin

I have written a small set of minilibraries for my internal use. This is set is built using Maven. The libraries are targetted for “regular” Java, GWT and Android. Some of them are written in Java 8 because I hadn’t any intention to run them on GWT or Android, thus the other libraries are written […]

Where to put my php file?

I am trying to make a sign up activity on android and I am using a mysql database to store the data. On all the examples I have seen the http post goes to a ip address and then finds the php file. Can I just put the php file somewhere in the android app […]

Android Custom Widget Inflate Exception

<?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” xmlns:app=”http://schemas.android.com/apk/res/com.org.BatteryManager” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:orientation=”vertical” > <com.org.BatteryManager.BatteryView android:layout_width=”match_parent” android:layout_height=”wrap_content” app:textColor=”#ffffffff” /> </LinearLayout> 02-17 18:49:49.392: WARN/AppWidgetHostView(124): updateAppWidget couldn’t find any view, using error view 02-17 18:49:49.392: WARN/AppWidgetHostView(124): android.view.InflateException: Binary XML file line #9: Error inflating class com.org.BatteryManager.BatteryView 02-17 18:49:49.392: WARN/AppWidgetHostView(124): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:576) 02-17 18:49:49.392: WARN/AppWidgetHostView(124): at android.view.LayoutInflater.rInflate(LayoutInflater.java:618) 02-17 18:49:49.392: WARN/AppWidgetHostView(124): at android.view.LayoutInflater.inflate(LayoutInflater.java:407) […]

How to Let Users Rate an Android App from inside the App (without redirecting to the Play Store)

In my app, I am experimenting with creating a popup that lets the user directly rate my app (eg. 5 stars) without having to redirect to the Play Store. I have read many questions (here and here) and answers on this site claiming it cannot be done BUT Tinder has managed it! After inputting a […]

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