OpenGL ES problem: Trouble loading a bitmap texture (comes out blue)

by Jon Colverson » Thu, 05 Mar 2009 03:34:30 GMT

Sponsored Links
 I don't understand why you're trying to copy the texture from a Bitmap
into an IntBuffer before setting it. Why not use GLUtils.texImage2D to
load the Bitmap directly?



Other Threads

1. simple demo multiple alarms

Hi, i like to create multiple alarms, but i does not work. how to set
and how to request in my receiver what alarm intent came activated

in my i call this function like: setalarm(5); setalarm(10)
(it works but only remember the last)

 public void setalarm(int delay)
         Intent intent = new Intent(alarm.this, alarmreceiver.class);
         PendingIntent sender = PendingIntent.getBroadcast(alarm.this,
0, intent, 0);
         intent.setData((Uri.parse("custom://"+delay)));  << i heared
about this would make individual alarms.. but does not work

         Calendar calendar = Calendar.getInstance();
         calendar.add(Calendar.SECOND, delay);

         intent.putExtra("avr", ""+delay);   //i tried to set my data
here to read later, but also does not work

         AlarmManager am = (AlarmManager)getSystemService
         am.set(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),

         //Toast.makeText(this, "Alarm set", Toast.LENGTH_LONG).show


---- my

public class alarmreceiver extends BroadcastReceiver
        NotificationManager mNM;
 public void onReceive(Context context, Intent intent)
                Uri ursistr = intent.getData();
                String intentstr = intent.getStringExtra("avr");  //does not 
get the
saved intentextra?!

        Toast.makeText(context, "GOT IT :"+intentstr+" "+ursistr,




2. Why doesn't w.requestFeature(Window.FEATURE_RIGHT_ICON);work?

Hi all,
I just want to set an icon in the right of titlebar, so I use:
        Window  w = getWindow();
but it doesn't work, the icon is still at left. Did I miss something?
Pls help me, thx!

3. What is the toolchain for S3C2440

4. Where is the bluetooth MAC address saved?

5. Porting 1.0 to 1.5, Street view intent (also broken in Google Maps)

6. How how can we keep Overlay Surface unchanged when switch from Portrait to Landscape mode

7. Android Design Awards (Suggestion)