Skip to content Skip to sidebar Skip to footer

Avd Tool / App To Monitor Or Debug Intent Calls

Before I start to write one I'm looking for an existing App I can push to an AVD image that will act as a dummy / default receiver for as many of the common mime types as possible.

Solution 1:

As a stopgap and per my comment above I created a dummy receiver app, based on the tutorialspoint.com example, that would simply display the pased URI.

@OverrideprotectedvoidonCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_custom);

    TextViewlabel= (TextView) findViewById(R.id.show_data);

    Uriurl= getIntent().getData();
    label.setText(url.toString());
}

Simply expanded the set of filters in the manifest, to cover most scenarios:

<activityandroid:name=".CustomActivity"android:label="@string/title_activity_custom" ><intent-filter><actionandroid:name="com.example.intentdemo.LAUNCH" /><actionandroid:name="android.intent.action.SEND" /><actionandroid:name="android.intent.action.VIEW" /><actionandroid:name="android.intent.action.EDIT" /><categoryandroid:name="android.intent.category.DEFAULT" /><dataandroid:scheme="http" /><dataandroid:scheme="https" /><dataandroid:scheme="ftp" /><dataandroid:scheme="fax" /><dataandroid:scheme="tel" /><dataandroid:scheme="tv" /><dataandroid:scheme="telnet" /><dataandroid:scheme="file" /><dataandroid:scheme="data" /><dataandroid:scheme="im" /><dataandroid:scheme="irc" /><dataandroid:scheme="gtalk" /><dataandroid:scheme="info" /><dataandroid:scheme="ldap" /><dataandroid:scheme="imap" /><dataandroid:scheme="mailto" /><dataandroid:scheme="pop" /><dataandroid:scheme="skype" /><dataandroid:scheme="spotify" /><dataandroid:scheme="ssh" /><dataandroid:scheme="smb" /><dataandroid:scheme="nfs" /><dataandroid:scheme="steam" /></intent-filter></activity>

Post a Comment for "Avd Tool / App To Monitor Or Debug Intent Calls"