mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-27 19:49:15 +02:00
Added Android "desktop" integration
This commit is contained in:
26
pkg/android/src/org/gpxsee/gpxsee/Activity.java
Normal file
26
pkg/android/src/org/gpxsee/gpxsee/Activity.java
Normal file
@ -0,0 +1,26 @@
|
||||
package org.gpxsee.gpxsee;
|
||||
|
||||
import android.content.Intent;
|
||||
|
||||
public class Activity extends org.qtproject.qt.android.bindings.QtActivity
|
||||
{
|
||||
@Override
|
||||
public void onNewIntent(Intent intent)
|
||||
{
|
||||
setIntent(intent);
|
||||
}
|
||||
|
||||
public String intentPath()
|
||||
{
|
||||
String path = "";
|
||||
|
||||
Intent intent = getIntent();
|
||||
if (intent != null) {
|
||||
if (intent.getAction() == Intent.ACTION_VIEW)
|
||||
path = intent.getDataString();
|
||||
setIntent(null);
|
||||
}
|
||||
|
||||
return path;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user