Skip to content

Tag: android

Android: Navigation Drawer vertical shadow

I have implemented a NavigationDrawer in my application. I would like to know how I can add a vertical shadow effect which is below the main Fragment, similar to the picture below. I have one image on my drawable with the shadow image. It’s called “drawer_shadow.9” but I don’t know how…

Setting SDK Location in Netbeans

I’m having some trouble setting the Android SDK Location in Netbeans. I have installed the SDK and even run a virtual device in it, but for some reason Netbeans is not recognizing the SDK. Here is the location of my SDK: And when I have this entered in Netbeans: The ‘OK’ or ‘Apply&#821…

android countdowntimer tick is not accurate

I am using a countdown timer for audio notification… and it’s not accurate from the start… using initial parameters I can see in the log that the initial countdown is correctly set to 180000 but the next one should be 120000 and it’s set to 119945 !!! This is quite annoying as the audi…

ANDROID: Converting inputted numbers to words

Our assignment states that we write a program that will input a number up to 6 digits and will convert the numbers into words.. ex: 123 = one hundred twenty three. I AM CLUELESS! Then I found this site http://www.rgagnon.com/javadetails/java-0426.html but I don’t really understand how to convert it into…

How to increment time every second in Libgdx

I try to add time to my game that will increment every second. How to fix that? I add my code below as your note, delta is Gdx.graphics.getDeltaTime(). ‘time’ is string. but looks like the time increment slowly. means that when time already run about 1,5 sec, ‘time’ still increase 1. I…

Android – Keep user logged in

I’m trying to make a login with PHP and MySQLi for Android. What I don’t understand is how to keep the user logged in? I saw a simple tutorial where someone used SQLite to safe information but I’m not aware if that is really secure way. How should I save the user information to keep the user…