-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
64 changed files
with
2,695 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,43 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="za.co.ubiquitech.vmovies"> | ||
package="za.co.ubiquitech.vmovies" > | ||
|
||
<!-- Required Permissions --> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:theme="@style/AppTheme"> | ||
android:theme="@style/AppTheme" > | ||
<activity | ||
android:name=".MainActivity" | ||
android:label="@string/app_name"> | ||
android:label="@string/app_name" | ||
android:launchMode="singleTop" | ||
android:noHistory="false"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity | ||
android:name=".MovieDetailActivity" | ||
android:label="Review"> | ||
android:name=".DetailActivity" | ||
android:parentActivityName=".MainActivity" | ||
android:label="Review" | ||
android:launchMode="singleTop" | ||
android:noHistory="false"> | ||
<meta-data | ||
android:name="android.support.PARENT_ACTIVITY" | ||
android:value=".MainActivity" /> | ||
</activity> | ||
|
||
<activity android:name=".util.MoviePreferenceActivity"/> | ||
<activity android:name=".util.MoviePreferenceActivity" /> | ||
<provider | ||
android:authorities="@string/content_authority" | ||
android:name=".database.MoviesProvider" | ||
android:exported="false" | ||
android:syncable="true"/> | ||
</application> | ||
|
||
</manifest> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
app/src/main/java/za/co/ubiquitech/vmovies/DetailActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package za.co.ubiquitech.vmovies; | ||
|
||
import android.os.Bundle; | ||
import android.support.v7.app.AppCompatActivity; | ||
|
||
public class DetailActivity extends AppCompatActivity { | ||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_movie_detail); | ||
if (savedInstanceState == null) { | ||
Bundle arguments = new Bundle(); | ||
arguments.putParcelable(DetailFragment.DETAIL_MOVIE, getIntent().getParcelableExtra(DetailFragment.DETAIL_MOVIE)); | ||
DetailFragment fragment = new DetailFragment(); | ||
fragment.setArguments(arguments); | ||
getSupportFragmentManager().beginTransaction() | ||
.add(R.id.movie_detail_container, fragment) | ||
.commit(); | ||
} | ||
} | ||
} |
Oops, something went wrong.