I created a little texture drawing class from observing the LabelMaker example in the Android SDK.
One thing I can't find however is how to rotate textures drawn with glDrawTexiOES.
is it possible? I've just tried glRotatef but it has no effect.
...
Does any one know if or when twitter is going to release the source code for the android app?
The release was announced back in April
We had a great time working with the Android team and are thrilled that Google will be open sourcing the code used in this app in the near future. We look forward to the amazing experiences developers...
I've a quite simple list with 3 textview fields on each row. We are updating their values every 2 seconds or so with data coming from a background webservice call ( AsyncTask )
We compare the coming values with the current ones, update them accordingly on the Adapter and finally calling notifyDataSetChanged() if needed
The thing is th...
I have a ListView with a bunch of ListItem's. When the user selects an item, I would like to change that ListItem's background to an image. How can I accomplish this?
listView.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> a, View v, int position, long id) {
// how do I ch...
Hi guys,
I am having a problem capturing an image from the built-in camera app on the Samsung Galaxy S.
I have a button on my app that when pressed launches the camera:
ContentValues values = new ContentValues();
values.put(Images.Media.MIME_TYPE, "image/jpeg");
mPicUri = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI, values...
Hi,
I am new to Android mobile application development.
I would like to know , how can I handle the exception , like HttpConnection related exceptions or any other exceptions.
Do I need to display an AlertDialog to the user.
Kindly provide a sample code or project source code on how can I handle HttpConnection or similar type of Excep...
I've followed a standard tutorial for building a database with Android. I've created a class called DbHelper which extends SQLiteOpenHelper. I've Overridden the create handler to execute a string.
@Override
public void onCreate(SQLiteDatabase db) {
db.execSQL(DbDefinitions.DB_CREATE);
}
DbDefinitions.DB_CREATE is a static String...
An Android TextView can have its inputType parameter set to textNoSuggestions, which "indicates that the IME should not show any dictionary-based word suggestions". Presumably, if this is not specified, the default is for suggestions to be shown.
It can also have its AutoText parameter set to either true or false. "If set, this specifie...
Kindly provide me the code for handling the HttpConnection or related Exceptions & how to display that to the user.
Specifically , I would like to know how to handle TimeOut for HttpConnection & how to display that alert to the user.
Kindly provide the same code.
Warm Regards,
CB
...
Hello, I have some information stored as SharedPreferences. I need to access that information from outsite an Activity (in from a domain model class). So I created a static method in an Activity which I only use to get the shared preferences.
This is giving me some problems, since apparently it is not possible to call the method "getSh...
I have an activity that calls the
new SimpleCursorAdapter(this, R.layout.notes_row, c, from, to);
setListAdapter(notes);
I would like to add a button to the notes_row.xml that displays at the bottom of the screen "on top of" the actual notes_row allowing the user to still scroll through the list but hit the button if they want. Every...
Hello,
I have an app which I want to run on as many Android phones as possible. My current solution is to just compile it with the newest version and doing the critical code in sections that will only be used on devices with the correct Android version. This worked fine until I started using Android 2.2. Now running the app on older pho...
I'm trying to initialize an instance of class consoleDroid with consoleDroid console = new consoleDroid();, but it throws a class, interface, or enum expected compile error. What's the right way to initialize the class?
caseSelector.java:
package com.caseselector;
import android.app.Activity;
import android.os.Bundle;
consoleDroid co...
Trying to get a count of the rows in a database from a separate activity. I have been messing with the methods to do so, but I can't seem to instantiate them from another activity if the method is built in the database adapter class. Ideally, I would like the method in the adapter to return an int that I can then use in a number of dif...
Hi,
How can I center ImageButton in the this LinearLayout
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/main"
>
ImageButton
<ImageButton android:id="@+id/btnBut"...
So I'm struggling a bit here trying to create a 2D map of icons, where each icon is 48x48 pixels and the map is a 9x9 grid (thus, 432x432 pixels in size). I tried, unsuccessfully, starting with a GridView and have since decided to try using an AbsoluteView inside of a LinearView. Here's the beginning of the XML file (I've not added all...
I am currently playing about with lesson 08 here
http://insanitydesign.com/wp/projects/nehe-android-ports/
I would like to change the background colour from black to white. In order to do this at the start of onDrawFrame() I have called
gl.glClearColor(1.0f, 0.0f, 0.0f, 0.0f);
This does indeed set a white background screen, but als...
I'm trying to reduce the number of queries I do to the Android's database. Basically I want to get any email or IM address that contains a user defined search term. Right now I'm doing two separate queries:
Email:
Cursor emails = cr.query(
ContactsContract.CommonDataKinds.Email.CONTENT_URI,
null,
ContactsContract.Commo...
HI all,
I want to enable/disable bluetooth through the program..I has the following code.
BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
if (!mBluetoothAdapter.isEnabled()) {
Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
startActivityForResult(enableBtIntent,...
I wrote an email application in Android , that uses Action_SEND intent. When I call startActivity(i); where i is intent, along with email Application , messaging application is also popping up. But when I wrote an application for email why should messaging application also should pop up.
can I be explained clearly regarding this concept....