This code is contained inside an activity (UseModes), and this
activity is declared in the manifest, for this reason I don't
understand the exception that is thrown.

Here is the manifest:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android";
        package="android.usemode" android:versionCode="1"
android:versionName="1.0">
        <application android:icon="@drawable/icon" android:label="@string/
app_name">
                <activity android:name=".UseModes" 
android:label="@string/app_name">
                        <intent-filter>
                                <action 
android:name="android.intent.action.MAIN" />
                                <category 
android:name="android.intent.category.LAUNCHER" />
                                </intent-filter>
                </activity>
                <activity android:name=".Ufficioptions" android:label="@string/
app_name">
                        <intent-filter>
                                <action 
android:name="android.intent.action.MENUFFICIO" />
                                <category 
android:name="android.intent.category.DEFAULT" />
                        </intent-filter>
                </activity>
                <activity android:name=".CasaOptions" android:label="@string/
app_name">
                        <intent-filter>
                                <action 
android:name="android.intent.action.MENUCASA" />
                                <category 
android:name="android.intent.category.DEFAULT" />
                        </intent-filter>
                </activity>
                <activity android:name=".AlloffOption" android:label="@string/
app_name">
                        <intent-filter>
                                <action 
android:name="android.intent.action.MENUALLOFF" />
                                <category 
android:name="android.intent.category.DEFAULT" />
                        </intent-filter>
                </activity>
                <activity android:name=".StreetOption" android:label="@string/
app_name">
                        <intent-filter>
                                <action 
android:name="android.intent.action.MENUSTREET" />
                                <category 
android:name="android.intent.category.DEFAULT" />
                        </intent-filter>
                </activity>
        </application>
        <uses-sdk android:minSdkVersion="3" />

        <uses-permission
android:name="android.premission.ACCESS_FINE_LOCATION"></uses-
permission>

        <uses-permission
android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
        <uses-permission
android:name="android.permission.CHANGE_WIFI_STATE"></uses-permission>

        <uses-permission android:name="android.permission.WAKE_LOCK"></uses-
permission>

</manifest>

On Oct 16, 7:50 pm, "tinyang" <tiny...@earthlink.net> wrote:
> Is the activity declared in your manifest?  If you are not sure, post the
> contents of your AndroidManifest for this application.
>
>
>
> -----Original Message-----
> From: android-beginners@googlegroups.com
>
> [mailto:android-beginn...@googlegroups.com] On Behalf Of mist3r0
> Sent: Friday, October 16, 2009 11:00 AM
> To: Android Beginners
> Subject: [android-beginners] Exception Activity Not Found
>
> Hello boys, I need to activate the synchronization, I'm writing this:
>
> try {
>
> Intent syn=new Intent(android.provider.Settings.ACTION_SYNC_SETTINGS);
>
> startActivity(syn);
>
>      } catch(Exception ex) {}
>
> When I running the application and click on the button, I receive this type
> of exception
>
> android.content.ActivityNotFoundException: Unable to find explicit activity
> class {com.android.settings/ com.android.settings.SyncSettings}; have you
> declared this activity in your AndroidManifest.xml?
>
> What is a problem??  Can yuo help me?
>
> No virus found in this incoming message.
> Checked by AVG -http://www.avg.com
> Version: 8.0.169 / Virus Database: 270.13.71/2332 - Release Date: 10/15/2009
> 8:39 PM- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
android-beginners-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to