why i see more than 1 application icons of my installed application

by Mariano Kamp » Fri, 06 Mar 2009 18:54:20 GMT


Sponsored Links
 AFAIK There is one icon per launchable activity.

How many activities do you have? Do more than one of them declare themselves
as launchable like you can see below?

            <intent-filter>
                <action
                    android:name="android.intent.action.MAIN" />
                <category
                    android:name="android.intent.category.LAUNCHER" />
            </intent-filter>






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



Other Threads

1. getting a single xml node

Hi guys I'm newbie to android development and I need some help...

I want to make an app that will use data from an xml database and
there are two points where I need help cause I find java with xml too
complicate...

eg.
<items>
<1><name>box</name><price>2.00</price></1>
<2><name>pencil</name><price>1.00</price></1>
</items>

1)get a single xml value from a child node(eg.name of 1st item -
"box")
2)get an xml database from child nodes (to use it as data source for a
listbox) - this one is not nessesary

Thank you for your time guys...

-- 

2. Save to gallery failure, re-install application fixes problem

My customers report that saving a bitmap to the gallery gives no
error, but the image is not saved.  Reinstalling the application and
rebooting every few saves seems to help.  So perhaps a handle/object
is being left open??  After a good deal of research, we settled on
this code to save an image to the gallery.  Is there a more reliable
method?

Thanks,
ch

static Uri saveImageToSDcard2 (Context context, Resources res, Bitmap
bm, String name, ContentResolver cr)

{
        Uri uri = null;
        try {
                ContentValues newImage = new ContentValues(2);
                newImage.put(Media.DISPLAY_NAME, name);
                newImage.put(Media.MIME_TYPE, "image/png");

                uri = cr.insert(Media.EXTERNAL_CONTENT_URI, newImage);

                OutputStream out = cr.openOutputStream(uri);
                boolean success = bm.compress(Bitmap.CompressFormat.PNG, 100, 
out);
                out.close();
                if (success)
                        savedOrErrorMessage =
res.getString(R.string.Saved);
                else
                        savedOrErrorMessage =
res.getString(R.string.ErrorSavingToGallery);

        } catch (Exception e){
                // Log.d("Image Writer", "Problem with the image. Stacktrace: 
", e);
                savedOrErrorMessage = 
res.getString(R.string.ErrorSavingToGallery);
                uri = null;
        }
        return uri;
}

-- 

3. Id-android @ICS

4. ask : kembali ke jalan yang benar atau dipertahankan?

5. Modifying components on widget from activity

6. Testi pak...@gmai

7. Samsung Galaksi