HTC Hero (Sense UI) in emulator

by Alexey » Wed, 28 Oct 2009 07:29:30 GMT


Sponsored Links
 Is there a way to get HTC Hero system image for the emulator?

Sense UI has quite some changes to activities like Contacts. So
intents to select Phone number (new Intent(Intent.ACTION_PICK,
Phones.CONTENT_URI) ) work differently from default Contacts app, and
things like viewing Call Log ( new Intent
("com.android.phone.action.RECENT_CALLS"); ) do not work at all.
Is there a way to test my code against Hero device, beside getting
physical device.

 Thanks

--~--~---------~--~----~------------~-------~--~----~



HTC Hero (Sense UI) in emulator

by Mark Murphy » Wed, 28 Oct 2009 07:55:06 GMT


 > Is there a way to get HTC Hero system image for the emulator?

HTC has not released one, AFAIK. I inquired about this a couple of times
over the past month or so and there is no sign that there will be one.


Don't use com.android.* classes or Intent actions. Those are not part of
the SDK and are rather likely to be changed over time.


You can see if DeviceAnywhere or similar services have a Hero available
for remote testing.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
Android App Developer Books:  http://commonsware.com/books.html 



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


HTC Hero (Sense UI) in emulator

by vovkab » Wed, 28 Oct 2009 08:10:44 GMT


 Here is solution (Russian): 
 http://4pda.ru/forum/index.php?s=& ;showtopic=127892&view=findpost&p=3267124



--~--~---------~--~----~------------~-------~--~----~



HTC Hero (Sense UI) in emulator

by izzy » Sat, 05 Dec 2009 02:44:35 GMT


 it doesn't work.
I downloaded the HERO image from the thread of the forum, and put it
in the emulator.
It can not successfully launched.
Is there any trick for creating or launching avd?





--



Other Threads

1. Fwd: upgrade x10 mini dg offline methods)

Untuk x10 mini user yg nyari trit ini,...
Silakan... Dwiyor !!z
Note : pake windows xp ya...
---------- Forwarded message ----------
From: "mas driequot; <masdrie.mi...@gmail.com>
Date: Nov 3, 2010 6:00 PM
Subject: solved : upgrade x10 mini,ga mau naik 2.1 (offline methods)
To: <id-android@googlegroups.com>


Setelah dinyatakan tidak berhasil,...
Akhirnya pake prosedur FlashTool , (offline methods ) ....

Kini x10mini sy udah update 2.1-update    dengan cara ini

Untuk yang belum berhasil, terpaksa pakai cara ini  ( DIWYOR ) ya ....

Stepnya :


a).Donlot File- Flash tools
http://www.multiupload.com/RU5LMRLGGK

b).Donlot File Firmware 2.1
http://www.multiupload.com/GM4VW1LNVV

Kemudian  :
1).Copy Paste semua unduhan* firmware* file ke Folder : C:\x10flash\firmware
2).Command prompt  CD:\x10flash
    a.Jalankan x10flash, dengan mengetik x10flash trus enter

    - akan diminta set in *flashmode*  sebelum menekan enter
        (*Flashmode => matikan hape , tunggu  30 detik, tekan back, tahan
,trus colokin usb* )
     - Sebelum *led-green* getting off, segera tekan enter

     - Jika langkah berhasil, maka akan processing .....................
sekitar 15 menit aja..

      b.Tungguin hingga finish


Selengkapnya : http://forum.xda-developers.com/showthread.php?t=825664

-- 
===============
"Indonesian Android Community [id-android]"

PING'S mobile
Email: sa...@pings-mobile.com  Ph. (021) 96087100
---------------------
Yopie Ratjoen
Email: yo...@ratjoen.com  Ph. 08977726681
--------------------
Gila original
Email: i...@gilaoriginal.com  Ph. (031) 91555898
--------------------

Aturan Jual/Kloteran ID-Android  http://goo.gl/azW7

2. glTexImage2D is too slow,why?

when draw YUV frame use opengl 2.0 and shader on nexus one,but the
function  glTexImage2D is too slow ,cost 40-60 ms
who can fix it ? the key codes:
-------------------------------------------------

