I formed preference using XML, but I don't know how can I open other view using XML tag intent...

by Scent » Thu, 30 Apr 2009 02:05:50 GMT


Sponsored Links
 Hi, all.

I formed preference view using XML codes..
in here, I wonder that how can I show other View at click this item
using <intent> tag.

if not available, could you give me some advice about this...
I want to implement using XML tag


<PreferenceScreen
     android:id="@+id/category_list_preference"
     android:title="@string/title_category_preference"
     android:summary="@string/explain_category_preference">

     <intent
            android:action="android.intent.action.VIEW"
            android:data="android.app.MoneyAgent" />
</PreferenceScreen>

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



Other Threads

1. HELP: A Verizon Droid puzzle.

I am based in Germany and publish the "Last Call Widget" on the
Android Market.  I have been steady improving it over time, but one
group of users still complain about it not working on their devices.

My widget listens for the "android.intent.action.PHONE_STATE" intent,
and then sets an alarm to update the last call UI in 20 seconds, then
60 seconds, then 5 minutes, 1 hour, etc.  This works reliably on all
my test devices, even with aggressive task killers (try it yourself).
Unfortunately I have a cluster of users with Motorola Droids on the
Verizon network who complain that the UI does not automatically
update.

I believe Verizon is a CDMA network (we have GSM here in Europe),
though the Android API docs don't specify any implementation
differences.  This could also be a driver issue on the Motorola Droid
(we have GSM Motorola Milestones in Europe).

I am wondering if anyone reading is in a position to offer any ideas,
or test the widget on a Droid and/or CDMA network to see if they can
reproduce an issue (with logs)?

Regards
Mark

-- 

2. OpenglES issue with Acer liquid.

Hello,

I'm developping a native application for android and I face to
artefacts when rendering the scene.
I can reproduce the issue with Java code.

While the following code running, I got a green screen.
But If I move the status bar up and down over the screen, I see some
red artefacts.

Here a screenshot made with ddms :

http://picasaweb.google.com/lh/photo/42bVsuIt8JldSIbPy8x2AA?feat=directlink

The Acer liquid running Android 1.6.

Can you check on other devices and tell me if you face the same
issue ?

I would like to know if it's an Android issue or an Acer issue.

Here the code :

*** Activity Code ***

package com.cgdev.TestOpenGL;

import android.app.Activity;
import android.opengl.GLSurfaceView;
import android.os.Bundle;

public class TestOpenGL extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        mGLSurfaceView = new GLSurfaceView(this);
        mGLSurfaceView.setRenderer(new MyRenderer());

        setContentView(mGLSurfaceView);

 
mGLSurfaceView.setRenderMode(GLSurfaceView.RENDERMODE_CONTINUOUSLY);
    }

    @Override
    protected void onResume() {
        super.onResume();
        mGLSurfaceView.onResume();
    }

    @Override
    protected void onPause() {
        super.onPause();
        mGLSurfaceView.onPause();
    }

    private GLSurfaceView mGLSurfaceView;

}

*** Renderer code ***

package com.cgdev.TestOpenGL;

import java.nio.ByteBuffer;

import javax.microedition.khronos.egl.EGLConfig;
import javax.microedition.khronos.opengles.GL10;

import android.opengl.GLSurfaceView;

public class MyRenderer implements GLSurfaceView.Renderer {
        public MyRenderer() {

        }

        public void onDrawFrame(GL10 gl) {

                gl.glClearColor(1.0f, 0.0f, 0.0f, 1.0f);
                gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);


                
gl.glReadPixels(1,1,1,1,GL10.GL_RGBA,GL10.GL_UNSIGNED_BYTE,buffer);

                gl.glClearColor(0.0f, 1.0f, 0.0f, 0.0f);
                gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT);
        }

        public void onSurfaceChanged(GL10 gl, int width, int height) {
                gl.glViewport(0, 0, width, height);

        }

        public void onSurfaceCreated(GL10 gl, EGLConfig config) {
        }


        private ByteBuffer buffer = ByteBuffer.allocate(10);
}



-- 

3. world war

4. desire froyo stok ro

5. Could a Galaxy S owner give me a hand and test a free app for me?

6. mp3 files <=0.34 secs not playing on Droid X using MediaPlayer

7. Could a Galaxy S owner give me a hand and test a free app for me?