Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Orekit
Stavor
Commits
01970125
Commit
01970125
authored
Dec 15, 2014
by
xgibert
Browse files
For Windows
parent
41d3b6fa
Changes
7
Hide whitespace changes
Inline
Side-by-side
AndroidManifest.xml
View file @
01970125
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"cs.si.stavor"
android:versionCode=
"1260"
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"cs.si.stavor"
android:versionCode=
"1260"
android:versionName=
"1.2.6"
android:installLocation=
"auto"
>
<!-- VersionCode: [3]version+[1]architecture e.g 1.0.2arm is 1020, 1.1.3x86 is 1131 -->
...
...
@@ -9,28 +9,28 @@
<uses-permission
android:name=
"android.permission.READ_EXTERNAL_STORAGE"
/>
<uses-permission
android:name=
"android.permission.INTERNET"
/>
<uses-permission
android:name=
"android.permission.ACCESS_WIFI_STATE"
/>
<uses-permission
android:name=
"android.permission.ACCESS_NETWORK_STATE"
/>
<uses-sdk
android:minSdkVersion=
"14"
android:targetSdkVersion=
"1
9
"
/>
<uses-permission
android:name=
"android.permission.ACCESS_NETWORK_STATE"
/>
<uses-sdk
android:minSdkVersion=
"14"
android:targetSdkVersion=
"
2
1"
/>
<application
android:name=
"cs.si.stavor.StavorApplication"
android:hardwareAccelerated=
"true"
android:hardwareAccelerated=
"true"
android:allowBackup=
"true"
android:largeHeap=
"true"
android:icon=
"@drawable/ic_launcher"
android:largeHeap=
"true"
android:icon=
"@drawable/ic_launcher"
android:label=
"@string/app_name"
android:theme=
"@style/splashScreenTheme"
>
<activity
android:name=
"cs.si.stavor.MainActivity"
android:theme=
"@style/splashScreenTheme"
>
<activity
android:name=
"cs.si.stavor.MainActivity"
android:label=
"@string/app_name"
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
>
<intent-filter>
<action
android:name=
"android.intent.action.MAIN"
/>
<category
android:name=
"android.intent.category.LAUNCHER"
/>
</intent-filter>
</activity>
<activity
android:name=
"cs.si.stavor.AboutActivity"
...
...
@@ -44,6 +44,6 @@
android:theme=
"@style/nonSplashScreenTheme"
android:windowSoftInputMode=
"adjustPan"
>
</activity>
</application>
</manifest>
</activity>
</application>
</manifest>
project.properties
View file @
01970125
...
...
@@ -11,6 +11,6 @@
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
# Project target.
target
=
android-1
9
android.library.reference.1
=
..
/
android-support-v7-appcompat
android.library.reference.2
=
../crosswalk-webview-10.39.235.
7
-arm
target
=
android-
2
1
android.library.reference.1
=
..
\\
android-support-v7-appcompat
android.library.reference.2
=
../crosswalk-webview-10.39.235.
12
-arm
res/values-v14/styles.xml
View file @
01970125
<resources>
<!--
<resources>
<!--
Base application theme for API 14+. This theme completely replaces
AppBaseTheme from BOTH res/values/styles.xml and
res/values-v11/styles.xml on API 14+ devices.
-->
<style
name=
"AppBaseTheme"
parent=
"Theme.AppCompat"
>
<!-- API 14 theme customizations can go here. -->
<item
name=
"android:actionBarStyle"
>
@style/MyActionBar
</item>
</style>
<style
name=
"MyActionBar"
parent=
"Widget.AppCompat.Base.ActionBar"
>
<item
name=
"android:background"
>
@color/grey5
</item>
</style>
<style
name=
"HDivider"
>
<item
name=
"android:layout_width"
>
match_parent
</item>
<item
name=
"android:layout_height"
>
1dp
</item>
<item
name=
"android:background"
>
@color/grey3
</item>
</style>
<style
name=
"VDivider"
>
<item
name=
"android:layout_height"
>
match_parent
</item>
<item
name=
"android:layout_width"
>
1dp
</item>
<item
name=
"android:layout_marginRight"
>
2dp
</item>
<item
name=
"android:background"
>
@color/grey3
</item>
</style>
<style
name=
"VDividerAbout"
>
<item
name=
"android:layout_height"
>
match_parent
</item>
<item
name=
"android:layout_width"
>
1sp
</item>
<item
name=
"android:background"
>
@color/grey5
</item>
<item
name=
"android:layout_marginRight"
>
1dp
</item>
</style>
</resources>
res/values-v11/styles.xml on API 14+ devices.
-->
<!-- API 14 theme customizations can go here. -->
<!-- <style name="AppBaseTheme" parent="Theme.AppCompat">
<item name="android:actionBarStyle">@style/MyActionBar</item>
</style>
<style name="MyActionBar" parent="Widget.AppCompat.Base.ActionBar">
<item name="android:background">@color/grey5</item>
</style> -->
<style
name=
"HDivider"
>
<item
name=
"android:layout_width"
>
match_parent
</item>
<item
name=
"android:layout_height"
>
1dp
</item>
<item
name=
"android:background"
>
@color/grey3
</item>
</style>
<style
name=
"VDivider"
>
<item
name=
"android:layout_height"
>
match_parent
</item>
<item
name=
"android:layout_width"
>
1dp
</item>
<item
name=
"android:layout_marginRight"
>
2dp
</item>
<item
name=
"android:background"
>
@color/grey3
</item>
</style>
<style
name=
"VDividerAbout"
>
<item
name=
"android:layout_height"
>
match_parent
</item>
<item
name=
"android:layout_width"
>
1sp
</item>
<item
name=
"android:background"
>
@color/grey5
</item>
<item
name=
"android:layout_marginRight"
>
1dp
</item>
</style>
</resources>
src/unused/SquareLayout.java
deleted
100644 → 0
View file @
41d3b6fa
package
unused
;
import
android.content.Context
;
import
android.util.AttributeSet
;
import
android.widget.LinearLayout
;
public
class
SquareLayout
extends
LinearLayout
{
public
SquareLayout
(
Context
context
,
AttributeSet
attrs
,
int
defStyle
)
{
super
(
context
,
attrs
,
defStyle
);
// TODO Auto-generated constructor stub
}
public
SquareLayout
(
Context
context
)
{
super
(
context
);
// TODO Auto-generated constructor stub
}
public
SquareLayout
(
Context
context
,
AttributeSet
attrs
)
{
super
(
context
,
attrs
);
// TODO Auto-generated constructor stub
}
@Override
protected
void
onMeasure
(
int
widthMeasureSpec
,
int
heightMeasureSpec
)
{
int
widthMode
=
MeasureSpec
.
getMode
(
widthMeasureSpec
);
int
widthSize
=
MeasureSpec
.
getSize
(
widthMeasureSpec
);
int
heightMode
=
MeasureSpec
.
getMode
(
heightMeasureSpec
);
int
heightSize
=
MeasureSpec
.
getSize
(
heightMeasureSpec
);
int
size
;
if
(
widthMode
==
MeasureSpec
.
EXACTLY
&&
widthSize
>
0
){
size
=
widthSize
;
}
else
if
(
heightMode
==
MeasureSpec
.
EXACTLY
&&
heightSize
>
0
){
size
=
heightSize
;
}
else
{
size
=
widthSize
<
heightSize
?
widthSize
:
heightSize
;
}
int
finalMeasureSpec
=
MeasureSpec
.
makeMeasureSpec
(
size
,
MeasureSpec
.
EXACTLY
);
super
.
onMeasure
(
finalMeasureSpec
,
finalMeasureSpec
);
}
}
src/unused/UAChrome.java
deleted
100644 → 0
View file @
41d3b6fa
package
unused
;
import
android.content.Context
;
import
android.webkit.WebChromeClient
;
public
class
UAChrome
extends
WebChromeClient
{
@SuppressWarnings
(
"unused"
)
private
Context
context
;
public
UAChrome
(
Context
context
)
{
super
();
this
.
context
=
context
;
}
}
src/unused/UAJscriptHandler.java
deleted
100644 → 0
View file @
41d3b6fa
package
unused
;
import
cs.si.stavor.StavorApplication
;
import
android.content.Intent
;
import
android.content.Context
;
import
android.net.Uri
;
import
android.widget.Toast
;
public
class
UAJscriptHandler
{
//private String tag = "UAJscriptHandler";
private
Context
context
=
null
;
public
UAJscriptHandler
(
Context
context
)
{
//Log.i(tag,"script handler created");
this
.
context
=
context
;
}
public
void
Log
(
String
s
)
{
//Log.i(tag,s);
}
public
void
Info
(
String
s
)
{
Toast
.
makeText
(
context
,
s
,
Toast
.
LENGTH_LONG
).
show
();
}
public
void
PlaceCall
(
String
number
)
{
//Log.i(tag,"Placing a phone call to [" + number + "]");
String
url
=
"tel:"
+
number
;
Intent
callIntent
=
new
Intent
(
Intent
.
ACTION_DIAL
,
Uri
.
parse
(
url
));
context
.
startActivity
(
callIntent
);
}
public
void
SetSearchTerm
(
String
searchTerm
)
{
StavorApplication
app
=
(
StavorApplication
)
context
.
getApplicationContext
();
app
.
setSearchTerm
(
searchTerm
);
}
}
src/unused/UAWebViewClient.java
deleted
100644 → 0
View file @
41d3b6fa
package
unused
;
import
android.content.Context
;
import
android.webkit.*
;
public
class
UAWebViewClient
extends
WebViewClient
{
@SuppressWarnings
(
"unused"
)
private
Context
context
;
public
UAWebViewClient
(
Context
context
)
{
super
();
this
.
context
=
context
;
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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