Tog bort massa gamla referenser till se.hv.crille som istället skall

vara se.hv.dindag. Dessutom har jag kollat över så att inga extra
resurser som inte används importeras i projektet.
This commit is contained in:
2013-02-27 14:30:06 +01:00
parent 96c0395a72
commit 38cf62f56e
16 changed files with 20 additions and 35 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="se.hv.crille" package="se.hv.dindag"
android:versionCode="1" android:versionCode="1"
android:versionName="1.0" > android:versionName="1.0" >

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="se.hv.crille" package="se.hv.dindag"
android:versionCode="1" android:versionCode="1"
android:versionName="1.0" > android:versionName="1.0" >

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,6 +1,5 @@
package se.hv.dindag; package se.hv.dindag;
import se.hv.crille.R;
import android.app.Activity; import android.app.Activity;
import android.os.Bundle; import android.os.Bundle;

View File

@@ -1,12 +1,7 @@
package se.hv.dindag; package se.hv.dindag;
import se.hv.crille.R;
import android.app.Activity; import android.app.Activity;
import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.util.Log;
import android.view.MenuItem;
import android.widget.Toast;
/** /**
* Fires up the DinDagMenu * Fires up the DinDagMenu

View File

@@ -4,19 +4,14 @@ import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException; import java.security.NoSuchAlgorithmException;
import java.util.ArrayList; import java.util.ArrayList;
import se.hv.crille.R;
import android.app.Activity; import android.app.Activity;
import android.app.AlertDialog; import android.app.AlertDialog;
import android.content.Intent; import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.util.Log;
import android.view.View; import android.view.View;
import android.view.View.OnClickListener; import android.view.View.OnClickListener;
import android.widget.Button; import android.widget.Button;
import android.widget.EditText; import android.widget.EditText;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast; import android.widget.Toast;
/** /**
@@ -51,8 +46,8 @@ public class Login extends Activity {
*/ */
@Override @Override
public void onClick(View v) { public void onClick(View v) {
Toast.makeText(getApplicationContext(), "Kollar dina uppgifter...", Toast.makeText(getApplicationContext(),
Toast.LENGTH_LONG).show(); "Kollar dina uppgifter...", Toast.LENGTH_LONG).show();
// Loginknappen har klickats. Kolla uppgifterna // Loginknappen har klickats. Kolla uppgifterna
EditText username = (EditText) findViewById(R.id.tfUsername); EditText username = (EditText) findViewById(R.id.tfUsername);
EditText password = (EditText) findViewById(R.id.tfPassword); EditText password = (EditText) findViewById(R.id.tfPassword);

View File

@@ -1,7 +1,9 @@
package se.hv.dindag; package se.hv.dindag;
import java.util.ArrayList; import java.util.ArrayList;
import org.apache.http.*;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpPost; import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.impl.client.DefaultHttpClient;
import org.apache.http.util.EntityUtils; import org.apache.http.util.EntityUtils;

View File

@@ -4,13 +4,10 @@ import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutionException;
import se.hv.crille.R;
import android.app.AlertDialog; import android.app.AlertDialog;
import android.app.ListActivity; import android.app.ListActivity;
import android.content.Intent; import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.util.Log;
import android.view.MenuInflater; import android.view.MenuInflater;
import android.view.MenuItem; import android.view.MenuItem;
import android.view.View; import android.view.View;
@@ -66,7 +63,6 @@ public class MyDay extends ListActivity {
// Fill the ArrayList with the items we got from the ASynkTask // Fill the ArrayList with the items we got from the ASynkTask
myDayItems = myDayNews.get(); myDayItems = myDayNews.get();
// Add the menuItems to our ListView // Add the menuItems to our ListView
ListAdapter adapter = new SimpleAdapter(this, myDayItems, ListAdapter adapter = new SimpleAdapter(this, myDayItems,
R.layout.activity_myday_list, new String[] { KEY_TITLE, R.layout.activity_myday_list, new String[] { KEY_TITLE,
@@ -108,6 +104,7 @@ public class MyDay extends ListActivity {
e.printStackTrace(); e.printStackTrace();
} }
} }
/** /**
* Displays the menu for the startup screen * Displays the menu for the startup screen
*/ */
@@ -128,7 +125,8 @@ public class MyDay extends ListActivity {
case R.id.menuSave: case R.id.menuSave:
AlertDialog.Builder savePopup = new AlertDialog.Builder(this); AlertDialog.Builder savePopup = new AlertDialog.Builder(this);
savePopup.setTitle("Spara dina loginuppgifter"); savePopup.setTitle("Spara dina loginuppgifter");
savePopup.setMessage("HŠr kan vi implementera en SQLlite-databas fšr att spara uppgifterna man matade in."); savePopup
.setMessage("HŠr kan vi implementera en SQLlite-databas fšr att spara uppgifterna man matade in.");
savePopup.setNeutralButton("OK", null); savePopup.setNeutralButton("OK", null);
savePopup.show(); savePopup.show();
@@ -137,7 +135,8 @@ public class MyDay extends ListActivity {
case R.id.menuMail: case R.id.menuMail:
AlertDialog.Builder mailPopup = new AlertDialog.Builder(this); AlertDialog.Builder mailPopup = new AlertDialog.Builder(this);
mailPopup.setTitle("Kolla mail"); mailPopup.setTitle("Kolla mail");
mailPopup.setMessage("…ppnar helt enkelt en WebView till studenternas Live-mail sida. Vi behšver inte ta med nŒgon login eller sŒ, bara šppna en WebView."); mailPopup
.setMessage("…ppnar helt enkelt en WebView till studenternas Live-mail sida. Vi behšver inte ta med nŒgon login eller sŒ, bara šppna en WebView.");
mailPopup.setNeutralButton("OK", null); mailPopup.setNeutralButton("OK", null);
mailPopup.show(); mailPopup.show();

View File

@@ -4,8 +4,6 @@ import java.util.ArrayList;
import java.util.HashMap; import java.util.HashMap;
import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutionException;
import se.hv.crille.R;
import android.app.AlertDialog; import android.app.AlertDialog;
import android.app.ListActivity; import android.app.ListActivity;
import android.content.Context; import android.content.Context;

View File

@@ -14,8 +14,6 @@ import org.apache.http.util.EntityUtils;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONObject; import org.json.JSONObject;
import se.hv.crille.R;
import android.app.ListActivity; import android.app.ListActivity;
import android.app.ProgressDialog; import android.app.ProgressDialog;
import android.content.Context; import android.content.Context;

View File

@@ -1,11 +1,9 @@
package se.hv.dindag; package se.hv.dindag;
import se.hv.crille.R;
import android.app.Activity; import android.app.Activity;
import android.content.Intent; import android.content.Intent;
import android.os.Bundle; import android.os.Bundle;
import android.webkit.WebView; import android.webkit.WebView;
import android.widget.Toast;
/** /**
* Opens up a new WebView and loads the URL of the chosen element from the feed * Opens up a new WebView and loads the URL of the chosen element from the feed

View File

@@ -13,7 +13,8 @@ import android.os.AsyncTask;
* point out wich DIV-tag we want to retrive. The result is stored in a String, * point out wich DIV-tag we want to retrive. The result is stored in a String,
* wich is returned as a result. * wich is returned as a result.
* *
* @param The URL of a certain website * @param The
* URL of a certain website
* @return The String of text contained in a specific DIV-tag * @return The String of text contained in a specific DIV-tag
* @author imcoh * @author imcoh
* *

View File

@@ -11,11 +11,8 @@ import org.w3c.dom.Document;
import org.w3c.dom.Element; import org.w3c.dom.Element;
import org.w3c.dom.NodeList; import org.w3c.dom.NodeList;
import android.app.ProgressDialog;
import android.content.Context;
import android.net.ParseException; import android.net.ParseException;
import android.os.AsyncTask; import android.os.AsyncTask;
import android.os.SystemClock;
import android.text.Html; import android.text.Html;
import android.text.Spanned; import android.text.Spanned;
import android.util.Log; import android.util.Log;

View File

@@ -40,7 +40,8 @@ public class XMLParser {
/** /**
* Getting XML from URL making HTTP request * Getting XML from URL making HTTP request
* *
* @param url string * @param url
* string
*/ */
public String getXmlFromUrl(String url) { public String getXmlFromUrl(String url) {
String xml = null; String xml = null;
@@ -68,7 +69,8 @@ public class XMLParser {
/** /**
* Getting XML DOM element * Getting XML DOM element
* *
* @param XML string * @param XML
* string
* @return The DOM-object * @return The DOM-object
*/ */
public Document getDomElement(String xml) { public Document getDomElement(String xml) {
@@ -99,7 +101,8 @@ public class XMLParser {
/** /**
* Gets the value of the chosen node * Gets the value of the chosen node
* *
* @param elem element * @param elem
* element
* @return The value of the Node * @return The value of the Node
*/ */
public final String getElementValue(Node elem) { public final String getElementValue(Node elem) {