int CreateSimpleTexture2D()
        {
                int err, i;
                
        
                
                for (i=0; i<3;i++)
                {
                        glGenTextures(1, &userData.textureId[i]);
                        if (err = glGetError()) {
                        //      NSLog(@"Error: Could not generate texture: %d", 
err);
                        
__android_log_print(ANDROID_LOG_ERROR,"CreateSimpleTexture2D","Error:
Could not generate texture: %d", err);
                                return 0;
                        }
                        
                        glBindTexture(GL_TEXTURE_2D, userData.textureId[i]);
                        if (err = glGetError()) {
                        //      NSLog(@"Error: Could not bind texture: %d", 
err);
                                        
__android_log_print(ANDROID_LOG_ERROR,"CreateSimpleTexture2D","Error:
Could not bind texture: %d", err);
                                return 0;
                        }
                }
                
                glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, 
GL_LINEAR);
                if (err = glGetError()) {
                        //NSLog(@"Error: Could not set texture minimization 
filter: %d", err);
                        
__android_log_print(ANDROID_LOG_ERROR,"CreateSimpleTexture2D","Error:
Could not set texture minimization filter: %d", err);
                        return 0;
                }
                
                glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, 
GL_LINEAR);
                if (err = glGetError()) {
                //      NSLog(@"Error: Could not set texture magnification 
filter: %d", err);
                
__android_log_print(ANDROID_LOG_ERROR,"CreateSimpleTexture2D","Error:
Could not set texture magnification filter: %d", err);
                        return 0;
                }
                
                glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, 
GL_CLAMP_TO_EDGE);
                glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, 
GL_CLAMP_TO_EDGE);
                glGenerateMipmap(GL_TEXTURE_2D);
                return 1;
        }


---------------------------------------render frame
-------------------------------------------------
                glViewport ( 0, 0, g_WindowsWidth, g_WindowsHeight );
                checkGlError("glViewport");
                //glDrawBuffer(GL_COLOR_ATTACHMENT0);
                // Clear the color buffer
                glClear ( GL_COLOR_BUFFER_BIT );
                checkGlError("glClear");
                // Use the program object
                glUseProgram ( userData.programObject );
                checkGlError("glUseProgram");
                // Load the vertex position
                glVertexAttribPointer ( userData.positionLoc, 3, GL_FLOAT,
                                                           GL_FALSE, 5 * 
sizeof(GLfloat), vVertices );
                // Load the texture coordinate
                glVertexAttribPointer ( userData.texCoordLoc, 2, GL_FLOAT,
                                                           GL_FALSE, 5 * 
sizeof(GLfloat), &vVertices[3] );
                
                glEnableVertexAttribArray ( userData.positionLoc );
                glEnableVertexAttribArray ( userData.texCoordLoc );
                
                long long  ttttttt=av_gettime();
                // Bind the texture
                glActiveTexture ( GL_TEXTURE1 );
                glBindTexture ( GL_TEXTURE_2D, userData.textureId[1] );
                glUniform1i ( userData.samplerLocU, 1);
                glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
                glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
                glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, 
GL_CLAMP_TO_EDGE);
                glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, 
GL_CLAMP_TO_EDGE);
                //glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
                //glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
                //glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
                
                //glPixelStorei(GL_UNPACK_ALIGNMENT,1);
                
                glTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE, width/2, height/2, 
0,
GL_LUMINANCE, GL_UNSIGNED_BYTE, pict->data[1]);
                checkGlError("glTexImage2D....pict->data[1]");
                //glTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE, width*0.5,
height*0.5, 0, GL_LUMINANCE, GL_UNSIGNED_BYTE, pict->data[1]);
                
                
                // Bind the texture
                glActiveTexture ( GL_TEXTURE2 );
                glBindTexture ( GL_TEXTURE_2D, userData.textureId[2] );
                glUniform1i ( userData.samplerLocV, 2);
                glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
                glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
                glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, 
GL_CLAMP_TO_EDGE);
                glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, 
GL_CLAMP_TO_EDGE);
                //glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
                //glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
                //glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
                //glPixelStorei(GL_UNPACK_ALIGNMENT,1);

                
                glTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE,width/2, height/2, 
0,
GL_LUMINANCE, GL_UNSIGNED_BYTE, pict->data[2]);
                
                checkGlError("glTexImage2D....pict->data[2]");
                // Set the sampler texture unit to 0
                glActiveTexture ( GL_TEXTURE0 );
                glBindTexture ( GL_TEXTURE_2D, userData.textureId[0] );
                glUniform1i ( userData.samplerLocY, 0);
                glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
                glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
                glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, 
GL_CLAMP_TO_EDGE);
                glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, 
GL_CLAMP_TO_EDGE);
                //glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT);
                //glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_REPEAT);
                //glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE);
                //glPixelStorei(GL_UNPACK_ALIGNMENT,1);

                
                glTexImage2D(GL_TEXTURE_2D, 0, GL_LUMINANCE, width, height, 0,
GL_LUMINANCE, GL_UNSIGNED_BYTE, pict->data[0]);
                
__android_log_print(ANDROID_LOG_ERROR,"GPU","%lld",(av_gettime()-ttttttt)/1000);
                checkGlError("glTexImage2D....pict->data[0]");
                glDrawElements ( GL_TRIANGLES, 6, GL_UNSIGNED_SHORT, indices );

-- 

3. multiple mime type in email

4. Anyone have an alternative to VMRuntime.getExternalBytesAllocated()?

5. Mod: WTI Mirink Springhill bahas next gath id-android

6. Android Screenshots and Screen Capture

7. Problem with Playing sound in my cuckoo clock widget