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:
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="se.hv.crille"
|
||||
package="se.hv.dindag"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0" >
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="se.hv.crille"
|
||||
package="se.hv.dindag"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0" >
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,6 +1,5 @@
|
||||
package se.hv.dindag;
|
||||
|
||||
import se.hv.crille.R;
|
||||
import android.app.Activity;
|
||||
import android.os.Bundle;
|
||||
|
||||
|
||||
@@ -1,12 +1,7 @@
|
||||
package se.hv.dindag;
|
||||
|
||||
import se.hv.crille.R;
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.MenuItem;
|
||||
import android.widget.Toast;
|
||||
|
||||
/**
|
||||
* Fires up the DinDagMenu
|
||||
|
||||
@@ -4,19 +4,14 @@ import java.security.MessageDigest;
|
||||
import java.security.NoSuchAlgorithmException;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import se.hv.crille.R;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.AlertDialog;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.view.View.OnClickListener;
|
||||
import android.widget.Button;
|
||||
import android.widget.EditText;
|
||||
import android.widget.ListView;
|
||||
import android.widget.TextView;
|
||||
import android.widget.Toast;
|
||||
|
||||
/**
|
||||
@@ -51,8 +46,8 @@ public class Login extends Activity {
|
||||
*/
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
Toast.makeText(getApplicationContext(), "Kollar dina uppgifter...",
|
||||
Toast.LENGTH_LONG).show();
|
||||
Toast.makeText(getApplicationContext(),
|
||||
"Kollar dina uppgifter...", Toast.LENGTH_LONG).show();
|
||||
// Loginknappen har klickats. Kolla uppgifterna
|
||||
EditText username = (EditText) findViewById(R.id.tfUsername);
|
||||
EditText password = (EditText) findViewById(R.id.tfPassword);
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
package se.hv.dindag;
|
||||
|
||||
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.impl.client.DefaultHttpClient;
|
||||
import org.apache.http.util.EntityUtils;
|
||||
|
||||
@@ -4,13 +4,10 @@ import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
|
||||
import se.hv.crille.R;
|
||||
|
||||
import android.app.AlertDialog;
|
||||
import android.app.ListActivity;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.util.Log;
|
||||
import android.view.MenuInflater;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
@@ -66,7 +63,6 @@ public class MyDay extends ListActivity {
|
||||
// Fill the ArrayList with the items we got from the ASynkTask
|
||||
myDayItems = myDayNews.get();
|
||||
|
||||
|
||||
// Add the menuItems to our ListView
|
||||
ListAdapter adapter = new SimpleAdapter(this, myDayItems,
|
||||
R.layout.activity_myday_list, new String[] { KEY_TITLE,
|
||||
@@ -108,6 +104,7 @@ public class MyDay extends ListActivity {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays the menu for the startup screen
|
||||
*/
|
||||
@@ -128,7 +125,8 @@ public class MyDay extends ListActivity {
|
||||
case R.id.menuSave:
|
||||
AlertDialog.Builder savePopup = new AlertDialog.Builder(this);
|
||||
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.show();
|
||||
|
||||
@@ -137,7 +135,8 @@ public class MyDay extends ListActivity {
|
||||
case R.id.menuMail:
|
||||
AlertDialog.Builder mailPopup = new AlertDialog.Builder(this);
|
||||
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.show();
|
||||
|
||||
|
||||
@@ -4,8 +4,6 @@ import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.concurrent.ExecutionException;
|
||||
|
||||
import se.hv.crille.R;
|
||||
|
||||
import android.app.AlertDialog;
|
||||
import android.app.ListActivity;
|
||||
import android.content.Context;
|
||||
|
||||
@@ -14,8 +14,6 @@ import org.apache.http.util.EntityUtils;
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONObject;
|
||||
|
||||
import se.hv.crille.R;
|
||||
|
||||
import android.app.ListActivity;
|
||||
import android.app.ProgressDialog;
|
||||
import android.content.Context;
|
||||
|
||||
@@ -1,11 +1,9 @@
|
||||
package se.hv.dindag;
|
||||
|
||||
import se.hv.crille.R;
|
||||
import android.app.Activity;
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.webkit.WebView;
|
||||
import android.widget.Toast;
|
||||
|
||||
/**
|
||||
* Opens up a new WebView and loads the URL of the chosen element from the feed
|
||||
|
||||
@@ -13,7 +13,8 @@ import android.os.AsyncTask;
|
||||
* point out wich DIV-tag we want to retrive. The result is stored in a String,
|
||||
* 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
|
||||
* @author imcoh
|
||||
*
|
||||
|
||||
@@ -11,11 +11,8 @@ import org.w3c.dom.Document;
|
||||
import org.w3c.dom.Element;
|
||||
import org.w3c.dom.NodeList;
|
||||
|
||||
import android.app.ProgressDialog;
|
||||
import android.content.Context;
|
||||
import android.net.ParseException;
|
||||
import android.os.AsyncTask;
|
||||
import android.os.SystemClock;
|
||||
import android.text.Html;
|
||||
import android.text.Spanned;
|
||||
import android.util.Log;
|
||||
|
||||
@@ -40,7 +40,8 @@ public class XMLParser {
|
||||
/**
|
||||
* Getting XML from URL making HTTP request
|
||||
*
|
||||
* @param url string
|
||||
* @param url
|
||||
* string
|
||||
*/
|
||||
public String getXmlFromUrl(String url) {
|
||||
String xml = null;
|
||||
@@ -68,7 +69,8 @@ public class XMLParser {
|
||||
/**
|
||||
* Getting XML DOM element
|
||||
*
|
||||
* @param XML string
|
||||
* @param XML
|
||||
* string
|
||||
* @return The DOM-object
|
||||
*/
|
||||
public Document getDomElement(String xml) {
|
||||
@@ -99,7 +101,8 @@ public class XMLParser {
|
||||
/**
|
||||
* Gets the value of the chosen node
|
||||
*
|
||||
* @param elem element
|
||||
* @param elem
|
||||
* element
|
||||
* @return The value of the Node
|
||||
*/
|
||||
public final String getElementValue(Node elem) {
|
||||
|
||||
Reference in New Issue
Block a user