Skip to content

Commit

Permalink
add about view and assets html
Browse files Browse the repository at this point in the history
  • Loading branch information
n8fr8 committed Apr 23, 2014
1 parent c1f3039 commit c351d12
Show file tree
Hide file tree
Showing 7 changed files with 120 additions and 1 deletion.
4 changes: 3 additions & 1 deletion AndroidManifest.xml
Expand Up @@ -37,7 +37,9 @@
android:name="com.example.spidey.DatabaseActivity"
android:label="@string/app_name" >
</activity>

<activity
android:name="com.example.spidey.AboutActivity" >
</activity>
<service android:name="ScanService" >
</service>

Expand Down
75 changes: 75 additions & 0 deletions assets/spidey.html
@@ -0,0 +1,75 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
<TITLE></TITLE>
<meta name="viewport" content="initial-scale=1.0, width=device-width" />

<STYLE TYPE="text/css">
<!--
@page { size: 8.5in 11in; margin-left: 1.25in; margin-right: 1.25in; margin-top: 1in; margin-bottom: 1in }
P { margin-bottom: 0.08in; direction: ltr; color: #000000; widows: 2; orphans: 2 }
-->
</STYLE>
</HEAD>
<BODY LANG="en-US" TEXT="#000000" DIR="LTR">
<P STYLE="margin-bottom: 0in; line-height: 150%"><A NAME="OLE_LINK1"></A><A NAME="Bookmark"></A>
<FONT COLOR="#595959"><FONT FACE="Gotham-Book, serif"><FONT SIZE=3 STYLE="font-size: 12pt"><B>WHAT
IS SPIDEY?</B></FONT></FONT></FONT></P>
<P STYLE="margin-bottom: 0in; line-height: 150%"><A NAME="OLE_LINK2"></A>
<FONT COLOR="#7f7f7f"><FONT FACE="Gotham-Book, serif"><FONT SIZE=3 STYLE="font-size: 11pt">SPIDEY
is an app that helps you identify whether someone is attempting to
monitor your cell phone location or activity. The app detects fake
cell phone towers (called IMSI-catchers) and informs you if there’s
a potential threat to your cell phone privacy. IMSI-catchers mimic
real cell phone towers, acting as a middleman between mobile phones
and cell companies, allowing adversaries to receive potentially
private information from you mobile phone and to identify you and
your location. While the app doesn’t provide a method for stopping
this surveillance activity, it alerts you to potential anomalies in
your cell networks, and gives you practical tips about what to do if
you think someone is trying to spy on your phone.</FONT></FONT></FONT></P>
<P STYLE="margin-bottom: 0in; line-height: 150%"><BR>
</P>
<P STYLE="margin-bottom: 0in; line-height: 150%"><A NAME="OLE_LINK3"></A>
<FONT COLOR="#595959"><FONT FACE="Gotham-Book, serif"><FONT SIZE=3 STYLE="font-size: 12pt"><B>WHO
USES IMSI-CATCHERS?</B></FONT></FONT></FONT></P>
<P STYLE="margin-bottom: 0in; line-height: 150%"><FONT COLOR="#7f7f7f"><FONT FACE="Gotham-Book, serif"><FONT SIZE=3 STYLE="font-size: 11pt">Both
law enforcement agencies and criminals use IMSI-catchers. The FBI or
local police might deploy the device at a protest to obtain a record
of everyone who attended with a cell phone. Identity thieves might
sit with an IMSI-catcher in a parked car in a residential
neighborhood, stealing passwords or credit card information from
people nearby who make purchases on their phones. There are powerful,
expensive IMSI-catchers in use at federal agencies and some police
departments. At the same time, people with the right technical skills
can build smaller devices for just a few thousand dollars. </FONT></FONT></FONT>
</P>
<P STYLE="margin-bottom: 0in; line-height: 150%"><BR>
</P>
<P STYLE="margin-bottom: 0in; line-height: 150%"><FONT COLOR="#595959"><FONT FACE="Gotham-Book, serif"><FONT SIZE=3 STYLE="font-size: 12pt"><B>WHY
BE CONCERNED?</B></FONT></FONT></FONT></P>
<P STYLE="margin-bottom: 0in; line-height: 150%"><FONT COLOR="#7f7f7f"><FONT FACE="Gotham-Book, serif"><FONT SIZE=3 STYLE="font-size: 11pt">IMSI-Catchers
can allow adversaries to intercept your conversations, text messages,
and data. Police can also use them to determine your location, or to
find out who is in a given geographic area at what time. All of this
surveillance happens in secret. Unless you use Spidey, there’s no
way to tell whether your cell phone is connecting to a regular cell
phone tower or to a tricky IMSI-catcher device. Protect your private
data and start scanning your area.</FONT></FONT></FONT></P>
<P STYLE="margin-bottom: 0in; line-height: 150%"><BR>
</P>
<P STYLE="margin-bottom: 0in; line-height: 150%"><FONT COLOR="#595959"><FONT FACE="Gotham-Book, serif"><FONT SIZE=3 STYLE="font-size: 12pt"><B>KEY
FEATURES</B></FONT></FONT></FONT></P>
<P STYLE="margin-bottom: 0in; line-height: 150%"><FONT COLOR="#7f7f7f"><FONT FACE="Gotham-Book, serif"><FONT SIZE=3 STYLE="font-size: 11pt">[</FONT></FONT></FONT><FONT COLOR="#7f7f7f"><FONT FACE="Times New Roman, serif"><FONT SIZE=3 STYLE="font-size: 11pt"></FONT></FONT></FONT><FONT COLOR="#7f7f7f"><FONT FACE="Gotham-Book, serif"><FONT SIZE=3 STYLE="font-size: 11pt">]
Detect active cell towers in area, and keep track of changes</FONT></FONT></FONT></P>
<P STYLE="margin-bottom: 0in; line-height: 150%"><FONT COLOR="#7f7f7f"><FONT FACE="Gotham-Book, serif"><FONT SIZE=3 STYLE="font-size: 11pt">[</FONT></FONT></FONT><FONT COLOR="#7f7f7f"><FONT FACE="Times New Roman, serif"><FONT SIZE=3 STYLE="font-size: 11pt"></FONT></FONT></FONT><FONT COLOR="#7f7f7f"><FONT FACE="Gotham-Book, serif"><FONT SIZE=3 STYLE="font-size: 11pt">]
Receive live updates for changes in tower number and location</FONT></FONT></FONT></P>
<P STYLE="margin-bottom: 0in; line-height: 150%"><FONT COLOR="#7f7f7f"><FONT FACE="Gotham-Book, serif"><FONT SIZE=3 STYLE="font-size: 11pt">[</FONT></FONT></FONT><FONT COLOR="#7f7f7f"><FONT FACE="Times New Roman, serif"><FONT SIZE=3 STYLE="font-size: 11pt"></FONT></FONT></FONT><FONT COLOR="#7f7f7f"><FONT FACE="Gotham-Book, serif"><FONT SIZE=3 STYLE="font-size: 11pt">]
Steps for what to do if an anomaly is detected</FONT></FONT></FONT></P>
<P STYLE="margin-bottom: 0in; line-height: 150%"><FONT COLOR="#7f7f7f"><FONT FACE="Gotham-Book, serif"><FONT SIZE=3 STYLE="font-size: 11pt">[</FONT></FONT></FONT><FONT COLOR="#7f7f7f"><FONT FACE="Times New Roman, serif"><FONT SIZE=3 STYLE="font-size: 11pt"></FONT></FONT></FONT><FONT COLOR="#7f7f7f"><FONT FACE="Gotham-Book, serif"><FONT SIZE=3 STYLE="font-size: 11pt">]
Privately share data with Spidey Help Desk (optional)</FONT></FONT></FONT></P>
<P STYLE="margin-bottom: 0in; line-height: 150%"><FONT COLOR="#7f7f7f"><FONT FACE="Gotham-Book, serif"><FONT SIZE=3 STYLE="font-size: 11pt">[</FONT></FONT></FONT><FONT COLOR="#7f7f7f"><FONT FACE="Times New Roman, serif"><FONT SIZE=3 STYLE="font-size: 11pt"></FONT></FONT></FONT><FONT COLOR="#7f7f7f"><FONT FACE="Gotham-Book, serif"><FONT SIZE=3 STYLE="font-size: 11pt">]
Alert your social networks to your scan results (optional)</FONT></FONT></FONT></P>
</BODY>
</HTML>
8 changes: 8 additions & 0 deletions res/layout/activity_webview.xml
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent">
<WebView android:id="@+id/webview"
android:layout_width="match_parent" android:layout_height="wrap_content"/>
</FrameLayout>
6 changes: 6 additions & 0 deletions res/menu/main.xml
Expand Up @@ -14,5 +14,11 @@
android:showAsAction="always"
android:title="@string/action_scan"/>

<item
android:id="@+id/action_about"
android:orderInCategory="100"
android:showAsAction="always"
android:title="@string/action_about"/>


</menu>
2 changes: 2 additions & 0 deletions res/values/strings.xml
Expand Up @@ -11,5 +11,7 @@

<string name="action_settings">Settings</string>
<string name="action_scan">Scan</string>
<string name="action_about">About</string>


</resources>
17 changes: 17 additions & 0 deletions src/com/example/spidey/AboutActivity.java
@@ -0,0 +1,17 @@
package com.example.spidey;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;

public class AboutActivity extends Activity {

@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_webview);
WebView wv;
wv = (WebView) findViewById(R.id.webview);
wv.loadUrl("file:///android_asset/spidey.html"); // now it will not fail here
}
}
9 changes: 9 additions & 0 deletions src/com/example/spidey/MainActivity.java
Expand Up @@ -83,10 +83,19 @@ public boolean onOptionsItemSelected(MenuItem item) {
else if (id == R.id.action_scan) {
runScan ();
}
else if (id == R.id.action_about) {
showAbout ();
}

return super.onOptionsItemSelected(item);
}

private void showAbout ()
{
Intent intent = new Intent(this,AboutActivity.class);
startActivity(intent);
}

private void runScan ()
{

Expand Down

0 comments on commit c351d12

Please sign in to comment.