Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Danang Afnan Hudaya
13512056-Android-2.3
Commits
bfaf16bc
Commit
bfaf16bc
authored
Sep 03, 2017
by
Danang Afnan Hudaya
Browse files
task completed
parent
402caf0e
Changes
40
Hide whitespace changes
Inline
Side-by-side
.gitignore
→
ImplicitIntentsReceiver/
.gitignore
View file @
bfaf16bc
File moved
.idea/compiler.xml
→
ImplicitIntentsReceiver/
.idea/compiler.xml
View file @
bfaf16bc
File moved
.idea/copyright/profiles_settings.xml
→
ImplicitIntentsReceiver/
.idea/copyright/profiles_settings.xml
View file @
bfaf16bc
File moved
.idea/gradle.xml
→
ImplicitIntentsReceiver/
.idea/gradle.xml
View file @
bfaf16bc
File moved
.idea/misc.xml
→
ImplicitIntentsReceiver/
.idea/misc.xml
View file @
bfaf16bc
File moved
.idea/modules.xml
→
ImplicitIntentsReceiver/
.idea/modules.xml
View file @
bfaf16bc
...
...
@@ -2,7 +2,7 @@
<project
version=
"4"
>
<component
name=
"ProjectModuleManager"
>
<modules>
<module
fileurl=
"file://$PROJECT_DIR$/Impl
s
itIntents.iml"
filepath=
"$PROJECT_DIR$/Impl
s
itIntents.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/Impl
ic
itIntents
Receiver
.iml"
filepath=
"$PROJECT_DIR$/Impl
ic
itIntents
Receiver
.iml"
/>
<module
fileurl=
"file://$PROJECT_DIR$/app/app.iml"
filepath=
"$PROJECT_DIR$/app/app.iml"
/>
</modules>
</component>
...
...
.idea/runConfigurations.xml
→
ImplicitIntentsReceiver/
.idea/runConfigurations.xml
View file @
bfaf16bc
File moved
app/.gitignore
→
ImplicitIntentsReceiver/
app/.gitignore
View file @
bfaf16bc
File moved
app/build.gradle
→
ImplicitIntentsReceiver/
app/build.gradle
View file @
bfaf16bc
...
...
@@ -4,7 +4,7 @@ android {
compileSdkVersion
25
buildToolsVersion
"25.0.3"
defaultConfig
{
applicationId
"com.example.asus.impl
s
itintents"
applicationId
"com.example.asus.impl
ic
itintents
receiver
"
minSdkVersion
22
targetSdkVersion
25
versionCode
1
...
...
app/proguard-rules.pro
→
ImplicitIntentsReceiver/
app/proguard-rules.pro
View file @
bfaf16bc
File moved
app/src/androidTest/java/com/example/asus/impl
s
itintents/ExampleInstrumentedTest.java
→
ImplicitIntentsReceiver/
app/src/androidTest/java/com/example/asus/impl
ic
itintents
receiver
/ExampleInstrumentedTest.java
View file @
bfaf16bc
package
com.example.asus.impl
s
itintents
;
package
com.example.asus.impl
ic
itintents
receiver
;
import
android.content.Context
;
import
android.support.test.InstrumentationRegistry
;
...
...
@@ -21,6 +21,6 @@ public class ExampleInstrumentedTest {
// Context of the app under test.
Context
appContext
=
InstrumentationRegistry
.
getTargetContext
();
assertEquals
(
"com.example.asus.impl
s
itintents"
,
appContext
.
getPackageName
());
assertEquals
(
"com.example.asus.impl
ic
itintents
receiver
"
,
appContext
.
getPackageName
());
}
}
app/src/main/AndroidManifest.xml
→
ImplicitIntentsReceiver/
app/src/main/AndroidManifest.xml
View file @
bfaf16bc
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"com.example.asus.impl
s
itintents"
>
package=
"com.example.asus.impl
ic
itintents
receiver
"
>
<application
android:allowBackup=
"true"
...
...
@@ -15,6 +15,13 @@
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
<intent-filter>
<action
android:name=
"android.intent.action.VIEW"
/>
<category
android:name=
"android.intent.category.DEFAULT"
/>
<category
android:name=
"android.intent.category.BROWSABLE"
/>
<data
android:scheme=
"http"
android:host=
"developer.android.com"
/>
</intent-filter>
</activity>
</application>
...
...
ImplicitIntentsReceiver/app/src/main/java/com/example/asus/implicitintentsreceiver/MainActivity.java
0 → 100644
View file @
bfaf16bc
package
com.example.asus.implicitintentsreceiver
;
import
android.content.Intent
;
import
android.net.Uri
;
import
android.support.v7.app.AppCompatActivity
;
import
android.os.Bundle
;
import
android.widget.TextView
;
public
class
MainActivity
extends
AppCompatActivity
{
@Override
protected
void
onCreate
(
Bundle
savedInstanceState
)
{
super
.
onCreate
(
savedInstanceState
);
setContentView
(
R
.
layout
.
activity_main
);
Intent
intent
=
getIntent
();
Uri
uri
=
intent
.
getData
();
if
(
uri
!=
null
)
{
String
uri_string
=
"URI: "
+
uri
.
toString
();
TextView
textView
=
(
TextView
)
findViewById
(
R
.
id
.
text_uri_message
);
textView
.
setText
(
uri_string
);
}
}
}
ImplicitIntentsReceiver/app/src/main/res/layout/activity_main.xml
0 → 100644
View file @
bfaf16bc
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:app=
"http://schemas.android.com/apk/res-auto"
xmlns:tools=
"http://schemas.android.com/tools"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
"com.example.asus.implicitintentsreceiver.MainActivity"
>
<TextView
android:id=
"@+id/text_uri_message"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textSize=
"18sp"
android:textStyle=
"bold"
/>
</android.support.constraint.ConstraintLayout>
app/src/main/res/mipmap-hdpi/ic_launcher.png
→
ImplicitIntentsReceiver/
app/src/main/res/mipmap-hdpi/ic_launcher.png
View file @
bfaf16bc
File moved
app/src/main/res/mipmap-hdpi/ic_launcher_round.png
→
ImplicitIntentsReceiver/
app/src/main/res/mipmap-hdpi/ic_launcher_round.png
View file @
bfaf16bc
File moved
app/src/main/res/mipmap-mdpi/ic_launcher.png
→
ImplicitIntentsReceiver/
app/src/main/res/mipmap-mdpi/ic_launcher.png
View file @
bfaf16bc
File moved
app/src/main/res/mipmap-mdpi/ic_launcher_round.png
→
ImplicitIntentsReceiver/
app/src/main/res/mipmap-mdpi/ic_launcher_round.png
View file @
bfaf16bc
File moved
app/src/main/res/mipmap-xhdpi/ic_launcher.png
→
ImplicitIntentsReceiver/
app/src/main/res/mipmap-xhdpi/ic_launcher.png
View file @
bfaf16bc
File moved
app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
→
ImplicitIntentsReceiver/
app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
View file @
bfaf16bc
File moved
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment