Skip to content

Commit 2db23f5

Browse files
unknownunknown
unknown
authored and
unknown
committed
first commit
0 parents  commit 2db23f5

30 files changed

+430
-0
lines changed

.classpath

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="src" path="gen"/>
5+
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
6+
<classpathentry kind="lib" path="D:/jars/commons-net-3.0.1-bin/commons-net-3.0.1/commons-net-3.0.1.jar"/>
7+
<classpathentry kind="lib" path="D:/jars/commons-io-2.0.1-bin/commons-io-2.0.1/commons-io-2.0.1.jar"/>
8+
<classpathentry kind="output" path="bin"/>
9+
</classpath>

.project

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>RemoteFix</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.jdt.core.javabuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
<buildCommand>
24+
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
25+
<arguments>
26+
</arguments>
27+
</buildCommand>
28+
</buildSpec>
29+
<natures>
30+
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
31+
<nature>org.eclipse.jdt.core.javanature</nature>
32+
</natures>
33+
</projectDescription>

AndroidManifest.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.sam.remote" android:versionCode="1" android:versionName="1.0">
4+
<uses-sdk android:minSdkVersion="4" />
5+
<uses-permission android:name="android.permission.INTERNET"></uses-permission>
6+
<application android:icon="@drawable/icon" android:label="@string/app_name">
7+
<activity android:name="com.sam.remote.Preferences"
8+
android:label="@string/pref_title" android:configChanges="orientation|keyboardHidden" />
9+
<activity android:name=".activitiMain" android:label="@string/app_name"
10+
android:configChanges="orientation|keyboardHidden">
11+
<intent-filter>
12+
<action android:name="android.intent.action.MAIN" />
13+
<category android:name="android.intent.category.LAUNCHER" />
14+
</intent-filter>
15+
</activity>
16+
17+
</application>
18+
</manifest>

bin/RemoteFix.apk

200 KB
Binary file not shown.

bin/classes.dex

424 KB
Binary file not shown.

bin/com/sam/remote/Preferences.class

1.49 KB
Binary file not shown.

bin/com/sam/remote/R$attr.class

328 Bytes
Binary file not shown.

bin/com/sam/remote/R$drawable.class

452 Bytes
Binary file not shown.

bin/com/sam/remote/R$id.class

438 Bytes
Binary file not shown.

bin/com/sam/remote/R$layout.class

448 Bytes
Binary file not shown.

bin/com/sam/remote/R$string.class

449 Bytes
Binary file not shown.

bin/com/sam/remote/R.class

503 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.

bin/com/sam/remote/activitiMain.class

2.25 KB
Binary file not shown.

bin/resources.ap_

14.8 KB
Binary file not shown.

default.properties

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# This file is automatically generated by Android Tools.
2+
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3+
#
4+
# This file must be checked in Version Control Systems.
5+
#
6+
# To customize properties used by the Ant build system use,
7+
# "build.properties", and override values to adapt the script to your
8+
# project structure.
9+
10+
# Project target.
11+
target=android-4

gen/com/sam/remote/R.java

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/* AUTO-GENERATED FILE. DO NOT MODIFY.
2+
*
3+
* This class was automatically generated by the
4+
* aapt tool from the resource data it found. It
5+
* should not be modified by hand.
6+
*/
7+
8+
package com.sam.remote;
9+
10+
public final class R {
11+
public static final class attr {
12+
}
13+
public static final class drawable {
14+
public static final int icon=0x7f020000;
15+
public static final int refresh4=0x7f020001;
16+
public static final int settings=0x7f020002;
17+
}
18+
public static final class id {
19+
public static final int Spinner01=0x7f050000;
20+
public static final int refresh=0x7f050001;
21+
public static final int settings=0x7f050002;
22+
}
23+
public static final class layout {
24+
public static final int main=0x7f030000;
25+
public static final int mainmenu=0x7f030001;
26+
public static final int preference=0x7f030002;
27+
}
28+
public static final class string {
29+
public static final int app_name=0x7f040001;
30+
public static final int hello=0x7f040000;
31+
public static final int pref_title=0x7f040002;
32+
}
33+
}

proguard.cfg

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
-optimizationpasses 5
2+
-dontusemixedcaseclassnames
3+
-dontskipnonpubliclibraryclasses
4+
-dontpreverify
5+
-verbose
6+
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
7+
8+
-keep public class * extends android.app.Activity
9+
-keep public class * extends android.app.Application
10+
-keep public class * extends android.app.Service
11+
-keep public class * extends android.content.BroadcastReceiver
12+
-keep public class * extends android.content.ContentProvider
13+
-keep public class * extends android.app.backup.BackupAgentHelper
14+
-keep public class * extends android.preference.Preference
15+
-keep public class com.android.vending.licensing.ILicensingService
16+
17+
-keepclasseswithmembernames class * {
18+
native <methods>;
19+
}
20+
21+
-keepclasseswithmembernames class * {
22+
public <init>(android.content.Context, android.util.AttributeSet);
23+
}
24+
25+
-keepclasseswithmembernames class * {
26+
public <init>(android.content.Context, android.util.AttributeSet, int);
27+
}
28+
29+
-keepclassmembers enum * {
30+
public static **[] values();
31+
public static ** valueOf(java.lang.String);
32+
}
33+
34+
-keep class * implements android.os.Parcelable {
35+
public static final android.os.Parcelable$Creator *;
36+
}

