Manifest file

by senrooy » Thu, 17 Sep 2009 19:01:09 GMT


Sponsored Links
 Hi,

I am new to android. I am using SDK and eclipse with ADT plug-ins for
the first time. I want to know what is the significance of the
AndroidManifest.xml file which is created automatically when we create
an android project. Can we modify this file for any reason?

Thanks n regards,
senrooy
--~--~---------~--~----~------------~-------~--~----~



Manifest file

by Ajaz Ahmed » Thu, 17 Sep 2009 19:07:34 GMT


 Hi,

Yes we can modify, but i think its available to modify.
we can add activities references, user permissions,event receivers.
AndroidMasifest.xml file is same like struts.xml file in struts2.

Regards!
Imtiaz Ali Shah





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


Sponsored Links


Manifest file

by Mark Murphy » Thu, 17 Sep 2009 19:07:53 GMT


 


There is a Web page in the Android documentation that covers this:

 http://developer.android.com/guide/topics/manifest/manifest-intro.html 


You can modify it when you need to. If you are using Eclipse, it may
make some modifications for you, but other changes you may need to make
 yourself.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

_Android Programming Tutorials_ Version 1.0 In Print!

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



Manifest file

by senrooy » Thu, 17 Sep 2009 19:22:11 GMT


 In which cases I can modify this file? I have done some basic android
applications but I didn't modify this file and applications worked
fine. For what reason we should modify this file?





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



Manifest file

by Naveen Krishna Ch » Thu, 17 Sep 2009 19:25:47 GMT


 For the first time when we develop an activity, The eclipse automatically
adds it to
the AndroidManifest.xml. As we want to add more activities or any frame work
components.

We need to add the, we can add permissions, intent filter, etc. also

2009/9/17 senrooy <senjuti....@wipro.com>






-- 
Shine bright,
(: Naveen Krishna Ch :)

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



Other Threads

1. Animating an Weather appwidget present in Homescreen.

Hi all,

I have tried a weather widget and its working fine.
The Weather widget is an app widget and I update
the widget once in 6 hrs similar to the application
on android site using AlarmManager. Now I want
to animate the widget (ImageView) every 100 ms
similar to HTC homescreen.

I dont think AppWidgets will scale well for this case.
How can I implement this widget?

I have seen "Custom Homescreens" in previous
Android SDK's. Should I have modify the Homescreen
widget for doing this or is there any other way.


Thanks,
Ram.

-- 

2. What is the best way to Scan the SD Card for Images?

1. I searched recusively, and loaded all the images but I think this
is an inefficient way of searching on a phone, plus it means one will
load many irrelevant image files like website images.

2. Is it better to just search /sdcard/dcim ?

3. I used the MediaScanner class but it seems to display an icon with
an exclamation mark, why?  I tested the code below in 1.5 and 2.1 and
the result was the same - an icon with an exclamation mark.

Can someone shed some light on this issue?

public class MediaScannerActivity extends Activity implements
                MediaScannerConnectionClient {
        private static final String SCAN_PATH = "/sdcard/";
        private static final String FILE_TYPE = "image/jpeg";
        private MediaScannerConnection conn;

        @Override
        protected void onCreate(Bundle savedInstanceState) {
                super.onCreate(savedInstanceState);
                setContentView(R.layout.scan);
                Button scanBtn = (Button) findViewById(R.id.scanBtn);

                scanBtn.setOnClickListener(new OnClickListener() {
                        @Override
                        public void onClick(View view) {
                                startScan();
                        }
                });
        }

        private void startScan() {
                if (conn != null) {
                        conn.disconnect();
                }
                conn = new MediaScannerConnection(this, this);
                conn.connect();
        }

        @Override
        public void onMediaScannerConnected() {
                conn.scanFile(SCAN_PATH, FILE_TYPE);
        }

        @Override
        public void onScanCompleted(String path, Uri uri) {

                try {
                        if (uri != null) {
                                Intent intent = new Intent(Intent.ACTION_VIEW);
                                intent.setData(uri);
                                startActivity(intent);
                        }

                }
                catch(Exception e){
                                Log.d("ERROR", e.getMessage());
                }
                finally {

                        conn.disconnect();
                        conn = null;
                }
        }
}

-- 

3. New tutorials up - feedback welcome

4. what kind of Android Virtual Device can be used as the emulator for ADP2

5. OpenGL works incorrectly when projection matrix is set to identity?

6. default android animation on activity

7. The Lunar Lander bug