Adds app name to open with dialog

This commit is contained in:
2xlink 2020-09-02 07:17:32 +02:00 committed by lgehr
parent 56a420bb7a
commit 5ab4301aca
2 changed files with 2 additions and 4 deletions

View file

@ -30,15 +30,13 @@
<meta-data <meta-data
android:name="android.support.PARENT_ACTIVITY" android:name="android.support.PARENT_ACTIVITY"
android:value=".MainActivity" /> android:value=".MainActivity" />
<intent-filter android:label=""> <intent-filter android:label="@string/action_open_with">
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" /> <category android:name="android.intent.category.BROWSABLE" />
<!-- Accepts URIs that begin with "http://www.example.com/gizmos” -->
<data android:scheme="http" <data android:scheme="http"
android:host="nxtb.it" android:host="nxtb.it"
android:pathPrefix="/" /> android:pathPrefix="/" />
<!-- note that the leading "/" is required for pathPrefix-->
</intent-filter> </intent-filter>
</activity> </activity>
<activity android:name=".ReturnActivity" <activity android:name=".ReturnActivity"

View file

@ -33,7 +33,7 @@ public class RentActivity extends AppCompatActivity implements AsyncTaskCallback
if (data != null) { if (data != null) {
String bikeID = data.toString().substring(15); String bikeID = data.toString().substring(15);
((TextView) findViewById(R.id.bike_id)).setText(bikeID); ((TextView) findViewById(R.id.bike_id)).setText(bikeID);
rentRequest(); // rentRequest();
} }
} }