Android: How to get a list of all available intent filters?

PackageExplorer lists all intent-filters defined in apps in your device To answer your question: You create the intent-filter(s) you want to be used to cause your activity to be selected when a program is looking for a service or activity. So each Activity in a Package defines it own list of intent-filters. I found it … Read more

Intent action for network events in android sdk

Here’s a working example: <uses-permission android:name=”android.permission.ACCESS_NETWORK_STATE” /> <receiver android:name=”.receiver.ConnectivityReceiver”> <intent-filter> <action android:name=”android.net.conn.CONNECTIVITY_CHANGE” /> </intent-filter> </receiver> . public class ConnectivityReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Log.d(ConnectivityReceiver.class.getSimpleName(), “action: ” + intent.getAction()); } }

“Exported activity does not require permission” when attempting to launch from a URI

I had the same issue when I updated SDK to version 20. I removed it adding android:exported propery: <activity android:name=”.MainActivity” android:exported=”false”> <intent-filter> <action android:name=”android.intent.action.VIEW” /> <data android:scheme=”http” android:host=”example.com” /> </intent-filter> </activity> inside the activity declaration in manifest. Of course you may specify this if the activity is intended only for application-internal use The reason it … Read more

Android action.MAIN and category.LAUNCHER function

From the docs: category — Gives additional information about the action to execute. For example, CATEGORY_LAUNCHER means it should appear in the Launcher as a top-level application, while CATEGORY_ALTERNATIVE means it should be included in a list of alternative actions the user can perform on a piece of data. MAIN means that this activity is … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)