EGL vs GLES 2.0 on Android (e.g. Java)

(experienced c programmer, pre-shader, fixed function open gl. competent Java programmer) I have been working with GLES on Android and have gotten the examples to run (both native and Java). In particular, the textured triangle example. What is completely confusing me is the “relationship” of Khronos EGL and the android GLES interfaces. Are these parallel, […]

Setting custom key when pushing new data to firebase database

Well, I am new to Firebase and i want to have my own keys while pushing new data to database. Problem: FireBase.push().setValue(mapped_values); this gives structure like below database output how can i create my own custom key there?? suchas username or something

Found 2 versions of android-support-v4.jar in the dependency list appcompat in android

When I add appcompat project as a library I get these errors: – found 2 versions of android-support-v4.jar in the dependency list appcompat in android. – `aapt.exe` has stop working. How to solve this?

Android – addToBackStack() doesn't work?

This is the function responsible for adding fragments to back stack: public void populateContent(File f) { ContentFragment cf = new ContentFragment(ctx, ac, this); FragmentTransaction transaction = ac.getSupportFragmentManager().beginTransaction();; cf.updateView(f); transaction.replace(R.id.contentFragment, cf); transaction.addToBackStack(null); transaction.commit(); } When I click the back button, the last fragment doesn’t get loaded (nothing happens). Any idea what might be causing this? Edit: […]

How to Change a Button's Icon Programmatically?

I already have the button: <Button android:layout_height=”wrap_content” android:layout_width=”fill_parent” android:drawableLeft=”@drawable/empty” android:id=”@+id/buttonMyText” android:text=” myText” android:textSize=”20px” android:gravity=”left”> </Button> I have the “empty” icon show on the button when the program starts. What I want to do is change the button’s icon automatically from my code (low, medium and high) based on user inputs I tried: Button myButton = […]

get available locales for tts

I’m working on a text-to-speech implementation of a flashcard program. Text in different languages should be read out. In order to do this properly the user has to select the language of the text to read (will be stored and used later without question). Is there any possibility of getting the available tts-languages on an […]

Error importing HoloEverywhere

First of all, I am new with Android. I am doing an app, and I am implementing a library called HoloEverywhere. This library use in the themes.xml the library ActionBar Sherlock. I have imported to my workspace ActionBar Sherlock and I have added it to HoloEverywhere. Next, I have added HoloEverywhere to my project, but […]

My current location always returns null. How can I fix this?

I am trying to find my current location for an android project. When the application is loaded my current location is always null. I have set up the permissions in the manifest etc. When I find the current location I intend to use the coordinates to find distances to other locations on the map. My […]

Save the position of scrollview when the orientation changes

These is my layout: I need to save the scrolling position when the orientation changes. for example if the screen shows layout starting from middle name in portrait mode,it should start from same in the landscape mode. Please help me out.

How to remove button bar at the bottom screen

I am building custom image.I going through android source, i want to get rid off bottom softkey button bar in android, Can some one please direct me to source file to change ?

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