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. Get Latitude/Longitude informations of an image

Hi,

I'm trying to retrieve Latitude/Longitude informations of an image,
but I always get 0.0 for lat/lon.
But I know the image has this information inside, because I tried it
with exiftools. When I use exiftools I can see the lat/lon values.

My Source:
startActivity:
   Intent intent = new Intent(Intent.ACTION_PICK);
   intent.setType("image/*");
   startActivityForResult(intent, 1);

and onActivtiyResult
                Uri photoUri = data.getData();
                ContentResolver cr = getContentResolver();
                Cursor cursor = cr.query(photoUri, new String[] {
                                MediaStore.Images.ImageColumns.DATA,
                                MediaStore.Images.ImageColumns.LATITUDE,
                                MediaStore.Images.ImageColumns.LONGITUDE }, 
null, null, null);
                cursor.moveToFirst();

                int fnamecol = cursor.getColumnIndexOrThrow
(Images.ImageColumns.DATA);
                int latcol = cursor.getColumnIndexOrThrow
(Images.ImageColumns.LATITUDE);
                int loncol = cursor
                                
.getColumnIndexOrThrow(Images.ImageColumns.LONGITUDE);

                String fname = cursor.getString(fnamecol);
                Float lat = cursor.getFloat(latcol);
                Float lon = cursor.getFloat(loncol);

This should work, because I get the filename,  or is this a total
wrong approach?

Regards Georg




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

2. Hello World Tutorial Error Message

I receive the following error on screen 2 of the Hello World Tutorial:
"Error: Error loading the SDK"
I am running Eclipse version 3.4-2 Build Id: M200-0211-1700
I have installed the ADT plugin
I am running Windows Vista

The screen I get is also different from the screen shown in the
tutorial

Thanks for your help

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

3. Handling key events in a paused Activity

4. Petitions to Google Android Team

5. use long field in sqlite

6. Camera Puzzle - play a different puzzle every time from camera

7. Chess With Devices - play chess across 2 devices