Browse Source

Add intent filters

intent-filter
vanitasvitae 5 years ago
parent
commit
3e09b47632
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
  1. 14
      app/src/main/AndroidManifest.xml
  2. 8
      app/src/main/java/de/trac/spherical/parser/SphereParser.java

14
app/src/main/AndroidManifest.xml

@ -10,11 +10,25 @@
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<!-- Launcher -->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<!-- Spherical images -->
<intent-filter>
<action android:name="android.intent.action.GET_CONTENT" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.OPENABLE" />
<data android:mimeType="application/vnd.google.panorama360+jpg" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.PICK" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="application/vnd.google.panorama360+jpg" />
</intent-filter>
</activity>
</application>

8
app/src/main/java/de/trac/spherical/parser/SphereParser.java

@ -1,24 +1,18 @@
package de.trac.spherical.parser;
import android.util.Log;
import java.io.EOFException;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.PushbackInputStream;
import java.math.BigInteger;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
/**
* Created by vanitas on 12.09.17.
* ParserUtil that does stuff.
*/
@SuppressWarnings("ResultOfMethodCallIgnored")
public class SphereParser {
public static final String TAG = "SphereParser";

Loading…
Cancel
Save