res/drawable-hdpi/icon.png

4.05 KB
Loading

res/drawable-ldpi/icon.png

1.68 KB
Loading

res/drawable-mdpi/icon.png

2.51 KB
Loading

res/drawable/refresh4.png

462 Bytes
Loading

res/drawable/settings.png

2.47 KB
Loading

res/layout/main.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:orientation="vertical"
4+
android:layout_width="fill_parent"
5+
android:layout_height="fill_parent"
6+
>
7+
<TextView
8+
android:layout_width="fill_parent"
9+
android:layout_height="wrap_content"
10+
android:text="@string/hello"
11+
/>
12+
<Spinner android:id="@+id/Spinner01"
13+
android:layout_width="wrap_content"
14+
android:layout_height="wrap_content" />
15+
</LinearLayout>

res/layout/mainmenu.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<menu xmlns:android="http://schemas.android.com/apk/res/android">
3+
<item android:id="@+id/refresh"
4+
android:title="Refresh"
5+
android:icon="@drawable/refresh4"
6+
/>
7+
<item android:id="@+id/settings"
8+
android:title="Settings"
9+
android:icon="@drawable/settings"
10+
/>
11+
</menu>

res/layout/preference.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
3+
<PreferenceCategory android:title="Login Settings">
4+
<EditTextPreference android:key="uname"
5+
android:title="Username" android:summary="FTP login username" />
6+
<EditTextPreference android:key="pass"
7+
android:title="Password" android:summary="FTP access password" />
8+
</PreferenceCategory>
9+
<PreferenceCategory android:title="User Settings">
10+
<EditTextPreference android:key="etServer"
11+
android:title="Server IP" android:summary="Provide IP address of the hosting server" />
12+
<EditTextPreference android:key="port"
13+
android:title="Port" android:defaultValue="21" android:summary="FTP access port" />
14+
<EditTextPreference android:key="path"
15+
android:title="File path" android:defaultValue=""
16+
android:summary="Enter the log file default directory path." />
17+
<EditTextPreference android:key="logfname"
18+
android:title="Log file" android:defaultValue="error_log"
19+
android:summary="Log file name to be accessed" />
20+
</PreferenceCategory>
21+
</PreferenceScreen>

res/values/strings.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<string name="hello">Hello World, activitiMain!</string>
4+
<string name="app_name">Access Remote Server Logs</string>
5+
<string name="pref_title">Preferences</string>
6+
</resources>

src/com/sam/remote/Preferences.java

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
package com.sam.remote;
2+
3+
4+
import android.content.Intent;
5+
import android.content.SharedPreferences;
6+
import android.content.SharedPreferences.OnSharedPreferenceChangeListener;
7+
import android.os.Bundle;
8+
import android.preference.CheckBoxPreference;
9+
import android.preference.Preference;
10+
import android.preference.PreferenceActivity;
11+
import android.preference.Preference.OnPreferenceClickListener;
12+
13+
public class Preferences extends PreferenceActivity implements OnSharedPreferenceChangeListener{
14+
@Override
15+
protected void onCreate(Bundle savedInstanceState) {
16+
super.onCreate(savedInstanceState);
17+
addPreferencesFromResource(R.layout.preference);
18+
// Get the custom preference
19+
/*Preference customPref = (Preference) findPreference("customPref");
20+
customPref.setOnPreferenceClickListener(new OnPreferenceClickListener() {
21+
public boolean onPreferenceClick(Preference preference) {
22+
startActivityForResult(new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS),0);
23+
return true;
24+
}
25+
});*/
26+
}
27+
@Override
28+
public void onSharedPreferenceChanged(SharedPreferences arg0, String arg1) {
29+
// TODO Auto-generated method stub
30+
31+
}
32+
@Override
33+
protected void onPause() {
34+
super.onPause();
35+
// Unregister the listener whenever a key changes
36+
getPreferenceScreen().getSharedPreferences()
37+
.unregisterOnSharedPreferenceChangeListener(this);
38+
}
39+
@Override
40+
protected void onResume() {
41+
super.onResume();
42+
// Set up a listener whenever a key changes
43+
getPreferenceScreen().getSharedPreferences().registerOnSharedPreferenceChangeListener(this);
44+
/* CheckBoxPreference mGPS = (CheckBoxPreference)getPreferenceScreen().findPreference("checkboxPref");
45+
if (mGPS.isChecked()) {
46+
findPreference("customPref").setEnabled(true);
47+
}else{
48+
findPreference("customPref").setEnabled(false);
49+
}*/
50+
}
51+
}

0 commit comments

Comments
 (0)